Problem with Iptables
Hi everybody
I am building 1 system includes 1 firewall server using iptables 1 Webserver && 1 FTP server On FTP server IP: 192.168.1.2 - GW: 192.168.1.1, i installed ProFTPD successfully. In LAN i do everything successfull. On Firewall server <IP PUBLIC> on eth0 && IP LAN eth1: 192.168.1.1 Iptables rules: Code:
# Generated by iptables-save v1.3.5 on Sun Mar 7 21:01:16 2010 I check port 21 on IP PUBLIC , it's return Open. But when i using ftp command then it's show Code:
Connected to <IP PUBLIC>. |
You can't connect to a public ip from inside the network. Go somewhere else and test it.
Also read about the PASV ftp settings: http://www.cyberciti.biz/faq/iptable...s-not-working/ |
You probably need to load in Iptables special module to trace FTP connections. It might be called "nf_nat_ftp" or "nf_nat_tftp". Check about it.
|
Quote:
In local i used IP LAN connect and successfully. Problem is : connect FTP successfully but get data unsuccess. |
That's because you have to set up PASV port forwarding.
|
Hi,
Open ftp-data port (20) |
All times are GMT -5. The time now is 07:19 PM. |