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
22 changes: 21 additions & 1 deletion root/etc/nftables.d/10-custom-filter-chains.nft
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
## The firewall4 input, forward and output chains are registered with
## priority `filter` (0).


## Uncomment the chains below if you want to stage rules *before* the
## default firewall input, forward and output chains.

Expand Down Expand Up @@ -37,3 +36,24 @@
# ct state new log prefix "Firewall4 accepted egress: "
# }

## Uncomment the chains below to stage nftrace instrumentation
## at the beginning of both base chains filtering packets first
## Example enables tracing of DNS packets to limit output volume
## Adjust to Your requirements and observe output using
## root@OpenWRT:~# nft monitor trace

# chain raw_prerouting {
# type filter hook prerouting priority raw; policy accept;
# jump trace_chain
# }
#
# chain raw_output {
# type filter hook output priority raw; policy accept;
# jump trace_chain
# }
#
# chain trace_chain {
# meta l4proto {tcp,udp} th sport . th dport { 53 . 0-65535, 0-65535 . 53 } meta nftrace set 1
# # meta nftrace set 1
# }