olá caro colega...

tb passei diversos problemas até conseguir conectar em uma VPN windows
 com CHAP...
mas consegui com slackware 12, necessitando apenas instalar o
 pptp-linux, pois como o kernel 2.6.21 ja possui o ppp-mppe, diminui muito o
 stress..

estou enviando os arquivos que utilizei...
largue-os no /etc/ppp  e seja feliz... 

nos arquivos chap-secrets e pap-secrets informe o usuario e senha que
 serao utilizados

no diretorio peers, vc configura o acesso ao seu servidor de vpn,  cada
 arquivo referencia uma vpn.. (vc ja deve saber isto)...

altere as configurações para o seu cenário...

para conectar eu uso   o comando     pon nomedavpn     
para desconectar o comando   poff nome da vpn

porém os scripts  pon e poff encontram-se nos diretórios o pptp  fora
 do path e sem permissão de execução..  desta forma, da um find neles,
 tornae-os executaveis e lança no path, ou cria um link par eles em um
 diretorio tipo /bin 

bem era isto espero ter ajudado...

qq coisa acompanha /var/log/messages    

boa sorte...


########################
#arquivos
########################
options.pptp
###############################################################################
# $Id: options.pptp,v 1.2 2005/08/20 13:16:38 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
# }}}

chap-secrets
# Secrets for authentication using CHAP
# client server secret   IP addresses
intranet\\usuario PPTP "senha" *



pap-secrets
# Secrets for authentication using PAP
# client server secret   IP addresses
intranet\\usuario PPTP "senha" *



peers/vpn1
pty "pptp vpn1.com.br --nolaunchpppd"
name intranet\\usuario
remotename PPTP
require-mppe-128
file /etc/ppp/options.pptp
ipparam vpn1


peers/vpn2
pty "pptp vpn2.com.br --nolaunchpppd"
name intranet\\usuario
remotename PPTP
require-mppe-128
file /etc/ppp/options.pptp
ipparam vpn2










Eduardo Ukstin <[EMAIL PROTECTED]> escreveu: 
Boa noite pessoal,

Estou tentando configurar meu computador (slackware 12) para conectar
na vpn do escritório.

Baixei o pacote do pptp-client em (http://pptpclient.sourceforge.net/)
e instalei

Na configuração segui a parte que fala da conf do client desse artigo:
http://www.linuxquestions.org/linux/answers/Networking/PPTP_VPN_on_Slackware_How_to

3.2 Configuring the Linux pptp client
***************************************

Create a file called /etc/ppp/options.pptp and put the following line in it:

lock noauth nodeflate nobsdcomp

Add the following line to /etc/ppp/chap-secrets:

username pptpd password *

Substitute username and password for the credentials you want to use
to connect to the pptp server.

Now create a file called /etc/ppp/peers/YOURTUNNELNAME, replacing
YOURTUNNELNAME with whatever
name you want to use to identify your tunnel. Place the following
lines in this file:

pty "pptp YOURPPTPSERVER --nolaunchpppd"
name YOURUSERNAME
mtu 1490
mru 1490
remotename pptpd
require-mschap
require-mschap-v2
require-mppe-128
file /etc/ppp/options.pptp
ipparam YOURTUNNELNAME
persist

Where YOURPPTPSERVER is the address of the pptp server you want to
connect to, YOURUSERNAME speaks for itself and YOURTUNNELNAME should
be the same name as the file you just created in /etc/ppp/peers.

There is one last detail to be handled, which is routing.

To make sure our traffic gets routed to the other end of the tunnel,
create a file called ip-up in /etc/ppp and add the following lines to
this file:

#!/bin/sh
/sbin/route add -net REMOTE-NET-IP netmask REMOTE-NET-MASK dev ppp

In which you have to replace the IP-address and the mask with those of
the subnet on the other end of the tunnel. If there is no network on
the other side, but just the pptp server, you can use -host instead of
-net. When your done, save the file and make it executable:

chmod +x /etc/ppp/ip-up

Now that all is set up we can start the tunnel:

pppd call YOURTUNNELNAME


Quando eu chamo o pppd call nometotunel aparece as seguintes mensagens
no meu messages:

Sep  9 19:47:52 xxx pppd[19640]: Using interface ppp0
Sep  9 19:47:52 xxx pppd[19640]: Connect: ppp0 <--> /dev/pts/1
Sep  9 19:47:52 xxx pptp[20223]: anon log[main:pptp.c:276]: The
synchronous pptp option is NOT activated
Sep  9 19:48:04 xxx pppd[19640]: Terminating on signal 15
Sep  9 19:48:04 xxx pppd[19640]: Modem hangup
Sep  9 19:48:04 xxx pppd[19640]: Connection terminated.

E essas mensagens ficam se repetindo, sem efetuar a conexão.

O servidor da VPN é um windows 2000.

Tem alguma configuração a mais que precisa ser colocada no options.pptp??

Alguém já configurou client de vpn no slackware, em VPN's do tipo pptp?

Qualquer ajuda é bem vinda!

-- 
Eduardo Ukstin
GNU/Linux User #328388





Alisson Ceolin 

|   _ 
|  °v° 
| /(S)\    SLACKWARE
|  ^ ^           Linux
_____________________

       Flickr agora em português. Você clica, todo mundo vê. Saiba mais.
--~--~---------~--~----~------------~-------~--~----~
GUS-BR - Grupo de Usuários de Slackware Brasil
http://www.slackwarebrasil.org/
http://groups.google.com/group/slack-users-br
-~----------~----~----~----~------~----~------~--~---

Responder a