Differences

This shows you the differences between two versions of the page.

doc:howto:vpn.client.openvpn.tap [2012/05/17 12:00]
dadada
doc:howto:vpn.client.openvpn.tap [2012/10/29 16:03] (current)
zend
Line 11: Line 11:
===== Starting/Configuring the client ===== ===== Starting/Configuring the client =====
-Put the client config(opvn file and key/cert files) somewhere in /root. (In this guide we assume that it's+Put the client config(ovpn file and key/cert files) somewhere in /root. (In this guide we assume that it's
a configuration with tap device, ''dev tap'' should be defined in the opvn config file, if the corresponding a configuration with tap device, ''dev tap'' should be defined in the opvn config file, if the corresponding
server is configured for tun, this isn't the right guide for you) server is configured for tun, this isn't the right guide for you)
Run openvpn like this Run openvpn like this
-<code>openvpn --config myvpnconfig.opvn</code>+<code>openvpn --config myvpnconfig.ovpn</code>
If your internet connection works and everything in your config is correct (which you usually get from your VPN provider), If your internet connection works and everything in your config is correct (which you usually get from your VPN provider),
Line 36: Line 36:
<code> <code>
iptables -t nat -A POSTROUTING -o tap+ -j SNAT --to-source 10.xx.x.xx iptables -t nat -A POSTROUTING -o tap+ -j SNAT --to-source 10.xx.x.xx
-openvpn --config /root/myvpnconfig.opvn &+openvpn --config /root/myvpnconfig.ovpn &
exit 0 exit 0
</code> </code>

Back to top

doc/howto/vpn.client.openvpn.tap.txt · Last modified: 2012/10/29 16:03 by zend