Skip to content

Commit f76523e

Browse files
committed
Fix TCP port firewall rules
Accidentally I threw the port numbers for some containers in the openssh ports list, which opened them for SSH, but also for TCP which meant I could reach the containers now and did not notice. Yikes.
1 parent 4f44d1c commit f76523e

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

hosts/itxserver/configuration.nix

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ in
7070
"100.100.100.100"
7171
];
7272
firewall = {
73-
allowedTCPPorts = [ ];
73+
allowedTCPPorts = [
74+
8888
75+
8123
76+
];
7477
allowedUDPPorts = [ ];
7578
};
7679
search = [ "tabby-crocodile.ts.net" ];
@@ -103,11 +106,7 @@ in
103106
};
104107
openssh = {
105108
enable = true;
106-
ports = [
107-
22
108-
8888
109-
8123
110-
];
109+
ports = [ 22 ];
111110
settings = {
112111
PasswordAuthentication = false;
113112
KbdInteractiveAuthentication = false;

0 commit comments

Comments
 (0)