Skip to content
This repository has been archived by the owner on Nov 2, 2024. It is now read-only.

Commit

Permalink
feat(router): isolate subnets on firewall
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgon committed Jun 28, 2024
1 parent 467ed6d commit f9a6066
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nix/machines/router/modules/firewall.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@
type filter hook input priority filter; policy accept;
}
chain FORWARD {
type filter hook forward priority filter; policy accept;
type filter hook forward priority filter; policy drop;
ct state related,established accept
iifname "mgmt0" oifname "wan0" accept
iifname "trst0" oifname "wan0" accept
iifname "untrst0" oifname "wan0" accept
ip daddr 10.99.0.0/16 iifname "trst0" accept
}
chain OUTPUT {
type filter hook output priority filter; policy accept;
Expand Down

0 comments on commit f9a6066

Please sign in to comment.