Reply To: FTP server configuration in a DMZ

Home Page Forums Network Management ZeroShell FTP server configuration in a DMZ Reply To: FTP server configuration in a DMZ

#47603

nfoata
Member

The situation has involved.
I only added information in the PREROUTING chain.

With the command line iptables , I did :

iptables -t nat -A PREROUTING -p udp -i ETH01 --destination-port 21 -j DNAT --to-destination=192.168.2.2
iptables -t nat -A PREROUTING -p tcp -i ETH01 --destination-port 21 -j DNAT --to-destination=192.168.2.2
iptables -t nat -A PREROUTING -p udp -i ETH01 --destination-port 20 -j DNAT --to-destination=192.168.2.2
iptables -t nat -A PREROUTING -p tcp -i ETH01 --destination-port 20 -j DNAT --to-destination=192.168.2.2

Now, when I try from outside, I can connect and just after I have the following message.

e.g :
> ftp
Connected to
Connection closed by the remote host