VPN??

Linux, безопасность, сети и все что с этим связано
Аватара пользователя
Llama
Неотъемлемая часть форума
Сообщения: 9749
Зарегистрирован: 06 фев 2002, 11:40
Откуда: Менск

Сообщение Llama »

Jeefo, при pap-аутентификации логи и пароль надо писать в pap-secrets
Опыт растет прямо пропорционально выведенному из строя оборудованию

Аватара пользователя
Jeefo
Заглянувший
Сообщения: 16
Зарегистрирован: 11 ноя 2005, 22:51

Сообщение Jeefo »

pap-secrets:

Код: Выделить всё

# Every regular user can use PPP and has to use passwords from /etc/passwd
*	hostname	""	*

# UserIDs that cannot use PPP at all. Check your /etc/passwd and add any
# other accounts that should not be able to use pppd!
jeefo	hostname	"8) "	-
master	hostname	"*"	-
root	hostname	"*"	-
support	hostname	"*"	-
stats	hostname	"*"	-

# OUTBOUND connections

# Here you should add your userid password to connect to your providers via
# PAP. The * means that the password is to be used for ANY host you connect
# to. Thus you do not have to worry about the foreign machine name. Just
# replace password with your password.
# If you have different providers with different passwords then you better
# remove the following line.

#	*	password

Так??
Debian GNU/Linux 3.1 r0a Sarge

Аватара пользователя
Denis
Фанатеющий
Сообщения: 134
Зарегистрирован: 25 июн 2002, 10:54
Контактная информация:

Сообщение Denis »

в твоем случае нужно hostname заменить на pptpd. в options параметр name, у тебя там написанно name pptpd.
Denis

Аватара пользователя
Jeefo
Заглянувший
Сообщения: 16
Зарегистрирован: 11 ноя 2005, 22:51

Сообщение Jeefo »

Может что в самом начале не то делаю или не правильно подкл.??
Проверьте пожалуйста что я делаю не то. :oops:

pptpd-options

Код: Выделить всё

###############################################################################
# $Id: pptpd-options 4255 2004-10-03 18:44:00Z rene $
#
# Sample Poptop PPP options file /etc/ppp/pptpd-options
# Options used by PPP when a connection arrives from a client.
# This file is pointed to by /etc/pptpd.conf option keyword.
# 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 and the kernel MPPE module.
###############################################################################


# Authentication

# Name of the local system for authentication purposes 
# (must match the second field in /etc/ppp/chap-secrets entries)
name pptpd

# Optional: domain name to use for authentication
# domain mydomain.net

# Strip the domain prefix from the username before authentication.
# (applies if you use pppd with chapms-strip-domain patch)
#chapms-strip-domain


# Encryption
# Debian: on systems with a kernel built with the package
# kernel-patch-mppe >= 2.4.2 and using ppp >= 2.4.2, ...
# {{{
require-pap
refuse-chap
refuse-mschap
# Require the peer to authenticate itself using MS-CHAPv2 [Microsoft
# Challenge Handshake Authentication Protocol, Version 2] authentication.
refuse-mschap-v2
# Require MPPE 128-bit encryption
# (note that MPPE requires the use of MSCHAP-V2 during authentication)
require-mppe
# }}}

# Network and Routing

# If pppd is acting as a server for Microsoft Windows clients, this
# option allows pppd to supply one or two DNS (Domain Name Server)
# addresses to the clients.  The first instance of this option
# specifies the primary DNS address; the second instance (if given)
# specifies the secondary DNS address.
#ms-dns 10.0.0.1
#ms-dns 10.0.0.2

# If pppd is acting as a server for Microsoft Windows or "Samba"
# clients, this option allows pppd to supply one or two WINS (Windows
# Internet Name Services) server addresses to the clients.  The first
# instance of this option specifies the primary WINS address; the
# second instance (if given) specifies the secondary WINS address.
#ms-wins 10.0.0.3
#ms-wins 10.0.0.4

# Add an entry to this system's ARP [Address Resolution Protocol]
# table with the IP address of the peer and the Ethernet address of this
# system.  This will have the effect of making the peer appear to other
# systems to be on the local ethernet.
# (you do not need this if your PPTP server is responsible for routing
# packets to the clients -- James Cameron)
#proxyarp

# Debian: do not replace the default route
defaultroute


# Logging

# Enable connection debugging facilities.
# (see your syslog configuration for where pppd sends to)
debug

# Print out all the option values which have been set.
# (often requested by mailing list to verify options)
#dump


# Miscellaneous

# Create a UUCP-style lock file for the pseudo-tty to ensure exclusive
# access.
lock

# Disable BSD-Compress compression
nobsdcomp 
А так я делаю подкл.:pptp 172.16.5.1 debug nodetach name jeefo

Код: Выделить всё

using channel 8
Using interface ppp0
Connect: ppp0 <--> /dev/pts/2
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x429096d9> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <mru 1492> <auth pap> <magic 0xdf1ea522>]
sent [LCP ConfAck id=0x1 <mru 1492> <auth pap> <magic 0xdf1ea522>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x429096d9> <pcomp> <accomp>]
sent [LCP EchoReq id=0x0 magic=0x429096d9]
sent [PAP AuthReq id=0x1 user="jeefo" password=<hidden>]
rcvd [LCP EchoRep id=0x0 magic=0xdf1ea522]
rcvd [PAP AuthAck id=0x1 ""]
PAP authentication succeeded
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>]
rcvd [IPCP ConfReq id=0x1 <compress VJ 0f 00> <addr 217.21.59.254>]
sent [IPCP ConfAck id=0x1 <compress VJ 0f 00> <addr 217.21.59.254>]
rcvd [CCP ConfReq id=0x1 <mppe -H -M -S -L -D +C>]
sent [CCP ConfRej id=0x1 <mppe -H -M -S -L -D +C>]
rcvd [CCP ConfRej id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [CCP ConfReq id=0x2]
rcvd [IPCP ConfNak id=0x1 <addr 213.184.245.237>]
sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 213.184.245.237>]
rcvd [CCP ConfReq id=0x2 < 17 06 00 01 02 00>]
sent [CCP ConfRej id=0x2 < 17 06 00 01 02 00>]
rcvd [CCP ConfAck id=0x2]
rcvd [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 213.184.245.237>]
not replacing default route to eth0 [192.168.21.100]
local  IP address 213.184.245.237
remote IP address 217.21.59.254
Script /etc/ppp/ip-up started (pid 4903)
rcvd [CCP ConfReq id=0x3 < 11 05 00 01 01>]
sent [CCP ConfRej id=0x3 < 11 05 00 01 01>]
rcvd [CCP ConfReq id=0x4 < 11 05 00 01 03>]
sent [CCP ConfRej id=0x4 < 11 05 00 01 03>]
rcvd [CCP ConfReq id=0x5 <predictor 1>]
sent [CCP ConfRej id=0x5 <predictor 1>]
rcvd [CCP ConfReq id=0x6]
sent [CCP ConfAck id=0x6]
rcvd [CCP TermReq id=0x7]
CCP terminated by peer
sent [CCP TermAck id=0x7]
Compression disabled by peer.
Script ?? finished (pid 4887), status = 0x0
Script /etc/ppp/ip-up finished (pid 4903), status = 0x0
Или так.:
pptp 172.16.5.1 debug refuse-mschap-v2 require-pap require-mppe nodetach name jeefo

Код: Выделить всё

using channel 7
Using interface ppp0
Connect: ppp0 <--> /dev/pts/2
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x510f89b9> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <mru 1492> <auth pap> <magic 0xdf1c0a7c>]
sent [LCP ConfAck id=0x1 <mru 1492> <auth pap> <magic 0xdf1c0a7c>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <auth pap> <magic 0x510f89b9> <pcomp> <accomp>]
sent [LCP EchoReq id=0x0 magic=0x510f89b9]
sent [PAP AuthReq id=0x1 user="jeefo" password=<hidden>]
rcvd [LCP EchoRep id=0x0 magic=0xdf1c0a7c]
Terminating on signal 15
sent [LCP TermReq id=0x2 "User request"]
sent [LCP TermReq id=0x3 "User request"]
Connection terminated.
Modem hangup
Как правельней делать подкл??
plz help!
Debian GNU/Linux 3.1 r0a Sarge

Аватара пользователя
Jeefo
Заглянувший
Сообщения: 16
Зарегистрирован: 11 ноя 2005, 22:51

Сообщение Jeefo »

Люди что никто не зн решения этой проблемы??
А то нета хочется!!
Мож кто настраивал уже?? Или в Гомеле никто этим не занимался??
plz help!!
Debian GNU/Linux 3.1 r0a Sarge

Аватара пользователя
Denis
Фанатеющий
Сообщения: 134
Зарегистрирован: 25 июн 2002, 10:54
Контактная информация:

Сообщение Denis »

найди скрипт pptp-command
через него проще всего подключаться
и настраивать он немного умеет :)
Denis

Ответить