Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Srinath Mantripragada <srinathm@terra.com.br>
To: netfilter@lists.samba.org
Subject: 3 outside networks
Date: Mon, 17 Jun 2002 11:34:59 -0300	[thread overview]
Message-ID: <3D0DF393.6050203@terra.com.br> (raw)

Hi,

I need some help with iptables and SNAT.


I have one inside net 172.16.0.0/24  and 3 outside nets  10.28.0.0/16 ,
   172.18.0.0/24 and Internet.
The 3 nets are routed by one router that i do not have control.

I have valid internet Addresses and i want to use NAT with one of them
but not for 10.28 and 172.18 networks.


i tried this:

iptables -t nat -I POSTROUTING -o eth1 -d ! 10.28.0.0/16 -j SNAT --to
MY.VALID.ADDR
iptables -t nat -I POSTROUTING -o eth1 -d ! 172.18.0.0/24 -j SNAT
--to MY.VALID.ADDR


I guess that i need something like :   "-d  ! 10.28.0.0/16  OR ! 
172.18.0.0./24"
but i dont  know how  to do that.


Can someone helpme ?


Thanks











             reply	other threads:[~2002-06-17 14:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-17 14:34 Srinath Mantripragada [this message]
2002-06-17 18:13 ` 3 outside networks Antony Stone
2002-06-17 18:22   ` Antony Stone

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D0DF393.6050203@terra.com.br \
    --to=srinathm@terra.com.br \
    --cc=netfilter@lists.samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox