Advertisement
otubo

Untitled

Sep 24th, 2015
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. local LOCALADDRESS
  2. dev tun
  3. proto udp #Some people prefer to use tcp. Don't change it if you don't know.
  4. port PORT
  5. ca /etc/openvpn/easy-rsa/keys/ca.crt
  6. cert /etc/openvpn/easy-rsa/keys/casa-jundiai.crt # SWAP WITH YOUR CRT NAME
  7. key /etc/openvpn/easy-rsa/keys/casa-jundiai.key # SWAP WITH YOUR KEY NAME
  8. dh /etc/openvpn/easy-rsa/keys/dh1024.pem # If you changed to 2048, change that here!
  9. server ADRESS NETMASK
  10. # server and remote endpoints
  11. ifconfig IP1 IP2
  12. # Add route to Client routing table for the OpenVPN Server
  13. push "route IP1 MASK"
  14. # Add route to Client routing table for the OpenVPN Subnet
  15. #push "route IP MASK"
  16. # your local subnet
  17. #push "route IP MASK" # SWAP THE IP NUMBER WITH YOUR RASPBERRY PI IP ADDRESS
  18. # Set primary domain name server address to the SOHO Router
  19. # If your router does not do DNS, you can use Google DNS 8.8.8.8
  20. push "dhcp-option DNS IP" # This should already match your router address and not need to be changed.
  21. # Override the Client default gateway by using 0.0.0.0/1 and
  22. # 128.0.0.0/1 rather than 0.0.0.0/0. This has the benefit of
  23. # overriding but not wiping out the original default gateway.
  24. #push "redirect-gateway def1"
  25. client-to-client
  26. duplicate-cn
  27. keepalive 10 120
  28. #tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0
  29. #cipher AES-128-CBC
  30. #cipher CAST5-CBC
  31. cipher DES-EDE3-CBC
  32. comp-lzo
  33. user nobody
  34. group nogroup
  35. persist-key
  36. persist-tun
  37. status /var/log/openvpn-status.log 20
  38. log /var/log/openvpn.log
  39. verb 1
  40. # Client config directory
  41. #ifconfig-pool IP MASK
  42. client-config-dir ccd
  43. #ifconfig-pool-persist /etc/openvpn/ipp.txt
  44.  
  45. sndbuf 393216
  46. rcvbuf 393216
  47. push "sndbuf 393216"
  48. push "rcvbuf 393216"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement