Category Archives: VPN

Download and Install OpenVPN Client on Windows 10

1) Download and install OpenVPN client from here: https://openvpn.net/community-downloads/ For example: OpenVPN-2.5.0-I601-amd64.msi * During installation it will download .NET Framework 4 * You will need to enable Windows Updates else .NET Framework 4 installation will fail 2) Download and install TAP-Windows drivers from here: https://build.openvpn.net/downloads/releases/latest/ For example: tap-windows-latest-stable.exe 3) Check that TAP-Windows has been successfully […]

Route OpenVPN Connections Through Floating IP

Assuming you have a Hetzner VPS with a floating IP address: How to Configure a Floating IP in a VPS (Hetzner) Let’s say the floating IP address is 44.44.44.44 as example. And that you have installed OpenVPN via this guide: How to Install OpenVPN in Debian 10 Buster 1) Edit /etc/openvpn/server.conf and add: local 44.44.44.44local […]

How to Configure a Floating IP in a VPS (Hetzner)

First create a Hetzner VPS and attach a floating IP to it. I followed this guide to make sure the floating IP is persistent: How to Make Floating IP Persistent (Hetzner) In short, the procedure is like this: 1) Create a file named 60-my-floating-ip.cfg: vi /etc/network/interfaces.d/60-my-floating-ip.cfgvi /etc/network/interfaces.d/60-my-floating-ip.cfg 2) Paste the following configuration for IPv4: auto […]

Set OpenVPN to Listed on a Specific IP Address

Assuming that default ethernet network interface is eth0. And that you added a new IP 44.44.44.44 on the VPS that got assigned to eth0:1 interface. You can add “local 44.44.44.44” in your OpenVPN server config, e.g: local 44.44.44.44local 44.44.44.44 So OpenVPN will listen on the specificed IP address. Then you need to restart OpenVPN: /etc/init.d/openvpn […]

VPN Providers with Dedicated Static IP Address

You can purchase a dedicated static IP address from following VPN providers: 1) NordVPN 2) CyberGhost VPN 3) PureVPN 4) AstrillVPN Alternatively, install a VPN server in a VPS: How to Install WireGuard VPN in Debian 10 Buster How to Install OpenVPN in Debian 10 Buster Then you can use a special router to add […]

OpenVPN Iptables Rules

Here are “iptables -S” rules for OpenVPN server: -P INPUT ACCEPT -P FORWARD ACCEPT -P OUTPUT ACCEPT -A INPUT -i tun0 -j ACCEPT -A INPUT -i ens2 -p udp -m udp –dport 1194 -j ACCEPT -A FORWARD -i tun0 -o ens2 -j ACCEPT -A FORWARD -i ens2 -o tun0 -j ACCEPT-P INPUT ACCEPT -P FORWARD […]

WireGuard VPN Iptables Rules

Here are “iptables -S” rules for WireGuard VPN server: -P INPUT ACCEPT -P FORWARD ACCEPT -P OUTPUT ACCEPT -A FORWARD -i ens2 -o wg0 -j ACCEPT -A FORWARD -i wg0 -j ACCEPT-P INPUT ACCEPT -P FORWARD ACCEPT -P OUTPUT ACCEPT -A FORWARD -i ens2 -o wg0 -j ACCEPT -A FORWARD -i wg0 -j ACCEPT You […]

How to Install WireGuard VPN in Debian 10 Buster

Here is how to install WireGuard VPN in Debian Buster in 60 seconds: apt-get update; apt-get dist-upgrade -y wget https://raw.githubusercontent.com/angristan/wireguard-install/master/wireguard-install.sh -O wireguard-install.sh chmod +x wireguard-install.sh ./wireguard-install.shapt-get update; apt-get dist-upgrade -y wget https://raw.githubusercontent.com/angristan/wireguard-install/master/wireguard-install.sh -O wireguard-install.sh chmod +x wireguard-install.sh ./wireguard-install.sh Then simply follow instructions, that’s all. I am attaching the .sh file also here (in case it […]

List of OpenVPN Client-Connect Environment Variables

Here you can find more environment variables to use in your bash script: https://openvpn.net/community-resources/reference-manual-for-openvpn-2-3/ Scroll down until you see “SCRIPTING AND ENVIRONMENTAL VARIABLES”.

How to Install OpenVPN in Debian 10 Buster

Here is how to install OpenVPN v2.4.7+ in Debian Buster in 60 seconds: apt-get update; apt-get dist-upgrade -y wget https://raw.githubusercontent.com/Angristan/openvpn-install/master/openvpn-install.sh -O debian10-vpn.sh chmod +x debian10-vpn.sh ./debian10-vpn.shapt-get update; apt-get dist-upgrade -y wget https://raw.githubusercontent.com/Angristan/openvpn-install/master/openvpn-install.sh -O debian10-vpn.sh chmod +x debian10-vpn.sh ./debian10-vpn.sh Then simply follow instructions, that’s all. I am attaching the .sh file also here (in case it […]