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 220.127.116.11 – 18.104.22.168 (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 22.214.171.124 (if I initiate the connection from inside my network), but I want it to be shown to the world as 126.96.36.199. 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!