Skip to content

Instantly share code, notes, and snippets.

@moeiscool
Created January 25, 2019 05:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moeiscool/89e5a932cceb0a2ebeb0da5da4f0ce0f to your computer and use it in GitHub Desktop.
Save moeiscool/89e5a932cceb0a2ebeb0da5da4f0ce0f to your computer and use it in GitHub Desktop.
Install Shinobi Video PPTP VPN Client on Ubuntu 18.04
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