Page 1 of 1
How do I use extra server IP's with Access Server?
Posted: Fri Nov 19, 2010 11:54 am
by exclamation
Code: Select all
I have a VPS with 10 IP's, OpenVPN Access Server is installed and I connect to it using the main IP, then I browse the internet with this IP.
How do I set it up so I can browse the internet with one of the extra IP's?
Any help is appreciated.
Edit: I see AS is not supported here.
Re: How do I use extra server IP's with Access Server?
Posted: Fri Nov 19, 2010 7:54 pm
by krzee
correct that AS is not supported here, but at least in normal openvpn this is solved in your NAT rule... I dont know if AS configures NAT for you.
for a basic iptables NAT where 10.8.0.x is the vpn network:
Code: Select all
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
to choose what IP address to NAT as, you can use
Code: Select all
iptables -t nat -I POSTROUTING -o eth0 -j SNAT --to <IP ADDRESS>