Reply To: Different public source IPs from NAT’ed internal servers?

Home Page Forums Network Management Networking Different public source IPs from NAT’ed internal servers? Reply To: Different public source IPs from NAT’ed internal servers?

#47365

ppalias
Member

Hi,
according to what you ask the rule

iptables -t nat -A POSTROUTING --source 192.168.0.2 -j SNAT --to-source x.x.x.2

should do the work for you.
All you need is to place it on the appropriate line in iptables configuration.