Guest User

Untitled

a guest
Oct 24th, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. client
  2. dev tun
  3. proto udp
  4.  
  5. remote 192.168.8.18 2000
  6. resolv-retry infinite
  7. nobind
  8. persist-key
  9. persist-tun
  10.  
  11. verb 3
  12. ca "C:\Users\USERNAME\OpenVPN\config\ca.crt"
  13. cert "C:\Users\USERNAME\OpenVPN\config\client.crt"
  14. key "C:\Users\USERNAME\OpenVPN\config\client.key"
  15.  
  16. remote-cert-tls server
  17.  
  18. cipher AES-256-CBC
  19.  
  20. route-method exe
  21. route-delay 2
  22.  
  23. port 1194
  24. proto udp
  25. dev tun
  26.  
  27. ca /etc/openvpn/easy-rsa/keys/ca.crt
  28. cert /etc/openvpn/easy-rsa/keys/server.crt
  29. key /etc/openvpn/easy-rsa/keys/server.key
  30.  
  31. dh /etc/openvpn/dh2048.pem
  32.  
  33. server 10.8.0.0 255.255.255.0
  34. ifconfig-pool-persist ipp.txt
  35.  
  36. push "redirect-gateway def1"
  37. push "dhcp-option DNS 8.8.8.8"
  38.  
  39. client-to-client
  40. keepalive 10 120
  41. cipher AES-256-CBC
  42. user nobody
  43. group nobody
  44. persist-key
  45. persist-tun
  46. status openvpn-status.log
  47. verb 3
  48.  
  49. explicit-exit-notify 1
  50.  
  51. udp server -s -l 0.0.0.0:6666 -r 127.0.0.1:1194
  52. udp client -c -l 0.0.0.0:2000 -r myvpsip:6666
  53.  
  54. iptables -t nat -A POSTROUTING -s 192.168.8.0/24 -o eth0 -j MASQUERADE
  55. iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
  56. iptables -t nat -A POSTROUTING -s 192.168.8.0/24 -j MASQUERADE
  57. iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -j MASQUERADE
Add Comment
Please, Sign In to add comment