openvpn easy installation
git clone https://github.com/Xaqron/openvpn.git
cd openvpn
sudo bash install.sh
During installation you need to specify some configurations:
- Your machine
public IP
address - Although
UDP
protocol is recommended, you need to useTCP
if you are gonna redirect traffic via stunnel later. - openvpn uses
UDP 1194
as default protocol/port. If you plan to usestunnel
then aport likeuse some TCP port (i.e.443
or578
1194
). - Use Google as
DNS
provider (option two).
If you have no plan for redirecting traffic via stunnel
then just proceed with default options (except for DNS
provider which is recommended to be used the google ones).
sudo bash openvpn.sh
Client config file (*.ovpn) will be placed at current user home.
ls ~/*.ovpn