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 57d3684 commit b25d766
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 b25d766

Please sign in to comment.