From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ray Leach Subject: Re: Redirect and change the source IP Date: Mon, 03 Nov 2003 16:00:27 +0200 Sender: netfilter-admin@lists.netfilter.org Message-ID: <1067868026.26086.66.camel@raylinux.internal> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-bcoG5kbKF1rps3+5UNv/" Return-path: In-Reply-To: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: To: Netfilter Mailing List --=-bcoG5kbKF1rps3+5UNv/ Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Mon, 2003-11-03 at 15:24, Mart=EDn wrote: > How can I redirect inbound traffic and also change the source IP of this=20 > traffic? iptables -t nat -A POSTROUTING -i eth0 -s 123.321.123.321 -p tcp --dport 80 -j SNAT --to 1.2.3.4 --=20 -- Raymond Leach Network Support Specialist http://www.knowledgefactory.co.za "lynx -source http://www.rchq.co.za/raymondl.asc | gpg --import" Key fingerprint =3D 7209 A695 9EE0 E971 A9AD 00EE 8757 EE47 F06F FB28 -- --=-bcoG5kbKF1rps3+5UNv/ Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) iD8DBQA/pl96h1fuR/Bv+ygRAk1MAJ9rsKyWRZ0L/oJ9rlnPfxRqosBsdACgpmxm BN3K9nAQYRpqV8FU0NxU6CI= =7FeK -----END PGP SIGNATURE----- --=-bcoG5kbKF1rps3+5UNv/--