OpenVPN vs Wireguard

A comprehensive comparison between OpenVPN and Wireguard.

Who Will Win the Battle for Your VPN Heart?sk

You’ve probably seen this interesting effect of two or more overlapping photos on the covers of music albums, in modern magazines and in advertisements. In this tutorial we’ll create a trendy double exposure effect in Adobe Photoshop with the help of Blending Modes and Clipping Masks in a few steps. Let’s do it!




Let's try Open VPN

Just deploy a VM in digital ocean

Install openvpn server on the droplet debian

            
wget https://git.io/vpn -O openvpn-install.sh && bash openvpn-install.sh 
#Just follow the instructions, really simple.        

#edit some conf in the server
        
cat /etc/openvpn/server/server.conf

local 131.124.150.26
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh.pem
auth SHA512
tls-crypt tc.key
topology subnet
server 10.8.0.0 255.255.255.0

#this avoid sending all the traffic
#push "redirect-gateway def1 bypass-dhcp"

ifconfig-pool-persist ipp.txt
push "dhcp-option DNS 1.1.1.1"
push "dhcp-option DNS 1.0.0.1"

#push "block-outside-dns"
keepalive 10 120
user nobody
group nogroup
persist-key
persist-tun
verb 3
crl-verify crl.pem
explicit-exit-notify
        
            
root@debian-s-1vcpu-1gb-nyc1-01:~# ls
openvpn-install.sh  client.ovpn 
        
#verify the forwarding is on:
cat /proc/sys/net/ipv4/ip_forward
1
        
#on the client terminal just copy and execute the file conf
sudo openvpn client.ovpn


#Back in the server we should be able to ssh into
root@debian-s-1vcpu-1gb-nyc1-01:~# ssh user@10.8.0.3
The authenticity of host '10.8.0.3 (10.8.0.3)' can't be established.
ED25519 key fingerprint is SHA256:5Pn2cVdB7keTiOLaA6v9QNS8fEkkcKhq7T8J1ZcTlX0.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
        



There is also a script to install the complete Open VPN server

Click on photo.




Wireguard

3 Servers

GL-iNet router

I used the GL-iNet router for a long time, wonderful.

No imagen

Dynamic DNS, Adguard, Tailscale, Zerotier, Network Storage, Vpns, Tor, Wonderful router

Docker server

Full instructions on the link

Unifi

Now I use the Wireguard server included in Unifi, it is fast and reliable.

No imagen

Remote Networks

What I found very useful is the option to stop access to client networks

No imagen

Site-to-Site

Also with site-to-site I can easily control all my servers, which is very very convenient

No imagen




Wireguard

I like the way of wireguard better, apart from the fact that it is faster to install, I am currently practicing the way to install it by downloading the apt download files for offline machines but it is a little difficult, I already broke several VMs in the attempt.

I will possibly use OpenVPN in pentesting, since its deployment is very fast in the cloud and works instantly, but in my tests and day I use wireguard, since it seems more complete for my tests and learning.