Инструменты пользователя

Инструменты сайта


asus_ax4200_proxy

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слеваПредыдущая версия
asus_ax4200_proxy [2026/10/19 20:41] – bonterkozasus_ax4200_proxy [2026/10/19 20:42] (текущий) – bonterkoz
Строка 133: Строка 133:
 Там должна быть строка tcp dport 2080 ... dnat ip to 192.168.7.1:2080. Затем снова запустите с ПК: Там должна быть строка tcp dport 2080 ... dnat ip to 192.168.7.1:2080. Затем снова запустите с ПК:
 curl.exe -x socks5h://192.168.99.179:2080 https://ifconfig.me curl.exe -x socks5h://192.168.99.179:2080 https://ifconfig.me
 +</code>
 +
 +<code>
 +Чтобы ASUS раздавал адреса 192.168.7.x, выполните по SSH:
 +uci set network.lan.ipaddr='192.168.7.1'
 +uci set network.lan.netmask='255.255.255.0'
 +uci set dhcp.lan.start='100'
 +uci set dhcp.lan.limit='150'
 +uci set dhcp.lan.leasetime='12h'
 +uci commit network
 +uci commit dhcp
 +/etc/init.d/network restart
 +/etc/init.d/dnsmasq restart
 +
 +
 +статический адрес на самом OpenWrt:
 +uci set network.wan.proto='static'
 +uci set network.wan.ipaddr='192.168.99.181'
 +uci set network.wan.netmask='255.255.255.0'
 +uci set network.wan.gateway='192.168.99.1'
 +uci set network.wan.dns='192.168.99.1'
 +uci commit network && /etc/init.d/network restart
 +LAN самого ASUS должен быть в другой подсети. Дефолтный 192.168.1.1 подходит.
 +
 +Разрешить web и SSH из 192.168.99.0/24
 +uci add firewall rule
 +uci set firewall.@rule[-1].name='Allow-mgmt-from-homeLAN'
 +uci set firewall.@rule[-1].src='wan'
 +uci set firewall.@rule[-1].src_ip='192.168.99.0/24'
 +uci set firewall.@rule[-1].proto='tcp'
 +uci set firewall.@rule[-1].dest_port='22 80 443'
 +uci set firewall.@rule[-1].family='ipv4'
 +uci set firewall.@rule[-1].target='ACCEPT'
 +uci commit firewall && /etc/init.d/firewall restart
 </code> </code>
  
asus_ax4200_proxy.1792431665.txt.gz · Последнее изменение: — bonterkoz

Если не указано иное, содержимое этой вики предоставляется на условиях следующей лицензии: CC Attribution 4.0 International
CC Attribution 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki