flycat

Android .ovpn example

Jun 24th, 2022
1,052
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.66 KB | None | 0 0
  1. # specify client-side
  2. client
  3.  
  4. # tun/tap devcie
  5. dev tun0
  6.  
  7. # protocol, according to server
  8. proto tcp
  9.  
  10. # server address
  11. remote xxx.yyyyy.zzz 443
  12.  
  13. # dhcp-option DNS 8.8.8.8
  14. redirect-gateway def1 bypass-dhcp
  15.  
  16. # connection
  17. #comp-lzo
  18. resolv-retry 30
  19. nobind
  20. #redirect-gateway
  21.  
  22. # persistent device and keys
  23. persist-key
  24. persist-tun
  25.  
  26. # optional tls-auth
  27. # tls-auth exmaple/ta.key 1
  28.  
  29. # logging
  30. log /var/log/openvpn.log
  31. verb 4
  32.  
  33. <ca>
  34. -----BEGIN CERTIFICATE-----
  35. ...
  36. -----END CERTIFICATE-----
  37. </ca>
  38. <cert>
  39. -----BEGIN CERTIFICATE-----
  40. ...
  41. -----END CERTIFICATE-----
  42. </cert>
  43. <key>
  44. -----BEGIN PRIVATE KEY-----
  45. ...
  46. -----END PRIVATE KEY-----
  47. </key>
  48.  
Advertisement
Add Comment
Please, Sign In to add comment