### Install nfqws-keenetic package Source: https://github.com/nfqws/nfqws-keenetic/blob/master/README.md After adding the repository, run opkg update and install the nfqws-keenetic package. ```bash opkg update opkg install nfqws-keenetic ``` -------------------------------- ### Install dependencies with opkg Source: https://github.com/nfqws/nfqws-keenetic/blob/master/README.md Run these commands in the Entware environment to install required packages. The opkg update refreshes package lists, then ca-certificates and wget-ssl are installed, and wget-nossl is removed to avoid conflicts. ```bash opkg update opkg install ca-certificates wget-ssl opkg remove wget-nossl ``` -------------------------------- ### Configure multiple NFQWS strategies Source: https://github.com/nfqws/nfqws-keenetic/blob/master/README.md Add additional strategies to the NFQWS_ARGS_CUSTOM option in the config, separating them with --new. The example applies --dpi-desync=fake,split2 for HTTPS requests to domains in custom.list and --dpi-desync=disorder2 --dpi-desync-fooling=md5sig,badseq for HTTP requests. ```bash NFQWS_ARGS_CUSTOM="--filter-tcp=443 --dpi-desync=fake,split2 --hostlist=custom.list --new --filter-tcp=80 --dpi-desync=disorder2 --dpi-desync-fooling=md5sig,badseq" ``` -------------------------------- ### Install busybox or coreutils packages Source: https://github.com/nfqws/nfqws-keenetic/blob/master/README.md Install busybox or the individual coreutils packages to resolve errors like 'readlink: not found' or 'dirname: not found'. ```bash opkg install busybox ``` ```bash opkg install coreutils-readlink coreutils-dirname ``` -------------------------------- ### Show installed nfqws-keenetic version Source: https://github.com/nfqws/nfqws-keenetic/blob/master/README.md Displays information about the installed nfqws-keenetic package, including version details. ```bash opkg info nfqws-keenetic ``` -------------------------------- ### Run NFQWS strategy selection script Source: https://github.com/nfqws/nfqws-keenetic/blob/master/README.md Install curl and run the strategy selection script, following its instructions to find a working NFQWS strategy. ```bash opkg install curl ``` ```bash /bin/sh -c "$(curl -fsSL https://github.com/nfqws/nfqws-keenetic/raw/master/common/strategy.sh)" ``` -------------------------------- ### Reinstall wget-ssl package Source: https://github.com/nfqws/nfqws-keenetic/blob/master/README.md Reinstall the wget-ssl package if you are sure it is installed but still getting download errors. ```bash opkg install --force-reinstall wget-ssl ``` -------------------------------- ### Check NFQUEUE rules in iptables Source: https://github.com/nfqws/nfqws-keenetic/blob/master/README.md Use this command to verify that the required NFQUEUE rules are present in the routing table. You should see output similar to the example shown. ```bash iptables-save | grep "queue-num 200" ``` ```text -A POSTROUTING -o eth3 -p tcp -m tcp --dport 443 -m connbytes --connbytes 1:6 --connbytes-mode packets --connbytes-dir original -m mark ! --mark 0x40000000/0x40000000 -j NFQUEUE --queue-num 200 --queue-bypass ``` -------------------------------- ### Пример конфигурационного файла nfqws.conf Source: https://github.com/nfqws/nfqws-keenetic/blob/master/README.md Пример содержимого файла настроек /opt/etc/nfqws/nfqws.conf. Содержит параметры ISP_INTERFACE, NFQWS_ARGS, NFQWS_ARGS_QUIC, NFQWS_ARGS_UDP, NFQWS_EXTRA_ARGS, NFQWS_ARGS_IPSET, NFQWS_ARGS_CUSTOM, IPV6_ENABLED, TCP_PORTS, UDP_PORTS, POLICY_NAME, POLICY_EXCLUDE, LOG_LEVEL. На OpenWRT пути, начинающиеся с /opt, соответствуют корню /, поэтому конфиг находится в /etc/nfqws/nfqws.conf. ```bash # Интерфейс провайдера. Обычно `eth3` или `eth2.2` для проводного соединения, и `ppp0` для PPPoE # Заполняется автоматически при установке # Можно ввести несколько интерфейсов, например ISP_INTERFACE="eth3 nwg1" # Для поиска интерфейса можно воспользоваться командами `route` или `ifconfig` ISP_INTERFACE="..." # Стратегии обработки HTTPS и QUIC трафика NFQWS_ARGS="..." NFQWS_ARGS_QUIC="..." # Стратегия обработки UDP трафика (не использует параметры из NFQWS_EXTRA_ARGS) NFQWS_ARGS_UDP="..." # Режим работы (auto, list, all) NFQWS_EXTRA_ARGS="..." # IP-списки NFQWS_ARGS_IPSET="..." # Дополнительные стратегии NFQWS_ARGS_CUSTOM="" # Обрабатывать ли IPv6 соединения IPV6_ENABLED=0|1 # TCP порты для iptables # Оставьте пустым, если нужно отключить обработку TCP # Добавьте порт 80 для обработки HTTP (TCP_PORTS=443,80) TCP_PORTS=443(,80) # UDP порты для iptables # Оставьте пустым, если нужно отключить обработку UDP # Удалите порт 443, если не нужно обрабатывать QUIC UDP_PORTS=443(,50000:50099) # Политика доступа (только для Keenetic/Netcraze) POLICY_NAME="nfqws" # Режим работы политики доступа # 0 - обрабатывается трафик только для устройств в политике # 1 - обрабатывается трафик для всех устройств, кроме добавленных в политику POLICY_EXCLUDE=0|1 # Логирование в Syslog LOG_LEVEL=0|1 ``` -------------------------------- ### Установка зависимостей через apk (OpenWRT 25.xx и Snapshot) Source: https://github.com/nfqws/nfqws-keenetic/blob/master/README.md Команды для установки необходимых зависимостей с помощью пакетного менеджера apk. Выполняются перед установкой репозитория и пакета. ```bash apk --update-cache add ca-certificates wget-ssl apk del wget-nossl ``` -------------------------------- ### Add universal nfqws-keenetic opkg repository Source: https://github.com/nfqws/nfqws-keenetic/blob/master/README.md Creates the opkg configuration directory and adds the universal repository URL. This repository supports multiple architectures: mipsel, mips, mips64, aarch64, armv7, x86, x86_64, lexra. ```bash mkdir -p /opt/etc/opkg echo "src/gz nfqws-keenetic https://nfqws.github.io/nfqws-keenetic/all" > /opt/etc/opkg/nfqws-keenetic.conf ``` -------------------------------- ### Add mipsel-3.4 architecture repository Source: https://github.com/nfqws/nfqws-keenetic/blob/master/README.md Alternative repository for mipsel-3.4 architecture, suitable for Keenetic 4G (KN-1212), Omni (KN-1410), Extra (KN-1710/1711/1713), Giga (KN-1010/1011), Ultra (KN-1810), Viva (KN-1910/1912/1913), Hero 4G (KN-2310/2311), Giant (KN-2610), Skipper 4G (KN-2910), Hopper (KN-3810); Zyxel Keenetic II / III, Extra, Extra II, Giga II / III, Omni, Omni II, Viva, Ultra, Ultra II. ```bash mkdir -p /opt/etc/opkg echo "src/gz nfqws-keenetic https://nfqws.github.io/nfqws-keenetic/mipsel" > /opt/etc/opkg/nfqws-keenetic.conf ``` -------------------------------- ### Добавление репозитория nfqws-keenetic в opkg Source: https://github.com/nfqws/nfqws-keenetic/blob/master/README.md Создает конфигурационный файл /etc/opkg/nfqws-keenetic.conf с указанием репозитория. Репозиторий универсальный, поддерживаемые архитектуры: mipsel, mips, mips64, aarch64, armv7, x86, x86_64, lexra. ```bash echo "src/gz nfqws-keenetic https://nfqws.github.io/nfqws-keenetic/openwrt" > /etc/opkg/nfqws-keenetic.conf ``` -------------------------------- ### Добавление репозитория nfqws-keenetic в apk Source: https://github.com/nfqws/nfqws-keenetic/blob/master/README.md Создает файл /etc/apk/repositories.d/nfqws-keenetic.list с указанием репозитория. Репозиторий универсальный, поддерживаемые архитектуры: mipsel, mips, mips64, aarch64, armv7, x86, x86_64, lexra. ```bash echo "https://nfqws.github.io/nfqws-keenetic/openwrt/packages.adb" > /etc/apk/repositories.d/nfqws-keenetic.list ``` -------------------------------- ### Установка публичного ключа репозитория через apk Source: https://github.com/nfqws/nfqws-keenetic/blob/master/README.md Загружает публичный ключ репозитория nfqws-keenetic для apk. Ключ сохраняется в /etc/apk/keys/nfqws-keenetic.pem. ```bash wget -O "/etc/apk/keys/nfqws-keenetic.pem" "https://nfqws.github.io/nfqws-keenetic/openwrt/nfqws-keenetic.pem" ``` -------------------------------- ### Установка публичного ключа репозитория через opkg Source: https://github.com/nfqws/nfqws-keenetic/blob/master/README.md Загружает и добавляет публичный ключ репозитория nfqws-keenetic для opkg. Ключ сохраняется в /tmp/nfqws-keenetic.pub. ```bash wget -O "/tmp/nfqws-keenetic.pub" "https://nfqws.github.io/nfqws-keenetic/openwrt/nfqws-keenetic.pub" opkg-key add /tmp/nfqws-keenetic.pub ``` -------------------------------- ### Add mips-3.4 architecture repository Source: https://github.com/nfqws/nfqws-keenetic/blob/master/README.md Alternative repository for mips-3.4 architecture, suitable for Keenetic Giga SE (KN-2410), Ultra SE (KN-2510), DSL (KN-2010), Launcher DSL (KN-2012), Duo (KN-2110), Skipper DSL (KN-2112), Hopper DSL (KN-3610); Zyxel Keenetic DSL, LTE, VOX. ```bash mkdir -p /opt/etc/opkg echo "src/gz nfqws-keenetic https://nfqws.github.io/nfqws-keenetic/mips" > /opt/etc/opkg/nfqws-keenetic.conf ``` -------------------------------- ### Установка пакета nfqws-keenetic через apk Source: https://github.com/nfqws/nfqws-keenetic/blob/master/README.md Обновляет кэш пакетов и устанавливает пакет nfqws-keenetic с помощью apk. ```bash apk --update-cache add nfqws-keenetic ``` -------------------------------- ### Update nfqws-keenetic Source: https://github.com/nfqws/nfqws-keenetic/blob/master/README.md Run these commands to update the nfqws-keenetic package to the latest version. ```bash opkg update opkg upgrade nfqws-keenetic ``` -------------------------------- ### Add aarch64-3.10 architecture repository Source: https://github.com/nfqws/nfqws-keenetic/blob/master/README.md Alternative repository for aarch64-3.10 architecture, suitable for Keenetic Peak (KN-2710), Ultra (KN-1811), Hopper (KN-3811), Hopper SE (KN-3812), Giga (KN-1012). ```bash mkdir -p /opt/etc/opkg echo "src/gz nfqws-keenetic https://nfqws.github.io/nfqws-keenetic/aarch64" > /opt/etc/opkg/nfqws-keenetic.conf ``` -------------------------------- ### Remove nfqws-keenetic Source: https://github.com/nfqws/nfqws-keenetic/blob/master/README.md Removes the nfqws-keenetic package along with its dependencies that are no longer needed. ```bash opkg remove --autoremove nfqws-keenetic ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.