nix/home/program/bash/module/Zapret.nix

11 lines
396 B
Nix
Raw Normal View History

2024-08-28 02:38:36 +03:00
{ ... }: {
text = ''
# FRKN.
2024-08-28 02:38:36 +03:00
# SOURCE: https://github.com/bol-van/zapret
function zapret() {
2024-08-01 19:51:04 +03:00
iptables -t mangle -I POSTROUTING -p tcp -m multiport --dports 80,443 -m connbytes --connbytes-dir=original --connbytes-mode=packets --connbytes 1:6 -m mark ! --mark 0x40000000/0x40000000 -j NFQUEUE --queue-num 200 --queue-bypass
2024-08-28 02:38:36 +03:00
nfqws --pidfile=/run/nfqws.pid --qnum=201 ''${@}
}
'';
}