pkg_add -r fails

ftp use tow ports one for communication 21 and the other for data transfer ,it chose it randomly ,and all ports under 1023 required root access ,so you must make it up 1023 as written in the second rule .
Code:
# pass in ftp traffic 
pass in on $interface proto tcp from any to $interface port 21
# pass out ftp trafic
pass out on $interface inet proto tcp from any to any port > 1023
 
Code:
pass out on $interface proto { tcp, udp, icmp } all

Is my rule, that should take care of the ftp traffic, the issue seems to be pkg_add not switching to passive mode properly.

I checked and double checked my env and pkg_add -r output....everything is the same other than the part about PASV mode of course. My output is the same as it was the first time I posted it (hence why I didn't repost it) and my env shows passive mode enabled for both myself and root.....I have absolutely no idea why it refuses to work. Thanks for everyone's help though, I think I am just gonna let this one go, however if anyone has any other suggestions I would be happy to try
 
Code:
pass out on $interface [B]inet[/B] proto tcp from any to any port > 1023
this rule apply fro ip v4 ,don't forget that ftp chose randome port to do transfer .
 
Back
Top