mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 14:28:02 +03:00
fix: kdeconnect autostart, zapret firewall rules
This commit is contained in:
1 parent
fd3c55ab0c
commit
1b50d8e586
2 files changed
+9
-6
No files matched your search
@@ -44,4 +44,5 @@
|
|||||||
programs.fzf.enable = true;
|
programs.fzf.enable = true;
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
fonts.fontconfig.enable = true;
|
fonts.fontconfig.enable = true;
|
||||||
|
services.kdeconnect.enable = true;
|
||||||
}
|
}
|
||||||
@@ -4,7 +4,6 @@
|
|||||||
# you can make this true if you have problems with zapret
|
# you can make this true if you have problems with zapret
|
||||||
services.cloudflare-warp.enable = false;
|
services.cloudflare-warp.enable = false;
|
||||||
|
|
||||||
# Zapret
|
|
||||||
services.zapret = {
|
services.zapret = {
|
||||||
enable = true;
|
enable = true;
|
||||||
params = [
|
params = [
|
||||||
@@ -12,16 +11,12 @@
|
|||||||
"--dpi-desync=fake,multisplit"
|
"--dpi-desync=fake,multisplit"
|
||||||
"--dpi-desync-split-pos=method+2"
|
"--dpi-desync-split-pos=method+2"
|
||||||
"--dpi-desync-fooling=md5sig"
|
"--dpi-desync-fooling=md5sig"
|
||||||
|
|
||||||
"--new"
|
"--new"
|
||||||
|
|
||||||
"--filter-tcp=443"
|
"--filter-tcp=443"
|
||||||
"--dpi-desync=fake,multidisorder"
|
"--dpi-desync=fake,multidisorder"
|
||||||
"--dpi-desync-split-pos=1,midsld"
|
"--dpi-desync-split-pos=1,midsld"
|
||||||
"--dpi-desync-fooling=badseq,md5sig"
|
"--dpi-desync-fooling=badseq,md5sig"
|
||||||
|
|
||||||
"--new"
|
"--new"
|
||||||
|
|
||||||
"--filter-udp=443"
|
"--filter-udp=443"
|
||||||
"--dpi-desync=fake"
|
"--dpi-desync=fake"
|
||||||
"--dpi-desync-repeats=6"
|
"--dpi-desync-repeats=6"
|
||||||
@@ -29,4 +24,11 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
networking.enableIPv6 = false;
|
networking.enableIPv6 = false;
|
||||||
}
|
|
||||||
|
networking.firewall.extraCommands = ''
|
||||||
|
iptables -I OUTPUT -p tcp -m multiport --dports 80,443 -m connbytes --connbytes-dir=original --connbytes-mode=packets --connbytes 1:9 -j NFQUEUE --queue-num 200 --queue-bypass
|
||||||
|
iptables -I OUTPUT -p udp --dport 443 -m connbytes --connbytes-dir=original --connbytes-mode=packets --connbytes 1:9 -j NFQUEUE --queue-num 200 --queue-bypass
|
||||||
|
iptables -I OUTPUT -m mark --mark 0x40000000/0x40000000 -j RETURN
|
||||||
|
'';
|
||||||
|
|
||||||
|
networking.firewals
|
||||||
Reference in new issue
Block a user