1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-vps.git synced 2025-02-14 12:21:56 +00:00

Update MLVPN to markfoodyburton version

This commit is contained in:
Ycarus (Yannick Chabanois) 2018-07-01 18:56:16 +00:00
parent ace0a0cbab
commit 0ce7fedffc
3 changed files with 15 additions and 8 deletions

View file

@ -22,14 +22,17 @@ fi
if systemctl -q is-active mlvpn@mlvpn0.service; then
systemctl -q stop mlvpn@mlvpn0 > /dev/null 2>&1
fi
apt-get -y install build-essential pkg-config autoconf automake
apt-get -y install build-essential pkg-config autoconf automake libpcap-dev unzip
cd /tmp
wget -O /tmp/mlvpn-2.3.2.tar.gz https://github.com/zehome/MLVPN/archive/2.3.2.tar.gz
#wget -O /tmp/mlvpn-2.3.2.tar.gz https://github.com/zehome/MLVPN/archive/2.3.2.tar.gz
wget -O /tmp/new-reorder.zip https://github.com/markfoodyburton/MLVPN/archive/new-reorder.zip
cd /tmp
tar xzf mlvpn-2.3.2.tar.gz
cd MLVPN-2.3.2
#tar xzf mlvpn-2.3.2.tar.gz
#cd MLVPN-2.3.2
unzip new-reorder.zip
cd MLVPN-new-reorder
./autogen.sh
./configure
./configure --sysconfdir=/etc
make
make install
wget -O /lib/systemd/network/mlvpn.network http://www.openmptcprouter.com/server/mlvpn.network
@ -38,10 +41,13 @@ if [ "$update" = "0" ]; then
wget -O /etc/mlvpn/mlvpn0.conf http://www.openmptcprouter.com/server/mlvpn0.conf
sed -i "s:MLVPN_PASS:$MLVPN_PASS:" /etc/mlvpn/mlvpn0.conf
fi
chmod 0600 /etc/mlvpn/mlvpn0.conf
adduser --quiet --system --home /var/run/mlvpn --shell /usr/sbin/nologin mlvpn
systemctl enable mlvpn@mlvpn0.service
systemctl enable systemd-networkd.service
cd /tmp
rm -r /tmp/MLVPN-2.3.2
#rm -r /tmp/MLVPN-2.3.2
rm -r /tmp/MLVPN-new-reorder
# Add 6in4 support
wget -O /usr/local/bin/omr-6in4 http://www.openmptcprouter.com/server/omr-6in4

View file

@ -238,9 +238,9 @@ fi
# Add OpenMPTCProuter VPS script version to /etc/motd
if grep --quiet 'OpenMPTCProuter VPS' /etc/motd; then
sed -i 's:< OpenMPTCProuter VPS [0-9]*\.[0-9]* >:< OpenMPCTProuter VPS 0.29 >:' /etc/motd
sed -i 's:< OpenMPTCProuter VPS [0-9]*\.[0-9]* >:< OpenMPCTProuter VPS 0.30 >:' /etc/motd
else
echo '< OpenMPTCProuter VPS 0.29 >' >> /etc/motd
echo '< OpenMPTCProuter VPS 0.30 >' >> /etc/motd
fi
if [ "$update" = "0" ]; then

View file

@ -4,6 +4,7 @@ mode = "server"
interface_name = "mlvpn0"
timeout = 30
password = "MLVPN_PASS"
reorder_buffer = yes
reorder_buffer_size = 64
loss_tolerence = 50