A saga: pptp não conecta!!
Caros colegas,
olhando o tutorial em http://www.dicas-l.com.br/dicas-l/20030710.php e tentando solucionar meu problema com pptp, instalei do http://pptpclient.sourceforge.net o pptp e estou tentando conectar mas nao consigo. Diferentemente do que esta mencionado no artigo, o arquivo options do pptp nao é o /etc/ppp/options e sim o /etc/ppp/options.pptp que tem o seguinte conteudo:
###############################################################################
# $Id: options.pptp,v 1.1 2005/02/18 01:40:23 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 EAP, CHAP, or MSCHAP, but we will accept MSCHAP-V2
refuse-eap
refuse-chap
refuse-mschap
# 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
# }}}
Quando dou o comando pptp 10.0.0.138, aparece a mensagem:
root@Server ~# pptp 10.0.0.138
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
LCP: timeout sending Config-Requests
Connection terminated.
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
tcflush failed: Bad file descriptor
tcsetattr: Invalid argument (line 1001)
Alguem sabe o que pode ser?
Re: A saga: pptp não conecta!!
vejam o que aparece no /var/log/messages quando dou o comando pptp 10.0.0.138:
Citação:
May 15 15:14:04 Server pptp[696]: anon log[main:pptp.c:267]: The synchronous
pptp option is NOT activated
May 15 15:14:04 Server pptp[699]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent
control packet type is 1 'Start-Control-Connection-Request'
May 15 15:14:04 Server pptp[699]: anon log[ctrlp_disp:pptp_ctrl.c:738]:
Received Start Control Connection Reply
May 15 15:14:04 Server pptp[699]: anon log[ctrlp_disp:pptp_ctrl.c:772]:
Client connection established.
May 15 15:14:05 Server pptp[699]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent
control packet type is 7 'Outgoing-Call-Request'
May 15 15:14:05 Server pptp[699]: anon log[ctrlp_disp:pptp_ctrl.c:857]:
Received Outgoing Call Reply.
May 15 15:14:05 Server pptp[699]: anon log[ctrlp_disp:pptp_ctrl.c:896]:
Outgoing call established (call ID 0, peer's call ID 0).
May 15 15:14:36 Server pptp[702]: anon warn[decaps_hdlc:pptp_gre.c:197]:
short read (-1): Input/output error
May 15 15:14:36 Server pptp[702]: anon warn[decaps_hdlc:pptp_gre.c:209]:
pppd may have shutdown, see pppd log
May 15 15:14:36 Server pptp[699]: anon log[callmgr_main:pptp_callmgr.c:231]:
Closing connection (unhandled)
May 15 15:14:36 Server pptp[699]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent
control packet type is 12 'Call-Clear-Request'
May 15 15:14:36 Server pptp[699]: anon log[call_callback:pptp_callmgr.c:78]:
Closing connection (call state)
O que seria esse: The synchronous pptp option is NOT activated