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:
Code: Select all
iptables -t nat -A POSTROUTING -j SNAT --to-source 83.***.***.213I have tried changing the code, to one of my other ip addresses, such as:
Code: Select all
iptables -t nat -A POSTROUTING -j SNAT --to-source 83.***.***.214What 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:
Code: Select all
local 83.***.***.211thanks for any help you can give me
