tor bridge

This commit is contained in:
randogoth 2026-03-27 16:52:51 +03:00
parent b860f7c33a
commit 99d9afbc36
3 changed files with 17 additions and 1 deletions

View file

@ -1,5 +1,5 @@
{ ... }:
{
networking.firewall.enable = true;
networking.firewall.allowedTCPPorts = [ 22 80 443 8443 ];
networking.firewall.allowedTCPPorts = [ 22 80 443 4430 8443 ];
}

View file

@ -0,0 +1,15 @@
{ pkgs, ... }: {
services.tor = {
enable = true;
relay = {
enable = true;
role = "bridge";
};
settings = {
ServerTransportPlugin = "obfs4 exec ${pkgs.obfs4}/bin/obfs4proxy";
ServerTransportListenAddr = "obfs4 0.0.0.0:4430";
ExtORPort = "auto";
BridgeDistribution = "none";
};
};
}