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 = { local.services.byedpi = {
enable = true; enable = true;
enableProxy = false;
settings = { settings = {
ip = "127.0.0.1";
port = 1081; port = 1081;
debugLevel = 2;
}; };
groupSettings = [ groupSettings = [
{ {
name = "googlevideo"; name = "googlevideo";
hosts = "googlevideo.com"; hosts = "googlevideo.com";
disoob = 3; disorder = 1;
disorder = 7; split = 7;
} }
{ {
name = "youtube"; name = "youtube";
hosts = "youtube.com"; hosts = "youtube.com";
fake = 1; disorder = 1;
} }
{ {
name = "none"; name = "none";

View file

@ -99,8 +99,8 @@ in
default = [ ]; default = [ ];
}; };
ttl = mkOption { ttl = mkOption {
type = types.int; type = types.nullOr types.int;
default = 8; default = null;
}; };
split = mkSplitOption "Split packet at n"; split = mkSplitOption "Split packet at n";
disorder = mkSplitOption "Split and send reverse order"; disorder = mkSplitOption "Split and send reverse order";
@ -127,9 +127,11 @@ in
networking.firewall.allowedTCPPorts = lib.mkIf cfg.openFirewall [ cfg.settings.port ]; networking.firewall.allowedTCPPorts = lib.mkIf cfg.openFirewall [ cfg.settings.port ];
networking.proxy = lib.mkIf cfg.enableProxy rec { networking.proxy = lib.mkIf cfg.enableProxy rec {
allProxy = "http://${cfg.settings.ip}:${toString cfg.settings.port}"; /*
httpProxy = allProxy; allProxy = "socks5://${cfg.settings.ip}:${toString cfg.settings.port}";
httpsProxy = allProxy; httpProxy = allProxy;
httpsProxy = allProxy;
*/
}; };
systemd.services.byedpi = { systemd.services.byedpi = {