Created
January 25, 2019 05:26
-
-
Save moeiscool/89e5a932cceb0a2ebeb0da5da4f0ce0f to your computer and use it in GitHub Desktop.
Install Shinobi Video PPTP VPN Client on Ubuntu 18.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install ppp pptp-linux | |
echo "/etc/ppp/chap-secrets" | |
DOMAIN="vpn.shinobi.video" | |
echo "VPN Server User" | |
read vpnuser | |
echo "VPN Server Password" | |
read vpnpass | |
chapsecret="$DOMAIN\\$vpnuser PPTP $vpnpass *" | |
if grep -q $chapsecret /etc/ppp/chap-secrets; then | |
echo "Already Set." | |
else | |
echo $chapsecret > /etc/ppp/chap-secrets | |
fi | |
touch "/etc/ppp/peers/vpnshinobivideo" | |
echo "pty \"pptp $DOMAIN --nolaunchpppd\"" > /etc/ppp/peers/vpnshinobivideo | |
echo "name $vpnuser" >> /etc/ppp/peers/vpnshinobivideo | |
echo "password $vpnpass" >> /etc/ppp/peers/vpnshinobivideo | |
echo "remotename PPTP" >> /etc/ppp/peers/vpnshinobivideo | |
echo "require-mppe-128" >> /etc/ppp/peers/vpnshinobivideo | |
echo "file /etc/ppp/options.pptp" >> /etc/ppp/peers/vpnshinobivideo | |
echo "ipparam vpnshinobivideo" >> /etc/ppp/peers/vpnshinobivideo | |
pon vpnshinobivideo | |
ifconfig | grep -A4 -P ppp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment