Project

General

Profile

Actions

Bug #3357

closed

IPv6 on PPPoE default gateway assignment incorrect

Added by Adrien Carlyle almost 11 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Interfaces
Target version:
Start date:
12/06/2013
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.1-IPv6
Affected Architecture:

Description

I started with a forum post here [[http://forum.pfsense.org/index.php/topic,68364.0.html]] with details as well.

There appears to be a change between June 24th RC0 and Release 2.1 that has caused this issue.

I use PPPoE with IPv6. The provider only supports SLAAC for address assignment. Under 2.1 release the default gateway for IPv6 traffic is wrongly assigned to LINK_LOCAL_ADDR%vr1 (my wan interface port). Under RC0 this was assigned as LINK_LOCAL_ADDR%pppoe0.

I have confirmed that manually changing the default route resolves the issues. I'm not able to verify 100% where this is going wrong but cmb said to file a bug report with the data I have. He also noted that this isn't a wide spread use case. I will gladly test or get additional information if needed.

I've collected an ifconfig and netstat -rn listing from both RC0 and 2.1 release that I've noticed issues with.

RC0 ifconfig

[2.1-RC0][]/root(5): ifconfig
vr0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=82808<VLAN_MTU,WOL_UCAST,WOL_MAGIC,LINKSTATE>
ether 00:0d:b9:23:f3:e0
inet 172.16.7.1 netmask 0xffffff00 broadcast 172.16.7.255
inet6 fe80::20d:b9ff:fe23:f3e0%vr0 prefixlen 64 scopeid 0x1
inet6 2607:f2c0:f00e:bf00:20d:b9ff:fe23:f3e0 prefixlen 64
nd6 options=1<PERFORMNUD>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
vr1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8280b<RXCSUM,TXCSUM,VLAN_MTU,WOL_UCAST,WOL_MAGIC,LINKSTATE>
ether 00:0d:b9:23:f3:e1
inet6 fe80::20d:b9ff:fe23:f3e1%vr1 prefixlen 64 scopeid 0x2
nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
vr2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8280b<RXCSUM,TXCSUM,VLAN_MTU,WOL_UCAST,WOL_MAGIC,LINKSTATE>
ether 00:0d:b9:23:f3:e2
media: Ethernet autoselect
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
ether 00:80:48:70:48:9a
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
status: running
enc0: flags=0<> metric 0 mtu 1536
pfsync0: flags=0<> metric 0 mtu 1460
syncpeer: 224.0.0.240 maxupd: 128 syncok: 1
pflog0: flags=100<PROMISC> metric 0 mtu 33192
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=3<RXCSUM,TXCSUM>
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x8
nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
ath0_wlan0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:80:48:70:48:9a
inet6 fe80::280:48ff:fe70:489a%ath0_wlan0 prefixlen 64 scopeid 0x9
nd6 options=1<PERFORMNUD>
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
status: running
ssid Carlyle channel 6 (2437 MHz 11g) bssid 00:80:48:70:48:9a
regdomain FCC country CA indoor ecm authmode WPA2/802.11i
privacy MIXED deftxkey 2 AES-CCM 2:128-bit AES-CCM 3:128-bit
txpower 30 scanvalid 60 pureg protmode OFF wme burst dtimperiod 1 dfs
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 02:b6:c5:cf:9b:00
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
member: ath0_wlan0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 9 priority 128 path cost 370370
member: vr0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 1 priority 128 path cost 55
ovpns2: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1434
options=80000<LINKSTATE>
inet6 fe80::20d:b9ff:fe23:f3e0%ovpns2 prefixlen 64 scopeid 0xc
inet 172.16.8.1 -
> 172.16.8.2 netmask 0xffffffff
nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
Opened by PID 23743
pppoe0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> metric 0 mtu 1492
inet6 2607:f2c0:a000:c:20d:b9ff:fe23:f3e0 prefixlen 64 autoconf
inet6 fe80::20d:b9ff:fe23:f3e0%pppoe0 prefixlen 64 scopeid 0xa
inet 69.165.170.146 --> 206.248.154.103 netmask 0xffffffff
nd6 options=3<PERFORMNUD,ACCEPT_RTADV>

RC0 netstat -rn

[2.1-RC0][]/root(6): netstat -rn
Routing tables

Internet:
Destination Gateway Flags Refs Use Netif Expire
default 206.248.154.103 UGS 0 5222607 pppoe0
69.165.170.146 link#10 UHS 0 0 lo0
127.0.0.1 link#8 UH 0 992 lo0
172.16.7.0/24 link#1 U 0 739738869 vr0
172.16.7.1 link#1 UHS 0 0 lo0
172.16.8.0/24 172.16.8.2 UGS 0 0 ovpns2
172.16.8.1 link#12 UHS 0 0 lo0
172.16.8.2 link#12 UH 0 0 ovpns2
206.248.154.103 link#10 UH 0 88528 pppoe0

Internet6:
Destination Gateway Flags Netif Expire
default fe80::90:1a00:4243:14a8%pppoe0 UGS pppoe0
::1 ::1 UH lo0
2607:f2c0:a000:c:20d:b9ff:fe23:f3e0 link#10 UHS lo0
2607:f2c0:f00e:bf00::/64 link#1 U vr0
2607:f2c0:f00e:bf00:20d:b9ff:fe23:f3e0 link#1 UHS lo0
fe80::%vr0/64 link#1 U vr0
fe80::20d:b9ff:fe23:f3e0%vr0 link#1 UHS lo0
fe80::%vr1/64 link#2 U vr1
fe80::20d:b9ff:fe23:f3e1%vr1 link#2 UHS lo0
fe80::%lo0/64 link#8 U lo0
fe80::1%lo0 link#8 UHS lo0
fe80::%ath0_wlan0/64 link#9 U ath0_wla
fe80::280:48ff:fe70:489a%ath0_wlan0 link#9 UHS lo0
fe80::%pppoe0/64 link#10 U pppoe0
fe80::20d:b9ff:fe23:f3e0%pppoe0 link#10 UHS lo0
fe80::20d:b9ff:fe23:f3e0%ovpns2 link#12 UHS lo0
ff01::%vr0/32 fe80::20d:b9ff:fe23:f3e0%vr0 U vr0
ff01::%vr1/32 fe80::20d:b9ff:fe23:f3e1%vr1 U vr1
ff01::%lo0/32 ::1 U lo0
ff01::%ath0_wlan0/32 fe80::280:48ff:fe70:489a%ath0_wlan0 U ath0_wla
ff01::%pppoe0/32 2607:f2c0:a000:c:20d:b9ff:fe23:f3e0 U pppoe0
ff01::%ovpns2/32 fe80::20d:b9ff:fe23:f3e0%ovpns2 U ovpns2
ff02::%vr0/32 fe80::20d:b9ff:fe23:f3e0%vr0 U vr0
ff02::%vr1/32 fe80::20d:b9ff:fe23:f3e1%vr1 U vr1
ff02::%lo0/32 ::1 U lo0
ff02::%ath0_wlan0/32 fe80::280:48ff:fe70:489a%ath0_wlan0 U ath0_wla
ff02::%pppoe0/32 2607:f2c0:a000:c:20d:b9ff:fe23:f3e0 U pppoe0
ff02::%ovpns2/32 fe80::20d:b9ff:fe23:f3e0%ovpns2 U ovpns2

2.1 ifconfig

vr0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=82808<VLAN_MTU,WOL_UCAST,WOL_MAGIC,LINKSTATE>
ether 00:0d:b9:23:f3:e0
inet 172.16.7.1 netmask 0xffffff00 broadcast 172.16.7.255
inet6 fe80::20d:b9ff:fe23:f3e0%vr0 prefixlen 64 scopeid 0x1
inet6 2607:f2c0:f00e:bf00:20d:b9ff:fe23:f3e0 prefixlen 64
nd6 options=1<PERFORMNUD>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
vr1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8280b<RXCSUM,TXCSUM,VLAN_MTU,WOL_UCAST,WOL_MAGIC,LINKSTATE>
ether 00:0d:b9:23:f3:e1
inet6 fe80::20d:b9ff:fe23:f3e1%vr1 prefixlen 64 scopeid 0x2
nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
vr2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8280b<RXCSUM,TXCSUM,VLAN_MTU,WOL_UCAST,WOL_MAGIC,LINKSTATE>
ether 00:0d:b9:23:f3:e2
media: Ethernet autoselect
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
ether 00:80:48:70:48:9a
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
status: running
enc0: flags=0<> metric 0 mtu 1536
pfsync0: flags=0<> metric 0 mtu 1460
syncpeer: 224.0.0.240 maxupd: 128 syncok: 1
pflog0: flags=100<PROMISC> metric 0 mtu 33192
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=3<RXCSUM,TXCSUM>
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x8
nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
ath0_wlan0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:80:48:70:48:9a
inet6 fe80::280:48ff:fe70:489a%ath0_wlan0 prefixlen 64 scopeid 0x9
nd6 options=1<PERFORMNUD>
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
status: running
ssid Carlyle channel 6 (2437 MHz 11g) bssid 00:80:48:70:48:9a
regdomain FCC country CA indoor ecm authmode WPA2/802.11i
privacy MIXED deftxkey 3 AES-CCM 2:128-bit AES-CCM 3:128-bit
txpower 30 scanvalid 60 pureg protmode OFF wme burst dtimperiod 1 dfs
pppoe0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> metric 0 mtu 1492
inet6 fe80::20d:b9ff:fe23:f3e0%pppoe0 prefixlen 64 scopeid 0xa
inet6 fe80::39b2:4831:9020:935d%pppoe0 prefixlen 64 scopeid 0xa
inet6 2607:f2c0:a000:c:20d:b9ff:fe23:f3e0 prefixlen 64 autoconf
inet 69.165.170.146 -
> 206.248.154.103 netmask 0xffffffff
nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 02:25:f4:d2:c7:00
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
member: ath0_wlan0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 9 priority 128 path cost 370370
member: vr0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 1 priority 128 path cost 55
ovpns2: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1434
options=80000<LINKSTATE>
inet6 fe80::20d:b9ff:fe23:f3e0%ovpns2 prefixlen 64 scopeid 0xc
inet 172.16.8.1 --> 172.16.8.2 netmask 0xffffffff
nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
Opened by PID 91215

2.1 netstat -rn

[2.1-RELEASE][]/root(2): netstat -rn
Routing tables

Internet:
Destination Gateway Flags Refs Use Netif Expire
default 206.248.154.103 UGS 0 4416 pppoe0
69.165.170.146 link#10 UHS 0 0 lo0
127.0.0.1 link#8 UH 0 36 lo0
172.16.7.0/24 link#1 U 0 4442 vr0
172.16.7.1 link#1 UHS 0 0 lo0
172.16.8.0/24 172.16.8.2 UGS 0 0 ovpns2
172.16.8.1 link#12 UHS 0 0 lo0
172.16.8.2 link#12 UH 0 0 ovpns2
206.248.154.103 link#10 UH 0 108 pppoe0

Internet6:
Destination Gateway Flags Netif Expire
default fe80::90:1a00:4243:14a8%vr1 UGS vr1
::1 ::1 UH lo0
2607:f2c0:a000:c:20d:b9ff:fe23:f3e0 link#10 UHS lo0
2607:f2c0:f00e:bf00::/64 link#1 U vr0
2607:f2c0:f00e:bf00:20d:b9ff:fe23:f3e0 link#1 UHS lo0
fe80::%vr0/64 link#1 U vr0
fe80::20d:b9ff:fe23:f3e0%vr0 link#1 UHS lo0
fe80::%vr1/64 link#2 U vr1
fe80::20d:b9ff:fe23:f3e1%vr1 link#2 UHS lo0
fe80::%lo0/64 link#8 U lo0
fe80::1%lo0 link#8 UHS lo0
fe80::%ath0_wlan0/64 link#9 U ath0_wla
fe80::280:48ff:fe70:489a%ath0_wlan0 link#9 UHS lo0
fe80::%pppoe0/64 link#10 U pppoe0
fe80::20d:b9ff:fe23:f3e0%pppoe0 link#10 UHS lo0
fe80::39b2:4831:9020:935d%pppoe0 link#10 UHS lo0
fe80::20d:b9ff:fe23:f3e0%ovpns2 link#12 UHS lo0
ff01::%vr0/32 fe80::20d:b9ff:fe23:f3e0%vr0 U vr0
ff01::%vr1/32 fe80::20d:b9ff:fe23:f3e1%vr1 U vr1
ff01::%lo0/32 ::1 U lo0
ff01::%ath0_wlan0/32 fe80::280:48ff:fe70:489a%ath0_wlan0 U ath0_wla
ff01::%pppoe0/32 fe80::20d:b9ff:fe23:f3e0%pppoe0 U pppoe0
ff01::%ovpns2/32 fe80::20d:b9ff:fe23:f3e0%ovpns2 U ovpns2
ff02::%vr0/32 fe80::20d:b9ff:fe23:f3e0%vr0 U vr0
ff02::%vr1/32 fe80::20d:b9ff:fe23:f3e1%vr1 U vr1
ff02::%lo0/32 ::1 U lo0
ff02::%ath0_wlan0/32 fe80::280:48ff:fe70:489a%ath0_wlan0 U ath0_wla
ff02::%pppoe0/32 fe80::20d:b9ff:fe23:f3e0%pppoe0 U pppoe0
ff02::%ovpns2/32 fe80::20d:b9ff:fe23:f3e0%ovpns2 U ovpns2

Actions

Also available in: Atom PDF