host/home: update byedpi configs

This commit is contained in:
Dmitriy Pleshevskiy 2025-01-23 09:47:25 +03:00
parent ad9d2297cc
commit 32f1ea335c
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2
2 changed files with 12 additions and 9 deletions
hosts/home
modules/nixos/services

View file

@ -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";

View file

@ -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 = {