Christopher Jenkins life of a software developer, musician and student.
OpenVPN Access Server (AS) and NATing
So you have your open vpn as server working nicely? But you want your clients to appear on a differnt ip address on your server.
So for example i have:
80.0.0.1 setup as my eth0 address
80.0.0.2 as my eth0:1 address
I want my my vpn clients to be NATed through to eth0:1 not eth0.
Simple but sweet command from OpenVPN-AS support solved the issue nicely.
Login to your command prompt and do the following:
Make sure your logged in as root/sudo etc (su – / sudo )
cd /usr/local/openvpn_as/scripts
./confdba --mod --key vpn.server.routing.snat_source.0 --value eth0:1 (or which ever device you want your users to appear as)
Restart your server job done!
/etc/init.d/openvpnas restart
Now your clients should appear as 80.0.0.1 not 80.0.0.2
Feel free to ask any questions!
| Print article | This entry was posted by Christopher Jenkins on June 29, 2010 at 8:52 pm, and is filed under Uncategorized. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
about 2 months ago
yes that is quite acceptable. Its meant to be techno based