* Redirect and change the source IP
@ 2003-11-03 13:24 Martín
2003-11-03 14:00 ` Ray Leach
0 siblings, 1 reply; 3+ messages in thread
From: Martín @ 2003-11-03 13:24 UTC (permalink / raw)
To: netfilter@lists.netfilter.org
How can I redirect inbound traffic and also change the source IP of this
traffic?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Redirect and change the source IP
2003-11-03 13:24 Martín
@ 2003-11-03 14:00 ` Ray Leach
0 siblings, 0 replies; 3+ messages in thread
From: Ray Leach @ 2003-11-03 14:00 UTC (permalink / raw)
To: Netfilter Mailing List
[-- Attachment #1: Type: text/plain, Size: 495 bytes --]
On Mon, 2003-11-03 at 15:24, Martín wrote:
> How can I redirect inbound traffic and also change the source IP of this
> traffic?
iptables -t nat -A POSTROUTING -i eth0 -s 123.321.123.321 -p tcp --dport
80 -j SNAT --to 1.2.3.4
--
--
Raymond Leach <raymondl@knowledgefactory.co.za>
Network Support Specialist
http://www.knowledgefactory.co.za
"lynx -source http://www.rchq.co.za/raymondl.asc | gpg --import"
Key fingerprint = 7209 A695 9EE0 E971 A9AD 00EE 8757 EE47 F06F FB28
--
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Redirect and change the source IP
@ 2003-11-03 14:12 Martín
0 siblings, 0 replies; 3+ messages in thread
From: Martín @ 2003-11-03 14:12 UTC (permalink / raw)
To: netfilter@lists.netfilter.org
En Mon, 03 Nov 2003 16:00:27 +0200, Ray Leach
<raymondl@knowledgefactory.co.za> escribió:
> On Mon, 2003-11-03 at 15:24, Martín wrote:
>> How can I redirect inbound traffic and also change the source IP of this
>> traffic?
> iptables -t nat -A POSTROUTING -i eth0 -s 123.321.123.321 -p tcp --dport
> 80 -j SNAT --to 1.2.3.4
This would change the SOURCE IP, but I need also to redirect the traffic to
another machine
How can I do both things?
Supose the linux machine has IP 192.168.1.1, the traffic is comeing from
192.16.1.2 and I want to recive that traffic in 192.168.1.1 cange its
source IP to 192.168.1.2 and also redirect that trafic to 192.168.2.1.
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-11-03 14:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-03 14:12 Redirect and change the source IP Martín
-- strict thread matches above, loose matches on Subject: below --
2003-11-03 13:24 Martín
2003-11-03 14:00 ` Ray Leach
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox