Guest User

ccdoggy

a guest
Oct 1st, 2010
4,365
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ####Server config####
  2.  
  3. mode server
  4. tls-server
  5. port 1194
  6. proto tcp-server
  7. dev tap1
  8.  
  9. dh /tmp/openvpn/dh.pem
  10. ca /tmp/openvpn/ca.crt
  11. cert /tmp/openvpn/cert.pem
  12. key /tmp/openvpn/key.pem
  13.  
  14. server-bridge 192.168.10.0 255.255.255.0 192.168.10.45 192.168.10.55
  15. #192.168.10.0 is my home network number, 192.168.10.45 .55 is the beginning and end of the IPs it will give out to VPN clients#
  16.  
  17. client-to-client
  18.  
  19. keepalive 15 60
  20.  
  21. comp-lzo
  22. persist-key
  23. persist-tun
  24. verb 3
  25.  
  26. tcp-nodelay
  27.  
  28.  
  29. #####Server firewall#####
  30.  
  31. iptables -I FORWARD -i br0 -o tun0 -j ACCEPT
  32. iptables -I FORWARD -i tun0 -o br0 -j ACCEPT
  33.  
  34. iptables -I INPUT 1 -p tcp --dport 1194 -j ACCEPT
  35. iptables -I INPUT 1 -p udp --dport 1194 -j ACCEPT
  36.  
  37.  
  38. ####Router startup####
  39.  
  40. openvpn --mktun --dev tap1
  41. brctl addif br0 tap1
  42. ifconfig tap1 0.0.0.0 promisc up
  43.  
  44. ####Client config####
  45.  
  46. remote IP-or-DNS-name-here 1194
  47.  
  48. tls-client
  49. dev tap
  50. proto tcp-client
  51. port 1194
  52. resolv-retry infinite
  53. nobind
  54. persist-key
  55. persist-tun
  56.  
  57. ns-cert-type server
  58.  
  59. comp-lzo
  60. verb 3
  61.  
  62. ca ca.crt
  63. cert certname.crt
  64. key keyname.key
  65.  
  66. # This directs all traffic over the VPN
  67. #redirect-gateway def1
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×