This commit is contained in:
itdoginfo
2024-10-13 18:20:52 +03:00
parent 17172dbc54
commit 249a2e3234
3 changed files with 11 additions and 8 deletions

View File

@@ -6,6 +6,8 @@
rm /etc/hotplug.d/iface/30-vpnroute
sed -i '/getdomains start/d' /etc/crontabs/root
rm /tmp/dnsmasq.d/domains.lst
service getdomains disable
rm /etc/init.d/getdomains
ip route del default scope link table vpn
```
@@ -68,7 +70,7 @@ opkg update && opkg install sing-box
**Custom subnets enable** - Добавить подсети или IP-адреса. Для подсетей задать маску.
# Известные баги
1. ucitrack не рестартится автоматически после установки пакета
-
# ToDo
- [x] Скрипт для автоматической установки.
@@ -78,6 +80,12 @@ opkg update && opkg install sing-box
- [ ] Wiki
- [ ] IPv6
- [ ] Исключение для IP, не ходить в туннель\прокси совсем 0x0
- [ ] Придумать автонастройку DNS через stubby итд. Как лучше это реализовать.
- [ ] Кнопка обновления списка доменов и подсетей
- [ ] Unit тесты (BATS)
- [ ] Интеграционые тесты бекенда (OpenWrt rootfs + BATS)
- [ ] Интеграционые тесты luci (OpenWrt rootfs + Testcafe?)
- [ ] Добавить label от конфига vless\ss\etc в luci. Хз как
# Разработка
Есть два варианта:

View File

@@ -30,6 +30,6 @@ opkg install $DOWNLOAD_DIR/luci-app-podkop*.ipk
rm -f $DOWNLOAD_DIR/podkop*.ipk $DOWNLOAD_DIR/luci-app-podkop*.ipk
/etc/init.d/ucitrack restart
#/etc/init.d/ucitrack restart
echo "Install sing-box for proxy, or install and configure WG/OpenVPN/AWG/etc for VPN mode"

View File

@@ -434,11 +434,7 @@ sing_box_config_vless() {
uuid=$(echo "$STRING" | cut -d'/' -f3 | cut -d'@' -f1)
server=$(echo "$STRING" | cut -d'@' -f2 | cut -d':' -f1)
#port=$(echo "$STRING" | cut -d'@' -f2 | cut -d':' -f2 | cut -d'/' -f1)
port=$(echo "$STRING" | cut -d'@' -f2 | cut -d':' -f2 | cut -d'?' -f1)
if [[ "$port" == */* ]]; then
port=$(echo "$port" | cut -d'/' -f1)
fi
port=$(echo "$STRING" | cut -d'@' -f2 | cut -d':' -f2 | cut -d'?' -f1 | awk -F'/' '{print $1}')
type=$(get_param "type")
flow=$(get_param "flow")
sni=$(get_param "sni")
@@ -473,7 +469,6 @@ sing_box_config_vless() {
else
.
end' "$template_config" >/etc/sing-box/config.json
#! Добавить label в luci
}
sing_box_config_check() {