All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andreas Unterkircher <unki@netshadow.at>
To: linux-admin@vger.kernel.org
Cc: Jens Knoell <jens@surefoot.com>
Subject: Re: IPTables again: selective NAT?
Date: Fri, 11 Mar 2005 22:44:21 +0100	[thread overview]
Message-ID: <42321135.9060402@netshadow.at> (raw)
In-Reply-To: <4231FED0.9010903@surefoot.com>

What about:

iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j SNAT --to yourIP

iptables -t nat -A POSTROUTING -j DROP
or
iptables -t nat -P POSTROUTING DROP

Andreas

Jens Knoell wrote:

> Is it possible to selectively enable NAT? i.e. I want to NAT 
> everything from 192.168.0.0/24 and nothing from 192.168.1.0/24 ...?
>
> Thanks
> J
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

  parent reply	other threads:[~2005-03-11 21:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-11 20:25 IPTables again: selective NAT? Jens Knoell
2005-03-11 21:44 ` Grant Coady
2005-03-11 21:44 ` Andreas Unterkircher [this message]
2005-03-11 22:16   ` Jens Knoell

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=42321135.9060402@netshadow.at \
    --to=unki@netshadow.at \
    --cc=jens@surefoot.com \
    --cc=linux-admin@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.