sysctl set up 21 December 2018, 20:31:48 I need to set up sysctl correctly and I don't think it is obeying my intention.I am looking at this webpagehttps://wiki.gentoo.org/wiki/Home_router#Kernel_setup_.28know_thyself_first.29Code: [Select]FILE /etc/sysctl.confnet.ipv4.ip_forward = 1net.ipv4.conf.default.rp_filter = 1I have this on my file system which did not start packet forwardingvim /etc/sysctl.d/ipforward.conf Code: [Select]sysctl -w net.ipv4.ip_forward = 1sysctl -w net.ipv4.conf.all.forwarding = 1That didn't work. I can pull the sysctl command out maybe but I don't know how to test this./etc/init.d/sysctl -vd restart says nothing about forwarding
Re: sysctl set up Reply #1 – 28 December 2018, 12:58:11 What do you get when you runCode: [Select]sysctl -a|grep net.ipv4.ip_forwardHowever, I'm almost certain you're talking about NAT/masquerading, which is handled by iptables. 1 Likes
Re: sysctl set up Reply #2 – 28 December 2018, 18:06:10 Quote from: nous – on 28 December 2018, 12:58:11What do you get when you runCode: [Select]sysctl -a|grep net.ipv4.ip_forwardHowever, I'm almost certain you're talking about NAT/masquerading, which is handled by iptables.forwarding packets without masquarading is not that useful. I think I need both.
Re: sysctl set up Reply #3 – 28 December 2018, 18:09:23 Quote from: nous – on 28 December 2018, 12:58:11What do you get when you runCode: [Select]sysctl -a|grep net.ipv4.ip_forwardHowever, I'm almost certain you're talking about NAT/masquerading, which is handled by iptables.Code: [Select]www3 etc]# sysctl -a|grep net.ipv4.ip_forwardnet.ipv4.ip_forward = 1net.ipv4.ip_forward_use_pmtu = 0this might be after I fixed it though. I think the problems is how to set it to boot like that?
Re: sysctl set up Reply #4 – 30 December 2018, 19:31:25 You need to put the values in /etc/sysctl.conf or in any file inside /etc/sysctl.d/ ending in .conf. The openrc initscript reads them all, giving precedence to the former.