I have 8 static IP’s from my ISP, and have everyting working fine, but it would be nice to have traffic initiated from within my network be translated to the right IP address as it leaves the network.
Lets say the IP addresses are 188.8.131.52 – 184.108.40.206 (those are not my actual IP’s, just an example)
Now lets say I have a server on my LAN that is 10.1.2.3. Currently it is leaving the network as 220.127.116.11 (if I initiate the connection from inside my network), but I want it to be shown to the world as 18.104.22.168. What would the IPTables script be to make that happen. And…other than creating the script, is there anything else that needs to happen?
Any help is much appreciated!
I already have incoming connections working, so I only need help with outgoing. Thanks!