hi everyone,
i have 6 ip addresses allocated to my server.
I use my server as an openvpn secure connection from all my laptops and home pc.
Currently i have the following line in my rc.local which sets up with traffic going out everytime i reboot my server:
iptables -t nat -A POSTROUTING -j SNAT --to-source 83.***.***.213
That is my main server ip address. I would like to have my outgoing openvpn connection on a different ip, is it possible?
I have tried changing the code, to one of my other ip addresses, such as:
iptables -t nat -A POSTROUTING -j SNAT --to-source 83.***.***.214
...but the problem is i have trouble with my cpanel licences etc messing up.
What i would like to know is it possible to change the command above, to just affect the openvpn traffic and nothing else?
or is there something i can add into my openvpn.conf instead to change the outgoing ip? i already have changed the incoming listening ip by using:
local 83.***.***.211
thanks for any help you can give me 🙂