Skip to content

Commit

Permalink
chore: switch comments to nftables comments
Browse files Browse the repository at this point in the history
  • Loading branch information
arichtman committed Jan 5, 2025
1 parent 8234c68 commit 2e3171c
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions modules/nixos/lab-node/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,10 @@ in
nftables.enable = true;
# Only allow ingress from ranges I control
firewall.extraInputRules = lib.concatStringsSep "\n" [
# Allow my IPv4 private subnets into HTTPS
"ip saddr { 192.168.1.0/24,192.168.2.0/24 } tcp dport 443 accept"
# Allow anything in my primary prefix into HTTPS
"ip6 saddr { 2403:580a:e4b1::/48 } tcp dport 443 accept"
# mDNS
"ip saddr { 192.168.1.0/24 } udp dport 5353 accept"
"ip6 saddr { 2403:580a:e4b1::/48 } udp dport 5353 accept"
"ip saddr { 192.168.1.0/24,192.168.2.0/24 } tcp dport 443 accept comment \"Allow private IPv4 subnets\""
"ip6 saddr { 2403:580a:e4b1::/48 } tcp dport 443 accept comment \"Allow my IPv6 prefix\""
"ip saddr { 192.168.1.0/24 } udp dport 5353 accept comment \"Allow mDNS\""
"ip6 saddr { 2403:580a:e4b1::/48 } udp dport 5353 accept comment \"Allow IPv6 mDNS\""
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
Expand Down

0 comments on commit 2e3171c

Please sign in to comment.