Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.snto-msu.net/showflat.php?Number=3144725&src=arc&showlite=
Дата изменения: Unknown
Дата индексирования: Tue Apr 12 12:48:28 2016
Кодировка: Windows-1251
как настроить pptp для Linux'a? - Public forum of MSU united student networks
Root | Google | Yandex | Mail.ru | Kommersant | Afisha | LAN Support
  
Technical >> Network (Archive)

Страницы: 1
Cube
злой

Рег.: 02.11.2004
Сообщений: 332
Рейтинг: 44
  как настроить pptp для Linux'a?
      11.07.2005 21:36
 

Помогите пожалуйста.
Cкажите, в каком месте я делаю неправильно:


Дано:
Логин = USER_LOGIN
Пароль = USER_PASSWD
Адрес пользователя = user_address
маска сети = 255.255.255.0
шлюз = нет
адрес сервера pptp = pptp_address
внешний адрес = my_ip
+ есть еще DNS-сервера

Попытка ( где-то 20-я ):

[root@localhost]# /usr/sbin/pptp-command setup
ls: /etc/pptp.d: No such file or directory
1.) Manage CHAP secrets
2.) Manage PAP secrets
3.) List PPTP Tunnels
4.) Add a NEW PPTP Tunnel
5.) Delete a PPTP Tunnel
6.) Configure resolv.conf
7.) Select a default tunnel
8.) Quit
?: 1
1.) List CHAP secrets
2.) Add a New CHAP secret
3.) Delete a CHAP secret
4.) Quit
?: 2
Add a NEW CHAP secret.

NOTE: Any backslashes (\) must be doubled (\\).

Local Name:USER_LOGIN

This is the 'local' identifier for CHAP authentication.

NOTE: If the server is a Windows NT machine, the local name
should be your Windows NT username including domain.
For example:

domain\\username

Local Name: USER_LOGIN

Remote Name:USER_LOGIN

This is the 'remote' identifier for CHAP authentication.
In most cases, this can be left as the default. It must be
set if you have multiple CHAP secrets with the same local name
and different passwords. Just press ENTER to keep the default.

Remote Name [PPTP]:

Password:USER_PASSWD

This is the password or CHAP secret for the account specified. The
password will not be echoed.

Password:
Adding secret USER_LOGIN PPTP password *

1.) List CHAP secrets
2.) Add a New CHAP secret
3.) Delete a CHAP secret
4.) Quit
?: 4
1.) Manage CHAP secrets
2.) Manage PAP secrets
3.) List PPTP Tunnels
4.) Add a NEW PPTP Tunnel
5.) Delete a PPTP Tunnel
6.) Configure resolv.conf
7.) Select a default tunnel
8.) Quit
?: 4

Add a NEW PPTP Tunnel.

1.) Other
Which configuration would you like to use?: 1
Tunnel Name: ARTX

Server IP: pptp_address

What route(s) would you like to add when the tunnel comes up?
This is usually a route to your internal network behind the PPTP server.
You can use substitution keywords as in /etc/pptp.d/ config file
- TUNNEL_DEV is the tunnel interface.
- DEF_GW is the existing default gateway.
- IPLOCAL is the local IP address.
- IPREMOTE is the remote IP address.
The syntax to use is the same as the route( command.
Enter a blank line to stop.

route: add default gw my_ip

route: add -host 0.0.0.0/0 gw user_address

route:

Local Name and Remote Name should match a configured CHAP or PAP secret.
Local Name is probably your NT domain\username.
NOTE: Any backslashes (\) must be doubled (\\).

Local Name: USER_LOGIN
Remote Name [PPTP]:
Adding ARTX - pptp_address - USER_LOGIN - PPTP
Added tunnel ARTX
1.) Manage CHAP secrets
2.) Manage PAP secrets
3.) List PPTP Tunnels
4.) Add a NEW PPTP Tunnel
5.) Delete a PPTP Tunnel
6.) Configure resolv.conf
7.) Select a default tunnel
8.) Quit
?: 8


Вот что из этого получилось:

[root@localhost ppp]# /usr/sbin/pptp-command start ARTX
Using interface ppp0
Connect: ppp0 <--> /dev/pts/6
anon warn[pptp_gre_bind:pptp_gre.c:95]: connect: Network is unreachable
anon fatal[main:pptp.c:245]: Cannot bind GRE socket, aborting.
Modem hangup
Connection terminated.
pptp-command: pppd indicated failure
[root@localhost ppp]#



So, bang-bang, skid, skid, nigger.
Bachan
god's pee

Рег.: 26.10.2002
Сообщений: 37551
Рейтинг: 5335
  Re: как настроить pptp для Linux'a? [re: Cube]
      11.07.2005 21:54
 





я АЭС фачил в эсс!
darktemplarМодератор

Рег.: 13.09.2004
Сообщений: 11202
Рейтинг: 2525
  Re: как настроить pptp для Linux'a? [re: Bachan]
      11.07.2005 22:53
 

пожалуй больше ничего сказать и нельзя )))))

WorseDiablo

Рег.: 19.02.2004
Сообщений: 535
Из: Москва
Рейтинг: 78
  Re: как настроить pptp для Linux'a? [re: darktemplar]
      12.07.2005 01:47
 

для gznet.ru
cat /etc/ppp/options-pptp
#192.168.1.0:
netmask 255.255.255.0
#debug
#kdebug 1
lock
mtu 1490
mru 1490
proxyarp
auth
require-chap
passive
ipcp-accept-local
ipcp-accept-remote
lcp-echo-failure 3
lcp-echo-interval 5
deflate 0

cat /etc/ppp/peers/default
#
# PPTP Tunnel configuration for tunnel default
# Server IP: 10.3.0.6
# Route: add -net 0.0.0.0 dev TUNNEL_DEV
# Route: add -net 172.0.0.0 netmask 255.0.0.0 gw 10.3.0.1
# Route: add -net 10.0.0.0 netmask 255.0.0.0 gw 10.3.0.1
# Route: add -host ftp.chg.ru gw fireball.gznet.ru
#

#
# Tags for CHAP secret selection
#
name ihanic
remotename PPTP

#
# Include the main PPTP configuration file
#
file /etc/ppp/options.pptp

cat /etc/ppp/chap-secrets
ihanic PPTP password
PPTP ihanic password

ls /etc/ppp/peers/__default -l
lrwxrwxrwx 1 root root 22 May 26 20:29 /etc/ppp/peers/__default -> /etc/ppp/peers/default

после этого у меня работает pptp-command start (от рута)



Без GUI современному продвинутому (то есть, не умеющему читать) человеку - никуда.
Страницы: 1

Technical >> Network (Archive)

Дополнительная информация
1 зарегистрированных и 0 анонимных пользователей просматривают этот форум.

Модераторы:  katobr, darktemplar 

Печать темы

Права
      Вы можете создавать новые темы
      Вы можете отвечать на сообщения
      HTML отключен
      UBBCode включен

Рейтинг:
Просмотров темы:

Переход в