Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- First, get the script and make it executable :
- wget https://raw.githubusercontent.com/Angristan/OpenVPN-install/master/openvpn-install.sh
- chmod +x openvpn-install.sh
- Then run it :
- ./openvpn-install.sh
- Within the openvpn installer ensure to set dns to google or i found i could not route traffic out of the server
- Download the client.ovpn add it to ur local openvpn client
- sudo ufw allow proto tcp from 10.8.0.0/24 to 10.8.0.1 port 22 // This Will Allow Only People With OpenVpn Connection To Access SSH Services
- sudo ufw allow proto tcp from 10.8.0.0/24 to 10.8.0.1 port 443 // This Will Allow Only People With OpenVpn Connection To Access Node Application
- remove all other stuff you have in ufw
- root@ubuntu:~# ufw status
- Status: active
- To Action From
- -- ------ ----
- 1194/udp ALLOW Anywhere
- 10.8.0.1 22/tcp ALLOW 10.8.0.0/24
- 10.8.0.1 443/tcp ALLOW 10.8.0.0/24
- root@ubuntu:~#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement