mirror of
https://github.com/Ysurac/openmptcprouter-vps.git
synced 2025-03-09 15:50:00 +00:00
Save keys to a file
This commit is contained in:
parent
69a3ada691
commit
a7264f0746
1 changed files with 21 additions and 6 deletions
|
@ -176,7 +176,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Display important info
|
# Display important info
|
||||||
echo '================================================================================'
|
echo '===================================================================================='
|
||||||
echo 'OpenMPTCProuter VPS is now configured !'
|
echo 'OpenMPTCProuter VPS is now configured !'
|
||||||
echo 'SSH port: 65222 (instead of port 22)'
|
echo 'SSH port: 65222 (instead of port 22)'
|
||||||
echo 'Shadowsocks port: 65101'
|
echo 'Shadowsocks port: 65101'
|
||||||
|
@ -187,9 +187,24 @@ echo 'Glorytun port: 65001'
|
||||||
echo 'Glorytun encryption: chacha20'
|
echo 'Glorytun encryption: chacha20'
|
||||||
echo 'Your glorytun key: '
|
echo 'Your glorytun key: '
|
||||||
echo $GLORYTUN_PASS
|
echo $GLORYTUN_PASS
|
||||||
echo '================================================================================'
|
echo '===================================================================================='
|
||||||
echo '/!\ You need to reboot to enable MPTCP, shadowsocks, glorytun and shorewall /!\'
|
echo 'Keys are also saved in /root/openmptcprouter_config.txt, you are free to remove them'
|
||||||
echo '--------------------------------------------------------------------------------'
|
echo '===================================================================================='
|
||||||
|
echo ' /!\ You need to reboot to enable MPTCP, shadowsocks, glorytun and shorewall /!\'
|
||||||
|
echo '------------------------------------------------------------------------------------'
|
||||||
echo ' After reboot, check with uname -a that the kernel name contain mptcp.'
|
echo ' After reboot, check with uname -a that the kernel name contain mptcp.'
|
||||||
echo ' You may have to modify GRUB_DEFAULT in /etc/defaut/grub'
|
echo ' Else, you may have to modify GRUB_DEFAULT in /etc/defaut/grub'
|
||||||
echo '================================================================================'
|
echo '===================================================================================='
|
||||||
|
|
||||||
|
# Save info in file
|
||||||
|
cat > /root/openmptcprouter_config.txt <<EOF
|
||||||
|
SSH port: 65222 (instead of port 22)
|
||||||
|
Shadowsocks port: 65101
|
||||||
|
Shadowsocks encryption: aes-256-cfb
|
||||||
|
Your shadowsocks key:
|
||||||
|
${SHADOWSOCKS_PASS}
|
||||||
|
Glorytun port: 65001
|
||||||
|
Glorytun encryption: chacha20
|
||||||
|
Your glorytun key:
|
||||||
|
${GLORYTUN_PASS}
|
||||||
|
EOF
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue