mirror of
https://github.com/gSpotx2f/ruantiblock_openwrt.git
synced 2026-05-14 06:30:59 +00:00
Updated
@@ -19,7 +19,12 @@ VPN-интерфейс:
|
|||||||
|
|
||||||
uci commit ruantiblock
|
uci commit ruantiblock
|
||||||
|
|
||||||
и т.д. Параметры аналогичны параметрам основного экземпляра с префиксом `u_`.
|
и т.д. Параметры аналогичны параметрам основного экземпляра с префиксом `u_`, например, для режима прозрачного прокси с типом прокси `tproxy` и портом `1100`:
|
||||||
|
|
||||||
|
uci set ruantiblock.list1.u_proxy_mode='3'
|
||||||
|
uci set ruantiblock.list1.u_t_proxy_type='1'
|
||||||
|
uci set ruantiblock.list1.u_t_proxy_port_tcp='1100'
|
||||||
|
uci commit ruantiblock
|
||||||
|
|
||||||
Далее свои записи нужно добавить в текстовый файл `/etc/ruantiblock/user_lists/list1` (IP, CIDR или FQDN, каждая запись в новой строке). В записях FQDN можно задать DNS-сервер для разрешения данного домена (через пробел). Также можно комментировать строки (`#` - первый символ строки).
|
Далее свои записи нужно добавить в текстовый файл `/etc/ruantiblock/user_lists/list1` (IP, CIDR или FQDN, каждая запись в новой строке). В записях FQDN можно задать DNS-сервер для разрешения данного домена (через пробел). Также можно комментировать строки (`#` - первый символ строки).
|
||||||
|
|
||||||
|
|||||||
@@ -104,6 +104,14 @@
|
|||||||
|
|
||||||
uci set ruantiblock.config.proxy_mode='2'
|
uci set ruantiblock.config.proxy_mode='2'
|
||||||
uci set ruantiblock.config.if_vpn='tun1'
|
uci set ruantiblock.config.if_vpn='tun1'
|
||||||
|
|
||||||
|
Также, если необходимо, для пользовательских списков (на примере list1):
|
||||||
|
|
||||||
|
uci set ruantiblock.list1.u_proxy_mode='2'
|
||||||
|
uci set ruantiblock.list1.u_if_vpn='tun1'
|
||||||
|
|
||||||
|
Применение настроек:
|
||||||
|
|
||||||
uci commit ruantiblock
|
uci commit ruantiblock
|
||||||
service ruantiblock restart
|
service ruantiblock restart
|
||||||
|
|
||||||
@@ -168,6 +176,15 @@
|
|||||||
|
|
||||||
uci set ruantiblock.config.proxy_mode='3'
|
uci set ruantiblock.config.proxy_mode='3'
|
||||||
uci set ruantiblock.config.t_proxy_type='1'
|
uci set ruantiblock.config.t_proxy_type='1'
|
||||||
uci set ruantiblock.config.t_proxy_port_tcp '1100'
|
uci set ruantiblock.config.t_proxy_port_tcp='1100'
|
||||||
|
|
||||||
|
Также, если необходимо, для пользовательских списков (на примере list1):
|
||||||
|
|
||||||
|
uci set ruantiblock.list1.u_proxy_mode='3'
|
||||||
|
uci set ruantiblock.list1.u_t_proxy_type='1'
|
||||||
|
uci set ruantiblock.list1.u_t_proxy_port_tcp='1100'
|
||||||
|
|
||||||
|
Применение настроек:
|
||||||
|
|
||||||
uci commit ruantiblock
|
uci commit ruantiblock
|
||||||
service ruantiblock restart
|
service ruantiblock restart
|
||||||
|
|||||||
Reference in New Issue
Block a user