-
Notifications
You must be signed in to change notification settings - Fork 381
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
Certain upstream switch to firewall4
aka nftables
instead of iptables
#731
Comments
OLSR is affected. |
with a In OLSR, it seems like only olsrd/files/olsrd.sh is using iptables and ip6tables in a script. Is there a syntax change on the command line going from iptables to fw4? I didn't look at any of the source code of any of the packages, just at the repo itself. |
I just did a bmx6 |
@PolynomialDivision is it olsrd core code affected or it is an extension/plugin ? Is it just the Smart Gateway extension broken ? |
@aparcar |
My fault, i didn't see the link to openwrt/luci#5409 -- Infinity Thanks @aparcar |
The |
firewall4
aka nftables
instead of iptables
firewall4
aka nftables
instead of iptables
As discussed at yesterdays meeting I merged the changes. The next release will use |
Firewall4 uses nftables instead of iptables. Use iptables-nft for installing smart-gw-rules. Fixes: openwrt#731 ("Certain upstream switch to firewall4 aka nftables instead of iptables") Signed-off-by: Nick Hainke <[email protected]>
Firewall4 uses nftables instead of iptables. Use iptables-nft for installing smart-gw-rules. Fixes: openwrt#731 ("Certain upstream switch to firewall4 aka nftables instead of iptables") Signed-off-by: Nick Hainke <[email protected]>
Firewall4 fails when adding:
|
Please attach the output of |
|
Like this one? nftables 1.0.2 was released recently. |
Firewall4 uses nftables instead of iptables. Use iptables-nft for installing smart-gw-rules. Fixes: openwrt#731 ("Certain upstream switch to firewall4 aka nftables instead of iptables") Signed-off-by: Nick Hainke <[email protected]>
Firewall4 will not ship iptables as default. However, we need iptables for installing smart-gw-rules. Instead of using the original iptables, we can also use iptables-nft: ... iptables-nft parses the iptables syntax on command line, creates appropriate nftables commands, packs them into netlink messages and submits them to kernel. https://www.redhat.com/en/blog/using-iptables-nft-hybrid-linux-firewall Since, commit 795e7155cbe3 ("iptables: rename to ip(6)tables-legacy, add PROVIDES") it is enough to include iptables as dependency to install iptables-nft [0]. iptables-nft also PROVIDES iptables. Fixes: openwrt#731 ("Certain upstream switch to firewall4 aka nftables instead of iptables") - [0] https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=795e7155cbe3e78669f6821bf7aecb7c4e1e1afbv Signed-off-by: Nick Hainke <[email protected]>
|
Sorry for closing. This was automatically done by merging a PR. |
Why this was re-opened? It is not clear to me. OP issue was solved. The issue related to nftables or firewall4 should be moved to somewhere else. :) |
Probably @aparcar wants to decide when to close. ;) |
If OLSR is the only package affected by firewall4 this can be closed. |
Hi all, especially @openwrt/routing-write,
for the next OpenWrt release
firewall4
is considered as a replacement of the currentiptables
basedfirewall
package. While the configuration stays within/etc/config/firewall
, packages usingiptables
directly may see trouble.This is a heads up for everyone maintaining such packages but also please post packages here that would be affected so a smother migration is possible.
Compatible with
firewall4
:Heads up for packages.git: openwrt/packages#16818
Heads up for luci.git: openwrt/luci#5409
The text was updated successfully, but these errors were encountered: