Networking Forums

Networking Forums > Computer Networking > Linux Networking > poliy routing: passive ftp

Reply
Thread Tools Display Modes

poliy routing: passive ftp

 
 
Andreas =?UTF-8?B?TcO8bGxlcg==?=
Guest
Posts: n/a

 
      12-20-2005, 09:26 AM
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!


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PASSIVE AGGRESSIVE FCC OR AM I JUST DUMB? avgjoe Wireless Internet 0 07-05-2009 11:38 PM
Linux Passive FTP Configuration Fountain_spray Linux Networking 7 07-11-2008 04:40 PM
ftp client epsv4/passive tony barnwell Linux Networking 0 06-13-2004 06:08 PM
Passive mode . Wireless Internet 10 02-05-2004 01:58 AM
Passive FTP Ray Windows Networking 0 01-21-2004 06:49 PM



1 2 3 4 5 6 7 8 9 10 11