mirror of
https://github.com/bol-van/zapret.git
synced 2025-05-10 20:40:48 +05:00
16 lines
664 B
Plaintext
16 lines
664 B
Plaintext
![]() |
# this script contain your special code to launch daemons and configure firewall
|
||
|
# use helpers from "functions" file and "zapret" init script
|
||
|
# in case of upgrade keep this file only, do not modify others
|
||
|
|
||
|
zapret_custom_daemons()
|
||
|
{
|
||
|
run_daemon $1 1 $NFQWS "$NFQWS_OPT_BASE $NFQWS_OPT_DESYNC"
|
||
|
}
|
||
|
zapret_custom_firewall()
|
||
|
{
|
||
|
local desync_http="--dport 80 -m mark ! --mark $DESYNC_MARK/$DESYNC_MARK"
|
||
|
local desync_https="--dport 443 -m connbytes --connbytes-dir=original --connbytes-mode=packets --connbytes 2:4 -m mark ! --mark $DESYNC_MARK/$DESYNC_MARK"
|
||
|
fw_nfqws_post $1 "$desync_http" "$desync_http" $QNUM
|
||
|
fw_nfqws_post $1 "$desync_https" "$desync_https" $QNUM
|
||
|
}
|