Topic: pf and the good old ftp problem, kinda


I'm having a bit of problem with routing ftp traffic trough pf

Here is the problem.
I have two wan connections and ftp-proxy is working perfectly well untill today when one of our dsl lines decided to leak bandwidth, this is what BT told me, hehe.

So now I'm routing all the traffic trough wan1 but for some reason I can't route ftp to go trough it, the weird part was, when both lines were working it was using wan1

This is what I have in pf for ftp

# ftp-proxy
nat-anchor "ftp-proxy/*"
rdr-anchor "ftp-proxy/*"

# ftp-proxy
anchor "ftp-proxy/*"

pass out quick proto tcp from $ext_if1 to any port 21 keep state

To route all the traffic trough wan1 I'm using this

pass in quick on $int_if  route-to { ( $ext_if1 $ext_gw1 ) } proto tcp from $lan_net  to any port = 80 keep state

I tried a similar rule on ftp but its not working.
Does anyone have an idea how I can solve this?


Last edited by hamba (2008-04-21 17:41:09)