Create openvpn-server.conf
Browse files- openvpn-server.conf +49 -0
openvpn-server.conf
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# OpenVPN server configuration file
|
2 |
+
|
3 |
+
# Specify the protocol and port
|
4 |
+
proto udp
|
5 |
+
port 1194
|
6 |
+
|
7 |
+
# Use tunnelling device for VPN traffic
|
8 |
+
dev tun
|
9 |
+
|
10 |
+
# Configure server mode and network
|
11 |
+
server 10.8.0.0 255.255.255.0
|
12 |
+
|
13 |
+
# Use a pre-shared static key
|
14 |
+
tls-server
|
15 |
+
tls-auth ta.key 0
|
16 |
+
|
17 |
+
# Configure server certificates and keys
|
18 |
+
ca ca.crt
|
19 |
+
cert server.crt
|
20 |
+
key server.key
|
21 |
+
|
22 |
+
# Configure Diffie-Hellman parameters
|
23 |
+
dh dh2048.pem
|
24 |
+
|
25 |
+
# Configure client-to-client connections
|
26 |
+
client-to-client
|
27 |
+
|
28 |
+
# Specify DNS servers to use
|
29 |
+
push "dhcp-option DNS 8.8.8.8"
|
30 |
+
push "dhcp-option DNS 8.8.4.4"
|
31 |
+
|
32 |
+
# Enable compression
|
33 |
+
comp-lzo
|
34 |
+
|
35 |
+
# Set log file verbosity
|
36 |
+
verb 3
|
37 |
+
|
38 |
+
# Keepalive settings
|
39 |
+
keepalive 10 120
|
40 |
+
|
41 |
+
# Persist keys across restarts
|
42 |
+
persist-key
|
43 |
+
persist-tun
|
44 |
+
|
45 |
+
# Configure route settings
|
46 |
+
push "route 192.168.1.0 255.255.255.0"
|
47 |
+
|
48 |
+
# Uncomment if using NAT
|
49 |
+
;push "redirect-gateway def1 bypass-dhcp"
|