global/zapret
This commit is contained in:
parent
f0eea71c6b
commit
1c26b5b65f
4 changed files with 23 additions and 8 deletions
|
|
@ -8,6 +8,6 @@
|
|||
imports = [
|
||||
./bluetooth.nix
|
||||
./ssh.nix
|
||||
./zapret.nix
|
||||
#./zapret.nix zapret decided to kill itself among all the devices caused so much problems, i just use tailscale exit node for the time being until i decide to fix this fucking shitass tool
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
services.dnscrypt-proxy = {
|
||||
enable = true;
|
||||
enable = false;
|
||||
|
||||
settings = {
|
||||
listen_addresses = [
|
||||
|
|
@ -29,23 +29,32 @@
|
|||
};
|
||||
|
||||
services.zapret = {
|
||||
enable = true;
|
||||
enable = false;
|
||||
|
||||
params = [
|
||||
"--dpi-desync=fake"
|
||||
"--dpi-desync-ttl=8"
|
||||
# "--dpi-desync=fake"
|
||||
# "--dpi-desync-ttl=8"
|
||||
"--filter-tcp=443 --dpi-desync=fake --dpi-desync-ttl=1 --dpi-desync-fooling=badsum "
|
||||
"--filter-udp=443 --dpi-desync=fake --dpi-desync-ttl=1 --dpi-desync-fooling=badsum --new "
|
||||
"--filter-tcp=443 --hostlist=/opt/zapret/ipset/zapret-hosts-user.txt --dpi-desync=fake --dpi-desync-ttl=1 --dpi-desync-fooling=badsum "
|
||||
"--filter-udp=443 --hostlist=/opt/zapret/ipset/zapret-hosts-user.txt --dpi-desync=fake --dpi-desync-ttl=1 --dpi-desync-fooling=badsum "
|
||||
];
|
||||
};
|
||||
|
||||
networking = {
|
||||
networkmanager = {
|
||||
enable = true;
|
||||
dns = "none";
|
||||
extraConfig = ''
|
||||
[connectivity]
|
||||
uri=http://connectivitycheck.gstatic.com/generate_204
|
||||
interval=0
|
||||
'';
|
||||
#dns = "none";
|
||||
};
|
||||
|
||||
nameservers = [
|
||||
"127.0.0.1"
|
||||
"::1"
|
||||
# "127.0.0.1"
|
||||
# "::1"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue