Advertisement
Zy0d0x

Untitled

Aug 16th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1.  
  2.  
  3. First, get the script and make it executable :
  4.  
  5. wget https://raw.githubusercontent.com/Angristan/OpenVPN-install/master/openvpn-install.sh
  6. chmod +x openvpn-install.sh
  7. Then run it :
  8.  
  9. ./openvpn-install.sh
  10.  
  11.  
  12. Within the openvpn installer ensure to set dns to google or i found i could not route traffic out of the server
  13.  
  14.  
  15. Download the client.ovpn add it to ur local openvpn client
  16.  
  17.  
  18.  
  19. 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
  20. 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
  21.  
  22. remove all other stuff you have in ufw
  23.  
  24.  
  25.  
  26.  
  27. root@ubuntu:~# ufw status
  28. Status: active
  29.  
  30. To Action From
  31. -- ------ ----
  32. 1194/udp ALLOW Anywhere
  33. 10.8.0.1 22/tcp ALLOW 10.8.0.0/24
  34. 10.8.0.1 443/tcp ALLOW 10.8.0.0/24
  35.  
  36. root@ubuntu:~#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement