Can't figure out how to set up NAT/iptables is confusing
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.