You are not logged in.

#1 2021-08-18 21:10:55

kalmaritic
Member
Registered: 2021-05-29
Posts: 2

Disabling IP Forwarding Sysctl

Hi,

I seem to have "net.ipv4.ip_forward = 1" set for my installation, and I would like to permanently disable this, however I can't find out where it's configured...

I have tried creating /etc/sysctl.d/99-sysctl.conf with:

net.ipv4.ip_forward=0
net.ipv6.conf.default.forwarding=0
net.ipv6.conf.all.forwarding=0

If I run, sysctl --system - it turns it off correctly, however it's back to 1 on reboot.

I've also added: IPForward=no to /etc/network/20-wired.network - also with no luck.

Anyone have any ideas on where else this could be turned on from - I am guessing it's a systemd thing and assuming it's not default to =1 with Arch, so I must have turned it on somewhere in the past.... smile My only guess is maybe virtualbox/vmware/libvirt might be force enabling it, is that possible?

Last edited by kalmaritic (2021-08-18 21:16:24)

Offline

#2 2021-08-19 13:09:24

Maniaxx
Member
Registered: 2014-05-14
Posts: 757

Re: Disabling IP Forwarding Sysctl

I have libvirt and virtualbox installed and forwarding is not enabled. But i have autostart disabled for both indeed.
https://wiki.archlinux.org/title/Virtua … el_modules
https://wiki.archlinux.org/title/libvirt#Daemon


sys2064

Offline

Board footer

Powered by FluxBB