global/zapret
This commit is contained in:
parent
f0eea71c6b
commit
1c26b5b65f
4 changed files with 23 additions and 8 deletions
|
|
@ -5,10 +5,15 @@
|
|||
virtiofsd
|
||||
linux-pam
|
||||
lm_sensors
|
||||
wireguard-tools
|
||||
iproute2
|
||||
util-linux
|
||||
];
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||
time.timeZone = "Europe/Istanbul";
|
||||
zramSwap.enable = true;
|
||||
programs.localsend.enable = true;
|
||||
|
||||
networking.networkmanager.enable = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
services.tailscale = {
|
||||
enable = true;
|
||||
useRoutingFeatures = "both";
|
||||
interfaceName = "userspace-networking";
|
||||
};
|
||||
|
||||
programs.thunar.plugins = with pkgs; [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue