mhorn0220
I am exactly 1 week old in Linux usage, so please go easy on me.
I have googled a lot and tried quite a few things, but can't get it to work.
I have 2 public IP addresses from my VPS.
I have managed to get:
user VPN1 to connect to my OpenVPN server, and gets assigned a local static ip 192.168.100.9
user VPN2 to connect to my OpenVPN server, and gets assigned a local static ip 192.168.100.10
(these were initially Dynamic)
No matter what I try I cannot get:
192.168.100.9 to use external IP 1 (from my VPS) 65.x.x.149
192.168.100.10 to use external IP 2 (from my VPS) 65.x.x.150
Both users/clients always seem to connect to external IP 1.
I feel I am missing something extremely simple. 🙁
mhorn0220
EDIT:
To clarify my interfaces are:
venet0:0 (external ip 1)
venet0:1 (external ip 2)
My iptables entries:
iptables -A INPUT -p udp -m state --state NEW -m udp --dport 1194 -j ACCEPT
iptables -A FORWARD -i tun0 -o venet0 -j ACCEPT
iptables -A FORWARD -i venet0 -o tun0 -j ACCEPT
iptables -t nat -A POSTROUTING -s 192.168.100.9 -j SNAT --to 65.x.x.149
iptables -t nat -A POSTROUTING -s 192.168.100.10 -j SNAT --to 65.x.x.150
most likely wrong ...