You are not logged in.
Hi,
I know the default is to have ip_forward = 0 in the kernel but somehow my system have ip_forward enabled. I couldn't figure out which application enabled it!
% grep -r ip_forward /etc/sysctl.d || sysctl net.ipv4.ip_forward
net.ipv4.ip_forward = 1
Last edited by munzirtaha (2014-03-02 18:28:09)
Offline
I don't have it. Maybe it's installed with NetworkManager. You seem to have solved this issue yourself. But it's not clear to me where that file would be coming from.
This box does not have it.
fs/super.c : "Self-destruct in 5 seconds. Have a nice day...\n",
Offline
I checked another system with NetworkManager and ip_forwarding is not enabled so it's not the culprit. I didn't understand when you said I have solved the issue!
I don't have it. Maybe it's installed with NetworkManager. You seem to have solved this issue yourself. But it's not clear to me where that file would be coming from.
This box does not have it.
Offline
I have misread your initial post. Sorry.
Maybe this?
grep -R ip_forward /usr/lib/sysctl.d/I'm guessing it's SystemD.
fs/super.c : "Self-destruct in 5 seconds. Have a nice day...\n",
Offline
grep -R ip_forward /usr/lib/sysctl.d/reveals nothing
Offline
What software are you using for your network on this machine?
fs/super.c : "Self-destruct in 5 seconds. Have a nice day...\n",
Offline
I am using networkmanager 0.9.8.8-3
Offline
I'm out of idea's. It could be that NetworkManager is doing it behind your back. Maybe boot without starting it and see if that helps?
fs/super.c : "Self-destruct in 5 seconds. Have a nice day...\n",
Offline
I did a systemctl disable NetworkManager and rebooted and still ip_forward = 1. It's something else. There should be a way to track which application set which value in /proc, ain't it?
Offline
I did a systemctl disable NetworkManager and rebooted and still ip_forward = 1. It's something else. There should be a way to track which application set which value in /proc, ain't it?
Yes. It does not have to go through sysctl. But you could replace the sysctl with a script that echo's the parent pid and then looks it up with ps or top.
I would have no idea how to do that if it were to change it through /proc...
fs/super.c : "Self-destruct in 5 seconds. Have a nice day...\n",
Offline
I would append '1' to the grub commandline to boot to single-user mode. Then use systemctl to start all the services that normally start on boot. Between each systemctl command; check if ip_forward is still disabled. This also tells you if the setting is hidden in /etc somewhere (when ip_forward would be enabled when entering single-user mode)
Offline
Just a guess, but do you have visualization software installed. VMWare? VirtualBox? Qemu? These provide virtual networks to their guest environments. They enable bridging and/or NAT to provide connectivity from the virtual world to the real world networks.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
@Spider.007: I ended up using your method by booting in rescue mode and enabling the services one by one. I found it's libvirtd that enables ip forwarding. Thanks a lot.
@ewaller: you guessed it right!
Offline