mirror of
https://github.com/Ysurac/openmptcprouter-vps.git
synced 2025-02-14 20:31:57 +00:00
Add missing files
This commit is contained in:
parent
ca9daabd14
commit
4b47717168
8 changed files with 61 additions and 0 deletions
19
dsvpn-run
Normal file
19
dsvpn-run
Normal file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
if [ ! -f "$1" ]; then
|
||||
echo "usage: $(basename "$0") FILE"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
. "$(readlink -f "$1")"
|
||||
|
||||
exec dsvpn \
|
||||
${MODE:+server} \
|
||||
"$1".key \
|
||||
auto \
|
||||
${PORT:+65401} \
|
||||
${DEV:+dsvpn0} \
|
||||
${LOCALTUNIP:+10.255.251.1} \
|
||||
${REMOTETUNIP:+10.255.251.1}
|
10
dsvpn-server@.service.in
Normal file
10
dsvpn-server@.service.in
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Dead Simple VPN - Server on %I
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/local/bin/dsvpn-run /etc/dsvpn/%i
|
||||
Restart=always
|
||||
RestartSec=15
|
||||
|
||||
[Install]
|
||||
WantedBy=network.target
|
5
dsvpn0-config
Normal file
5
dsvpn0-config
Normal file
|
@ -0,0 +1,5 @@
|
|||
PORT=65401
|
||||
DEV=dsvpn0
|
||||
MODE=server
|
||||
LOCALTUNIP=10.255.251.1
|
||||
REMOTETUNIP=10.255.251.2
|
8
glorytun-tcp-post.sh
Normal file
8
glorytun-tcp-post.sh
Normal file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
. "$(readlink -f "$1")"
|
||||
|
||||
INTF=gt-${DEV}
|
||||
[ -z "$LOCALIP" ] && LOCALIP="10.255.255.1"
|
||||
[ -z "$BROADCASTIP" ] && BROADCASTIP="10.255.255.3"
|
||||
ip link set dev ${INTF} up
|
||||
ip addr add ${LOCALIP}/30 brd ${BROADCASTIP} dev ${INTF}
|
8
glorytun-udp-post.sh
Normal file
8
glorytun-udp-post.sh
Normal file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
. "$(readlink -f "$1")"
|
||||
|
||||
INTF=gt-udp-${DEV}
|
||||
[ -z "$LOCALIP" ] && LOCALIP="10.255.254.1"
|
||||
[ -z "$BROADCASTIP" ] && BROADCASTIP="10.255.254.3"
|
||||
ip link set dev ${INTF} up
|
||||
ip addr add ${LOCALIP}/30 brd ${BROADCASTIP} dev ${INTF}
|
11
omr6in4@.service.in
Normal file
11
omr6in4@.service.in
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=OMR6IN4 on %I
|
||||
After=network.target network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/local/bin/omr-6in4-run start /etc/openmptcprouter-vps-admin/omr-6in4/%i
|
||||
ExecStop=/usr/local/bin/omr-6in4-run start /etc/openmptcprouter-vps-admin/omr-6in4/%i
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
BIN
openmptcprouter-shorewall.tar.gz
Normal file
BIN
openmptcprouter-shorewall.tar.gz
Normal file
Binary file not shown.
BIN
openmptcprouter-shorewall6.tar.gz
Normal file
BIN
openmptcprouter-shorewall6.tar.gz
Normal file
Binary file not shown.
Loading…
Reference in a new issue