I have a cable modem, dedicated linux server and a home LAN. I want to use NAT and I need to have a firewall on the server. I want FTP and HTTP servers on the server.

I know I need to use iptables, but I don't know how to write the script. Any resources I could look at? Would a kind soul send me theirs so I can try and create my own?


replace 0 with o