Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

clients-to-site.conf 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Server TCP
  2. mode server
  3. proto tcp-server
  4. port 4242
  5. dev tun
  6. client-to-client
  7. #client-connect misc/on-client-event.py
  8. #client-disconnect misc/on-client-event.py
  9. #route-up misc/route-up.sh
  10. # Keys and certificates
  11. ca credentials/ca.crt
  12. cert credentials/server.crt
  13. key credentials/server.key
  14. dh credentials/dh2048.pem
  15. tls-auth credentials/ta.key 1
  16. key-direction 0
  17. cipher AES-256-CBC
  18. client-config-dir client-config-dir
  19. # Network
  20. server OVPN_SUBNET_ADDR OVPN_SUBNET_MASK
  21. keepalive 10 120
  22. # Uncomment this to redirect client internet traffic trough VPN
  23. # You'll also need to add iptables rules like:
  24. # iptables -t nat -s $internal_subnet/24 -A POSTROUTING -j SNAT --to $out_ip
  25. #push "redirect-gateway def1 bypass-dhcp"
  26. push "route SITES_SUBNET_ADDR SITES_SUBNET_MASK"
  27. push "dhcp-option DNS SITE_DNS1"
  28. push "dhcp-option DNS SITE_DNS2"
  29. # Security
  30. user root
  31. group root
  32. persist-key
  33. persist-tun
  34. comp-lzo
  35. script-security 3
  36. username-as-common-name
  37. client-cert-not-required
  38. plugin /usr/lib/openvpn/openvpn-auth-ldap.so /etc/openvpn/auth-ldap.conf
  39. #auth-user-pass-verify credentials/passwd-verify via-env
  40. # Log
  41. verb 3
  42. mute 20
  43. status /var/log/openvpn-status-vpn-sites-server
  44. #log-append /var/log/openvpn-vpn-sites-server.log