OpenVZ Forum


Home » General » Support » ip_conntrack_ftp Not Working in Container
Re: ip_conntrack_ftp Not Working in Container [message #39390 is a reply to message #39359] Wed, 14 April 2010 12:23 Go to previous message
ddpaul is currently offline  ddpaul
Messages: 1
Registered: April 2010
Junior Member
Hi.

The same thing on Centos 5.4 and x86_64 host node
# uname -a
Linux vz.hostnode.tld 2.6.18-164.15.1.el5.028stab068.9 #1 SMP Tue Mar 30 18:07:38 MSD 2010 x86_64 x86_64 x86_64 GNU/Linux


ip_conntrack_ftp is loaded but doesn't work inside 32-bit container:
# uname -a
Linux ct.container.tld 2.6.18-164.15.1.el5.028stab068.9 #1 SMP Tue Mar 30 18:07:38 MSD 2010 i686 i686 i386 GNU/Linux

# ftp ftp.bgbilling.ru
Connected to ftp.bgbilling.ru (81.30.195.156).
220 (vsFTPd 2.0.5)
Name (ftp.bgbilling.ru:root): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (81,30,195,156,26,135)
ftp: connect: No route to host
ftp> quit
221 Goodbye.


There are some dropped packets by iptables and only one record in /proc/net/ip_conntrack:
# cat /var/log/iptables.log
Apr 14 15:58:08 vz kernel: IN=venet0 OUT=eth0 SRC=10.0.0.213 DST=81.30.195.156 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=19868 DF PROTO=TCP SPT=45315 DPT=6791 WINDOW=5840 RES=0x00 SYN URGP=0 
Apr 14 15:58:11 vz kernel: IN=venet0 OUT=eth0 SRC=10.0.0.213 DST=81.30.195.156 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=19869 DF PROTO=TCP SPT=45315 DPT=6791 WINDOW=5840 RES=0x00 SYN URGP=0 

# cat /proc/net/ip_conntrack | grep 81.30.195.156
tcp      6 431995 ESTABLISHED src=10.0.0.213 dst=81.30.195.156 sport=40642 dport=21 packets=12 bytes=673 src=81.30.195.156 dst=10.0.0.213 sport=21 dport=40642 packets=8 bytes=582 [ASSURED] mark=0 secmark=0 use=1


At the same time it works while connecting from HN:
# ftp ftp.bgbilling.ru
Connected to bgbilling.ru.
220 (vsFTPd 2.0.5)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (ftp.bgbilling.ru:root): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (81,30,195,156,170,167)
150 Here comes the directory listing.
drwxr-xr-x    3 500      100          4096 Mar 10 18:28 pub
226 Directory send OK.
ftp>


There are no dropped packets by iptables and two corresponding records in /proc/net/ip_conntrack in this case:
# cat /proc/net/ip_conntrack | grep 81.30.195.156
tcp      6 431903 ESTABLISHED src=10.0.0.196 dst=81.30.195.156 sport=42787 dport=21 packets=17 bytes=970 src=81.30.195.156 dst=10.0.0.196 sport=21 dport=42787 packets=13 bytes=982 [ASSURED] mark=0 secmark=0 use=1
tcp      6 23 TIME_WAIT src=10.0.0.196 dst=81.30.195.156 sport=59495 dport=43687 packets=4 bytes=216 src=81.30.195.156 dst=10.0.0.196 sport=43687 dport=59495 packets=4 bytes=277 [ASSURED] mark=0 secmark=0 use=1


Also ip_conntrack_ftp works fine on 32-bit host nodes in both cases (from HN and container).
Do you have any clues?

Thanks in advance,
Pavel
 
Read Message
Read Message
Previous Topic: IP Conntrack FTP in VE
Next Topic: [Resolved] Destroyed VE but still /proc/bc/$VEID
Goto Forum:
  


Current Time: Mon Aug 26 08:20:55 GMT 2024

Total time taken to generate the page: 0.05874 seconds