diff --git a/hosts/dnsc-vps-sm/default.nix b/hosts/dnsc-vps-sm/default.nix index 12cf756..e51224f 100644 --- a/hosts/dnsc-vps-sm/default.nix +++ b/hosts/dnsc-vps-sm/default.nix @@ -61,19 +61,10 @@ networking.firewall = { enable = true; allowedTCPPorts = [ + 22 80 443 ]; - ipBasedAllowedTCPPorts = [ - { - port = 22; - ips = [ - "100.103.199.4" - "100.115.100.87" - "100.83.40.63" - ]; - } - ]; }; # My user account @@ -129,9 +120,6 @@ }; # Services - # Tailscale - services.tailscale.enable = true; - # Caddy services.caddy = { enable = true; diff --git a/modules/ssh/default.nix b/modules/ssh/default.nix index 181e2b8..dab7b26 100644 --- a/modules/ssh/default.nix +++ b/modules/ssh/default.nix @@ -8,26 +8,19 @@ addKeysToAgent = "yes"; }; "dnsc-machine" = { - # TODO use correct IP - hostname = "100.103.199.4"; + hostname = "192.168.178.250"; user = "dennis"; identityFile = "${config.home.homeDirectory}/.ssh/id_ed25519"; identitiesOnly = true; }; "dnsc-server" = { - hostname = "100.103.199.4"; - user = "dennis"; - identityFile = "${config.home.homeDirectory}/.ssh/id_ed25519"; - identitiesOnly = true; - }; - "dnsc-server-i" = { hostname = "192.168.178.69"; user = "dennis"; identityFile = "${config.home.homeDirectory}/.ssh/id_ed25519"; identitiesOnly = true; }; "dnsc-vps-sm" = { - hostname = "100.65.82.77"; + hostname = "91.99.21.186"; user = "dennis"; identityFile = "${config.home.homeDirectory}/.ssh/id_ed25519"; identitiesOnly = true;