esqueci algo importante...

depois de conectado, vc tem que alterar as suas rotas...

no meu caso tive que adicionar uma rota ao meu server de vpn para passar pela 
interface de saída pra internet que estou utilizando  eth0 ou eth1

depois, adicionei mais uma rota  da rede  que pretendo me conectar ao meu 
gateway disponivel porém saindo pela ppp0...

semelhante a 

route add 172.16.0.64/32 gw eth1
route add -net 172.16.0.0/16 dev ppp0


bem acho q era isto...

t++
------------------------------------------------------------------------


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  e seja feliz... (renomeia o  diretório descompactado somente 
para ppp)

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...






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. 


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