Skip to content

Commit

Permalink
Open web ports on any interface
Browse files Browse the repository at this point in the history
  • Loading branch information
rhoriguchi committed Sep 18, 2024
1 parent c40e2b7 commit 5ab18ca
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions configuration/devices/headless/router/firewall.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,11 @@ let
serverIp = "192.168.2.2";
in {
networking = {
firewall.interfaces = let rules = { allowedTCPPorts = [ 80 443 ]; };
in {
"${externalInterface}" = rules;

"${internalInterface}" = rules;
"${internalInterface}.1" = rules;
"${internalInterface}.2" = rules;
"${internalInterface}.3" = rules;
"${internalInterface}.100" = rules;
};
firewall.allowedTCPPorts = [
# NGINX
80
443
];

nftables = {
enable = true;
Expand Down

0 comments on commit 5ab18ca

Please sign in to comment.