How do I use extra server IP's with Access Server?

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
exclamation
OpenVpn Newbie
Posts: 4
Joined: Fri Nov 19, 2010 11:51 am

How do I use extra server IP's with Access Server?

Post by exclamation » Fri Nov 19, 2010 11:54 am

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.

User avatar
krzee
Forum Team
Posts: 728
Joined: Fri Aug 29, 2008 5:42 pm

Re: How do I use extra server IP's with Access Server?

Post by krzee » Fri Nov 19, 2010 7:54 pm

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>

Post Reply