#!/bin/bash # sudo pon ppp0 debug dump logfd 2 nodetach ip= ТВОЙ_VPS echo "Enter username that you want to connect, e.g. Client1 or John:" read u echo "Specify password:" read p echo "Downloading and Installing PoPToP" sudo aptitude update sudo aptitude upgrade -y sudo aptitude install -y pptpd sudo aptitude install -y pptp-linux echo "Connect to $ip ..." # Adding user echo "$u * $p *" > /etc/ppp/chap-secrets sudo cat > /etc/ppp/options.pptp < /etc/ppp/peers/ppp0 <> /etc/network/interfaces <