Advertisement
kthomer

server.ovpn

Jan 22nd, 2012
15,569
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. port 1194 #change to any port you see fit. The client needs to use the same port
  2. proto udp #switch to tcp if you wish to use a tcp connection, the client needs to use the same protocol. udp gives better performance
  3. dev tun
  4. dev-node MyTap #name of your TAP interface.
  5. server 192.168.137.0 255.255.255.0 #This may need modification as dictated by Internet Connection Settings. This is the default for ICS on Windows 7.
  6.  
  7. ca ca.crt
  8. cert server.crt
  9. key server.key # This file should be kept secret
  10. dh dh1024.pem
  11. ifconfig-pool-persist ipp.txt
  12.  
  13. push "redirect-gateway def1" #tells all Internet traffic to go through the tunnel
  14. push "dhcp-option DNS 208.67.222.222" #OpenDNS servers, makes it easy to check if the tunnel is working properly
  15. push "dhcp-option DNS 208.67.220.220"
  16. keepalive 10 120
  17. comp-lzo #compression for better network performance. Disable if your server isn't powerful enough. Needs to be included in both server and client configs if you use it.
  18. persist-key
  19. persist-tun
  20. status openvpn-status.log
  21. verb 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement