есть неплохой скриптик, который поможет создать VPN-подключение в Linux, его можно взять здесь
http://stat.ozr.ru/files/misc/linux/cable.tar.gz Все, что требуется - установить pptp-linux, распаковать скачанный файл, запустить Install и ввести требуемые данные...
sudo ./Install
Вот что вы должны получить:
Backing up /etc/ppp/ip-up and /etc/ppp/ip-down to ip-up-back and ip-down-bak
Welcome to the cable connection setup.
Please enter some information:
USER NAME
>>> Enter your user name (default cable): 172.10.XX.XX
INTERFACE
>>> Enter the Ethernet interface connected to the Cable modem
For Linux, it will be ethn, where 'n' is a number.
(default eth0): ethX
SERVER ADDRESS
>>> Enter the Server address of your ISP.
(default cablepns.012.net.il): 172.10.0.254
DNS
Please enter the IP address of the primary DNS server.
If you want the server to automatically provide you the addresses',
enter 'server' (all lower-case) here.
If you just press enter, I will assume you know what you are
doing and not modify your DNS setup.
>>> Enter the DNS information here: server
PASSWORD
>>> Please enter your password:
>>> Please re-enter your password:
** Summary of what you entered **
Ethernet Interface: eth0
User name: 172.10.XX.XX
DNS addresses: Supplied by ISP's server
>>> Accept these settings and adjust configuration files (y/n)? y
Adjusting /etc/ppp/pap-secrets and /etc/ppp/chap-secrets
(But first backing it up to /etc/ppp/pap-secrets-bak)
(But first backing it up to /etc/ppp/chap-secrets-bak)
Congratulations, it should be all set up!
Type: 'cable-start' - to bring up your CABLE link
'cable-stop' - to bring it down
'cable-status' - to see the link status.
теперь, чтобы инициировать VPN-соединение, я просто ввожу
sudo cable-start
а чтобы его завершить - sudo cable-stop
только отредактируйте файл Install предварительн удалив обзац
# Must be root
if test "$UID" != 0 ; then
echo -e "This script must be run as root.\nType in root password, please."
exec su -c "DISPLAY=$DISPLAY $0"
exit 1
fi