Date: Tue, 12 Dec 2006 12:27:46 +0300 From: Alexei <root@sovetnik.org> To: freebsd-net@freebsd.org Subject: mpd pppoe client problems Message-ID: <166800308.20061212122746@sovetnik.org>
next in thread | raw e-mail | index | archive | help
Hello world. My provider give me access to the net via pppoe, so I decided to use mpd as a client. I've compiled into the kernel some netgraph modules, edited a little default mpd config and started it via rc.d. Everything looked ok, connection established, but no packets walked throw interface. When I tried to stop mpd, it didn't. It looked like 'Waiting for pids: 1234, 1234, 1234, 1234' ets.. So I had to use kill -9 and ngctl shutdown to stop mpd. What should I do to make mpd work fine? Some logs and configs below: (I've corre #mpd.log Dec 11 22:55:05 sys mpd: mpd: pid 4959, version 3.18 (root@sys.42-club.ru 22:53 11-Dec-2006) Dec 11 22:55:05 sys mpd: [PPPoE] ppp node is "mpd4959-PPPoE" Dec 11 22:55:05 sys mpd: [PPPoE] exec: /sbin/ifconfig fxp1 up Dec 11 22:55:05 sys mpd: [PPPoE] using interface ng0 Dec 11 22:55:05 sys mpd: [PPPoE] the max MTU on type "pppoe" links is 1492 Dec 11 22:55:05 sys mpd: [PPPoE] IPCP: peer address cannot be zero Dec 11 22:55:05 sys mpd: [PPPoE] IFACE: Open event Dec 11 22:55:05 sys mpd: [PPPoE] IPCP: Open event Dec 11 22:55:05 sys mpd: [PPPoE] IPCP: state change Initial --> Starting Dec 11 22:55:05 sys mpd: [PPPoE] IPCP: LayerStart Dec 11 22:55:05 sys mpd: [PPPoE] bundle: OPEN event in state CLOSED Dec 11 22:55:05 sys mpd: [PPPoE] opening link "PPPoE"... Dec 11 22:55:05 sys mpd: [PPPoE] link: OPEN event Dec 11 22:55:05 sys mpd: [PPPoE] LCP: Open event Dec 11 22:55:05 sys mpd: [PPPoE] LCP: state change Initial --> Starting Dec 11 22:55:05 sys mpd: [PPPoE] LCP: LayerStart Dec 11 22:55:05 sys mpd: [PPPoE] device: OPEN event in state DOWN Dec 11 22:55:05 sys mpd: [PPPoE] device is now in state OPENING Dec 11 22:55:05 sys mpd: [PPPoE] rec'd ACNAME "auth" Dec 11 22:55:05 sys mpd: [PPPoE] PPPoE connection successful Dec 11 22:55:05 sys mpd: [PPPoE] device: UP event in state OPENING Dec 11 22:55:05 sys mpd: [PPPoE] device is now in state UP Dec 11 22:55:05 sys mpd: [PPPoE] link: UP event Dec 11 22:55:05 sys mpd: [PPPoE] link: origination is local Dec 11 22:55:05 sys mpd: [PPPoE] LCP: Up event Dec 11 22:55:05 sys mpd: [PPPoE] LCP: state change Starting --> Req-Sent Dec 11 22:55:05 sys mpd: [PPPoE] LCP: phase shift DEAD --> ESTABLISH Dec 11 22:55:05 sys mpd: [PPPoE] LCP: SendConfigReq #1 Dec 11 22:55:05 sys mpd: MRU 1492 Dec 11 22:55:05 sys mpd: MAGICNUM 5664c401 Dec 11 22:55:05 sys mpd: [PPPoE] LCP: rec'd Configure Request #1 link 0 (Req-Sent) Dec 11 22:55:05 sys mpd: AUTHPROTO CHAP MD5 Dec 11 22:55:05 sys mpd: MAGICNUM d409f15d Dec 11 22:55:05 sys mpd: [PPPoE] LCP: SendConfigAck #1 Dec 11 22:55:05 sys mpd: AUTHPROTO CHAP MD5 Dec 11 22:55:05 sys mpd: MAGICNUM d409f15d Dec 11 22:55:05 sys mpd: [PPPoE] LCP: state change Req-Sent --> Ack-Sent Dec 11 22:55:07 sys mpd: [PPPoE] LCP: SendConfigReq #2 Dec 11 22:55:07 sys mpd: MRU 1492 Dec 11 22:55:07 sys mpd: MAGICNUM 5664c401 Dec 11 22:55:07 sys mpd: [PPPoE] LCP: rec'd Configure Ack #2 link 0 (Ack-Sent) Dec 11 22:55:07 sys mpd: MRU 1492 Dec 11 22:55:07 sys mpd: MAGICNUM 5664c401 Dec 11 22:55:07 sys mpd: [PPPoE] LCP: state change Ack-Sent --> Opened Dec 11 22:55:07 sys mpd: [PPPoE] LCP: phase shift ESTABLISH --> AUTHENTICATE Dec 11 22:55:07 sys mpd: [PPPoE] LCP: auth: peer wants CHAP, I want nothing Dec 11 22:55:07 sys mpd: [PPPoE] LCP: LayerUp Dec 11 22:55:07 sys mpd: [PPPoE] CHAP: rec'd CHALLENGE #167 Dec 11 22:55:07 sys mpd: Name: "auth4" Dec 11 22:55:07 sys mpd: Using authname "my-correct-login" Dec 11 22:55:07 sys mpd: [PPPoE] CHAP: sending RESPONSE Dec 11 22:55:07 sys mpd: [PPPoE] CHAP: rec'd SUCCESS #167 Dec 11 22:55:07 sys mpd: MESG: Access granted Dec 11 22:55:07 sys mpd: [PPPoE] LCP: authorization successful Dec 11 22:55:07 sys mpd: [PPPoE] LCP: phase shift AUTHENTICATE --> NETWORK Dec 11 22:55:07 sys mpd: [PPPoE] setting interface ng0 MTU to 1492 bytes Dec 11 22:55:07 sys mpd: [PPPoE] up: 1 link, total bandwidth 64000 bps Dec 11 22:55:07 sys mpd: [PPPoE] IPCP: Up event Dec 11 22:55:07 sys mpd: [PPPoE] IPCP: state change Starting --> Req-Sent Dec 11 22:55:07 sys mpd: [PPPoE] IPCP: SendConfigReq #1 Dec 11 22:55:07 sys mpd: IPADDR 0.0.0.0 Dec 11 22:55:07 sys mpd: COMPPROTO VJCOMP, 16 comp. channels, no comp-cid Dec 11 22:55:07 sys mpd: [PPPoE] IPCP: rec'd Configure Request #1 link 0 (Req-Sent) Dec 11 22:55:07 sys mpd: IPADDR 81.88.208.255 Dec 11 22:55:07 sys mpd: 81.88.208.255 is OK Dec 11 22:55:07 sys mpd: [PPPoE] IPCP: SendConfigAck #1 Dec 11 22:55:07 sys mpd: IPADDR 81.88.208.255 Dec 11 22:55:07 sys mpd: [PPPoE] IPCP: state change Req-Sent --> Ack-Sent Dec 11 22:55:07 sys mpd: [PPPoE] IPCP: rec'd Configure Reject #1 link 0 (Ack-Sent) Dec 11 22:55:07 sys mpd: COMPPROTO VJCOMP, 16 comp. channels, no comp-cid Dec 11 22:55:07 sys mpd: [PPPoE] IPCP: SendConfigReq #2 Dec 11 22:55:07 sys mpd: IPADDR 0.0.0.0 Dec 11 22:55:07 sys mpd: [PPPoE] IPCP: rec'd Configure Nak #2 link 0 (Ack-Sent) Dec 11 22:55:07 sys mpd: IPADDR 81.88.209.42 Dec 11 22:55:07 sys mpd: 81.88.209.42 is OK Dec 11 22:55:07 sys mpd: [PPPoE] IPCP: SendConfigReq #3 Dec 11 22:55:07 sys mpd: IPADDR 81.88.209.42 Dec 11 22:55:07 sys mpd: [PPPoE] IPCP: rec'd Configure Ack #3 link 0 (Ack-Sent) Dec 11 22:55:07 sys mpd: IPADDR 81.88.209.42 Dec 11 22:55:07 sys mpd: [PPPoE] IPCP: state change Ack-Sent --> Opened Dec 11 22:55:07 sys mpd: [PPPoE] IPCP: LayerUp Dec 11 22:55:07 sys mpd: 81.88.209.42 -> 81.88.208.255 Dec 11 22:55:07 sys mpd: [PPPoE] IFACE: Up event Dec 11 22:55:07 sys mpd: [PPPoE] setting interface ng0 MTU to 1492 bytes Dec 11 22:55:07 sys mpd: [PPPoE] exec: /sbin/ifconfig ng0 81.88.209.42 81.88.208.255 netmask 0xffffffff -link0 Dec 11 22:55:07 sys mpd: [PPPoE] exec: /sbin/route add 81.88.209.42 -iface lo0 Dec 11 22:55:07 sys mpd: [PPPoE] exec: /sbin/route add 0.0.0.0 81.88.208.255 Dec 11 22:55:07 sys mpd: [PPPoE] exec: /usr/local/etc/mpd/inet-up.sh ng0 inet 81.88.209.42 81.88.208.255 mylogin # mpd.conf default: load maryno maryno: new -i ng0 PPPoE PPPoE set iface route default set iface up-script "/usr/local/etc/mpd/inet-up.sh" set iface disable on-demand set iface idle 0 set bundle disable multilink set bundle authname my-corrext-login set bundle password my-cool-pass set link no acfcomp protocomp set link disable pap chap set link accept chap set link mtu 1498 set link keep-alive 10 60 set ipcp yes vjcomp set ipcp ranges 0.0.0.0/0 0.0.0.0/0 open #mpd.links PPPoE: set link type pppoe set pppoe iface fxp1 set pppoe service "" set pppoe disable incoming set pppoe enable originate #kernel device smbus options NETGRAPH options NETGRAPH_ASYNC options NETGRAPH_BPF options NETGRAPH_CISCO options NETGRAPH_ECHO options NETGRAPH_ETHER options NETGRAPH_FRAME_RELAY options NETGRAPH_HOLE options NETGRAPH_IFACE options NETGRAPH_KSOCKET options NETGRAPH_L2TP options NETGRAPH_LMI options NETGRAPH_MPPC_ENCRYPTION options NETGRAPH_ONE2MANY options NETGRAPH_PPP options NETGRAPH_PPPOE options NETGRAPH_PPTPGRE options NETGRAPH_RFC1490 options NETGRAPH_SOCKET options NETGRAPH_TEE options NETGRAPH_TTY options NETGRAPH_UI options DEVICE_POLLING options DUMMYNET options HZ=1000 options IPFILTER options IPFILTER_LOG options IPFIREWALL options IPFIREWALL_FORWARD_EXTENDED options IPFIREWALL_VERBOSE options IPFIREWALL_VERBOSE_LIMIT=100 options IPSEC options IPSEC_ESP options MAXFILES=65000 options MAXUSERS=512 options MROUTING options NETGRAPH options NETGRAPH_BPF options NETGRAPH_ETHER options NETGRAPH_IFACE options NETGRAPH_PPP options NETGRAPH_PPPOE options NETGRAPH_SOCKET options NETGRAPH_VJC options NMBCLUSTERS=65536 options PIM options TCP_DROP_SYNFIN -- Grats, Alexei mailto:root@sovetnik.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?166800308.20061212122746>