move fakessh

This commit is contained in:
nora 2024-08-12 17:16:08 +02:00
parent 7047b6a9ed
commit 0df507ea14
2 changed files with 39 additions and 32 deletions

View file

@ -15,7 +15,6 @@
slides = fetchTarball "https://github.com/Noratrieb/slides/archive/0401f35c22b124b69447655f0c537badae9e223c.tar.gz"; slides = fetchTarball "https://github.com/Noratrieb/slides/archive/0401f35c22b124b69447655f0c537badae9e223c.tar.gz";
pretense = import (fetchTarball "https://github.com/Noratrieb/pretense/archive/270b01fc1118dfd713c1c41530d1a7d98f04527d.tar.gz"); pretense = import (fetchTarball "https://github.com/Noratrieb/pretense/archive/270b01fc1118dfd713c1c41530d1a7d98f04527d.tar.gz");
fakessh = import (fetchTarball "https://github.com/Noratrieb/fakessh/archive/7a129eba2e0bd15d46efce2f2e0daebeb6888bec.tar.gz");
networkingConfig = { networkingConfig = {
dns1 = { dns1 = {
@ -243,7 +242,12 @@
''; '';
}; };
# VPS5 is the primary test server, where new things are being deployed that could break stuff maybe. # VPS5 is the primary test server, where new things are being deployed that could break stuff maybe.
vps5 = { name, nodes, modulesPath, config, pkgs, lib, fakessh, ... }: { vps5 = { name, nodes, modulesPath, config, pkgs, lib, ... }:
let
commit = "18993f3a00c71af419cb28c01d200bd2efd85603";
fakessh = import (fetchTarball "https://github.com/Noratrieb/fakessh/archive/${commit}.tar.gz");
in
{
imports = [ imports = [
(modulesPath + "/profiles/qemu-guest.nix") (modulesPath + "/profiles/qemu-guest.nix")
./modules/contabo ./modules/contabo
@ -252,7 +256,8 @@
./modules/garage ./modules/garage
]; ];
# services.openssh.ports = [ 2000 ];
#services.openssh.ports = [ 2000 ];
#systemd.services.fakessh = { #systemd.services.fakessh = {
# description = "fakessh ssh honeypot"; # description = "fakessh ssh honeypot";
# wantedBy = [ "multi-user.target" ]; # wantedBy = [ "multi-user.target" ];
@ -267,10 +272,11 @@
# Environment = [ # Environment = [
# "FAKESSH_LISTEN_ADDR=0.0.0.0:22" # "FAKESSH_LISTEN_ADDR=0.0.0.0:22"
# "RUST_LOG=debug" # "RUST_LOG=debug"
# #"FAKESSH_JSON_LOGS=1"
# ]; # ];
# }; # };
#}; #};
# networking.firewall.allowedTCPPorts = [ 22 ]; #networking.firewall.allowedTCPPorts = [ 22 ];
#deployment.targetPort = 2000; #deployment.targetPort = 2000;
deployment.tags = [ "eu" "apps" ]; deployment.tags = [ "eu" "apps" ];

View file

@ -58,6 +58,7 @@ let
pronouns.TXT = [ pronouns.TXT = [
"she/her" "she/her"
]; ];
sshhoneypot = vps5;
# --- infra # --- infra
grafana = vps3; grafana = vps3;