mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-07 03:56:55 +03:00
Update
This commit is contained in:
10
README.md
10
README.md
@@ -6,6 +6,8 @@
|
|||||||
rm /etc/hotplug.d/iface/30-vpnroute
|
rm /etc/hotplug.d/iface/30-vpnroute
|
||||||
sed -i '/getdomains start/d' /etc/crontabs/root
|
sed -i '/getdomains start/d' /etc/crontabs/root
|
||||||
rm /tmp/dnsmasq.d/domains.lst
|
rm /tmp/dnsmasq.d/domains.lst
|
||||||
|
service getdomains disable
|
||||||
|
rm /etc/init.d/getdomains
|
||||||
ip route del default scope link table vpn
|
ip route del default scope link table vpn
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -68,7 +70,7 @@ opkg update && opkg install sing-box
|
|||||||
**Custom subnets enable** - Добавить подсети или IP-адреса. Для подсетей задать маску.
|
**Custom subnets enable** - Добавить подсети или IP-адреса. Для подсетей задать маску.
|
||||||
|
|
||||||
# Известные баги
|
# Известные баги
|
||||||
1. ucitrack не рестартится автоматически после установки пакета
|
-
|
||||||
|
|
||||||
# ToDo
|
# ToDo
|
||||||
- [x] Скрипт для автоматической установки.
|
- [x] Скрипт для автоматической установки.
|
||||||
@@ -78,6 +80,12 @@ opkg update && opkg install sing-box
|
|||||||
- [ ] Wiki
|
- [ ] Wiki
|
||||||
- [ ] IPv6
|
- [ ] IPv6
|
||||||
- [ ] Исключение для IP, не ходить в туннель\прокси совсем 0x0
|
- [ ] Исключение для IP, не ходить в туннель\прокси совсем 0x0
|
||||||
|
- [ ] Придумать автонастройку DNS через stubby итд. Как лучше это реализовать.
|
||||||
|
- [ ] Кнопка обновления списка доменов и подсетей
|
||||||
|
- [ ] Unit тесты (BATS)
|
||||||
|
- [ ] Интеграционые тесты бекенда (OpenWrt rootfs + BATS)
|
||||||
|
- [ ] Интеграционые тесты luci (OpenWrt rootfs + Testcafe?)
|
||||||
|
- [ ] Добавить label от конфига vless\ss\etc в luci. Хз как
|
||||||
|
|
||||||
# Разработка
|
# Разработка
|
||||||
Есть два варианта:
|
Есть два варианта:
|
||||||
|
|||||||
@@ -30,6 +30,6 @@ opkg install $DOWNLOAD_DIR/luci-app-podkop*.ipk
|
|||||||
|
|
||||||
rm -f $DOWNLOAD_DIR/podkop*.ipk $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"
|
echo "Install sing-box for proxy, or install and configure WG/OpenVPN/AWG/etc for VPN mode"
|
||||||
@@ -434,11 +434,7 @@ sing_box_config_vless() {
|
|||||||
|
|
||||||
uuid=$(echo "$STRING" | cut -d'/' -f3 | cut -d'@' -f1)
|
uuid=$(echo "$STRING" | cut -d'/' -f3 | cut -d'@' -f1)
|
||||||
server=$(echo "$STRING" | cut -d'@' -f2 | 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 | awk -F'/' '{print $1}')
|
||||||
port=$(echo "$STRING" | cut -d'@' -f2 | cut -d':' -f2 | cut -d'?' -f1)
|
|
||||||
if [[ "$port" == */* ]]; then
|
|
||||||
port=$(echo "$port" | cut -d'/' -f1)
|
|
||||||
fi
|
|
||||||
type=$(get_param "type")
|
type=$(get_param "type")
|
||||||
flow=$(get_param "flow")
|
flow=$(get_param "flow")
|
||||||
sni=$(get_param "sni")
|
sni=$(get_param "sni")
|
||||||
@@ -473,7 +469,6 @@ sing_box_config_vless() {
|
|||||||
else
|
else
|
||||||
.
|
.
|
||||||
end' "$template_config" >/etc/sing-box/config.json
|
end' "$template_config" >/etc/sing-box/config.json
|
||||||
#! Добавить label в luci
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sing_box_config_check() {
|
sing_box_config_check() {
|
||||||
|
|||||||
Reference in New Issue
Block a user