Advertisement
Guest User

Untitled

a guest
Oct 6th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. #!/bin/sh
  2. # This script must be run as root after connection to the VPN has been made
  3. # so that "tun0" adaptator is up and configured
  4.  
  5. # Disable default in/out - block all connections
  6. ufw default deny outgoing
  7. ufw default deny incoming
  8.  
  9. # Allow tun0
  10. ufw allow out on tun0 from any to any
  11. ufw allow in on tun0 from any to any
  12.  
  13. # Allow VPN IPs
  14. #ufw allow out from any to 136.0.0.90
  15. # ch 16
  16. #ufw allow out from any to 84.39.112.123
  17. # es 14
  18. #ufw allow out from any to 185.183.106.227
  19. # fr 100
  20. #ufw allow out from any to 185.128.25.59
  21. # nl 105
  22. #ufw allow out from any to 109.236.81.71
  23. # uk
  24. ufw allow out from any to 81.92.203.109
  25.  
  26. # allow local net -WARNING TODO ALLOW ALL LOCAL NET PROBABLY WITH 192.168.1.*
  27. ufw allow out from any to 192.168.1.2
  28.  
  29. # virtual box windows
  30. ####ufw allow out from any to 192.168.0.20
  31.  
  32. # Printer
  33. ####ufw allow out from any to 192.168.0.17
  34.  
  35. # Enable
  36. ufw enable
  37.  
  38. # Status
  39. ufw status
  40. echo press enter.
  41. read k
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement