On Sun, Feb 22, 2015 at 12:17 AM, Steven Barth <[email protected]> wrote:
>
> On 22.02.2015 02:03, Dave Taht wrote:
>>
>> On Sat, Feb 21, 2015 at 3:51 PM, Ted Lemon <[email protected]> wrote:
>>>
>>> Is there an hncpd howto somewhere?
>>>
> Please see http://www.homewrt.org/doku.php?id=run-conf
> It is still up-to-date. The webinterface these days has some support for
> HNCP
> configuration as well. Just make sure to not use the names "lan" oder "wan"
> for any hnet.
>
> In the end its just as easy as installing the hnet-full package and adding a
> config section
> config interface homenet1
> option ifname eth1
> option proto hncp
>
> for each of your interfaces.
>
>> I am not sure if the howto is entirely up to date - for example I hope
>> they switched to using the standard openwrt ip6assign instead ip6_plen
>> in the /etc/config/network file.
>
> Not yet.
It is only a sed script away.
>> As for my relay issue in the previous mail, I think the sanest/fastest
>> thing for me (as opposed to the hnetd folk) to do is write a generic
>> udp relay program for ipv6, (there are many for ipv4, none I have yet
>> found decrement the TTL. Sigh), rather than try to understand the
>> codebase.
>
> As noted before option disable_pa 1 in the relevant interface config-section
> should actually just disable assigning prefixes to that interface.
> Alternatively as noted you can just change the prefix length to /80 or so.
> At some point we added support for assigning only a /128 to lo but I haven't
> actually tested it in a while and I don't think its in our unittests.
OK, I think. So if I have a stanza like this?
config interface 'lan'
option ifname 'eth0.1'
option force_link '1'
option proto 'static'
option ipaddr '172.21.80.1'
option netmask '255.255.255.0'
option ip6assign '64'
config interface 'homenet1'
option ifname 'eth0.1'
option proto ´hnet'
option disable_pa 1
that interface would act as a relay, and not assign a /64 to the lan interface?
I note the last time I tried to install hnet-full it bricked the
router, killing dnsmasq entirely, killing dhcp, etc, so I was leery of
experimenting again... but I am willing to try again, being a glutton
for pain at 1AM.
moving on to more complexity, so getting that first 64 would look like?
config interface 'lan'
option ifname 'eth0.1'
option force_link '1'
option proto 'static'
option ipaddr '172.21.80.1'
option netmask '255.255.255.0'
config interface 'homenet1'
option ifname 'eth0.1'
option proto 'hnet'
option disable_pa 0
option p6_plen 64
?
Then getting a dynamic ipv4?
Moving into more functionality, I see the documentation recommends
against using the hnet protocol on predefined interfaces like lan
entirely... if I wanted ipv4 address assignment (and I dont - without
dns to ip mapping actually working finding a box again is impossible),
what happens to these two stanzas?
How does the firewall pick it all up?
And then, there is the final caution to the winds, go pure hnetd
option. This is my freshly built, openwrt chaos calmer based config
file. It is an interior gw router (no nat):
http://snapon.lab.bufferbloat.net/~d/network
What changes are needed to drink the koolaid?
my ip route source specific stuff is working good (actual egress
gateway is like 5 hops away)
default from :: via fe80::28c6:8eff:febb:9ff0 dev eth1 proto babel metric 1024
default from 2001:558:6045:e9:251a:738a:ac86:eaf6 via
fe80::28c6:8eff:febb:9ff0 dev eth1 proto babel metric 1024
default from 2601:9:4e00:4cb0::/60 via fe80::28c6:8eff:febb:9ff0 dev
eth1 proto babel metric 1024
2601:9:4e00:4cb1::/64 via fe80::28c6:8eff:febb:9ff0 dev eth1 proto
babel metric 1024
2601:9:4e00:4cb2::/64 via fe80::28c6:8eff:febb:9ff0 dev eth1 proto
babel metric 1024
2601:9:4e00:4cb3::/64 via fe80::28c6:8eff:febb:9ff0 dev eth1 proto
babel metric 1024
2601:9:4e00:4cb4::/64 via fe80::28c6:8eff:febb:9ff0 dev eth1 proto
babel metric 1024
2601:9:4e00:4cb7::2 via fe80::eea8:6bff:fefe:9a2 dev eth0.1 proto
babel metric 1024 # manually assigned ip on my desktop
2601:9:4e00:4cb0::/60 via fe80::28c6:8eff:febb:9ff0 dev eth1 proto
babel metric 1024
>
>
> Cheers,
>
> Steven
--
Dave Täht
thttp://www.bufferbloat.net/projects/bloat/wiki/Upcoming_Talks
_______________________________________________
homenet mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/homenet