Advertisement
mbazs

My OpenVPN configs

Oct 21st, 2017
507
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.76 KB | None | 0 0
  1. root@raspberrypi:~/openvpn# cat pi-client.conf
  2. client
  3. proto udp
  4. remote vps.sytes.net
  5. port 1194
  6. dev tun
  7. nobind
  8. askpass /root/openvpn/pi-client.pass
  9.  
  10. <ca>
  11. -----BEGIN CERTIFICATE-----
  12. ...
  13.  
  14.  
  15. root@vps:~/openvpn# cat vps-server.conf
  16. proto udp
  17. port 1194
  18. dev tun
  19.  
  20. server 10.200.0.0 255.255.255.0
  21. client-to-client
  22. route 192.168.0.0 255.255.255.0
  23. push "route 192.168.0.0 255.255.255.0"
  24. client-config-dir /root/openvpn/ccd
  25.  
  26. topology subnet
  27. persist-key
  28. persist-tun
  29. keepalive 10 60
  30.  
  31. dh /root/openvpn/dh.pem
  32. ca /root/openvpn/ca.crt
  33. cert /root/openvpn/vps-server.crt
  34. key /root/openvpn/vps-server.key
  35.  
  36. user nobody
  37. group nogroup
  38.  
  39. verb 3
  40. daemon
  41. log-append /var/log/openvpn.log
  42.  
  43.  
  44. root@vps:~/openvpn/ccd# cat pi-vps-client
  45. iroute 192.168.0.0 255.255.255.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement