mirror of
https://github.com/rekryt/iplist.git
synced 2025-10-13 00:49:36 +03:00
docs: add documentation for HomeProxy (Sing-box) domains\ip-s list update script
This commit is contained in:
28
README.en.md
28
README.en.md
@@ -164,5 +164,33 @@ iplist_youtube_v4_cidr
|
|||||||
- In IP -> Firewall -> Address Lists, a new list should appear (in this example, named `youtube.com`)
|
- In IP -> Firewall -> Address Lists, a new list should appear (in this example, named `youtube.com`)
|
||||||
- 
|
- 
|
||||||
|
|
||||||
|
## Setting up HomeProxy (sing-box)
|
||||||
|
Enable "Routing mode" in "Only proxy mainland China":
|
||||||
|

|
||||||
|
```shell
|
||||||
|
# Rename the old update script
|
||||||
|
mv /etc/homeproxy/scripts/update_resources.sh /etc/homeproxy/scripts/update_resources.sh.origin
|
||||||
|
|
||||||
|
# Download the new script
|
||||||
|
wget https://iplist.opencck.org/scripts/homeproxy/update_resources.sh -O /etc/homeproxy/scripts/update_resources.sh
|
||||||
|
|
||||||
|
# Add execution permissions
|
||||||
|
chmod +x /etc/homeproxy/scripts/update_resources.sh
|
||||||
|
|
||||||
|
# Did you host this solution? - then uncomment the following line and replace "example.com" with your domain
|
||||||
|
# sed -i 's/iplist.opencck.org/example.com/g' /etc/homeproxy/scripts/update_resources.sh
|
||||||
|
```
|
||||||
|
Open the administrative panel in OpenWRT, go to the "System" - "Startup" - "Local Startup" section.
|
||||||
|
Add the following lines before "exit 0" to automatically run the update script at startup, as well as at 00:05:00 and 12:05:00
|
||||||
|
```shell
|
||||||
|
/etc/homeproxy/scripts/update_crond.sh
|
||||||
|
|
||||||
|
echo "5 0,12 * * * /etc/homeproxy/scripts/update_crond.sh" > /etc/crontabs/root
|
||||||
|
/etc/init.d/cron start
|
||||||
|
/etc/init.d/cron enable
|
||||||
|
```
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
### License
|
### License
|
||||||
The MIT License (MIT). Please see [LICENSE](./LICENSE) for more information.
|
The MIT License (MIT). Please see [LICENSE](./LICENSE) for more information.
|
||||||
|
28
README.md
28
README.md
@@ -172,5 +172,33 @@ iplist_youtube_v4_cidr
|
|||||||
- А в разделе IP -> Firewall -> Address Lists должен появиться новый список (в примере с именем `youtube.com`)
|
- А в разделе IP -> Firewall -> Address Lists должен появиться новый список (в примере с именем `youtube.com`)
|
||||||
- 
|
- 
|
||||||
|
|
||||||
|
## Настройка HomeProxy (sing-box)
|
||||||
|
Включите "Routing mode" в "Only proxy mainland China":
|
||||||
|

|
||||||
|
```shell
|
||||||
|
# переименовываем старый скрипт обновления
|
||||||
|
mv /etc/homeproxy/scripts/update_resources.sh /etc/homeproxy/scripts/update_resources.sh.origin
|
||||||
|
|
||||||
|
# загружаем новый скрипт
|
||||||
|
wget https://iplist.opencck.org/scripts/homeproxy/update_resources.sh -O /etc/homeproxy/scripts/update_resources.sh
|
||||||
|
|
||||||
|
# добавляем права на выполнение
|
||||||
|
chmod +x /etc/homeproxy/scripts/update_resources.sh
|
||||||
|
|
||||||
|
# вы захостили это решение? - тогда раскомментируйте в следующую строку и поменяйте "example.com" на ваш домен
|
||||||
|
# sed -i 's/iplist.opencck.org/example.com/g' /etc/homeproxy/scripts/update_resources.sh
|
||||||
|
```
|
||||||
|
Откройте административную панель OpenWRT раздел "System" - "Startup" - "Local Startup".
|
||||||
|
Добавьте перед "exit 0" строки, чтобы автоматически запускать скрипт обновления при старте, а также в 00:05:00 и 12:05:00
|
||||||
|
```shell
|
||||||
|
/etc/homeproxy/scripts/update_crond.sh
|
||||||
|
|
||||||
|
echo "5 0,12 * * * /etc/homeproxy/scripts/update_crond.sh" > /etc/crontabs/root
|
||||||
|
/etc/init.d/cron start
|
||||||
|
/etc/init.d/cron enable
|
||||||
|
```
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
### License
|
### License
|
||||||
The MIT License (MIT). Please see [LICENSE](./LICENSE) for more information.
|
The MIT License (MIT). Please see [LICENSE](./LICENSE) for more information.
|
||||||
|
Reference in New Issue
Block a user