2.6.11 corrupting FTP session
Hi, after a upgrade to 2.6.11 I'm experiencing a corruption on the commands
send from the user and to the user like this:
"500 'R'" Command understood.
Thank you
--
Michel Pereira
[email protected]
+55 11 5105 0570
+55 11 5105 0569
www.eurorscg4d.com.br
Euro RSCG 4D
Unix Sex: unzip;strip;touch;finger;mount;fsck;more;yes;umount;sleep
----------------------------------------------------------------
Conectcor - velocidade com qualidade
www.conectcor.com.br
Quoted 3 lines · Michel Pereira
Hi, after a upgrade to 2.6.11 I'm experiencing a corruption on the commands
send from the user and to the user like this:"500 'R'" Command understood.
What is your setup (NAT rules, network topology between client and server)?
Regards
Patrick
Quoting Patrick McHardy <[email protected]>:
Quoted 2 lines
What is your setup (NAT rules, network topology between client and server)?
Firewall (a) -> Server on DMZ. (NAT of internal network connections) Firewall (b) -> Internal Network (without NAT of connections)
b - iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT b - iptables -A FORWARD -s myip -d 0/0 -m state --state NEW -j ACCEPT
a - iptables -t nat -A PREROUTING -p TCP -s 0/0 -d 200.162.38.71 --dport 21
-j DNAT --to IPonDMZ
Thank you
--
Michel Pereira
[email protected]
+55 11 5105 0570
+55 11 5105 0569
www.eurorscg4d.com.br
Euro RSCG 4D
Unix Sex: unzip;strip;touch;finger;mount;fsck;more;yes;umount;sleep
----------------------------------------------------------------
Conectcor - velocidade com qualidade
www.conectcor.com.br
Quoted 4 lines · Michel Pereira
Quoting Patrick McHardy <[email protected]>:
Quoted 2 lines
What is your setup (NAT rules, network topology between client and server)?
Quoted 8 lines
Firewall (a) -> Server on DMZ. (NAT of internal network connections) Firewall (b) -> Internal Network (without NAT of connections) b - iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT b - iptables -A FORWARD -s myip -d 0/0 -m state --state NEW -j ACCEPT a - iptables -t nat -A PREROUTING -p TCP -s 0/0 -d 200.162.38.71 --dport 21-j DNAT --to IPonDMZ
this sounds pretty straight forward, still i can't reproduce the problem at all. which ftp server and client are you using?
I suppose both firewalls have loaded ip_conntrack_ftp, and 'b' has ip_nat_ftp ?
Signature · 5 lines
- Harald Welte <[email protected]> http://netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie
Quoted 2 lines · Harald Welte
this sounds pretty straight forward, still i can't reproduce the problem at all. which ftp server and client are you using?
I have same problem (see Bug #308).
I'm using command line ftp client on Linux machines and command line ftp
client on Windows XP.
And any of ftp serveres which I tried (e.g. ftp://ftp.zcu.cz/pub/doc/rfc/, ftp://ftp.netfilter.org/pub/patch-o-matic-ng/snapshot/, ftp.cesnet.cz, ...)
I'm using Linux firewalls with shorewall package on many sites and I found this problem on any of them.
For simplification - I build test configuration with 1 firewall box and 1 client box on my office now. Firewall has 2 interfaces - one to Internet, second to local network - client. Client box is connected to firewall with crosswired twisted pair cable.
Client uses no iptables and when it is connected to Internet, it transfers all files via active ftp session without problems.
On the firewall I use vanilla Shorewall (2.x.x) configuration with
"loc net ACCEPT" global policy, no any other specialities.
When I'm running kernel 2.4.x and 2.6.0-2.6.10 kernel on the firewall, active ftp session on the client works fine. When I'm running 2.6.11, 2.6.11.x and 2.6.12-rc1 kernel on the firewall box, active ftp session with "mget *" command fails after 6 transfered files. Passive ftp session works fine on any kernel.
I used vanilla kernel without patches (I could send you my kernel config file).
Milos Wimmer
Quoted 7 lines · Milos Wimmer
I have same problem (see Bug #308).
When I'm running kernel 2.4.x and 2.6.0-2.6.10 kernel on the firewall, active ftp session on the client works fine. When I'm running 2.6.11, 2.6.11.x and 2.6.12-rc1 kernel on the firewall box, active ftp session with "mget *" command fails after 6 transfered files. Passive ftp session works fine on any kernel.
I'll post a patch for this shortly -- I've tracked it down to a TCP sequence adjustment problem.
Phil
Quoted 2 lines · Harald Welte
this sounds pretty straight forward, still i can't reproduce the problem at all. which ftp server and client are you using?
Me neither. I could trigger it totally unreliable, but couldn't figure out what the problem is. My guess so far is that it is somehow related to retransmissions.
Regards
Patrick
Quoted 7 lines · Patrick McHardy
Quoted 2 lines · Harald Welte
this sounds pretty straight forward, still i can't reproduce the problem at all. which ftp server and client are you using?
Me neither. I could trigger it totally unreliable, but couldn't figure out what the problem is. My guess so far is that it is somehow related to retransmissions.
It is caused by TCP sequence adjustment problems -- see my email with subject '[PATCH] Fix NAT TCP sequence adjustment'
Phil
Quoted 2 lines · Phil Oester
It is caused by TCP sequence adjustment problems -- see my email with subject '[PATCH] Fix NAT TCP sequence adjustment'
Great. I'll get to that later tonight.
Regards
Patrick