fix(zapret): Added tests tools to zapret )
This commit is contained in:
1 parent
e866f698c6
commit
cf02a78021
2 files changed
+10
-3
No files matched your search
@@ -67,7 +67,7 @@
|
|||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
./host/${hostname}/configuration.nix
|
./host/${hostname}/configuration.nix
|
||||||
inputs.zapret-discord-youtube.nixosModules.default
|
inputs.zapret-discord-youtube.nixosModules.withTestTools
|
||||||
{ nixpkgs.config = config; }
|
{ nixpkgs.config = config; }
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,14 +3,21 @@
|
|||||||
{
|
{
|
||||||
services.zapret-discord-youtube = {
|
services.zapret-discord-youtube = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = "general(ALT)"; # или любой другой
|
config = "general(ALT)"; # Или любой конфиг из папки configs (general, general(ALT), general (SIMPLE FAKE) и т.д.)
|
||||||
|
|
||||||
gameFilter = "null"; # "all", "tcp", "udp" или "null"
|
# Game Filter: "null" (отключен), "all" (TCP+UDP), "tcp" (только TCP), "udp" (только UDP)
|
||||||
|
gameFilter = "null"; # или "all", "tcp", "udp"
|
||||||
|
|
||||||
|
# Добавляем кастомные домены в list-general-user.txt
|
||||||
listGeneral = [ "example.com" "test.org" "mysite.net" ];
|
listGeneral = [ "example.com" "test.org" "mysite.net" ];
|
||||||
|
|
||||||
|
# Добавляем домены в list-exclude-user.txt (исключения)
|
||||||
listExclude = [ "ubisoft.com" "origin.com" ];
|
listExclude = [ "ubisoft.com" "origin.com" ];
|
||||||
|
|
||||||
|
# Добавляем IP адреса в ipset-all.txt
|
||||||
ipsetAll = [ "192.168.1.0/24" "10.0.0.1" ];
|
ipsetAll = [ "192.168.1.0/24" "10.0.0.1" ];
|
||||||
|
|
||||||
|
# Добавляем IP адреса в ipset-exclude-user.txt (исключения)
|
||||||
ipsetExclude = [ "203.0.113.0/24" ];
|
ipsetExclude = [ "203.0.113.0/24" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user