From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ralf Spenneberg Subject: Re: Where libipt_MASQ.so (???) Date: 04 Aug 2003 20:12:56 +0200 Sender: netfilter-admin@lists.netfilter.org Message-ID: <1060020776.26856.50.camel@kermit> References: <1211419607.20030804184812@sevein.com> <1060020345.26856.44.camel@kermit> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1060020345.26856.44.camel@kermit> Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="iso-8859-1" To: "=?ISO-8859-1?Q?Jes=FAs_Garc=EDa?= Crespo (aka Sevein)" Cc: Netfilter Am Mon, 2003-08-04 um 20.05 schrieb Ralf Spenneberg: > > iptables -A FORWARD --match mac --mac-source 00:c0:49:c9:d3:f1 -j MASQ > You need:iptables -A FORWARD --match mac --mac-source 00:c0:49:c9:d3:f1 > -j MASQUERADE This is of course wrong. I take the opportunity to correct myself. I guess I need more coffee.=20 Masquerading is done in the nat table in the POSTROUTING or OUTPUT chain, therefore the line reads: iptables -t nat -A POSTROUTING --match mac --mac-source \ 00:c0:49:c9:d3:f1 -j MASQUERADE >=20 > Cheers, >=20 > Ralf --=20 Ralf Spenneberg RHCE, RHCX Book: Intrusion Detection f=FCr Linux Server http://www.spenneberg.com IPsec-Howto http://www.ipsec-howto.org Honeynet Project Mirror: http://honeynet.spenneberg.org