forked from clowwindy/ShadowVPN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserver.conf
40 lines (29 loc) · 893 Bytes
/
server.conf
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
# ShadowVPN config example
# notice: do not put space before or after "="
# server listen address
server=0.0.0.0
# server listen port
port=1123
# password to use
# you can generate one by:
# dd if=/dev/urandom bs=64 count=1 | md5sum
password=my_password
# server or client
mode=server
# the MTU of VPN device
# 1492(Ethernet) - 20(IPv4, or 40 for IPv6) - 8(UDP) - 24(ShadowVPN)
mtu=1440
# tunnel device name
intf=tun0
# the script to run after VPN is created
# use this script to set up routes, NAT, etc
# configuration in this file will be set as environment variables
up=/etc/shadowvpn/server_up.sh
# the script to run before stopping VPN
# use this script to restore routes, NAT, etc
# configuration in this file will be set as environment variables
down=/etc/shadowvpn/server_down.sh
# PID file path
pidfile=/var/run/shadowvpn.pid
# log file path
logfile=/var/log/shadowvpn.log