1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-vps.git synced 2025-03-09 15:50:00 +00:00

Latest VPS script version, and debian bin experimental version

This commit is contained in:
Ycarus (Yannick Chabanois) 2019-04-05 08:23:35 +00:00
parent 504a373f16
commit cee6434234
2 changed files with 11 additions and 0 deletions

10
iperf3.service.in Normal file
View file

@ -0,0 +1,10 @@
[Unit]
Description=iperf3
Requires=network.target
[Service]
ExecStart=/usr/bin/iperf3 -s -p 65400 --authorized-users-path /etc/iperf3/users.csv --rsa-private-key-path /etc/iperf3/public.pem
Restart=on-failure
[Install]
WantedBy=multi-user.target

View file

@ -83,6 +83,7 @@ $allip_mlvpn"
_ping $ipd
statusp=$?
if $(exit $statusp); then
logger -t "OMR-Service" "Set new 6in4 tunnel IPs"
ip tunnel change omr-6in4 mode sit remote $ipd local $ip
echo "VPS_ADDR=$ip" > /etc/shorewall/params.vpn
echo "OMR_ADDR=$ipd" >> /etc/shorewall/params.vpn