mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-16 17:45:14 +01:00
Update fakessh
This commit is contained in:
parent
0df507ea14
commit
03dcb12a28
1 changed files with 22 additions and 22 deletions
|
|
@ -244,7 +244,7 @@
|
||||||
# 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, ... }:
|
vps5 = { name, nodes, modulesPath, config, pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
commit = "18993f3a00c71af419cb28c01d200bd2efd85603";
|
commit = "c8842ef22a2b7170316e5ee52da127baf58b9971";
|
||||||
fakessh = import (fetchTarball "https://github.com/Noratrieb/fakessh/archive/${commit}.tar.gz");
|
fakessh = import (fetchTarball "https://github.com/Noratrieb/fakessh/archive/${commit}.tar.gz");
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
@ -257,27 +257,27 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
#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" ];
|
||||||
# after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
# serviceConfig = {
|
serviceConfig = {
|
||||||
# DynamicUser = true;
|
DynamicUser = true;
|
||||||
# ExecStart = "${lib.getExe (fakessh {inherit pkgs;})}";
|
ExecStart = "${lib.getExe (fakessh {inherit pkgs;})}";
|
||||||
# AmbientCapabilities = "CAP_NET_BIND_SERVICE";
|
AmbientCapabilities = "CAP_NET_BIND_SERVICE";
|
||||||
# # i really don't trust this.
|
# i really don't trust this.
|
||||||
# MemoryHigh = "100;";
|
MemoryHigh = "100;";
|
||||||
# MemoryMax = "200M";
|
MemoryMax = "200M";
|
||||||
# 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"
|
#"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" ];
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue