Skip to contentSkip to conversation

Redirect and change the source IP

DISCUSSION Martín 2 participants 2 messages Nov 3, 2003

lore
Share & tools
lore

Martín

author
#0 lore raw

How can I redirect inbound traffic and also change the source IP of this traffic?

#1 lore raw
Quoted 2 lines · Martín

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

Signature · 7 lines
--
Raymond Leach <[email protected]>
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
--