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

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
skyfly555
Posts: 81
Joined: Tue Nov 17, 2015 12:16 pm

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

Post 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 3217 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
Last edited by skyfly555 on Sat Dec 12, 2015 3:21 pm, edited 1 time in total.
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

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

Post 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
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
skyfly555
Posts: 81
Joined: Tue Nov 17, 2015 12:16 pm

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

Post by skyfly555 »

Thank you very much, Fourdee.
Post Reply