The "load l2tp-template" under "l2tp1" is applying to the previously defined
bundle PPPoE and enabling chap, because it precedes the "new" command which
creates the new bundle.
You should make the "new" command the first (not second) command under each
l2tp* block.
On 6/20/07, Eric Masson <[EMAIL PROTECTED]> wrote:
Hello,
While trying to connect to my isp, I get the following log :
<log>
Multi-link PPP daemon for FreeBSD
process 6912 started, version 4.1 ([EMAIL PROTECTED] 21:43 15-Jun-2007)
CONSOLE: listening on 127.0.0.1 5005
[PPPoE] using interface ng0
[l2tp1] using interface ng1
[l2tp2] using interface ng2
[l2tp3] using interface ng3
[l2tp4] using interface ng4
[l2tp5] using interface ng5
L2TP: waiting for connection on 10.127.0.1 1701
[PPPoE] link: OPEN event
[PPPoE] LCP: Open event
[PPPoE] LCP: state change Initial --> Starting
[PPPoE] LCP: LayerStart
[PPPoE] PPPoE: Connecting to '*'
PPPoE: rec'd ACNAME "BAS-ABV-2"
[PPPoE] PPPoE: connection successful
[PPPoE] link: UP event
[PPPoE] link: origination is local
[PPPoE] LCP: Up event
[PPPoE] LCP: state change Starting --> Req-Sent
[PPPoE] LCP: SendConfigReq #1
PROTOCOMP
MRU 1492
MAGICNUM ee827800
AUTHPROTO CHAP MD5
[PPPoE] LCP: rec'd Configure Request #212 link 0 (Req-Sent)
MRU 1492
AUTHPROTO CHAP MD5
MAGICNUM 258907ca
[PPPoE] LCP: SendConfigNak #212
AUTHPROTO EAP
[PPPoE] LCP: rec'd Configure Reject #1 link 0 (Req-Sent)
PROTOCOMP
[PPPoE] LCP: SendConfigReq #2
MRU 1492
MAGICNUM ee827800
AUTHPROTO CHAP MD5
[PPPoE] LCP: rec'd Configure Request #213 link 0 (Req-Sent)
MRU 1492
AUTHPROTO PAP
MAGICNUM 258907ca
[PPPoE] LCP: SendConfigNak #213
AUTHPROTO EAP
[PPPoE] LCP: rec'd Configure Ack #2 link 0 (Req-Sent)
MRU 1492
MAGICNUM ee827800
AUTHPROTO CHAP MD5
[PPPoE] LCP: state change Req-Sent --> Ack-Rcvd
[PPPoE] LCP: rec'd Configure Request #214 link 0 (Ack-Rcvd)
MRU 1492
MAGICNUM 258907ca
[PPPoE] LCP: SendConfigAck #214
MRU 1492
MAGICNUM 258907ca
[PPPoE] LCP: state change Ack-Rcvd --> Opened
[PPPoE] LCP: auth: peer wants nothing, I want CHAP
[PPPoE] CHAP: sending CHALLENGE len:46
[PPPoE] LCP: LayerUp
[PPPoE] LCP: rec'd Terminate Request #215 link 0 (Opened)
[PPPoE] LCP: state change Opened --> Stopping
[PPPoE] LCP: SendTerminateAck #3
[PPPoE] LCP: LayerDown
[PPPoE] LCP: state change Stopping --> Stopped
[PPPoE] LCP: LayerFinish
[PPPoE] link: DOWN event
[PPPoE] LCP: Close event
[PPPoE] LCP: state change Stopped --> Closed
[PPPoE] LCP: Down event
[PPPoE] LCP: state change Closed --> Initial
caught fatal signal int
[PPPoE] IPCP: Close event
[PPPoE] IFACE: Close event
[l2tp1] IPCP: Close event
[l2tp1] IFACE: Close event
[l2tp2] IPCP: Close event
[l2tp2] IFACE: Close event
[l2tp3] IPCP: Close event
[l2tp3] IFACE: Close event
[l2tp4] IPCP: Close event
[l2tp4] IFACE: Close event
[l2tp5] IPCP: Close event
[l2tp5] IFACE: Close event
[PPPoE] IPCP: Close event
[PPPoE] IFACE: Close event
[l2tp1] IPCP: Close event
[l2tp1] IFACE: Close event
[l2tp2] IPCP: Close event
[l2tp2] IFACE: Close event
[l2tp3] IPCP: Close event
[l2tp3] IFACE: Close event
[l2tp4] IPCP: Close event
[l2tp4] IFACE: Close event
[l2tp5] IPCP: Close event
[l2tp5] IFACE: Close event
process 6912 terminated
</log>
It seems that mpd wants the peer to authenticate, but nothing seems to
request peer authentication in the following conf :
<mpd.conf>
startup:
# enable TCP-Wrapper (hosts_access(5)) to block unfriendly clients
set global enable tcp-wrapper
# configure the console
set console port 5005
set console ip 127.0.0.1
set console user xxx yyy
set console open
default:
load PPPoE
load l2tp
PPPoE:
new -i ng0 PPPoE PPPoE
set iface addrs 1.1.1.1 2.2.2.2
set iface route default
set iface disable on-demand
set iface idle 0
set bundle disable multilink
set auth authname [EMAIL PROTECTED]
set link no acfcomp protocomp
set link disable pap chap
set link accept pap
set link mtu 1492
set link keep-alive 10 60
set ipcp yes vjcomp
set ipcp ranges 0.0.0.0/0 0.0.0.0/0
set iface up-script /usr/local/etc/mpd4/mpd.linkup
set iface down-script /usr/local/etc/mpd4/mpd.linkdown
open
l2tp:
load l2tp1
load l2tp2
load l2tp3
load l2tp4
load l2tp5
l2tp1:
load l2tp-template
new -i ng1 l2tp1 l2tp1
l2tp2:
load l2tp-template
new -i ng2 l2tp2 l2tp2
l2tp3:
load l2tp-template
new -i ng3 l2tp3 l2tp3
l2tp4:
load l2tp-template
new -i ng4 l2tp4 l2tp4
l2tp5:
load l2tp-template
new -i ng5 l2tp5 l2tp5
l2tp-template:
set iface disable on-demand
set iface enable proxy-arp
set iface idle 0
set iface enable tcpmssfix
set bundle disable multilink
set link yes acfcomp protocomp
set link no pap chap
set link enable chap
set link keep-alive 10 60
set link mtu 1460
set ipcp yes vjcomp
set ipcp ranges 192.168.32.10/32 192.168.32.0/24
set ipcp dns 192.168.32.10
set ipcp nbns 192.168.32.10
</mpd.conf>
<mpd.links>
PPPoE:
set link type pppoe
set pppoe iface dc1
set pppoe disable incoming
set pppoe enable originate
l2tp1:
set link type l2tp
set l2tp self 10.127.0.1
set l2tp enable incoming
set l2tp disable originate
l2tp2:
set link type l2tp
set l2tp self 10.127.0.1
set l2tp enable incoming
set l2tp disable originate
l2tp3:
set link type l2tp
set l2tp self 10.127.0.1
set l2tp enable incoming
set l2tp disable originate
l2tp4:
set link type l2tp
set l2tp self 10.127.0.1
set l2tp enable incoming
set l2tp disable originate
l2tp5:
set link type l2tp
set l2tp self 10.127.0.1
set l2tp enable incoming
set l2tp disable originate
</mpd.links>
<ifconfig -a output>
dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=8<VLAN_MTU>
inet 10.93.0.46 netmask 0xffffff00 broadcast 10.93.0.255
ether 00:80:c8:cd:4f:4d
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
dc1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=8<VLAN_MTU>
ether 00:80:c8:cd:4f:4e
media: Ethernet autoselect (none)
status: active
dc2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
options=8<VLAN_MTU>
ether 00:80:c8:cd:4f:4f
media: Ethernet autoselect (none)
status: no carrier
dc3: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
options=8<VLAN_MTU>
ether 00:80:c8:cd:4f:50
media: Ethernet autoselect (none)
status: no carrier
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
pflog0: flags=0<> mtu 33208
lo1: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet 10.127.0.1 netmask 0xffffff00
</ifconfig -a output>
Any idea, anyone ?
TIA
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mpd-users mailing list
Mpd-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mpd-users
--
__________________________________________________________________________
Archie Cobbs * CTO, Awarix * http://www.awarix.com
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mpd-users mailing list
Mpd-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mpd-users