asus_ax4200_proxy
Различия
Показаны различия между двумя версиями страницы.
| Предыдущая версия справа и слеваПредыдущая версияСледующая версия | Предыдущая версия | ||
| asus_ax4200_proxy [2026/09/16 18:05] – bonterkoz | asus_ax4200_proxy [2026/10/19 20:42] (текущий) – bonterkoz | ||
|---|---|---|---|
| Строка 1: | Строка 1: | ||
| ====== ASUS AX4200 Proxy (Socks5) на порту 2080 ====== | ====== ASUS AX4200 Proxy (Socks5) на порту 2080 ====== | ||
| + | |||
| + | < | ||
| + | [SwitchyOmega Conditions] | ||
| + | @with result | ||
| + | |||
| + | *.kaspersky-labs.com +direct | ||
| + | *.yandex.ru +direct | ||
| + | *.dokuwiki.org +proxy | ||
| + | *.chatgpt.com +proxy | ||
| + | *.openai.com +proxy | ||
| + | *.oaistatic.com +proxy | ||
| + | *.oaiusercontent.com +proxy | ||
| + | *.chat.com +proxy | ||
| + | *.claude.ai +proxy | ||
| + | *.claude.com +proxy | ||
| + | *.anthropic.com +proxy | ||
| + | *.claudeusercontent.com +proxy | ||
| + | *.youtube.com +proxy | ||
| + | *.googlevideo.com +proxy | ||
| + | *.ytimg.com +proxy | ||
| + | *.grok.com +proxy | ||
| + | |||
| + | * +direct | ||
| + | </ | ||
| + | |||
| + | |||
| + | < | ||
| + | cat >> / | ||
| + | net.ipv6.conf.all.disable_ipv6 = 1 | ||
| + | net.ipv6.conf.default.disable_ipv6 = 1 | ||
| + | EOF | ||
| + | sysctl -p | ||
| + | |||
| + | sysctl -w net.ipv6.conf.all.disable_ipv6=1 | ||
| + | sysctl -w net.ipv6.conf.default.disable_ipv6=1 | ||
| + | |||
| + | Чтобы пережило перезагрузку, | ||
| + | cat > / | ||
| + | net.ipv6.conf.all.disable_ipv6 = 1 | ||
| + | net.ipv6.conf.default.disable_ipv6 = 1 | ||
| + | EOF | ||
| + | |||
| + | sysctl --system | ||
| + | |||
| + | |||
| + | |||
| + | В конфиге Xray на FIN-ноде (или в 3x-ui: Настройки Xray → Outbounds → direct): | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | |||
| + | Если на FIN стоит sing-box (версия 1.12+), в direct-outbound: | ||
| + | " | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | curl.exe -x socks5h:// | ||
| + | Параметр socks5h:// указывает выполнять DNS-резолвинг на стороне прокси, | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | </ | ||
| + | |||
| < | < | ||
| https:// | https:// | ||
| Строка 24: | Строка 97: | ||
| < | < | ||
| - | [SwitchyOmega Conditions] | + | 1. Проверьте WAN-адрес роутера |
| - | @with result | + | ifstatus wan | grep -A2 '" |
| + | Должен быть 192.168.99.179. Если адрес другой, | ||
| - | *.chatgpt.com +proxy | + | 2. Проверьте, |
| - | *.openai.com +proxy | + | nft list chain inet fw4 dstnat_wan |
| - | *.oaistatic.com +proxy | + | nft list chain inet fw4 input_wan |
| - | *.oaiusercontent.com +proxy | + | В dstnat_wan должна быть строка с tcp dport 2080 ... dnat ip to 192.168.7.1:2080, в input_wan — ct status dnat accept. |
| - | *.chat.com +proxy | + | |
| - | *.claude.ai +proxy | + | |
| - | *.claude.com +proxy | + | |
| - | *.anthropic.com +proxy | + | |
| - | *.claudeusercontent.com +proxy | + | |
| - | *.youtube.com +proxy | + | |
| - | *.googlevideo.com +proxy | + | |
| - | *.ytimg.com +proxy | + | |
| - | * +direct | + | Причина нашлась: |
| + | |||
| + | Проверьте, | ||
| + | uci show firewall | grep -A10 redirect | ||
| + | |||
| + | Если вывод пустой, | ||
| + | uci add firewall redirect | ||
| + | uci set firewall.@redirect[-1].name=' | ||
| + | uci set firewall.@redirect[-1].src=' | ||
| + | uci set firewall.@redirect[-1].src_ip=' | ||
| + | uci set firewall.@redirect[-1].src_dport=' | ||
| + | uci set firewall.@redirect[-1].dest=' | ||
| + | uci set firewall.@redirect[-1].dest_ip=' | ||
| + | uci set firewall.@redirect[-1].dest_port=' | ||
| + | uci set firewall.@redirect[-1].proto=' | ||
| + | uci set firewall.@redirect[-1].target=' | ||
| + | uci commit firewall | ||
| + | / | ||
| + | |||
| + | Если правило в конфиге есть, значит fw4 его отбросил. Причину покажет: | ||
| + | fw4 check | ||
| + | logread -e firewall | tail -20 | ||
| + | |||
| + | После перезапуска проверьте, | ||
| + | nft list chain inet fw4 dstnat_wan | ||
| + | Там должна быть строка tcp dport 2080 ... dnat ip to 192.168.7.1: | ||
| + | curl.exe -x socks5h:// | ||
| </ | </ | ||
| + | |||
| + | < | ||
| + | Чтобы ASUS раздавал адреса 192.168.7.x, | ||
| + | uci set network.lan.ipaddr=' | ||
| + | uci set network.lan.netmask=' | ||
| + | uci set dhcp.lan.start=' | ||
| + | uci set dhcp.lan.limit=' | ||
| + | uci set dhcp.lan.leasetime=' | ||
| + | uci commit network | ||
| + | uci commit dhcp | ||
| + | / | ||
| + | / | ||
| + | |||
| + | |||
| + | статический адрес на самом OpenWrt: | ||
| + | uci set network.wan.proto=' | ||
| + | uci set network.wan.ipaddr=' | ||
| + | uci set network.wan.netmask=' | ||
| + | uci set network.wan.gateway=' | ||
| + | uci set network.wan.dns=' | ||
| + | uci commit network && / | ||
| + | LAN самого ASUS должен быть в другой подсети. Дефолтный 192.168.1.1 подходит. | ||
| + | |||
| + | Разрешить web и SSH из 192.168.99.0/ | ||
| + | uci add firewall rule | ||
| + | uci set firewall.@rule[-1].name=' | ||
| + | uci set firewall.@rule[-1].src=' | ||
| + | uci set firewall.@rule[-1].src_ip=' | ||
| + | uci set firewall.@rule[-1].proto=' | ||
| + | uci set firewall.@rule[-1].dest_port=' | ||
| + | uci set firewall.@rule[-1].family=' | ||
| + | uci set firewall.@rule[-1].target=' | ||
| + | uci commit firewall && / | ||
| + | </ | ||
| + | |||
asus_ax4200_proxy.1789571105.txt.gz · Последнее изменение: — bonterkoz
