View Full Version : [other] Two NICs, two FTPds, one computer - how can iproute make this work for me?

January 19th, 2009, 10:16 PM
Here is my present conondrum.

I have two NICs in my present machine. eth0 is with a gateway of eth1 is with a gateway of Let's say eth0's gateway has a WAN IP of and eth1's gateway has a WAN IP or

I cannot run both at the same time. If I turn one interface off, I can get an ftpd to work on the other. However if both are up, it is as if the port is closed when I try to connect to the ftpd, which it isn't. I've read the instructions for setting up two instances of vsftpd, and tried it with pure-ftpd as well.

I can set these daemons to bind to one particular interface, but I know there is some iproute stuff I need to do that I am not yet doing.

My goal is this - when someone connects to, they connect to the ftpd that is bound to eth0/, with traffic flowing through When someone connects to, they connect tot he ftpd that is bound to eth1/ through eth1.

I want this to work as if I had separate machines on separate connections with separate ftpds - except I want it to be in one machine. I'd rather not have multiple machines running(even though I have more PIIs than I know what to do with) if I can get this done in one machine.

Thanks. :)

January 19th, 2009, 11:55 PM

Maybe you can use the idea of specific ports...?