You are not logged in.
Hello!
I'd like to turn the net/ipv4/ip_forward on, and in my /etc/sysctl.d/50-forward.conf:
net.ipv4.ip_forward=1Also "systemd-analyze cat-config sysctl.d | grep ip_forward" shows:
net.ipv4.ip_forward=1However on every boot I can see the ip forward option is still turned off. It seems it's overridden by something.
If I remembered correctly, my config used to work until weeks ago.
Suggestion? Thanks!
EDIT:
Problem resolved, it's one of my proxy program which supports setting IP forward via its interface. Perhaps I set if off some time ago, so it sets ip_forward to 0 at boot time.
Last edited by FishBoneEK (2024-05-18 08:23:13)
Offline
If it's not overridden by any config, some kind of program or script must be invoking sysctl and reset the value.
Inofficial first vice president of the Rust Evangelism Strike Force
Offline
If it's not overridden by any config, some kind of program or script must be invoking sysctl and reset the value.
Yeah I know, but I don't know what program or script it is
Offline
Are you using systemd-networkd for network configuration ?
Offline
Are you using systemd-networkd for network configuration ?
No, I use NetworkManager. Plus I have an AP connection set up, it connects automatically.
Offline
Is the value changed after manually running systemd-sysctl to apply that config?
# /usr/lib/systemd/systemd-sysctl 50-forward.confOffline
Is the value changed after manually running systemd-sysctl to apply that config?
# /usr/lib/systemd/systemd-sysctl 50-forward.conf
Thanks for the help. I just solved it. You can check the updated post for the result.
Offline