sudo apt update -y
wget https://git.io/vpn -O openvpn-ubuntu-install.sh
chmod -v +x openvpn-ubuntu-install.sh
bash openvpn-ubuntu-install.sh
Public IPv4 address / hostname:
=> Enter public ip of instances
Which protocol should OpenVPN use?
- UDP (recommended)
- TCP
=> UDP is faster
What port should OpenVPN listen to?
=> default port 1194
Select a DNS server for the clients:
- Current system resolvers
- 1.1.1.1
- OpenDNS
- Quad9
- AdGuard
=> whatever! chọn gì cũng đc
Enter a name for the first client:
=> az-tech
The client configuration is available in: /root/az-tech.ovpn
Check status of openvpn server
systemctl status [email protected]
Open port on firewall or security groups
- TCP 8000
- UDP 1194
Run command
cd /root && python3 -m http.server
Open web browser, access url: public ip of instances
:8000
Click to download file