Networking Forums

Networking Forums > Computer Networking > Linux Networking > Iptables NAT specific source IPs..

Reply
Thread Tools Display Modes

Iptables NAT specific source IPs..

 
 
BWGames
Guest
Posts: n/a

 
      03-15-2005, 10:22 PM
Hi,

I have a linux router, that I'm trying to use as follows:

I have a /29 subnet, and I want the clients on the internal network that
have public IPs (assigned manually) to be able to browse, with no NAT.

I also want to add some clients that have private 192.168.x.x IPs, and I'd
like those to be NATed, and have their IPs assigned via DHCP.

Assigning the DHCP IPs should be easy enough, but what I want to do, is
only NAT IPs coming from either a specific interface (eth0:1 etc) or, from
a specific ip range.
Is this possible?

Thanks,
Ben
--
BWGames
to email change de.news to de-news
 
Reply With Quote
 
 
 
 
David Schwartz
Guest
Posts: n/a

 
      03-15-2005, 11:55 PM

"BWGames" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...

> Assigning the DHCP IPs should be easy enough, but what I want to do, is
> only NAT IPs coming from either a specific interface (eth0:1 etc) or, from
> a specific ip range.
> Is this possible?


You should definitely make the decision to NAT or not based on the
source and destination addresses. If the source is in the private range
you've assigned, and the destination is not local, then you should NAT.

And of the various guides will do. Search for 'Masquerading' in this
guide:
http://www.siliconvalleyccie.com/lin...bles-intro.htm

DS


 
Reply With Quote
 
James Knott
Guest
Posts: n/a

 
      03-16-2005, 01:04 AM
BWGames wrote:

> Assigning the DHCP IPs should be easy enough, but what I want to do, is
> only NAT IPs coming from either a specific interface (eth0:1 etc) or, from
> a specific ip range.
> Is this possible?


Yes, you can configure IPTables to filter on IP address or interface.

 
Reply With Quote
 
 
 
Reply

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables port forwarding for specific source addresses ynotssor Linux Networking 22 08-30-2008 03:52 AM
routing out two ppp lines via source eth - iptables chris329@_REMOVE_earthlink.net Linux Networking 0 08-27-2004 05:19 PM
using iptables to route thru specific interface? Tobias Skytte Linux Networking 1 12-22-2003 05:40 PM
iptables: mac-source and FORWARD zacWonder Linux Networking 1 11-28-2003 03:14 PM
iptables: cannot ping source ip address Daniel Achermann Linux Networking 0 09-08-2003 09:31 AM



1 2 3 4 5 6 7 8 9 10 11