[RP-PPPoE] rp-pppoe-server + IPv6

Blackhold blackholdmailer at gmail.com
Wed Nov 26 09:36:09 EST 2014


Hi,
Once PPPoE server is working taking values from an external radius I'm
trying to get work IPv6 on client.

This is the config of radius for my client

mysql> select * from radreply where username='laura.mora';
+----+------------+-----------------------+----+--------------------------+
| id | username   | attribute             | op | value                    |
+----+------------+-----------------------+----+--------------------------+
| 67 | laura.mora | Framed-IPv6-Prefix    | := | 2a00:1508:6001:dead::/64 |
| 66 | laura.mora | Framed-Route          | := | 0.0.0.0/0 192.168.69.1 1 |
| 60 | laura.mora | Framed-IP-Address     | := | 5.10.205.189             |
| 62 | laura.mora | Port-Limit            | := | 1                        |
| 63 | laura.mora | Service-Type          | := | Framed-User              |
| 64 | laura.mora | Acct-Interim-Interval | := | 60                       |
| 65 | laura.mora | Framed-Compression    | := | Van-Jacobsen-TCP-IP      |
+----+------------+-----------------------+----+--------------------------+

Then I added IPv6 to dictionary on radiusclient

#
#       RFC3162 IPv6 attributes
#
ATTRIBUTE       NAS-IPv6-Address        95      string
ATTRIBUTE       Framed-Interface-Id     96      string
ATTRIBUTE       Framed-IPv6-Prefix      97      string
ATTRIBUTE       Login-IPv6-Host         98      string
ATTRIBUTE       Framed-IPv6-Route       99      string
ATTRIBUTE       Framed-IPv6-Pool        100     string

I was not able to locate wich is the value of the 85 id.

In logs I found that:

Plugin radius.so loaded.
RADIUS plugin initialized.
Plugin radattr.so loaded.
RADATTR plugin initialized.
Plugin radius.so loaded.
RADIUS plugin initialized.
Plugin radattr.so loaded.
RADATTR plugin initialized.
Plugin rp-pppoe.so loaded.
Connected to 02:b2:33:0e:7b:7d via interface zeoip0
using channel 7
Using interface ppp0
Connect: ppp0 <--> zeoip0
sent [LCP ConfReq id=0x1 <mru 1492> <auth chap MD5> <magic 0x194ec2f4>]
rcvd [LCP ConfReq id=0x18 <mru 1492> <magic 0xeb70d5>]
sent [LCP ConfAck id=0x18 <mru 1492> <magic 0xeb70d5>]
rcvd [LCP ConfAck id=0x1 <mru 1492> <auth chap MD5> <magic 0x194ec2f4>]
sent [LCP EchoReq id=0x0 magic=0x194ec2f4]
sent [CHAP Challenge id=0x23 <b6f13811c67328c3271b2de9628c6408175ba4>,
name = "epsilon-ppp.<d>"]
rcvd [LCP EchoRep id=0x0 magic=0xeb70d5]
rcvd [CHAP Response id=0x23 <123294847f6bba3499e2dedd12958f5d>, name =
"laura.mora"]
rc_get_ipaddr: couldn't resolve hostname: epsilon-ppp.<d>
rc_own_ipaddress: couldn't get own IP address
rc_avpair_gen: received unknown attribute 85 of length 4: 0x0000003C
RADATTR plugin wrote 7 line(s) to file /var/run/radattr.ppp0.
sent [CHAP Success id=0x23 ""]
peer from calling number 02:B2:33:0E:7B:7D authorized
sent [IPCP ConfReq id=0x1 <addr 192.168.69.1>]
rcvd [IPV6CP ConfReq id=0xb <addr fe80::0000:0000:0000:0011>]
Unsupported protocol 'IPv6 Control Protocol' (0x8057) received
sent [LCP ProtRej id=0x2 80 57 01 0b 00 0e 01 0a 00 00 00 00 00 00 00 11]
rcvd [IPCP ConfReq id=0x15 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPCP ConfNak id=0x15 <addr 5.10.205.189> <ms-dns1 10.139.39.66>
<ms-dns2 8.8.8.8>]
rcvd [proto=0x8281] 01 0b 00 04
Unsupported protocol 'MPLSCP' (0x8281) received
sent [LCP ProtRej id=0x3 82 81 01 0b 00 04]
rcvd [IPCP ConfAck id=0x1 <addr 192.168.69.1>]
rcvd [IPCP ConfReq id=0x16 <addr 5.10.205.189> <ms-dns1 10.139.39.66>
<ms-dns2 8.8.8.8>]
sent [IPCP ConfAck id=0x16 <addr 5.10.205.189> <ms-dns1 10.139.39.66>
<ms-dns2 8.8.8.8>]
found interface eth1 for proxy arp
local  IP address 192.168.69.1
remote IP address 5.10.205.189
rc_get_ipaddr: couldn't resolve hostname: epsilon-ppp.<d>
rc_own_ipaddress: couldn't get own IP address
rc_get_ipaddr: couldn't resolve hostname: epsilon-ppp.<d>
rc_own_ipaddress: couldn't get own IP address
Script /etc/ppp/ip-up started (pid 3411)
Script /etc/ppp/ip-up finished (pid 3411), status = 0x0
sent [LCP EchoReq id=0x1 magic=0x194ec2f4]
rcvd [LCP EchoRep id=0x1 magic=0xeb70d5]
sent [LCP EchoReq id=0x2 magic=0x194ec2f4]
rcvd [LCP EchoRep id=0x2 magic=0xeb70d5]




The line that I'm mentioning is:
Unsupported protocol 'IPv6 Control Protocol' (0x8057) received

and
rc_avpair_gen: received unknown attribute 85 of length 4: 0x0000003C

also I found various lines that I don't really know what means:
rc_own_ipaddress: couldn't get own IP address
sent [LCP EchoReq id=0x1 magic=0x194ec2f4]
rcvd [LCP EchoRep id=0x1 magic=0xeb70d5]


IPv4 is working and client is getting correct IPv4.

On the PPPoE server I have an IPv6 and the global IPv6 prefix from the
router is forwarded to PPPoE server global IP.
Server is able to ping to internet using his global IP.

Thanks you much!

- Blackhold
http://blackhold.nusepas.com
@blackhold_
~> cal lluitar contra el fort per deixar de ser febles, i contra
nosaltres mateixos quan siguem forts (Esquirols)


More information about the RP-PPPoE mailing list