Лирическое вступление:
Есть в Москве провайдер со странным названием 2Com, который подключает пользователей через vpn с использованием протокола CHAP. Новые подключения они настраивают только на компьютерах с Windows. Про Ubuntu говорить отказываются наотрез - мол, в наши обязанности не входит - но предлагают оформить платный вызов мастера.
Призвав на помощь Google, я бился над проблемой целый день, но Интернета так и не добился.
Что я уже предпринимал??
1. Скачаны и установлены пакеты
ppp_2.4.4rel-10ubuntu2_i386.deb
network-manager-pptp_0.7~~svn20081015t024626-0ubuntu1_i386.deb
pptp-linux_1.7.2-1_i386.deb
Результат: в аплете Network Manager появился пункт "Соединения VPN"
2. Создал соединение с именем VPN и внес в настройки свои данные, в т.ч. - пароль.
Результат: соединения нет. Всплывающее окно извещает, что система не может найти ключ.
3. Нашел в сети текст и создал скрипт /usr/sbin/pptp-command. (в системе его не было). Выполнил его.
Результат:
telcontar@MindMachine:~$ /usr/sbin/pptp-command
1.) start
2.) stop
3.) setup
4.) quit
What task would you like to do?: 1
1.) 2Com
Unsafe characters in tunnel name /etc/ppp/peers/2Com~
Unsafe characters in tunnel name /etc/ppp/peers/2Com~
Start a tunnel to which server?: 1
ERROR. Connection time out.Команда sudo pon 2Com не работает: выводит абракадабру из символов, но к сети не подключает.
Сожержимое файла /etc/ppp/peers/2Com#
# PPTP Tunnel configuration for tunnel 2Com
# Server IP: 192.168.234.2
# Route: ppp0
#
#
# Tags for CHAP secret selection
#
name ******
remotename 2Com
#
# Include the main PPTP configuration file
#
file /etc/ppp/options.pptp
Содержимое файла /etc/ppp/options.pptp###############################################################################
# $Id: options.pptp,v 1.3 2006/03/26 23:11:05 quozl Exp $
#
# Sample PPTP PPP options file /etc/ppp/options.pptp
# Options used by PPP when a connection is made by a PPTP client.
# This file can be referred to by an /etc/ppp/peers file for the tunnel.
# Changes are effective on the next connection. See "man pppd".
#
# You are expected to change this file to suit your system. As
# packaged, it requires PPP 2.4.2 or later from
http://ppp.samba.org/# and the kernel MPPE module available from the CVS repository also on
#
http://ppp.samba.org/, which is packaged for DKMS as kernel_ppp_mppe.
###############################################################################
# Lock the port
lock
# Authentication
# We don't need the tunnel server to authenticate itself
noauth
# We won't do PAP, EAP, CHAP, or MSCHAP, but we will accept MSCHAP-V2
# (you may need to remove these refusals if the server is not using MPPE)
# Compression
# Turn off compression protocols we know won't be used
nobsdcomp
nodeflate
# Encryption
# (There have been multiple versions of PPP with encryption support,
# choose with of the following sections you will use. Note that MPPE
# requires the use of MSCHAP-V2 during authentication)
#
http://ppp.samba.org/ the PPP project version of PPP by Paul Mackarras
# ppp-2.4.2 or later with MPPE only, kernel module ppp_mppe.o
# {{{
# Require MPPE 128-bit encryption
#require-mppe-128
# }}}
#
http://polbox.com/h/hs001/ fork from PPP project by Jan Dubiec
# ppp-2.4.2 or later with MPPE and MPPC, kernel module ppp_mppe_mppc.o
# {{{
# Require MPPE 128-bit encryption
#mppe required,stateless
# }}}
novj
novjccomp
nopcomp
noaccomp
Содержимое файла /etc/resolv.conf# Generated by NetworkManager
nameserver 195.98.160.26
Содержимое файла /etc/ppp/chap-secrets# Secrets for authentication using CHAP
# client server secret IP addresses
******(Логин) 2Com ********(пароль)