From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Unterkircher Subject: Re: IPTables again: selective NAT? Date: Fri, 11 Mar 2005 22:44:21 +0100 Message-ID: <42321135.9060402@netshadow.at> References: <4231FED0.9010903@surefoot.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit In-Reply-To: <4231FED0.9010903@surefoot.com> Sender: linux-admin-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: linux-admin@vger.kernel.org Cc: Jens Knoell 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 >