Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#1073 - sysctl 'net.bridge.*' is an unkown key. #6009

Closed
openwrt-bot opened this issue Oct 18, 2017 · 5 comments
Closed

FS#1073 - sysctl 'net.bridge.*' is an unkown key. #6009

openwrt-bot opened this issue Oct 18, 2017 · 5 comments
Labels

Comments

@openwrt-bot
Copy link

pparent76:

Testing on mt7621 wg3526.

When I do sysctl -p I get

sysctl: error: 'net.bridge.bridge-nf-call-arptables' is an unknown key
sysctl: error: 'net.bridge.bridge-nf-call-ip6tables' is an unknown key
sysctl: error: 'net.bridge.bridge-nf-call-iptables' is an unknown key

I get the same if I do:

sysctl -w net.bridge.bridge-nf-call-iptables=1
sysctl: error: 'net.bridge.bridge-nf-call-iptables' is an unknown key

The problem is that I cannot enforce iptables on bridge.

@openwrt-bot
Copy link
Author

mkresin:

Since Linux kernel 3.18-rc1, you have to install kmod-br-netfilter. Pleae report back if it fixed your issue.

@openwrt-bot
Copy link
Author

pparent76:

Ok thanks a lot, it works!

If the module is not installed by default shouldn't the bridge related lines be removed by default from /etc/sysctl.conf?

@openwrt-bot
Copy link
Author

mkresin:

Yes they should be and I have already a patch in my local git tree to remove them.

@openwrt-bot
Copy link
Author

mkresin:

As it turned out, it isn't that easy to get rid of the sysctl parameters in /etc/sysctl.conf.

The reason behind disabling the net.bridge.bridge-nf-call-* is to prevent that a bridge hits the {ip,ip6,arp}tables overhead if kmod-br-netfilter is installed. kmod-br-netfilter is installed as a dependency of the physdev-match kernel module (via kmod-ipt-extra) for example. If someone only wants to filter based on the incoming or outgoing bridge port, the ip,ip6,arp}tables overhead penalty is something that should be prevented.

In theory it would be possible to add a file to /etc/sysctl.d/ which disables net.bridge.bridge-nf-call-* if kmod-ipt-extra gets installed. This way the full {ip,ip6,arp}tables power can be used if one only installs kmod-br-netfilter. As far as I can see, it isn't possible to bundle files with kmods at the moment. Hence, in theory.

Long story short, at the moment it isn't possible to drop the sysctl parameters from the default config.

@openwrt-bot
Copy link
Author

pparent76:

How do you solve this problem in lede 17.01.2? I'm trying to compile the package kmod-br-netfilter, but it does not seem to work:

:/code/lede-mt7628$ scripts/feeds install kmod-br-netfilter
:
/code/lede-mt7628$ make package/kmod-br-netfilter/install V=s
make[1]: Entering directory '/home/pparent/code/lede-mt7628'
make[1]: *** No rule to make target 'package/kmod-br-netfilter/install'. Stop.
make[1]: Leaving directory '/home/pparent/code/lede-mt7628'
/home/pparent/code/lede-mt7628/include/toplevel.mk:198: recipe for target 'package/kmod-br-netfilter/install' failed
make: *** [package/kmod-br-netfilter/install] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant