Skip to content

Commit

Permalink
the-hub: fw rules
Browse files Browse the repository at this point in the history
  • Loading branch information
MayNiklas committed Aug 4, 2024
1 parent bdea94e commit 42af79b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions machines/the-hub/ruleset.nft
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ table inet filter {

# Allow M. to connect to 192.168.42.0/24 & 192.168.52.0/24
iifname "wg2" oifname "wg0" ip daddr { 192.168.42.0/24, 192.168.52.0/24 } accept

# only allow specific traffic from travel router
iifname "wg0" oifname "wg0" ip saddr { 10.88.88.25/32, 192.168.8.0/24 } ip daddr { 10.88.88.17/32, 192.168.5.0/24, 192.168.20.0/24 } accept
iifname "wg0" oifname "wg0" ip saddr { 10.88.88.25/32, 192.168.8.0/24 } ct state new counter drop

# allow packages staying on the same Wireguard Interface
iifname "wg0" oifname "wg0" counter accept
Expand Down

0 comments on commit 42af79b

Please sign in to comment.