hyperboria / bugs

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

If ipv6 is disabled in a kernel level, cjdroute fails with a cryptic error #127

Closed vrde closed 7 years ago

vrde commented 8 years ago

I tried to run ./cjdroute --genconf > cjdroute.conf and I got this error: 1462384502 WARN Configurator.c:111 Got error [Failed to configure tunnel [NetPlatform_linux.c:151 ioctl(SIOCSIFADDR) [Permission denied]]] calling [Core_initTunnel], ignoring.

How to reproduce

disable ipv6. My /etc/sysctl.conf had:

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.wlan0.disable_ipv6 = 1

PS: @Kubuxu that one is for you :smile:

kpcyrd commented 7 years ago

Please reopen if this still happens on crashey. :)

johnnagro commented 7 years ago

v19.1 happens to me:

1491749591 WARN Configurator.c:111 Got error [Failed to configure tunnel [NetPlatform_linux.c:153 ioctl(SIOCSIFADDR) [Permission denied]]] calling [Core_initTunnel], ignoring.

i had to sysctl net.ipv6.conf.all.disable_ipv6=0 to get it working. not sure why ipv6 was disabled in the first place.