How to Setup IKEv2 on Windows Mac

We explain in detail how to configure the VPN connection

Step by Step Tutorial

People with less technical knowledge may find it difficult to setup VPN on Windows 10. To help less tech-savvy people, we have compiled a simple step-by-step guide on how to setup hide.me on Windows 10 manually using different protocols.

Connect freeVPN in 3 easy steps.

Video Tutorial how to install Ubuntu

Just follow the steps in this video and setup freeVPN, VPN within minutes

1
sudo -s
apt-get -y install openvpn
touch /etc/openvpn/credentials
printf '%s\n' 'username' 'password' > /etc/openvpn/credentials
sed -i 's/auth-user-pass/auth-user-pass \/etc\/openvpn\/credentials/g' /
etc/openvpn/US-East.ovpn
nohup openvpn --config /etc/openvpn/US-East.ovpn &
2
sudo -s
apt-get -y install openvpn

This will result in installing the packages required for OpenVPN to function properly

3
sudo unzip ~/Downloads/US-East.zip -d /etc/openvpn/

Next, you need to connect using the current configuration file, and you'll be asked for our

credentials.

Since sudo

4
sudo openvpn --config /etc/openvpn/US-East.ovpn

Now press Ctrl+z

bg
disown -h

This invokes elevation and in the same time connects to the desired VPN destination, but it does so in the foreground. Ctrl+z suspends the foreground process. bg resumes suspended process and sends it to the background. disown -h makes it so the process isn't killed when the terminal is shut down.

If you want an automatic logon when you start the OpenVPN connection, you need to make the required changes to configuration files:

sudo touch /etc/openvpn/credentials
sudo printf '%s\n' 'username' 'password' > /etc/openvpn/credentials

Replace username and password with your own credentials

Now change the downloaded .ovpn configuration file to use the credentials file:

sudo sed -i 's/auth-user-pass/auth-user-pass
\/etc\/openvpn\/credentials/g' /etc/openvpn/US-East.ovpn

This will start the connection in the foreground. If you want to start the connection in the background and also make it not terminate on exiting the terminal you should use this command instead:

TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)

Common Issues

One of the most common problems in setting up OpenVPN is that the two OpenVPN daemons on either side of the connection are unable to establish a TCP or UDP connection with each other.

  • A perimeter firewall on the server's network is filtering out incoming OpenVPN packets. By default OpenVPN uses UDP or TCP port number 1194. hide.me OpenVPN uses ports 4000-4100
  • A software firewall running on the OpenVPN server machine itself is filtering incoming connections on port 1194 (hide.me:4000-4100). Be aware that many OSes will block incoming connections by default, unless configured otherwise.
  • A NAT gateway on the server's network does not have a port forward rule for TCP/UDP 1194 (hide.me:4000-4100) to the internal address of the OpenVPN server machine.
  • The OpenVPN client config does not have the correct server address in its config file. The remote directive in the client config file must point to either the server itself or the public IP address of the server network's gateway.