burghardt/easy-wg-quick

discuss: about ndp proxy

Closed this issue · 0 comments

dear friend, I take a look at your script, I see you take a subnet from /64 in client, in this situation, the system will add an route to wghub, eg eth0 take aa:bb:cc:dd:ee:ff:gg:hh:ii/64 wghub client set to aa:bb:cc:dd:ee:ff/112, the route as this:

4: he-ipv6@NONE: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1480 state UNKNOWN qlen 1000
inet6 2001:470:aa:bb::2/64 scope global
valid_lft forever preferred_lft forever

5: wghub: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1420 state UNKNOWN qlen 1000
inet6 2001:470:aa:bb:2::1/112 scope global
valid_lft forever preferred_lft forever
inet6 2001:470:aa:bb:1::1/112 scope global
valid_lft forever preferred_lft forever
root@racknerd-4afe10:~# ip -6 route
::1 dev lo proto kernel metric 256 pref medium
2001:470:aa:bb::1 dev he-ipv6 metric 1024 pref medium
2001:470:aa:bb:1::/112 dev wghub proto kernel metric 256 pref medium
2001:470:aa:bb:2::/112 dev wghub proto kernel metric 256 pref medium
2001:470:aa:bb::/64 dev he-ipv6 proto kernel metric 256 pref medium

is there need to add ndp in uper(outer) eth? he-ipv6 here? I think no, route /112 client from upper internet, they natively route to 2001:470:aa:bb::/64 so package arrived at he-ipv6 interface, and then routed to 2001:470:aa:bb:2::/112 subnet. vice-versa.
in this situation, I delete ndp, everthing is ok. is this a special situation? because of point to point in 2001:470:aa:bb::1(carrier) 2001:470:aa:bb::2(local gateway computer)? and if there exist 2001:470:aa:bb::3/64 computer ,is it possible to route
2001:470:aa:bb:1::/112 subnet without ndp?

I know if both side of upper and downer interface are in the same /64 prefix, we must add ndp in upper interface. and system will add route to specific ipv6 (/128) each side(Openwrt'ndp did it). Does in this subnet situation ,we need ndp? and system will add route to specific ipv6 (/128) each side. thanks!