LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 05-08-2007, 04:00 AM   #1
mediaeast
LQ Newbie
 
Registered: May 2007
Posts: 3

Rep: Reputation: 0
Routing for a 12 interface ftp server - downloading problem


I have proFTPd setup on an Ubuntu server with 12 network interfaces, each one connected to a separate DSL line. The server binds to the 12 interfaces fine but has trouble taking connections on the 11 other than the first interface.

- Each DSL line has a dynamic IP and is mapped to a DynDNS name.
- Each interface is behind a NAT in the DSL router. (An incoming connection is able to get to the server so the incoming NAT is working fine)
- All relevant ports are opened for FTP on each router and forwarded to the appropriate internal IP
- Each interface in proFTPd is setup to use a DNS service to lookup the interface IP for PASV transfers. Each interface has a different DNS name
- All interfaces are visible and enabled in the interface list
- Each of the interfaces has an internal IP of 192.168.n.11 and the router has an IP of 192.168.n.1.
- The server is running Ubuntu Server 6.10 with no firewall software

With these routes I was able to ftp to each interface independently and get directory listings. I am also able to upload data from the client to each of the 12 interfaces.

ip route add 192.168.2.0/24 dev eth2 src 192.168.2.11 table r2
ip route add 192.168.3.0/24 dev eth3 src 192.168.3.11 table r3
...
ip route add 192.168.12.0/24 dev eth12 src 192.168.12.11 table r12

ip rule add from 192.168.2.11 table r2
ip rule add from 192.168.3.11 table r3
...
ip rule add from 192.168.12.11 table r12

ip route add default via 192.168.2.1 table r2
ip route add default via 192.168.3.1 table r3
...
ip route add default via 192.168.12.1 table r12

The strange part is that I am actually able to download in ascii mode but not in binary mode from any of the interfaces other than the default interface (eth1)

I also tried loading ip_conntrack and ip_conntrack_ftp but that did not work. I also added the following iptable entries but they didn't help either.

iptables -A INPUT -i eth2 -p tcp --sport 1024: --dport 1024: -d 192.168.2.11 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A OUTPUT -o eth2 -p tcp --sport 1024: --dport 1024: -s 192.168.2.11 -m state --state ESTABLISHED -j ACCEPT

So now I am able to do the following using PASSIVE mode
- Upload from Client -> Server in ASCII and BINARY mode
- Download from Server -> Client in ASCII mode only.

I have also tried several ftp clients.

Any ideas why BINARY mode is not working for downloads?

Thanks
 
Old 05-12-2007, 11:35 AM   #2
mediaeast
LQ Newbie
 
Registered: May 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Ascii transfers work but binary transfers do not

Any routing or ftp experts out there who can help with this problem?

Your advice will be greatly appreciated.

Thanks in advance,

Mediaeast
 
Old 06-21-2007, 05:10 AM   #3
mediaeast
LQ Newbie
 
Registered: May 2007
Posts: 3

Original Poster
Rep: Reputation: 0
I have run Wireshark to trace the communication in the server during ASCII and Binary transfers. THere does not seem to be any significant difference from the FTP server point of view.

Does anyone know what the difference might be from a routing point of view between ASCII and Binary ftp transfers? Both are running in passive ftp mode.

Thanks
 
Old 06-21-2007, 07:19 AM   #4
rossonieri#1
Member
 
Registered: Jun 2007
Posts: 359

Rep: Reputation: 34
hi,

what are you trying to do exactly with putting 3x4ports NIC?
( i wished i have that intel NIC )

have you try to change the client request mode to binary?
AFAIK - if you've set up your routing,NAT etc correctly - there is no problem with routing.
check your proftpd config again - one more..

HTH.

Last edited by rossonieri#1; 06-21-2007 at 07:27 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
A ftp server web interface slack66 Linux - Software 2 04-13-2004 11:25 PM
routing ftp connections to internal server? steepcreep Linux - Networking 1 02-18-2004 02:29 AM
ftp-server error when downloading rpm's Mikessu Mandriva 2 09-18-2003 06:46 AM
Looking for ftp-server with web-interface martijnotten Linux - Software 1 06-23-2003 01:02 AM
Problem downloading via FTP pergesu Linux - Networking 3 01-07-2002 01:18 PM


All times are GMT -5. The time now is 06:36 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration