mirror of
https://github.com/Ysurac/openmptcprouter-vps.git
synced 2025-02-13 11:51:58 +00:00
Merge branch 'develop'
This commit is contained in:
commit
2b8d75cdf4
9 changed files with 82 additions and 9 deletions
BIN
bin/v2ray-plugin-linux-amd64-v1.2.0-2-g68e2207.tar.gz
Normal file
BIN
bin/v2ray-plugin-linux-amd64-v1.2.0-2-g68e2207.tar.gz
Normal file
Binary file not shown.
|
@ -796,7 +796,7 @@ if [ "$update" = "0" ]; then
|
||||||
fi
|
fi
|
||||||
if [ "$OMR_ADMIN" = "yes" ]; then
|
if [ "$OMR_ADMIN" = "yes" ]; then
|
||||||
cat >> /root/openmptcprouter_config.txt <<-EOF
|
cat >> /root/openmptcprouter_config.txt <<-EOF
|
||||||
Your OpenMPTCProuter ADMIN Server key: $OMR_ADMIN_PASS_ADMIN
|
Your OpenMPTCProuter ADMIN API Server key: $OMR_ADMIN_PASS_ADMIN
|
||||||
Your OpenMPTCProuter Server key: $OMR_ADMIN_PASS
|
Your OpenMPTCProuter Server key: $OMR_ADMIN_PASS
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
10
dsvpn-server.service.in
Normal file
10
dsvpn-server.service.in
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Dead Simple VPN - Server
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/local/sbin/dsvpn server /etc/dsvpn/dsvpn.key auto 65011 dsvpn0 10.255.251.1 10.255.251.2
|
||||||
|
Restart=always
|
||||||
|
RestartSec=15
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=network.target
|
22
manager.json
Normal file
22
manager.json
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{
|
||||||
|
"mptcp": true,
|
||||||
|
"ipv6_first": true,
|
||||||
|
"no_delay": true,
|
||||||
|
"ebpf": false,
|
||||||
|
"server": [
|
||||||
|
"[::0]",
|
||||||
|
"0.0.0.0"
|
||||||
|
],
|
||||||
|
"method": "chacha20-ietf-poly1305",
|
||||||
|
"fast_open": true,
|
||||||
|
"timeout": 600,
|
||||||
|
"port_key": {
|
||||||
|
"65101": "MySecretKey",
|
||||||
|
},
|
||||||
|
"local_port": 1081,
|
||||||
|
"verbose": 0,
|
||||||
|
"acl": "/etc/shadowsocks-libev/local.acl",
|
||||||
|
"mode": "tcp_and_udp",
|
||||||
|
"reuse_port": true,
|
||||||
|
"prefer_ipv6": false
|
||||||
|
}
|
17
mlvpn@.service.in
Normal file
17
mlvpn@.service.in
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
[Unit]
|
||||||
|
Description=MLVPN connection to %i
|
||||||
|
PartOf=mlvpn.service
|
||||||
|
ReloadPropagatedFrom=mlvpn.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=notify
|
||||||
|
NotifyAccess=main
|
||||||
|
ExecStart=/usr/local/sbin/mlvpn --config /etc/mlvpn/%i.conf --name %i --user mlvpn --quiet
|
||||||
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
|
WorkingDirectory=/etc/mlvpn
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
|
|
12
omr-admin.service.in
Normal file
12
omr-admin.service.in
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
[Unit]
|
||||||
|
Description=OMR-Admin
|
||||||
|
After=network.target network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
Restart=always
|
||||||
|
ExecStart=/usr/local/bin/omr-admin.py
|
||||||
|
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_RAW
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
|
@ -7,11 +7,11 @@ persist-key
|
||||||
duplicate-cn
|
duplicate-cn
|
||||||
verb 3
|
verb 3
|
||||||
server 10.255.252.0 255.255.255.0
|
server 10.255.252.0 255.255.255.0
|
||||||
ca /etc/openvpn/server/ca.crt
|
ca /etc/openvpn/ca/pki/ca.crt
|
||||||
cert /etc/openvpn/server/server.crt
|
cert /etc/openvpn/ca/issued/server.crt
|
||||||
key /etc/openvpn/server/server.key
|
key /etc/openvpn/ca/private/server.key
|
||||||
dh /etc/openvpn/server/dh2048.pem
|
dh /etc/openvpn/server/dh2048.pem
|
||||||
crl-verify /etc/openvpn/server/crl.pem
|
crl-verify /etc/openvpn/ca/crl.pem
|
||||||
keepalive 10 120
|
keepalive 10 120
|
||||||
sndbuf 0
|
sndbuf 0
|
||||||
rcvbuf 0
|
rcvbuf 0
|
|
@ -9,9 +9,9 @@ duplicate-cn
|
||||||
#mssfix 1300
|
#mssfix 1300
|
||||||
verb 3
|
verb 3
|
||||||
server 10.255.250.0 255.255.255.0
|
server 10.255.250.0 255.255.255.0
|
||||||
ca /etc/openvpn/server/ca.crt
|
ca /etc/openvpn/ca/pki/ca.crt
|
||||||
cert /etc/openvpn/server/server.crt
|
cert /etc/openvpn/ca/pki/issued/server.crt
|
||||||
key /etc/openvpn/server/server.key
|
key /etc/openvpn/ca/pki/private/server.key
|
||||||
dh /etc/openvpn/server/dh2048.pem
|
dh /etc/openvpn/server/dh2048.pem
|
||||||
crl-verify /etc/openvpn/server/crl.pem
|
crl-verify /etc/openvpn/ca/pki/crl.pem
|
||||||
keepalive 10 120
|
keepalive 10 120
|
||||||
|
|
12
shadowsocks-libev-manager@.service.in
Normal file
12
shadowsocks-libev-manager@.service.in
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Shadowsocks-Libev Custom Manager Service for %I
|
||||||
|
After=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
||||||
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||||||
|
ExecStart=/usr/bin/ss-manager -c /etc/shadowsocks-libev/%i.json
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in a new issue