Search code examples
ftpiptablesnat

iptables nat FTP


I have computer (ubuntu server). Server have internet and share internet for local network. There is one computer in local network have FTP. How to get access to local FTP from internet?


Solution

  • A good Site to take a look: Linux Firewalls using iptables

    iptables -A PREROUTING -p tcp -i ppp0 --dport 21 -j DNAT --to 192.168.1.1:21

    ppp0 = Interface WWW

    192.168.1.1 = The Server which provides FTP in your Lan