Page 1 of 1

[Solved] IPv6 and troubles with /etc/sysctl.conf

Posted: Sat Dec 12, 2015 6:03 am
by skyfly555
Hello, friends,

In another post time ago, I said I'd use IPFire, but I didn't do that, and I'm working to get a RPI2B as a router/firewall/proxy... with my loved wonderful DietPi :-)

Today I modified /etc/sysctl.conf and activated (decommenting) the classical line from net.ipv4.ip_forward=0 to net.ipv4.ip_forward=1 (yes, I'm using two NICs).

But this time I did'nt reboot but typed sysctl -p, that has basically the same effect, but without rebooting.

My surprise, "No such file or directory" messages (image attached).
part-of-the-message.png
part-of-the-message.png (10.81 KiB) Viewed 3482 times
It's related with these commands, found into /etc/sysctl.conf by default in DietPi distros:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

Really, it's ok for me having ipv6 disabled, but I don't know if it's really disabled, and if these "missing files errors" can create troubles to iptables or dnsmasq or other programs I'm trying to use.

Thank you,

P.S. Using v103 wheezy with an RPi 2 B

Re: IPv6 and troubles with /etc/sysctl.conf

Posted: Sat Dec 12, 2015 11:35 am
by Fourdee
IPv6 is disabled on all DietPi images to improve performance. You can enable IPv6, see below:
https://github.com/Fourdee/DietPi/issue ... -143582088

Re: IPv6 and troubles with /etc/sysctl.conf

Posted: Sat Dec 12, 2015 3:20 pm
by skyfly555
Thank you very much, Fourdee.