tor bridge
This commit is contained in:
parent
b860f7c33a
commit
99d9afbc36
3 changed files with 17 additions and 1 deletions
|
|
@ -44,6 +44,7 @@
|
||||||
./modules/services/openssh.nix
|
./modules/services/openssh.nix
|
||||||
./modules/services/firewall.nix
|
./modules/services/firewall.nix
|
||||||
./modules/services/tailscale.nix
|
./modules/services/tailscale.nix
|
||||||
|
./modules/services/tor-bridge.nix
|
||||||
./modules/services/podman.nix
|
./modules/services/podman.nix
|
||||||
./modules/services/static-sites
|
./modules/services/static-sites
|
||||||
./modules/users/tobias.nix
|
./modules/users/tobias.nix
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
networking.firewall.enable = true;
|
networking.firewall.enable = true;
|
||||||
networking.firewall.allowedTCPPorts = [ 22 80 443 8443 ];
|
networking.firewall.allowedTCPPorts = [ 22 80 443 4430 8443 ];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
15
modules/services/tor-bridge.nix
Normal file
15
modules/services/tor-bridge.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue