-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
luci: custom firewall rules don't show up with fw4 #7428
Comments
Why not start with latest stable, 23.05.5, to make sure it's not fixed? |
the luci-app-firewall.json still has the dependency there |
One of the many idiosyncrasies in the system: it's a hold-over from fw3 days. Not everyone runs fw4; some still use iptables, and the custom rules window is meant for fw3 and iptables commands. Those are written to |
You can add inserts to rules in
Or in /usr/share in other places. some deeply creative rules like maps vmaps are not yet parsed. |
I'm not an expert here. It looks like the The first that I found is some script in Python |
|
oh, didn't know about it |
That's basically what the firewall status page uses so I don’t see why not. Although here the idea was actual file content. What did you have in mind? |
Is it just an matter of removing the depend? |
The wiki says it a bit different: Custom rule inclusion through a shell script works similarly as fw3, but the script should use nftables. (See Config include section with shell script) Adding rules with shell commands can be a quick and easy way to test rules, e.g. just copy some commands from a tutorial and restart the firewall. My use case is another one: On OpenWrt 23.05.5 with fw4 I installed packages
Works like a charm, and would be handy to be able to do it from the GUI. |
ttl-inc option is not ported to iptables-nft.
|
You have to use set ttl probably with
(not guaranteed to work, jut meta-guess that it coudl) |
On my system, the output looks different:
The commands in /etc/firewall.user listed in my post above also work well - an xt-ttl-rule is added to nftables and the ttl-inc rule is added to iptables. Maybe the package But my main point was: there are use cases for using command line firewall rules with fw4/nftables, and thus it would still be nice to have an easy way to edit /etc/firewall.user. |
I have xt bridge blacklisted intentionally. |
Is there an existing issue for this?
screenshots or captures
No response
Actual behaviour
In the network>firewall tab of the GUI, the custom rules tab does not show up
I was able to fix this by removing the dependency of /usr/share/fw3/helpers.conf from the
/usr/share/luci/menu.d/luci-app-firewall.json file
Expected behaviour
The custom tab in the firewall will show up and allow the user to put nftables commands for rules
Steps to reproduce
go to: Network -> Firewall and look at the tabs on a device using firewall4
Additional Information
What browsers do you see the problem on?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: