Fafa Hafiz Krantz wrote:

hey!

pf blocks me from ftp'ing out from my workstation (behind my pf box) and i 
don't know why.
it only blocks, however, the ftp's i've been downloading a lot from during the 
past few days.
ftp'ing out *from* my pf box works just nicely.

some of my users report not being able to ssh in, too.

# tcpdump -n -e -ttt -i pflog0
#
24. 001750 rule 0/0(match): block in on rl0: IP 217.31.174.134:2200 > 
213.187.181.23 : FP 0:34(34) ack 1 win 5840

heeeeeeelp! :D

i didn't change my working configuration.
it's been working for months. until now ...

# cat /etc/pf.conf
#
int_if="ep0"
ext_if="rl0"

set     block-policy drop
scrub   in all

nat     on $ext_if from $int_if:network to any -> ($ext_if)
rdr     on $int_if proto tcp from any to any \
       port 21 -> 127.0.0.1 port 8021

block   drop log all
pass    quick on { lo0 $int_if }

pass    out on $ext_if inet proto { tcp, udp, icmp } \
       from any to any keep state

pass    in on $ext_if inet proto { tcp, udp } \
       from any to ($ext_if) port 53
pass    out on $ext_if inet proto { tcp, udp } \
       from any port 53 to any

pass    out on $ext_if inet proto udp \
       from any to any port 123 keep state

pass    in on $ext_if inet proto tcp \
       from any to ($ext_if) port { 22, 25, 80, 110, 113, 143 } \
       flags S/SA keep state

pass    in on $ext_if inet proto tcp \
       from any port 20 to ($ext_if) user proxy flags S/SA keep state

pass    in on $ext_if proto tcp \
       from any to any port 31337 keep state
pass    in on $ext_if proto tcp \
       from any to any port 53333:55555

--

Fafa Hafiz Krantz
 Research Designer @ http://www.home.no/barbershop
 Enlightened @ http://www.home.no/barbershop/smart/sharon.pdf

hey...

are you running ftp-proxy, or is it in inetd.conf?

you could try to change the redirect line to:
rdr pass on $int_if proto tcp from $int_if:network port 21 -> 127.0.0.1 port 8021

I don't have this line:
pass in on $ext_if inet proto tcp from any port 20 to ($ext_if) user proxy flags S/SA keep state
And it works anyway.

   -Tobias

Reply via email to