Score:0

vsftpd can not interact over VPN with iptables

de flag

I'm attempting to setup a file tranfer from 2 internal networks over VPN. The topology below: Network Topo

In virtual ftp server, I config iptables to NAT ftp ports with rules: iptables rules

From ftp client, I can success connect and login successful with anonymous to ftp server in zone B. However, I get this error:

ftp> open 172.16.3.65 21 Connected to 172.16.3.65. 220 (vsFTPd 3.0.3) 331 Please specify the password. 230 Login successful. ftp> binary 200 Switching to Binary mode. ftp> get "/download/tools.zip" ".\tools.zip" 500 Illegal PORT command. 425 Use PORT or PASV first. ftp> quit 221 Goodbye.

I configure vsftp such:

listen=NO

listen_ipv6=YES

anonymous_enable=YES

local_enable=YES

write_enable=YES

connnect_from_port_20=YES

pasv_enable=YES

pasv_address=

pasv_min_port=40000

pasv_max_port=50000

In vsftpd log on FTP Server, I got:

CONNECT: Client , anon password ""

OK LOGIN: Client

I have searched many solutions but it does not work! Do you have any ideas?

Please help me, thank for reading!

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.