Correct syntax prob. NAT src ip address based on dst port.
alex at samad.com.au
Thu Apr 28 04:09:36 CEST 2005
On Thu, Apr 28, 2005 at 01:29:52PM +1130, Sylvan Andrew wrote:
> 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 188.8.131.52
> 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 ?
> Thanks very much !
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
Url : /pipermail/netfilter/attachments/20050428/d429bc7e/attachment.bin
More information about the netfilter