Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions root/usr/share/firewall4/templates/ruleset.uc
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ table inet fw4 {

chain raw_prerouting {
type filter hook prerouting priority raw; policy accept;
rt type 0 counter drop
{% for (let zone in fw4.zones()): %}
{% if (zone.dflags["notrack"]): %}
{% for (let rule in zone.match_rules): %}
Expand Down
1 change: 1 addition & 0 deletions tests/01_configuration/01_ruleset
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ table inet fw4 {

chain raw_prerouting {
type filter hook prerouting priority raw; policy accept;
rt type 0 counter drop
}

chain raw_output {
Expand Down
1 change: 1 addition & 0 deletions tests/01_configuration/02_rule_order
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ table inet fw4 {

chain raw_prerouting {
type filter hook prerouting priority raw; policy accept;
rt type 0 counter drop
}

chain raw_output {
Expand Down
1 change: 1 addition & 0 deletions tests/02_zones/01_policies
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ table inet fw4 {

chain raw_prerouting {
type filter hook prerouting priority raw; policy accept;
rt type 0 counter drop
}

chain raw_output {
Expand Down
1 change: 1 addition & 0 deletions tests/02_zones/02_masq
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ table inet fw4 {

chain raw_prerouting {
type filter hook prerouting priority raw; policy accept;
rt type 0 counter drop
}

chain raw_output {
Expand Down
1 change: 1 addition & 0 deletions tests/02_zones/03_masq_src_dest_restrictions
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ table inet fw4 {

chain raw_prerouting {
type filter hook prerouting priority raw; policy accept;
rt type 0 counter drop
}

chain raw_output {
Expand Down
1 change: 1 addition & 0 deletions tests/02_zones/04_masq_allow_invalid
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ table inet fw4 {

chain raw_prerouting {
type filter hook prerouting priority raw; policy accept;
rt type 0 counter drop
}

chain raw_output {
Expand Down
1 change: 1 addition & 0 deletions tests/02_zones/04_wildcard_devices
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ table inet fw4 {

chain raw_prerouting {
type filter hook prerouting priority raw; policy accept;
rt type 0 counter drop
}

chain raw_output {
Expand Down
1 change: 1 addition & 0 deletions tests/02_zones/05_subnet_mask_matches
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ table inet fw4 {

chain raw_prerouting {
type filter hook prerouting priority raw; policy accept;
rt type 0 counter drop
}

chain raw_output {
Expand Down
1 change: 1 addition & 0 deletions tests/02_zones/06_family_selections
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ table inet fw4 {

chain raw_prerouting {
type filter hook prerouting priority raw; policy accept;
rt type 0 counter drop
}

chain raw_output {
Expand Down
1 change: 1 addition & 0 deletions tests/02_zones/07_helpers
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ table inet fw4 {

chain raw_prerouting {
type filter hook prerouting priority raw; policy accept;
rt type 0 counter drop
}

chain raw_output {
Expand Down
1 change: 1 addition & 0 deletions tests/02_zones/08_log_limit
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ table inet fw4 {

chain raw_prerouting {
type filter hook prerouting priority raw; policy accept;
rt type 0 counter drop
}

chain raw_output {
Expand Down
1 change: 1 addition & 0 deletions tests/03_rules/01_direction
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ table inet fw4 {

chain raw_prerouting {
type filter hook prerouting priority raw; policy accept;
rt type 0 counter drop
}

chain raw_output {
Expand Down
1 change: 1 addition & 0 deletions tests/03_rules/02_enabled
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ table inet fw4 {

chain raw_prerouting {
type filter hook prerouting priority raw; policy accept;
rt type 0 counter drop
}

chain raw_output {
Expand Down
1 change: 1 addition & 0 deletions tests/03_rules/03_constraints
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ table inet fw4 {

chain raw_prerouting {
type filter hook prerouting priority raw; policy accept;
rt type 0 counter drop
}

chain raw_output {
Expand Down
1 change: 1 addition & 0 deletions tests/03_rules/04_icmp
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ table inet fw4 {

chain raw_prerouting {
type filter hook prerouting priority raw; policy accept;
rt type 0 counter drop
}

chain raw_output {
Expand Down
1 change: 1 addition & 0 deletions tests/03_rules/05_mangle
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ table inet fw4 {

chain raw_prerouting {
type filter hook prerouting priority raw; policy accept;
rt type 0 counter drop
}

chain raw_output {
Expand Down
1 change: 1 addition & 0 deletions tests/03_rules/06_subnet_mask_matches
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ table inet fw4 {

chain raw_prerouting {
type filter hook prerouting priority raw; policy accept;
rt type 0 counter drop
}

chain raw_output {
Expand Down
1 change: 1 addition & 0 deletions tests/03_rules/07_redirect
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ table inet fw4 {

chain raw_prerouting {
type filter hook prerouting priority raw; policy accept;
rt type 0 counter drop
}

chain raw_output {
Expand Down
1 change: 1 addition & 0 deletions tests/03_rules/08_family_inheritance
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ table inet fw4 {

chain raw_prerouting {
type filter hook prerouting priority raw; policy accept;
rt type 0 counter drop
}

chain raw_output {
Expand Down
1 change: 1 addition & 0 deletions tests/03_rules/09_time
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ table inet fw4 {

chain raw_prerouting {
type filter hook prerouting priority raw; policy accept;
rt type 0 counter drop
}

chain raw_output {
Expand Down
1 change: 1 addition & 0 deletions tests/03_rules/10_notrack
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ table inet fw4 {

chain raw_prerouting {
type filter hook prerouting priority raw; policy accept;
rt type 0 counter drop
iifname "eth0" jump notrack_zone1 comment "!fw4: Handle zone1 IPv4/IPv6 notrack traffic"
}

Expand Down
1 change: 1 addition & 0 deletions tests/03_rules/11_log
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ table inet fw4 {

chain raw_prerouting {
type filter hook prerouting priority raw; policy accept;
rt type 0 counter drop
}

chain raw_output {
Expand Down
1 change: 1 addition & 0 deletions tests/03_rules/12_mark
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ table inet fw4 {

chain raw_prerouting {
type filter hook prerouting priority raw; policy accept;
rt type 0 counter drop
}

chain raw_output {
Expand Down
1 change: 1 addition & 0 deletions tests/04_forwardings/01_family_selections
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ table inet fw4 {

chain raw_prerouting {
type filter hook prerouting priority raw; policy accept;
rt type 0 counter drop
}

chain raw_output {
Expand Down
1 change: 1 addition & 0 deletions tests/05_ipsets/01_declaration
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ table inet fw4 {

chain raw_prerouting {
type filter hook prerouting priority raw; policy accept;
rt type 0 counter drop
}

chain raw_output {
Expand Down
1 change: 1 addition & 0 deletions tests/05_ipsets/02_usage
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ table inet fw4 {

chain raw_prerouting {
type filter hook prerouting priority raw; policy accept;
rt type 0 counter drop
}

chain raw_output {
Expand Down
1 change: 1 addition & 0 deletions tests/06_includes/01_nft_includes
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ table inet fw4 {

chain raw_prerouting {
type filter hook prerouting priority raw; policy accept;
rt type 0 counter drop
}

chain raw_output {
Expand Down
1 change: 1 addition & 0 deletions tests/06_includes/02_firewall.user_include
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ table inet fw4 {

chain raw_prerouting {
type filter hook prerouting priority raw; policy accept;
rt type 0 counter drop
}

chain raw_output {
Expand Down
1 change: 1 addition & 0 deletions tests/06_includes/04_disabled_include
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ table inet fw4 {

chain raw_prerouting {
type filter hook prerouting priority raw; policy accept;
rt type 0 counter drop
}

chain raw_output {
Expand Down
1 change: 1 addition & 0 deletions tests/06_includes/05_automatic_includes
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ table inet fw4 {

chain raw_prerouting {
type filter hook prerouting priority raw; policy accept;
rt type 0 counter drop
}

chain raw_output {
Expand Down