Advertisement
ZZ9

server.conf

ZZ9
Apr 30th, 2014
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. local 192.168.2.0 # SWAP THIS NUMBER WITH YOUR RASPBERRY PI IP ADDRESS
  2. dev tun
  3. proto udp #Some people prefer to use tcp. Don't change it if you don't know.
  4. port 1194
  5. ca /etc/openvpn/easy-rsa/keys/ca.crt
  6. cert /etc/openvpn/easy-rsa/keys/Server.crt # SWAP WITH YOUR CRT NAME
  7. key /etc/openvpn/easy-rsa/keys/Server.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 10.8.0.0 255.255.255.0
  10. # server and remote endpoints
  11. ifconfig 10.8.0.1 10.8.0.2
  12. # Add route to Client routing table for the OpenVPN Server
  13. push "route 10.8.0.1 255.255.255.255"
  14. # Add route to Client routing table for the OpenVPN Subnet
  15. push "route 10.8.0.0 255.255.255.0"
  16. # your local subnet
  17. push "route 192.168.2.0 255.255.255.0" # 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 192.168.2.1" # 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. comp-lzo
  31. user nobody
  32. group nogroup
  33. persist-key
  34. persist-tun
  35. status /var/log/openvpn-status.log 20
  36. log /var/log/openvpn.log
  37. verb 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement