#1  
Old 22nd December 2010, 21:55
dbo dbo is offline
Junior Member
 
Join Date: Dec 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default iptables SNAT question

Currently I have a router running several networks SNAT to a single outbound static address. Each network has it's own interface. What I am trying to do is route each network out the outbound interface, but each have it's own outbound static IP.

The only NAT rule I'm using now is:

Code:
iptables -t nat -A POSTROUTING -s 10.0.0.0/8 -o eth7 -j SNAT --to 1.2.3.4
This is routing networks 10.0.0.0/24, 10.1.0.0/24, 10.2.0.0/24, etc. all out a single static address.

I would like to have each net have its own static outbound address, but still use a single outbound interface.

Any help is greatly appreciated.
Bo
Reply With Quote
Sponsored Links
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPC 3.0.3 - Help me optimize Apache+MySQL itsnedkeren Installation/Configuration 7 23rd November 2010 12:43
Iptables gateway with one lan adapter tsmr Installation/Configuration 1 7th August 2008 12:02
IPtables rule to let PPTP access LAN brianwebb01 Installation/Configuration 0 1st May 2008 21:23
RedHat AS 4 firewall iptables question. fbifido Installation/Configuration 2 9th November 2007 22:13
Match IP with MAC using iptables for squid block cooljai Server Operation 0 30th August 2007 18:30


All times are GMT +2. The time now is 09:52.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.