LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-24-2004, 11:07 AM   #1
doza
Member
 
Registered: Jan 2004
Distribution: Redhat
Posts: 31

Rep: Reputation: 15
NAT pool with iptables?


I was hoping that someone would be able to help me write some iptables rules to create a nat pool on my router. The firewall/router is Redhat 9.

I'll try to describe my setup. I have one device (Windows - stop laughing) functioning as a gateway/proxy with 2 NICs. The internal NIC is 10.14.0.3 and serves up a DHCP pool from 10.14.0.100-250. The other NIC is 10.15.0.3 and connects directly to the firewall/router. The firewall/router has 2 NICs as well. One is 10.15.0.1 and the other is a public address (206.x.x.x). Right now, the gateway is setup as a transparent proxy so it has it's own nat pool. We would like to turn the transparent proxy off and create the nat pool rules on the firewall/router. I know that we need to specify that any traffic headed for the 10.14 network from 206 should be sent to 10.15. Can someone explain to me how this is done with iptables?

Thanks
 
Old 11-24-2004, 12:26 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
You will need to know some of the other rules and when to use them,
so I suggest reading this iptables tutorial

It's big but covers nearly everything, there are scripts at the end..
 
  


Reply


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 1:1 NAT Garak Linux - Security 13 12-19-2011 05:03 PM
iptables nat kernelvn Linux - Networking 5 05-03-2005 11:39 AM
NAT with Pool of valid IP persian Linux - Networking 3 07-20-2004 10:13 AM
IPTABLES : build NAT using IPTABLES joseph Linux - Networking 4 04-23-2004 05:08 AM
iptables and NAT arrruken Linux - Networking 8 10-03-2003 04:17 AM

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

All times are GMT -5. The time now is 09:13 PM.

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