mirror of
https://github.com/Ysurac/openmptcprouter-vps.git
synced 2025-02-12 11:21:56 +00:00
Remove OpenVPN compression, change settings for glorytun
This commit is contained in:
parent
f81944fb8c
commit
4dfa9613ac
3 changed files with 8 additions and 9 deletions
|
@ -30,21 +30,21 @@ apt-get -y install dirmngr patch
|
|||
#echo 'deb http://dl.bintray.com/cpaasch/deb jessie main' >> /etc/apt/sources.list
|
||||
echo 'deb http://deb.debian.org/debian stretch-backports main' > /etc/apt/sources.list.d/stretch-backports.list
|
||||
apt-get update
|
||||
wget -O /tmp/linux-image-4.14.41-mptcp-80b661f.amd64.deb https://www.openmptcprouter.com/kernel/linux-image-4.14.41-mptcp-80b661f.amd64.deb
|
||||
wget -O /tmp/linux-headers-4.14.41-mptcp-80b661f.amd64.deb https://www.openmptcprouter.com/kernel/linux-headers-4.14.41-mptcp-80b661f.amd64.deb
|
||||
wget -O /tmp/linux-image-4.14.61-mptcp-80b661f.amd64.deb https://www.openmptcprouter.com/kernel/linux-image-4.14.61-mptcp-80b661f.amd64.deb
|
||||
wget -O /tmp/linux-headers-4.14.61-mptcp-80b661f.amd64.deb https://www.openmptcprouter.com/kernel/linux-headers-4.14.61-mptcp-80b661f.amd64.deb
|
||||
# Rename bzImage to vmlinuz, needed when custom kernel was used
|
||||
cd /boot
|
||||
apt-get -y install rename
|
||||
rename 's/^bzImage/vmlinuz/s' * >/dev/null 2>&1
|
||||
#apt-get -y install linux-mptcp
|
||||
dpkg -E -i /tmp/linux-image-4.14.41-mptcp-80b661f.amd64.deb
|
||||
dpkg -E -i /tmp/linux-headers-4.14.41-mptcp-80b661f.amd64.deb
|
||||
dpkg -E -i /tmp/linux-image-4.14.61-mptcp-80b661f.amd64.deb
|
||||
dpkg -E -i /tmp/linux-headers-4.14.61-mptcp-80b661f.amd64.deb
|
||||
|
||||
# Check if mptcp kernel is grub default kernel
|
||||
echo "Set MPTCP kernel as grub default..."
|
||||
wget -O /tmp/update-grub.sh https://www.openmptcprouter.com/server/update-grub.sh
|
||||
cd /tmp
|
||||
bash update-grub.sh 4.14.41-mptcp-80b661f
|
||||
bash update-grub.sh 4.14.61-mptcp-80b661f
|
||||
|
||||
#apt -t stretch-backports -y install shadowsocks-libev
|
||||
## Compile Shadowsocks
|
||||
|
@ -257,9 +257,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.43 >:' /etc/motd
|
||||
sed -i 's:< OpenMPTCProuter VPS [0-9]*\.[0-9]* >:< OpenMPCTProuter VPS 0.45 >:' /etc/motd
|
||||
else
|
||||
echo '< OpenMPTCProuter VPS 0.43 >' >> /etc/motd
|
||||
echo '< OpenMPTCProuter VPS 0.45 >' >> /etc/motd
|
||||
fi
|
||||
|
||||
if [ "$update" = "0" ]; then
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
dev tun
|
||||
secret /etc/openvpn/server/static.key
|
||||
cipher AES-256-CBC
|
||||
compress lz4
|
||||
proto tcp-server
|
||||
port 65301
|
||||
persist-tun
|
||||
|
|
|
@ -3,4 +3,4 @@ DEV=tun0
|
|||
SERVER=true
|
||||
MPTCP=true
|
||||
IPV6=true
|
||||
OPTIONS="chacha20 multiqueue keepalive"
|
||||
OPTIONS="chacha20 retry count -1 const 500000 timeout 40000 keepalive count 5 idle 60 interval 2"
|
Loading…
Reference in a new issue