Re: [FUG-BR] RES: RES: Migrar poptop para FreeBSD 7.1

2009-04-03 Por tôpico Giancarlo Rubio
Com que editor de texto vc esta abrindo isso??

2009/4/3 Ricardo Augusto de Souza ricardo.so...@cmtsp.com.br:
 Apr  3 15:15:48 Trinity ppp[1029]: Warning: Bad label in /etc/ppp/ppp.conf 
 (line 2) - missing colon
 Apr  3 15:15:48 Trinity ppp[1029]: Warning: Bad label in /etc/ppp/ppp.conf 
 (line 3) - missing colon
 Apr  3 15:15:48 Trinity ppp[1029]: Warning: Bad label in /etc/ppp/ppp.conf 
 (line 4) - missing colon
 Apr  3 15:15:48 Trinity ppp[1029]: Warning: Bad label in /etc/ppp/ppp.conf 
 (line 5) - missing colon
 Apr  3 15:15:48 Trinity ppp[1029]: Warning: Bad label in /etc/ppp/ppp.conf 
 (line 6) - missing colon
 Apr  3 15:15:48 Trinity ppp[1029]: Warning: Bad label in /etc/ppp/ppp.conf 
 (line 7) - missing colon
 Apr  3 15:15:48 Trinity ppp[1029]: Warning: Bad label in /etc/ppp/ppp.conf 
 (line 8) - missing colon
 Apr  3 15:15:48 Trinity ppp[1029]: Warning: Bad label in /etc/ppp/ppp.conf 
 (line 2) - missing colon
 Apr  3 15:15:48 Trinity ppp[1029]: Warning: Bad label in /etc/ppp/ppp.conf 
 (line 3) - missing colon
 Apr  3 15:15:48 Trinity ppp[1029]: Warning: Bad label in /etc/ppp/ppp.conf 
 (line 4) - missing colon
 Apr  3 15:15:48 Trinity ppp[1029]: Warning: Bad label in /etc/ppp/ppp.conf 
 (line 5) - missing colon
 Apr  3 15:15:48 Trinity ppp[1029]: Warning: Bad label in /etc/ppp/ppp.conf 
 (line 6) - missing colon
 Apr  3 15:15:48 Trinity ppp[1029]: Warning: Bad label in /etc/ppp/ppp.conf 
 (line 7) - missing colon
 Apr  3 15:15:48 Trinity ppp[1029]: Warning: Bad label in /etc/ppp/ppp.conf 
 (line 8) - missing colon
 Apr  3 15:15:48 Trinity ppp[1029]: Warning: Label /etc/ppp/option.pptp 
 rejected -direct connection: Configuration label not found

 Estou utilizando a configuração proposta em 
 http://www.freebsdconsult.com.br/artigos/mypage_30_VPN-com-poptop.html

 Alguem pode me dar uma ajuda?


 -Mensagem original-
 De: freebsd-boun...@fug.com.br [mailto:freebsd-boun...@fug.com.br] Em nome de 
 Ricardo Augusto de Souza
 Enviada em: sexta-feira, 3 de abril de 2009 11:38
 Para: Lista Brasileira de Discussão sobre FreeBSD (FUG-BR)
 Assunto: [FUG-BR] RES: Migrar poptop para FreeBSD 7.1

 Valeu pelo artigo.

 Erro continua:

 Apr  3 13:25:30 Trinity ppp[3275]: Warning: Label /etc/ppp/option.pptp 
 rejected -direct connection: Configuration label not found
 Apr  3 13:25:30 Trinity pptpd[3274]: GRE: read(fd=7,buffer=8058a40,len=8196) 
 from PTY failed: status = 0 error = No error
 Apr  3 13:25:30 Trinity pptpd[3274]: CTRL: PTY read or GRE write failed 
 (pty,gre)=(7,6)
 Apr  3 13:25:44 Trinity kernel: arp: 10.100.0.1 is on bce1 but got reply from 
 00:01:63:14:58:c0 on bce0
 ^C
 Trinity# cat /etc/ppp/option.pptp
 lock
 mtu 1490
 mru 1490
 proxyarp
 noauth
 +chap
 +chapms
 +chapms-v2
 ipcp-accept-local
 ipcp-accept-remote
 lcp-echo-failure 10
 lcp-echo-interval 10
 mppe-40
 mppe-128
 mppe-stateless
 require-chap
 debug
 name *


 -Mensagem original-
 De: freebsd-boun...@fug.com.br [mailto:freebsd-boun...@fug.com.br] Em nome de 
 Wesley FreeBSD Consult
 Enviada em: sexta-feira, 3 de abril de 2009 11:21
 Para: Lista Brasileira de Discussão sobre FreeBSD (FUG-BR)
 Assunto: Re: [FUG-BR] Migrar poptop para FreeBSD 7.1

 Ricardo.
 Isso pode lhe ajudar,
 http://www.freebsdconsult.com.br/artigos/mypage_30_VPN-com-poptop.html

 ---
 Wesley Miranda
 FreeBSD Consult
 DTI - Departamento de Tecnologia da Informação
 Tel: (31) 3334-7991 (31) 9885-4571
 www.freebsdconsult.com.br
 d...@freebsdconsult.com.br
 - Original Message -
 From: Ricardo Augusto de Souza ricardo.so...@cmtsp.com.br
 To: Lista Brasileira de Discussão sobre FreeBSD (FUG-BR)
 freebsd@fug.com.br
 Sent: Friday, April 03, 2009 11:13 AM
 Subject: [FUG-BR] Migrar poptop para FreeBSD 7.1


 Estou precisando subir um servidor VPN em poptop no FreeBSD 7.1.

 Rodando o poptop com  o /etc/ppp/ppp.conf original do Free estou obtendo o
 erro:



 Mar 27 16:06:38 Trinity ppp[788]: Warning: Label /etc/ppp/ppp.conf
 rejected -direct connection: Configuration label not found

 Mar 27 16:06:55 Trinity ppp[791]: Warning: Label /etc/ppp/ppp.conf
 rejected -direct connection: Configuration label not found

 Mar 27 16:06:56 Trinity ppp[794]: Warning: Label /etc/ppp/ppp.conf
 rejected -direct connection: Configuration label not found

 Mar 27 16:08:17 Trinity ppp[798]: Warning: Label /etc/ppp/ppp.conf
 rejected -direct connection: Configuration label not found



 Atualmente estou testando este formato, que uso nos OpenBSD.



 /etc/ppp/ppp.conf:



 CMT:

  set authname trinity

  set authkey mypasswd

  set timeout 0

  set ifaddr 0 0

  add 172.16.0.4/24 HISADDR

  alias enable yes





 loop:

  set timeout 0

  set log phase chat connect lcp ipcp command

  set device localhost:pptp

  set dial

  set login

 # set mppe * stateful

  set ifaddr 172.16.0.1 172.16.0.2-172.16.0.10 255.255.255.0

  set server /var/tmp/loop  0177





 loop-in:

  set timeout 0

  set log phase lcp ipcp command

  allow mode direct





 pptp:

  load loop

 

Re: [FUG-BR] RES: RES: Migrar poptop para FreeBSD 7.1

2009-04-03 Por tôpico Wanderson Tinti
2009/4/3 Ricardo Augusto de Souza ricardo.so...@cmtsp.com.br:
 Apr  3 15:15:48 Trinity ppp[1029]: Warning: Bad label in /etc/ppp/ppp.conf 
 (line 2) - missing colon
 Apr  3 15:15:48 Trinity ppp[1029]: Warning: Bad label in /etc/ppp/ppp.conf 
 (line 3) - missing colon
 Apr  3 15:15:48 Trinity ppp[1029]: Warning: Bad label in /etc/ppp/ppp.conf 
 (line 4) - missing colon
 Apr  3 15:15:48 Trinity ppp[1029]: Warning: Bad label in /etc/ppp/ppp.conf 
 (line 5) - missing colon
 Apr  3 15:15:48 Trinity ppp[1029]: Warning: Bad label in /etc/ppp/ppp.conf 
 (line 6) - missing colon
 Apr  3 15:15:48 Trinity ppp[1029]: Warning: Bad label in /etc/ppp/ppp.conf 
 (line 7) - missing colon
 Apr  3 15:15:48 Trinity ppp[1029]: Warning: Bad label in /etc/ppp/ppp.conf 
 (line 8) - missing colon
 Apr  3 15:15:48 Trinity ppp[1029]: Warning: Bad label in /etc/ppp/ppp.conf 
 (line 2) - missing colon
 Apr  3 15:15:48 Trinity ppp[1029]: Warning: Bad label in /etc/ppp/ppp.conf 
 (line 3) - missing colon
 Apr  3 15:15:48 Trinity ppp[1029]: Warning: Bad label in /etc/ppp/ppp.conf 
 (line 4) - missing colon
 Apr  3 15:15:48 Trinity ppp[1029]: Warning: Bad label in /etc/ppp/ppp.conf 
 (line 5) - missing colon
 Apr  3 15:15:48 Trinity ppp[1029]: Warning: Bad label in /etc/ppp/ppp.conf 
 (line 6) - missing colon
 Apr  3 15:15:48 Trinity ppp[1029]: Warning: Bad label in /etc/ppp/ppp.conf 
 (line 7) - missing colon
 Apr  3 15:15:48 Trinity ppp[1029]: Warning: Bad label in /etc/ppp/ppp.conf 
 (line 8) - missing colon
 Apr  3 15:15:48 Trinity ppp[1029]: Warning: Label /etc/ppp/option.pptp 
 rejected -direct connection: Configuration label not found

 Estou utilizando a configuração proposta em 
 http://www.freebsdconsult.com.br/artigos/mypage_30_VPN-com-poptop.html

 Alguem pode me dar uma ajuda?



Senhores, Boa tarde!

Por acaso você esta colocando algum espaço antes das linhas de
configuracao do seu ppp.conf?
-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


Re: [FUG-BR] RES: RES: Migrar poptop para FreeBSD 7.1

2009-04-03 Por tôpico Luiz Otavio O Souza

 Estou utilizando a configuração proposta em 
 http://www.freebsdconsult.com.br/artigos/mypage_30_VPN-com-poptop.html

 Alguem pode me dar uma ajuda?

Ola,

Aqui faço um pouco diferente:

# cat /usr/local/etc/pptpd.conf
ppp /usr/sbin/ppp
debug
logwtmp
connections 5
localip 10.0.0.1
remoteip 10.0.0.100-104

# cat /etc/ppp/ppp.conf
default:
 set log Phase Chat LCP IPCP CCP tun command
 ident user-ppp VERSION (built COMPILATIONDATE)

pptp:
 set timeout 0
 enable chap81
 disable deflate pred1
 deny deflate pred1
 set ifaddr 10.0.0.1 10.0.0.100-10.0.0.104 255.255.255.255
 enable proxy
 accept dns
 set dns 10.0.0.1
# set nbns 10.0.0.11 # servidor wins
 set mtu max 1490
 set mru 1490
 disable echo
 set echoperiod 5
 disable ipv6cp

Os usuários e senhas podem ser por radius ou ficar no /etc/ppp/ppp.secret

E pra funcionar no freebsd 7 ou superior tem que aplicar um patch que 
corrige as rotas mantidas pelo ppp 
(http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/130159) e outro que corrige 
um problema com o proxy arp 
(http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/131250).

Luiz 

-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd