个人工具

UbuntuHelp:OpenVPNdaemonMiniHowto

来自Ubuntu中文

跳转至: 导航, 搜索

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<
>

  1. auth-user-pass<
    >

redirect-gateway<
>

  1. lladdr 00:FF:00:00:00:24<
    >
  2. 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