Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions root/usr/share/firewall4/templates/ruleset.uc
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ table inet fw4 {

chain prerouting {
type filter hook prerouting priority filter; policy accept;
{% fw4.includes('chain-prepend', 'prerouting') %}
{% for (let zone in fw4.zones()): %}
{% if (zone.dflags.helper): %}
{% for (let rule in zone.match_rules): %}
Expand All @@ -192,6 +193,7 @@ table inet fw4 {
{% endfor %}
{% endif %}
{% endfor %}
{% fw4.includes('chain-append', 'prerouting') %}
}

chain handle_reject {
Expand Down Expand Up @@ -363,6 +365,7 @@ table inet fw4 {

chain raw_prerouting {
type filter hook prerouting priority raw; policy accept;
{% fw4.includes('chain-prepend', 'raw_prerouting') %}
{% for (let zone in fw4.zones()): %}
{% if (zone.dflags["notrack"]): %}
{% for (let rule in zone.match_rules): %}
Expand Down