Correct syntax prob. NAT src ip address based on dst port.
Hello,
Could somebody please tell me if this is the correct syntax ? I am trying to make it so that any local traffic gets natted to a specific IP if it is destined to a HTTPS port.
iptables -t nat -A POSTROUTING -p tcp --dport 443 -j SNAT --to 197.15.12.12
A tcpdump show the replies are coming back in fine but when you actually browse to a https site nothings happening.
Thanks very much !
Sylvan
Quoted 8 lines · Sylvan Andrew
Hello,
Could somebody please tell me if this is the correct syntax ? I am trying to make it so that any local traffic gets natted to a specific IP if it is destined to a HTTPS port.
iptables -t nat -A POSTROUTING -p tcp --dport 443 -j SNAT --to 197.15.12.12
A tcpdump show the replies are coming back in fine but when you actually browse to a https site nothings happening.
might have to show us the rest of the tables/chains, there might be another rule that it matches before this ?
Quoted 5 lines
Thanks very much !
Sylvan