hyperboria / bugs

Peer-to-peer IPv6 networking, secure and near-zero-conf.
154 stars 17 forks source link

Enable IPv6 on newly creatd TUN interfaces in sysctl #105

Open interfect opened 8 years ago

interfect commented 8 years ago

On Angstrom Linux on the BeagleBone Black, the newly created tun0 interface has the sysctl setting net.ipv6.conf.tun0.disable_ipv6=1

Changing it manually with sysctl after starting cjdns seems to be too late. And when cjdns stops, the interface and the sysctl setting go away, so when it starts again it's back to its disabled value.

Adding net.ipv6.conf.tun0.disable_ipv6=1 in /etc/sysctl.conf seems to get the settin to stay un-set, but I'm still having to manually add my cjdns IP to the interface with ipconfig in order to get online.

ansuz commented 8 years ago

In the short term, I'd think it would be acceptable to make a note of this in some installation documentation. As I recall, the instructions for installing on a raspberry pi featured a modprobe ipv6 command.

Delegating this to cjdns seems a bit out of scope, as there are heavy restrictions for how much it can interact with the system via Seccomp.

Kubuxu commented 8 years ago

You can change it using:

net.ipv6.conf.default.disable_ipv6=1

But it would be good to have also enable ipv6 even if it is disabled.