Ppoe in wan interface not work



  • i use pfsense in this configuration and with this hardware from 1.x version , but now when i try this beta versioni pppoe seems not work.
    Simply i set the same interface wan in pppoe but seems that mpd deamon not work like in 1.2 final. Also i try to setup a a link manually via the same parameters in /var/etc/mpd.conf and /var/etc/mpd.links:

    1.2 final debug:

    pfSense:~#  mpd -d /var/etc/
    Multi-link PPP for FreeBSD, by Archie L. Cobbs.
    Based on iij-ppp, by Toshiharu OHNO.
    mpd: pid 1322, version 3.18 (root@freebsd6.geekgod.com 12:32  6-Jan-2008)
    mpd: fopen(/var/etc//mpd.conf): No such file or directory
    mpd: can't open file "/var/etc//mpd.conf"
    [:] new -i ng0 pppoe pppoe
    [pppoe] ppp node is "mpd1322-pppoe"
    mpd: fopen(/var/etc//mpd.links): No such file or directory
    mpd: can't open file "/var/etc//mpd.links"
    [pppoe] using interface ng0
    [pppoe:pppoe]  set iface route default
    [pppoe:pppoe]  set iface disable on-demand
    [pppoe:pppoe]  set iface idle 0
    [pppoe:pppoe]  set iface up-script /usr/local/sbin/ppp-linkup
    [pppoe:pppoe]  set bundle disable multilink
    [pppoe:pppoe]  set bundle authname "xxx@xxx.xxx.xx"
    [pppoe:pppoe]  set bundle password "xxxxxxx"
    [pppoe:pppoe]  set link keep-alive 10 60
    [pppoe:pppoe]  set link max-redial 0
    [pppoe:pppoe]  set link no acfcomp protocomp
    [pppoe:pppoe]  set link disable pap chap
    [pppoe:pppoe]  set link accept chap
    [pppoe:pppoe]  set link mtu 1492
    [pppoe] this link has no type set
    [pppoe:pppoe]  set ipcp yes vjcomp
    [pppoe:pppoe]  set ipcp ranges 0.0.0.0/0 0.0.0.0/0
    [pppoe] IPCP: peer address cannot be zero
    [pppoe:pppoe]  set ipcp enable req-sec-dns
    [pppoe:pppoe] set link type pppoe
    [pppoe:pppoe]  set pppoe iface rl0
    [pppoe:pppoe]  set pppoe service ""
    [pppoe:pppoe]  set pppoe enable originate
    [pppoe] exec: /sbin/ifconfig rl0 up
    [pppoe:pppoe]  set pppoe disable incoming
    [pppoe:pppoe] open iface
    [pppoe] IFACE: Open event
    [pppoe] IPCP: Open event
    [pppoe] IPCP: state change Initial –> Starting
    [pppoe] IPCP: LayerStart
    [pppoe:pppoe] [pppoe] bundle: OPEN event in state CLOSED
    [pppoe] opening link "pppoe"…
    [pppoe] link: OPEN event
    [pppoe] LCP: Open event
    [pppoe] LCP: state change Initial –> Starting
    [pppoe] LCP: LayerStart
    [pppoe] device: OPEN event in state DOWN
    [pppoe] device is now in state OPENING
    [pppoe] rec'd ACNAME "r-pg086"
    [pppoe] PPPoE connection successful
    [pppoe] device: UP event in state OPENING
    [pppoe] device is now in state UP
    [pppoe] link: UP event
    [pppoe] link: origination is local
    [pppoe] LCP: Up event
    [pppoe] LCP: state change Starting –> Req-Sent
    [pppoe] LCP: phase shift DEAD –> ESTABLISH
    [pppoe] LCP: SendConfigReq #1
    MRU 1492
    MAGICNUM ed0a76b4
    [pppoe] LCP: rec'd Configure Request #179 link 0 (Req-Sent)
    MRU 1492
    AUTHPROTO PAP
    MAGICNUM 694c4d1e
    [pppoe] LCP: SendConfigAck #179
    MRU 1492
    AUTHPROTO PAP
    MAGICNUM 694c4d1e
    [pppoe] LCP: state change Req-Sent –> Ack-Sent
    [pppoe] LCP: rec'd Configure Ack #1 link 0 (Ack-Sent)
    MRU 1492
    MAGICNUM ed0a76b4
    [pppoe] LCP: state change Ack-Sent –> Opened
    [pppoe] LCP: phase shift ESTABLISH –> AUTHENTICATE
    [pppoe] LCP: auth: peer wants PAP, I want nothing
    [pppoe] PAP: using authname "xxx@xxx.xxx.xx"
    [pppoe] PAP: sending REQUEST
    [pppoe] LCP: LayerUp
    [pppoe] PAP: rec'd ACK #1
    [pppoe] LCP: authorization successful
    [pppoe] LCP: phase shift AUTHENTICATE –> NETWORK
    [pppoe] setting interface ng0 MTU to 1492 bytes
    [pppoe] up: 1 link, total bandwidth 64000 bps
    [pppoe] IPCP: Up event
    [pppoe] IPCP: state change Starting –> Req-Sent
    [pppoe] IPCP: SendConfigReq #1
    IPADDR 0.0.0.0
    COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
    SECDNS 0.0.0.0
    [pppoe] IPCP: rec'd Configure Reject #1 link 0 (Req-Sent)
    COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
    SECDNS 0.0.0.0
    [pppoe] IPCP: SendConfigReq #2
    IPADDR 0.0.0.0
    [pppoe] IPCP: rec'd Configure Nak #2 link 0 (Req-Sent)
    IPADDR 80.183.228.24
      80.183.228.24 is OK
    [pppoe] IPCP: SendConfigReq #3
    IPADDR 80.183.228.24
    [pppoe] IPCP: rec'd Configure Request #234 link 0 (Req-Sent)
    IPADDR 192.168.100.1
      192.168.100.1 is OK
    [pppoe] IPCP: SendConfigAck #234
    IPADDR 192.168.100.1
    [pppoe] IPCP: state change Req-Sent –> Ack-Sent
    [pppoe] IPCP: rec'd Configure Ack #3 link 0 (Ack-Sent)
    IPADDR 80.183.228.24
    [pppoe] IPCP: state change Ack-Sent –> Opened
    [pppoe] IPCP: LayerUp
      80.183.228.24 -> 192.168.100.1
    [pppoe] IFACE: Up event
    [pppoe] setting interface ng0 MTU to 1492 bytes
    [pppoe] exec: /sbin/ifconfig ng0 80.183.228.24 192.168.100.1 netmask 0xffffffff -link0
    [pppoe] exec: /sbin/route add 80.183.228.24 -iface lo0
    [pppoe] exec: /sbin/route add 0.0.0.0 192.168.100.1
    [pppoe] exec: /usr/local/sbin/ppp-linkup ng0 inet 80.183.228.24 192.168.100.1 xxx@xxx.xxx.xx
    [pppoe] IFACE: Up event
    [pppoe] rec'd unexpected protocol IP on link 0

    so it works…

    now with 1.2.1-rc1 130908 iso:

    Multi-link PPP for FreeBSD, by Archie L. Cobbs.
    Based on iij-ppp, by Toshiharu OHNO.
    mpd: pid 5454, version 3.18 (root@freebsd7-releng_1_2.geekgod.com 19:41  9-Sep-2008)
    [pppoe] exec: /sbin/ifconfig rl0 up
            set iface route default
            set iface disable on-demand
            set iface idle 0
    [pppoe] using interface ng0
    [pppoe:pppoe] [pppoe:pppoe] [pppoe:pppoe] [pppoe:pppoe]        set iface up-script /usr/local/sbin/ppp-linkup
    [pppoe:pppoe]  set bundle disable multilink
    [pppoe:pppoe]  set bundle authname "xxx@xxx.xxx.xx"
    [pppoe:pppoe]  set bundle password "xxxxxxx"
    [pppoe:pppoe]  set link keep-alive 10 60
    [pppoe:pppoe]  set link max-redial 0
    [pppoe:pppoe]  set link no acfcomp protocomp
    [pppoe:pppoe]  set link disable pap chap
    [pppoe:pppoe]  set link accept chap
    [pppoe:pppoe]  set link mtu 1492
    [pppoe:pppoe]  set ipcp yes vjcomp
    [pppoe:pppoe]  set ipcp ranges 0.0.0.0/0 0.0.0.0/0
    [pppoe] IPCP: peer address cannot be zero
    [pppoe:pppoe]  set ipcp enable req-sec-dns
    [pppoe:pppoe] set link type pppoe
    [pppoe] device type already set to pppoe
    [pppoe:pppoe]  set pppoe iface rl0
    [pppoe:pppoe]  set pppoe service ""
    [pppoe:pppoe]  set pppoe enable originate
    [pppoe:pppoe]  set pppoe disable incoming
    [pppoe:pppoe] open iface
    [pppoe] IFACE: Open event
    [pppoe] IPCP: Open event
    [pppoe] IPCP: state change Initial –> Starting
    [pppoe] IPCP: LayerStart
    [pppoe:pppoe] [pppoe] bundle: OPEN event in state CLOSED
    [pppoe] opening link "pppoe"…
    [pppoe] link: OPEN event
    [pppoe] LCP: Open event
    [pppoe] LCP: state change Initial –> Starting
    [pppoe] LCP: LayerStart
    [pppoe] device: OPEN event in state DOWN
    [pppoe] device is now in state OPENING
    [pppoe] PPPoE connection timeout after 9 seconds
    [pppoe] device: DOWN event in state OPENING
    [pppoe] device is now in state DOWN
    [pppoe] link: DOWN event
    [pppoe] LCP: Down event
    [pppoe] device: OPEN event in state DOWN
    [pppoe] pausing 4 seconds before open
    [pppoe] device is now in state DOWN
    [pppoe] device: OPEN event in state DOWN
    [pppoe] pausing 1 seconds before open
    [pppoe] device is now in state DOWN
    [pppoe] device: OPEN event in state DOWN
    [pppoe] device is now in state OPENING
    [pppoe] rec'd ACNAME "r-pg086"
    [pppoe] PPPoE connection successful
    [pppoe] device: UP event in state OPENING
    [pppoe] device is now in state UP
    [pppoe] link: UP event
    [pppoe] link: origination is local
    [pppoe] LCP: Up event
    [pppoe] LCP: state change Starting –> Req-Sent
    [pppoe] LCP: phase shift DEAD –> ESTABLISH
    [pppoe] LCP: SendConfigReq #1
    MRU 1492
    MAGICNUM ed0e44a0
    [pppoe] LCP: rec'd Configure Request #250 link 0 (Req-Sent)
    MRU 1492
    AUTHPROTO PAP
    MAGICNUM 34f997ec
    [pppoe] LCP: SendConfigAck #250
    MRU 1492
    AUTHPROTO PAP
    MAGICNUM 34f997ec
    [pppoe] LCP: state change Req-Sent –> Ack-Sent
    [pppoe] LCP: rec'd Configure Ack #1 link 0 (Ack-Sent)
    MRU 1492
    MAGICNUM ed0e44a0
    [pppoe] LCP: state change Ack-Sent –> Opened
    [pppoe] LCP: phase shift ESTABLISH –> AUTHENTICATE
    [pppoe] LCP: auth: peer wants PAP, I want nothing
    [pppoe] PAP: using authname "xxx@xxx.xxx.xx"
    [pppoe] PAP: sending REQUEST
    [pppoe] LCP: LayerUp
    [pppoe] PAP: rec'd ACK #1
    [pppoe] LCP: authorization successful
    [pppoe] LCP: phase shift AUTHENTICATE –> NETWORK
    [pppoe] setting interface ng0 MTU to 1492 bytes
    [pppoe] up: 1 link, total bandwidth 64000 bps
    [pppoe] IPCP: Up event
    [pppoe] IPCP: state change Starting –> Req-Sent
    [pppoe] IPCP: SendConfigReq #1
    IPADDR 0.0.0.0
    COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
    SECDNS 0.0.0.0
    [pppoe] error writing len 26 frame to bypass: Network is down
    [pppoe] IPCP: rec'd Configure Request #212 link 0 (Req-Sent)
    IPADDR 192.168.100.1
      192.168.100.1 is OK
    [pppoe] IPCP: SendConfigAck #212
    IPADDR 192.168.100.1
    [pppoe] IPCP: state change Req-Sent –> Ack-Sent
    [pppoe] IPCP: SendConfigReq #2
    IPADDR 0.0.0.0
    COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
    SECDNS 0.0.0.0
    [pppoe] IPCP: rec'd Configure Reject #2 link 0 (Ack-Sent)
    COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
    SECDNS 0.0.0.0
    [pppoe] IPCP: SendConfigReq #3
    IPADDR 0.0.0.0
    [pppoe] IPCP: rec'd Configure Nak #3 link 0 (Ack-Sent)
    IPADDR 80.183.228.24
      80.183.228.24 is OK
    [pppoe] IPCP: SendConfigReq #4
    [pppoe] IPCP: rec'd Configure Ack #4 link 0 (Ack-Sent)
    [pppoe] IPCP: state change Ack-Sent –> Opened
    [pppoe] IPCP: LayerUp
      80.183.228.24 -> 192.168.100.1
    [pppoe] IFACE: Up event
    [pppoe] setting interface ng0 MTU to 1492 bytes
    [pppoe] exec: /sbin/ifconfig ng0 80.183.228.24 192.168.100.1 netmask 0xffffffff -link0
    [pppoe] exec: /sbin/route add 80.183.228.24 -iface lo0
    [pppoe] exec: /sbin/route add 0.0.0.0 192.168.100.1
    [pppoe] exec: /usr/local/sbin/ppp-linkup ng0 inet 80.183.228.24 192.168.100.1 xxx@xxx.xxx.xx 
    [pppoe] IFACE: Up event
    [pppoe] IPCP: rec'd Terminate Request #213 link 0 (Opened)
    [pppoe] IPCP: state change Opened –> Stopping
    [pppoe] IPCP: SendTerminateAck #5
    [pppoe] IPCP: LayerDown
    [pppoe] IFACE: Down event
    [pppoe] exec: /sbin/route delete 0.0.0.0 192.168.100.1
    [pppoe] exec: /sbin/route delete 80.183.228.24 -iface lo0
    [pppoe] exec: /sbin/ifconfig ng0 down delete -link0
    [pppoe] IPCP: state change Stopping –> Stopped
    [pppoe] IPCP: LayerFinish
    [pppoe] bundle: CLOSE event in state OPENED
    [pppoe] closing link "pppoe"…
    [pppoe] link: CLOSE event
    [pppoe] LCP: Close event
    [pppoe] LCP: state change Opened –> Closing
    [pppoe] LCP: phase shift NETWORK –> TERMINATE
    [pppoe] setting interface ng0 MTU to 1500 bytes
    [pppoe] up: 0 links, total bandwidth 9600 bps
    [pppoe] IPCP: Down event
    [pppoe] IPCP: state change Stopped –> Starting
    [pppoe] IPCP: LayerStart
    [pppoe] closing link "pppoe"…
    [pppoe] LCP: SendTerminateReq #2
    [pppoe] LCP: LayerDown

    i don't know why after mpd connect succesfully, disconnect with IPCP: rec'd Terminate Request #213 link 0 (Opened), but is sure an anomly in mpd functionality.
    Any kind of idea?
    thanks



  • There's someone with ppoe in wan that work on 1.2.1?
    I still have the problem only with this version.



  • works for me ever since i started using pfsense.



  • works for me, too



  • Any chance someone could give you a clue why the other end decided to send a "Terminate" request? Perhaps there is something in a log file at the other end.



  • i cannot have any kind of info for the other end because is a wan connected to an adsl that autenticate via ppoe.. i really don't and can't know the really big italian provider what kind of dslam use and what kind of autentication method use in backend (radius? ldap?) and log of this.
    If someone knows what can i try via mpd directly via command line to debug this ….



  • Can you try even with 1.3-ALPHA-ALPHA and see if you have the same result.
    No need to install it just run it from CD.



  • sorry for the delay
    yes 1.3 alpha works as 1.2 final.
    It seems that mpd deamon is 4.4 instead of 3.18 of 1.2.1.beta, but 3.18 is the version also in 1.2 final so i really don't know if is the real problem (a compilation parameter or someting that in 1.2 is default and 1.2.1 not more..).
    I paste the log:

    mpd: Multi-link PPP daemon for FreeBSD
    Sep 19 18:15:58 mpd:
    Sep 19 18:15:58 mpd: process 83413 started, version 4.4 (root@builder7.bgn.pfsense.org 23:29 15-Sep-2008)
    Sep 19 18:15:58 mpd: PPPoE: rec'd ACNAME "r-pg086"
    Sep 19 18:15:58 mpd: MRU 1492
    Sep 19 18:15:58 mpd: MAGICNUM 61e7d2b7
    Sep 19 18:15:58 mpd: MRU 1492
    Sep 19 18:15:58 mpd: AUTHPROTO PAP
    Sep 19 18:15:58 mpd: MAGICNUM 07f83b32
    Sep 19 18:15:58 mpd: MRU 1492
    Sep 19 18:15:58 mpd: AUTHPROTO PAP
    Sep 19 18:15:58 mpd: MAGICNUM 07f83b32
    Sep 19 18:15:58 mpd: MRU 1492
    Sep 19 18:15:58 mpd: MAGICNUM 61e7d2b7
    Sep 19 18:15:58 mpd: IPADDR 0.0.0.0
    Sep 19 18:15:58 mpd: COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
    Sep 19 18:15:58 mpd: PRIDNS 0.0.0.0
    Sep 19 18:15:58 mpd: SECDNS 0.0.0.0
    Sep 19 18:15:58 mpd: COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
    Sep 19 18:15:58 mpd: PRIDNS 0.0.0.0
    Sep 19 18:15:58 mpd: SECDNS 0.0.0.0
    Sep 19 18:15:58 mpd: IPADDR 0.0.0.0
    Sep 19 18:15:58 mpd: IPADDR 79.34.32.250
    Sep 19 18:15:58 mpd: 79.34.32.250 is OK
    Sep 19 18:15:58 mpd: IPADDR 79.34.32.250
    Sep 19 18:15:58 mpd: IPADDR 79.34.32.250
    Sep 19 18:15:58 mpd: IPADDR 192.168.100.1
    Sep 19 18:15:58 mpd: 192.168.100.1 is OK
    Sep 19 18:15:58 mpd: IPADDR 192.168.100.1
    Sep 19 18:15:58 mpd: 79.34.32.250 -> 192.168.100.1

    if can be useful, how can i install development tools in 1.2.1 to try to compile mpd 4.4 or 5.x from a freebsd port and retry?
    Thank you



  • Its not that easy. But the easiest way is to compare the configs produced in 1.2 and 1.2.1 if there is any difference



  • Comparing mpd.conf and links.conf there is a line more in 1.2.1 (sometings about retry) but i try also manually inserting in shell 1.2 configuration with the log in the past posts (is one of the first thing i try and i compare…) without success.
    Thank you


Locked