# OpenVPN Installation Instructions ###### tags: `OpenVPN` `vpn` [Download](https://openvpn.net/index.php/open-source/downloads.html) from OpenVPN official website To Build and Install, tar -zxf openvpn-<version>.tar.gz cd openvpn-<version> ./configure make ## Errors that may encounter in building * configure: error: openssl check failed ###### $ sudo apt install libssl-dev * if installing libssl error, install `zlib1g` first and install `libssl` >>Depends: zlib1g (= 1:1.2.8.dfsg-2ubuntu4) but 1:1.2.8.dfsg-2ubuntu4.1 is to be installed $ sudo apt install zlib1g=1:1.2.8.dfsg-2ubuntu4 >> **Warning** `sudo apt install zlib1g` is bugged! * configure: error: lzo enabled but missing ###### $ sudo apt-get install liblzo2-dev * configure: error: libpam required but missing ###### $ sudo apt-get install libpam0g-dev ## For VPN client $ sudo apt-get install openvpn $ sudo openvpn xxxx.ovpn > remember `sudo` in `sudo openvpn` > ### reference > https://zhuanlan.zhihu.com/p/26897605