LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Can't figure out how to set up NAT/iptables is confusing (http://www.linuxquestions.org/questions/linux-networking-3/cant-figure-out-how-to-set-up-nat-iptables-is-confusing-551254/)

rcx11 05-04-2007 09:39 AM

Can't figure out how to set up NAT/iptables is confusing
 
I have a home computer running RHEL 4 AS. I'm trying to set it up as a dial-up router for my house. I've got a working internet connection to it. I'm now trying to set up NAT. My modem is on /dev/ttyS0. They internet interface is ppp0. My internal network connection is eth0. I've got a DHCP server running and I know I've got the right IP addresses and such going out on my network. My biggest issue is setting up the iptables for this. I've read the man pages multiple times and have read through a couple "tutorials." Is there anyone that can just give me a straight walk through or translate what the iptables keywords and stuff are to simple plain English?

Centinul 05-04-2007 10:00 AM

Here is probably the most comprehensive tutorial on the net: IPTables 1.2.2

HTH,

Centinul

deoren 05-04-2007 10:03 AM

Linux Firewalls - 2nd Edition

That books rocks. I've even heard there is a 3rd edition available.

Centinul 05-04-2007 10:12 AM

Quote:

Originally Posted by deoren
Linux Firewalls - 2nd Edition

That books rocks. I've even heard there is a 3rd edition available.

That book is pretty good. It has its faults (various mistakes throughout the book) but overall it is a nice reference text.

rcx11 05-05-2007 03:00 PM

I've tried using the IPTables 1.2.2 tutorial. It isn't making enough sense to me. I've tried using the "working" example at http://en.tldp.org/HOWTO/IP-Masquera...-examples.html . I've made the two changes it says I need (interface names and location of iptables). Still it doesn't work. With the way my mind works, I need something that works with an explaination along side it so I can reverse engineer it. Anyone got ideas?

Centinul 05-05-2007 05:37 PM

rcx11 --

I recommend you get the book that deoren recommended. It is a great text and may provide the explanation you need.

HTH,

Centinul


All times are GMT -5. The time now is 03:18 AM.