File size: 845 Bytes
a140f93
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# OpenVPN server configuration file

# Specify the protocol and port
proto udp
port 1194

# Use tunnelling device for VPN traffic
dev tun

# Configure server mode and network
server 10.8.0.0 255.255.255.0

# Use a pre-shared static key
tls-server
tls-auth ta.key 0

# Configure server certificates and keys
ca ca.crt
cert server.crt
key server.key

# Configure Diffie-Hellman parameters
dh dh2048.pem

# Configure client-to-client connections
client-to-client

# Specify DNS servers to use
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"

# Enable compression
comp-lzo

# Set log file verbosity
verb 3

# Keepalive settings
keepalive 10 120

# Persist keys across restarts
persist-key
persist-tun

# Configure route settings
push "route 192.168.1.0 255.255.255.0"

# Uncomment if using NAT
;push "redirect-gateway def1 bypass-dhcp"