bifrost: keep ssh port open for now
This commit is contained in:
parent
29fd0a24b4
commit
dd2654a5d0
1 changed files with 6 additions and 2 deletions
|
@ -1,12 +1,16 @@
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
let facts = config.nodeconfig.facts; in {
|
let facts = config.nodeconfig.facts; in {
|
||||||
networking.firewall.interfaces.ens3.allowedTCPPorts = [ 22 ];
|
networking.firewall.interfaces = {
|
||||||
|
ens3.allowedTCPPorts = [ 2222 ];
|
||||||
|
ens4.allowedTCPPorts = [ 22 ];
|
||||||
|
};
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = false;
|
openFirewall = false;
|
||||||
listenAddresses = [
|
listenAddresses = [
|
||||||
{ addr = facts.wireguard-ip; port = 22; }
|
{ addr = facts.external-ip; port = 2222; }
|
||||||
{ addr = facts.local-ip; port = 22; }
|
{ addr = facts.local-ip; port = 22; }
|
||||||
|
{ addr = facts.wireguard-ip; port = 22; }
|
||||||
];
|
];
|
||||||
settings = {
|
settings = {
|
||||||
KbdInteractiveAuthentication = false;
|
KbdInteractiveAuthentication = false;
|
||||||
|
|
Loading…
Reference in a new issue