hello
( first sorry for my bad english )
i have two internet connection.
dsl1 = ppp0 = http, mail,.. for the user. the defautl route is on dsl1
dsl2 = ppp1 = for the ftp-upload and download
with "policy routing" that the ftp ( port 21 + 20 )
connect over dsl2, work! ( aktive )
but the passiv ftp did´t work.
####
the rules:
iptables -A PREROUTING -i eth0 -t mangle -p tcp --sport 21 -j MARK
--set-mark 1
iptables -A PREROUTING -i eth0 -t mangle -p tcp --sport 20 -j MARK
--set-mark 1
iptables -A PREROUTING -i eth0 -t mangle -p tcp --dport 21 -j MARK
--set-mark 1
iptables -A PREROUTING -i eth0 -t mangle -p tcp --dport 20 -j MARK
--set-mark 1
ip rule add fwmark 1 table ftpe
ip route add default dev ppp1 table ftpe
###
how can i "mark" the passiv ftp connection...?
( high-port <-> high-port )
thanks!
|