iptables port80 forward and snat
Quoted 4 lines · Gabriel
Quoted 1 line · J.P. Fischer
1- Snat traffic coming in on eth2
Quoted 9 lines
iptables -t nat -A POSTROUTING -i eth2 -o eth0 -j SNAT --to-source 1.1.1.1
Quoted 1 line
2- port forward http traffic coming in on eth1 to port
8080 (so it will hit
Quoted 1 line
the safesquid running on the box)
here:
http://iptables-tutorial.frozentux.net/iptables-tutorial.html#REDIRECTTARGET
Quoted 3 lines
it says it should look something like this:
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80
-j
Quoted 2 lines
REDIRECT --to-ports 8080
Sorry, I haven't read Rob's post before replying.
Signature · 6 lines
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com