Create setup.conf
Browse files- setup.conf +70 -0
setup.conf
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# OpenVPN Server Configuration
|
2 |
+
# Port 7860 for Hugging Face compatibility
|
3 |
+
port 7860
|
4 |
+
proto udp
|
5 |
+
dev tun
|
6 |
+
|
7 |
+
# SSL/TLS root certificate (ca), certificate
|
8 |
+
# (cert), and private key (key)
|
9 |
+
ca /etc/openvpn/server/keys/ca.crt
|
10 |
+
cert /etc/openvpn/server/keys/server.crt
|
11 |
+
key /etc/openvpn/server/keys/server.key
|
12 |
+
|
13 |
+
# Diffie hellman parameters
|
14 |
+
dh /etc/openvpn/server/keys/dh2048.pem
|
15 |
+
|
16 |
+
# Network topology
|
17 |
+
topology subnet
|
18 |
+
|
19 |
+
# Configure server mode and supply a VPN subnet
|
20 |
+
# for OpenVPN to draw client addresses from
|
21 |
+
server 10.8.0.0 255.255.255.0
|
22 |
+
|
23 |
+
# Maintain a record of client <-> virtual IP address
|
24 |
+
# associations in this file
|
25 |
+
ifconfig-pool-persist /var/log/openvpn/ipp.txt
|
26 |
+
|
27 |
+
# Push routes to the client
|
28 |
+
push "redirect-gateway def1 bypass-dhcp"
|
29 |
+
push "dhcp-option DNS 8.8.8.8"
|
30 |
+
push "dhcp-option DNS 8.8.4.4"
|
31 |
+
|
32 |
+
# Client-to-client communication
|
33 |
+
client-to-client
|
34 |
+
|
35 |
+
# Keep alive ping
|
36 |
+
keepalive 10 120
|
37 |
+
|
38 |
+
# TLS authentication
|
39 |
+
tls-auth /etc/openvpn/server/keys/ta.key 0
|
40 |
+
key-direction 0
|
41 |
+
|
42 |
+
# Cipher selection
|
43 |
+
cipher AES-256-CBC
|
44 |
+
|
45 |
+
# Enable compression
|
46 |
+
compress lz4-v2
|
47 |
+
push "compress lz4-v2"
|
48 |
+
|
49 |
+
# Maximum number of concurrently connected clients
|
50 |
+
max-clients 10
|
51 |
+
|
52 |
+
# Run with reduced privileges
|
53 |
+
user nobody
|
54 |
+
group nogroup
|
55 |
+
|
56 |
+
# Persist keys and tun device
|
57 |
+
persist-key
|
58 |
+
persist-tun
|
59 |
+
|
60 |
+
# Status file
|
61 |
+
status /var/log/openvpn/openvpn-status.log
|
62 |
+
|
63 |
+
# Log file verbosity
|
64 |
+
verb 3
|
65 |
+
|
66 |
+
# Silence repeating messages
|
67 |
+
mute 20
|
68 |
+
|
69 |
+
# Explicit exit notify
|
70 |
+
explicit-exit-notify 1
|