nix-system/os/3proxy.nix
Antoine Vaure 572d2f09ae
Some checks failed
/ build-all (push) Failing after 3h10m17s
add socks proxy in ks
2025-10-07 19:42:34 +02:00

26 lines
505 B
Nix

{
services._3proxy = {
enable = true;
services = [
{
type = "socks";
auth = [ "strong" ];
acl = [ {
rule = "allow";
users = [ "user1" ];
}
];
}
];
usersFile = "/etc/3proxy.passwd";
};
environment.etc = {
"3proxy.passwd".text = ''
user1:CR:$1$TqAb0wvc$e.O2GhdhXaMYSxNdNBmzh/
'';
};
networking.firewall.allowedTCPPorts = [ 1080 ];
networking.firewall.allowedUDPPorts = [ 1080 ];
}