From 32f1ea335cc2e5817ab56424a86f1ac6f6d3c31f Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy <dmitriy@pleshevski.ru> Date: Thu, 23 Jan 2025 09:47:25 +0300 Subject: [PATCH] host/home: update byedpi configs --- hosts/home/configuration.nix | 9 +++++---- modules/nixos/services/byedpi.nix | 12 +++++++----- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/hosts/home/configuration.nix b/hosts/home/configuration.nix index 9680f44..2d0401a 100644 --- a/hosts/home/configuration.nix +++ b/hosts/home/configuration.nix @@ -16,21 +16,22 @@ ################################################################################ local.services.byedpi = { enable = true; - enableProxy = false; settings = { + ip = "127.0.0.1"; port = 1081; + debugLevel = 2; }; groupSettings = [ { name = "googlevideo"; hosts = "googlevideo.com"; - disoob = 3; - disorder = 7; + disorder = 1; + split = 7; } { name = "youtube"; hosts = "youtube.com"; - fake = 1; + disorder = 1; } { name = "none"; diff --git a/modules/nixos/services/byedpi.nix b/modules/nixos/services/byedpi.nix index c4ca08f..7088d2e 100644 --- a/modules/nixos/services/byedpi.nix +++ b/modules/nixos/services/byedpi.nix @@ -99,8 +99,8 @@ in default = [ ]; }; ttl = mkOption { - type = types.int; - default = 8; + type = types.nullOr types.int; + default = null; }; split = mkSplitOption "Split packet at n"; disorder = mkSplitOption "Split and send reverse order"; @@ -127,9 +127,11 @@ in networking.firewall.allowedTCPPorts = lib.mkIf cfg.openFirewall [ cfg.settings.port ]; networking.proxy = lib.mkIf cfg.enableProxy rec { - allProxy = "http://${cfg.settings.ip}:${toString cfg.settings.port}"; - httpProxy = allProxy; - httpsProxy = allProxy; + /* + allProxy = "socks5://${cfg.settings.ip}:${toString cfg.settings.port}"; + httpProxy = allProxy; + httpsProxy = allProxy; + */ }; systemd.services.byedpi = {