LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-04-2007, 09:39 AM   #1
rcx11
Member
 
Registered: Oct 2006
Location: Louisana, USA
Distribution: Fedora 34 x86_64, new to Raspbian
Posts: 83

Rep: Reputation: 15
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?
 
Old 05-04-2007, 10:00 AM   #2
Centinul
Member
 
Registered: Jun 2005
Distribution: Gentoo
Posts: 552

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

HTH,

Centinul
 
Old 05-04-2007, 10:03 AM   #3
deoren
Member
 
Registered: Oct 2003
Location: USA
Distribution: Ubuntu
Posts: 216

Rep: Reputation: 30
Linux Firewalls - 2nd Edition

That books rocks. I've even heard there is a 3rd edition available.
 
Old 05-04-2007, 10:12 AM   #4
Centinul
Member
 
Registered: Jun 2005
Distribution: Gentoo
Posts: 552

Rep: Reputation: 30
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.
 
Old 05-05-2007, 03:00 PM   #5
rcx11
Member
 
Registered: Oct 2006
Location: Louisana, USA
Distribution: Fedora 34 x86_64, new to Raspbian
Posts: 83

Original Poster
Rep: Reputation: 15
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?
 
Old 05-05-2007, 05:37 PM   #6
Centinul
Member
 
Registered: Jun 2005
Distribution: Gentoo
Posts: 552

Rep: Reputation: 30
rcx11 --

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

HTH,

Centinul
 
  


Reply

Tags
book, iptables


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables nat port forwarding rule set crowhurst01 Linux - Networking 2 02-13-2012 03:39 AM
Confusing iptables rule? sarajevo Linux - Security 3 11-23-2006 07:10 PM
noob cant figure out NAT grcunningham Linux - Networking 4 11-03-2004 10:48 AM
How do I set-up a firwall without NAT w/ iptables v1.2.8 - kernel 2.4.22? fleeingduck Linux - Newbie 0 06-01-2004 01:29 PM
iptables; confusing internal access error sedulous Linux - Newbie 6 10-09-2003 11:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration