Различия
Показаны различия между двумя версиями страницы.
config-3 [2025/02/03 01:23] – создано mirocow | config-3 [2025/09/27 22:24] (текущий) – удалено mirocow | ||
---|---|---|---|
Строка 1: | Строка 1: | ||
- | <code bash> | ||
- | # this file is included from init scripts | ||
- | # change values here | ||
- | # can help in case /tmp has not enough space | ||
- | # | ||
- | |||
- | # redefine user for zapret daemons. required on Keenetic | ||
- | WS_USER=nobody | ||
- | |||
- | # override firewall type : iptables, | ||
- | FWTYPE=iptables | ||
- | |||
- | # options for ipsets | ||
- | # maximum number of elements in sets. also used for nft sets | ||
- | SET_MAXELEM=522288 | ||
- | # too low hashsize can cause memory allocation errors on low RAM systems , even if RAM is enough | ||
- | # too large hashsize will waste lots of RAM | ||
- | IPSET_OPT=" | ||
- | # dynamically generate additional ip. $1 = ipset/ | ||
- | # | ||
- | |||
- | # options for ip2net. " | ||
- | IP2NET_OPT4=" | ||
- | IP2NET_OPT6=" | ||
- | # options for auto hostlist | ||
- | AUTOHOSTLIST_RETRANS_THRESHOLD=3 | ||
- | AUTOHOSTLIST_FAIL_THRESHOLD=3 | ||
- | AUTOHOSTLIST_FAIL_TIME=60 | ||
- | # 1 = debug autohostlist positives to ipset/ | ||
- | AUTOHOSTLIST_DEBUGLOG=0 | ||
- | |||
- | # number of parallel threads for domain list resolves | ||
- | MDIG_THREADS=30 | ||
- | |||
- | # ipset/*.sh can compress large lists | ||
- | GZIP_LISTS=1 | ||
- | # command to reload ip/host lists after update | ||
- | # comment or leave empty for auto backend selection : ipset or ipfw if present | ||
- | # on BSD systems with PF no auto reloading happens. you must provide your own command | ||
- | # set to " | ||
- | # | ||
- | |||
- | # override ports | ||
- | # | ||
- | # | ||
- | # | ||
- | |||
- | # CHOOSE OPERATION MODE | ||
- | # MODE : nfqws, | ||
- | # nfqws : nfqws for dpi desync | ||
- | # tpws : tpws transparent mode | ||
- | # tpws-socks : tpws socks mode | ||
- | # filter : no daemon, just create ipset or download hostlist | ||
- | # custom : custom mode. should modify custom init script and add your own code | ||
- | MODE=nfqws | ||
- | # apply fooling to http | ||
- | MODE_HTTP=1 | ||
- | # for nfqws only. support http keep alives. enable only if DPI checks for http request in any outgoing packet | ||
- | MODE_HTTP_KEEPALIVE=0 | ||
- | # apply fooling to https | ||
- | MODE_HTTPS=1 | ||
- | # apply fooling to quic | ||
- | MODE_QUIC=1 | ||
- | # none, | ||
- | MODE_FILTER=autohostlist | ||
- | |||
- | # CHOOSE NFQWS DAEMON OPTIONS for DPI desync mode. run " | ||
- | DESYNC_MARK=0x40000000 | ||
- | DESYNC_MARK_POSTNAT=0x20000000 | ||
- | NFQWS_OPT_DESYNC=" | ||
- | # | ||
- | # | ||
- | # | ||
- | # | ||
- | NFQWS_OPT_DESYNC_QUIC=" | ||
- | # | ||
- | |||
- | # CHOOSE TPWS DAEMON OPTIONS. run " | ||
- | TPWS_OPT=" | ||
- | |||
- | # openwrt only : donttouch, | ||
- | FLOWOFFLOAD=donttouch | ||
- | |||
- | # openwrt: specify networks to be treated as LAN. default is " | ||
- | # | ||
- | # openwrt: specify networks to be treated as WAN. default wans are interfaces with default route | ||
- | # | ||
- | # | ||
- | |||
- | # for routers based on desktop linux and macos. has no effect in openwrt. | ||
- | # CHOOSE LAN and optinally WAN/WAN6 NETWORK INTERFACES | ||
- | # or leave them commented if its not router | ||
- | # it's possible to specify multiple interfaces like this : IFACE_LAN=" | ||
- | # if IFACE_WAN6 is not defined it take the value of IFACE_WAN | ||
- | IFACE_LAN=br0 | ||
- | IFACE_WAN=eth0 | ||
- | # | ||
- | |||
- | # should start/stop command of init scripts apply firewall rules ? | ||
- | # not applicable to openwrt with firewall3+iptables | ||
- | INIT_APPLY_FW=1 | ||
- | # firewall apply hooks | ||
- | # | ||
- | # | ||
- | # | ||
- | # | ||
- | |||
- | # do not work with ipv4 | ||
- | # | ||
- | # do not work with ipv6 | ||
- | DISABLE_IPV6=1 | ||
- | |||
- | # select which init script will be used to get ip or host list | ||
- | # possible values : get_user.sh get_antizapret.sh get_combined.sh get_reestr.sh get_hostlist.sh | ||
- | # comment if not required | ||
- | #GETLIST= | ||
- | </ |