Contents |
Introduction
Here we will configure openvpn client the following way:
- we will use the daemon(the init script)
- we will get an ip from the openvpn server and not from a dhcp server
run the following command:
- sudo apt-get install openvpn resolvconf
create the /etc/openvpn/client.conf with the following config
remote 192.168.1.1
client
dev tap
nobind
tls-client
ca /etc/openvpn/ca.crt
cert /etc/openvpn/ubu.crt
key /etc/openvpn/ubu.key
pull
verb 4
remote-cert-tls server
#auth-user-pass
redirect-gateway
#lladdr 00:FF:00:00:00:24
#route-delay 5
up "/etc/openvpn/update-resolv-conf"
down "/etc/openvpn/update-resolv-conf"
replace 192.168.1.1 by your server's ip address, and replace ubu.crt,ubu.key and ca.crt by your own certificates
run the openvpn server to try:
- /etc/init.d/openvpn start
then add it to the services that will be started at startup if you want:
- update-rc.d foobar defaults
CategoryVPN