Computer NetworksNETWORKS

How to Setup your own VPN server and bypass DPI

In this tutorial I’ll teach you how to Setup your own VPN server using OpenVPN in Ubuntu 18.04.

1) You can install OpenVPN with my script if your clients live in countries with censorship like China:
https://github.com/Null3rror/openvpn-over-proxy

You can use this script too, but it can’t bypass DPI:
https://github.com/Nyr/openvpn-install

2) After Installing OpenVPN on the server, your clients need to download OpenVPN client from:

Get Open VPN

3) Use scp command to transfer your client config from server to your machine. You can learn more about scp in this tutorial:
https://linuxize.com/post/how-to-use-scp-command-to-securely-transfer-files/

4) In order to increase your server’s TCP, copy these three lines at the bottom of /etc/sysctl.conf

net.core.default_qdisc=fq
net.ipv4.tcp_congestion_control=bbr
net.ipv4.tcp_fastopen=3

5) Then you have to install Fail2Ban.

In order to learn setting SSH key, visit this tutorial:
https://linuxize.com/post/how-to-set-up-ssh-keys-on-ubuntu-1804/

0:00 Intro
1:27 Install OpenVPN
5:52 Setting firewall
7:09 Transferring client config to our machine(SCP)
8:00 Connecting client to VPN
8:40 Improving TCP speed
9:33 Installing Fail2Ban
10:23 Configuring Fail2Ban

source

ipv4

Alice AUSTIN

Alice AUSTIN is studying Cisco Systems Engineering. He has passion with both hardware and software and writes articles and reviews for many IT websites.

Leave a Reply

Your email address will not be published. Required fields are marked *