host/home: update byedpi configs
This commit is contained in:
parent
ad9d2297cc
commit
32f1ea335c
2 changed files with 12 additions and 9 deletions
|
@ -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";
|
||||
|
|
|
@ -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}";
|
||||
/*
|
||||
allProxy = "socks5://${cfg.settings.ip}:${toString cfg.settings.port}";
|
||||
httpProxy = allProxy;
|
||||
httpsProxy = allProxy;
|
||||
*/
|
||||
};
|
||||
|
||||
systemd.services.byedpi = {
|
||||
|
|
Loading…
Add table
Reference in a new issue