From ba1108a2c5962ae6f4c1496bf82a70dc68d478eb Mon Sep 17 00:00:00 2001 From: Harry Ying Date: Mon, 1 Jul 2024 13:55:08 +0100 Subject: [PATCH] fix: tor bridge setup --- cfgs/shards/services.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cfgs/shards/services.nix b/cfgs/shards/services.nix index 6a7aaf5..c271ab9 100644 --- a/cfgs/shards/services.nix +++ b/cfgs/shards/services.nix @@ -19,12 +19,16 @@ settings = { # ContactInfo = "toradmin@example.org"; # Nickname = "toradmin"; - ORPort = 9001; + ORPort = 8002; + # ServerTransportPlugins are automatically set by nixpkgs + ServerTransportListenAddr = "obfs4 0.0.0.0:8003"; AccountingStart = "week 1 10:00"; # There is no AccountingRule in NixOS settings. Thus by default we are maxing out either send or receive. AccountingMax = "25 GBytes"; }; }; + # obfs4 port + networking.firewall.allowedTCPPorts = [ 8003 ]; services.nginx = { enable = true;