Completly lost with iptables when trying to configure it for FTP - Help!
I've been attacking this all afternoon and just not got anywhere. I was following an FTP Server guide and all was going well until I was asked to do this:
echo "1">/proc/sys/net/ipv4/ip_forward
ipchains -P forward DENY
ipchains -I forward -s 192.168.1.2 -j MASQ
insmod ip_masq_autofw
ipmasqadm autofw -A -r tcp 20 21 -h 192.168.1.2
ipmasqadm autofw -A -r tcp 60000 65535 -h 192.168.1.2
This is from Proftpd: A User's Guide - Chapter 12. Configuration for NAT.
This is outdated (from my understandings) and has been replaced by iptables... I've looked all over for info about this and all the things I find way to indepth and more confusing than helpful. All I'm looking for is a translation of those commands to the newer iptables program.
Then hopefully my FTP server will be accessible from outside my home network!
Can anyone help?
|