Ticket #1282: server.conf

File server.conf, 969 bytes (added by NicolaF_, 2 years ago)

Server configuration

Line 
1user nobody
2group nogroup
3script-security 2
4
5verb 3
6
7proto tcp6-server
8port 995
9keepalive 10 120
10comp-lzo
11
12dev tun
13persist-tun
14push tun-ipv6
15
16mode server
17tls-server
18persist-key
19
20ca /etc/openvpn/ca.crt
21cert /etc/openvpn/server.crt
22key /etc/openvpn/server.key
23dh dh2048.pem
24crl-verify /etc/openvpn/crl.pem
25
26ifconfig 192.168.40.254 192.168.40.253
27ifconfig-pool 192.168.40.0 192.168.40.254
28route 192.168.40.0 255.255.255.0
29
30ifconfig-ipv6 <VPN ipv6 prefix>::254 <VPN ipv6 prefix>::253
31ifconfig-ipv6-pool <VPN ipv6 prefix>::/64
32route-ipv6 <VPN ipv6 prefix>::/64
33
34push "route 192.168.39.0 255.255.255.0"
35push "route 192.168.40.0 255.255.255.0"
36push "route-ipv6 <ULA prefix>:1::/64"
37push "route-ipv6 <LAN ipv6 prefix>::/64"
38push "route-ipv6 <VPN ipv6 prefix>::/64"
39
40push "dhcp-option DNS 192.168.39.254"
41push "dhcp-option DNS <ULA prefix>:1::254"
42push "dhcp-option DOMAIN <local FQDN>"
43
44ifconfig-pool-persist /etc/openvpn/ipp.txt
45
46client-connect /etc/openvpn/client-connect.sh