Nếu chỉ là thao tác với bộ lọc thì dễ.Đúng vậy thím, nhưng việc đó là bên dưới, còn trên UI vẫn cho thao tác chung. Bấm Save phát thì gọi 1 loạt API để thêm/xoá cho từng profile.
Quào!! K hổ danh là vozer
2 thím inbox nè!Cụ nào quan tâm gói Pro hoặc gói Business hộp em nhé
Bây giờ còn cách nào dùng vượt 300k query ko mọi người. Ngày trước thấy có mấy bạn share premium.
Cài thử lên router mà mới 3 ngày đã ngốn 170k query rồi.
Định dùng chung fd88ba nhưng lại có mấy domain riêng tư cần whitelist.
Đang nghĩ đăng ký nhiều acc rồi làm nào cho nó thay đổi luân phiên được ta...
nghe đồn vozer anh hùng, hào hiệp, tương trợ giúp đỡ anh em, vậy mà có cái nextDNS premium không ai cho xài ké là sao nói mấy lần rồi, tự giác inbox đi chứ
Mình làm script tự xoay tua vài acc đủ dùng rồi, ko có nhu cầu mua pre nữa.Quào!! K hổ danh là vozer
2 thím inbox nè!
Bên ios chỉ có app NextHub là xài api để quản lý. Chưa thấy ai làm tận dụng api này NextHub Remote (https://apps.apple.com/vn/app/nexthub-remote/id1633985403)Đúng vậy thím, nhưng việc đó là bên dưới, còn trên UI vẫn cho thao tác chung. Bấm Save phát thì gọi 1 loạt API để thêm/xoá cho từng profile.
Xịn! Nếu ổn chia sẻ mọi người để xài script vớiMình làm script tự xoay tua vài acc đủ dùng rồi, ko có nhu cầu mua pre nữa.
Mới chuyển qua golang để tận dụng mấy cái API làm chức năng đồng bộ cho nhiều profile.Bên ios chỉ có app NextHub là xài api để quản lý. Chưa thấy ai làm tận dụng api này NextHub Remote (https://apps.apple.com/vn/app/nexthub-remote/id1633985403)
Xịn! Nếu ổn chia sẻ mọi người để xài script với
opkg update && opkg install https-dns-proxy
mkdir -p /opt/scripts
vi /opt/scripts/nextdns.sh
#!/bin/sh
find_next_id() {
local input_id="$1"
local next_id=""
local nextdns_ids="/opt/scripts/nextdns_ids.txt"
line_number=$(grep -n "$input_id" "$nextdns_ids" | cut -d ':' -f 1)
if [ -z "$line_number" ]; then
line_number=0
fi
next_line=$((line_number % $(wc -l < "$nextdns_ids") + 1))
next_id=$(sed -n "${next_line}p" "$nextdns_ids")
echo "$next_id"
}
config_file=$(cat /etc/config/https-dns-proxy)
current_id="${config_file#*nextdns\.io/}"; current_id="${current_id%%/*}"
next_id=$(find_next_id "$current_id")
echo "Change NextDNS from [$current_id] to [$next_id]"
logger -t NextDNS "Change NextDNS from [$current_id] to [$next_id]"
while uci -q delete https-dns-proxy.@https-dns-proxy[0]; do :; done
uci set https-dns-proxy.config.force_dns="0"
uci add https-dns-proxy https-dns-proxy > /dev/null
uci set https-dns-proxy.@https-dns-proxy[-1].resolver_url="https://dns1.nextdns.io/$next_id/OpenWrt"
uci set https-dns-proxy.@https-dns-proxy[-1].bootstrap_dns="8.8.8.8,1.1.1.1"
uci set https-dns-proxy.@https-dns-proxy[-1].listen_addr="127.0.0.1"
uci set https-dns-proxy.@https-dns-proxy[-1].listen_port="5053"
uci add https-dns-proxy https-dns-proxy > /dev/null
uci set https-dns-proxy.@https-dns-proxy[-1].resolver_url="https://dns2.nextdns.io/$next_id/OpenWrt"
uci set https-dns-proxy.@https-dns-proxy[-1].bootstrap_dns="8.8.8.8,1.1.1.1"
uci set https-dns-proxy.@https-dns-proxy[-1].listen_addr="127.0.0.1"
uci set https-dns-proxy.@https-dns-proxy[-1].listen_port="5054"
uci commit https-dns-proxy
/etc/init.d/https-dns-proxy restart
chmod +x /opt/scripts/nextdns.sh
vi /opt/scripts/nextdns_ids.txt
a1b2c3
d4e5f6
g7h8i9
/opt/scripts/nextdns.sh
0 3 * * * /opt/scripts/nextdns.sh
xin 1 slot freeCụ nào quan tâm gói Pro hoặc gói Business hộp em nhé
hộp rồi đó nhanh cái tay lênhộp đi
free thật sao báchộp đi
Thanks thím! Đã cập nhật lên #2. Nhờ thím @chuoixam có cải tiến/bổ sung script thêm k?Mới chuyển qua golang để tận dụng mấy cái API làm chức năng đồng bộ cho nhiều profile.
Share lại cái script cũ đã chạy mấy ngày nay cho bạn nào dùng OpenWrt nha.
Bác nào rảnh viết thành cái script full tự cài luôn cho mọi người cũng được, em đang lười quá.
Bước 1: Cài đặt https-dns-proxy
Bash:opkg update && opkg install https-dns-proxy
Bước 2: Tạo thư mục chứa script
Bash:mkdir -p /opt/scripts
Bước 3: Tạo file script
Gõ lệnh sau:
Tiếp tục bấm phím để chuyển sang chế độ chỉnh sửa tập tinBash:vi /opt/scripts/nextdns.sh
Dán đoạn code bên dưới vào
Bấm lần lượt các phím: Esc => gõ :wq => EnterBash:#!/bin/sh find_next_id() { local input_id="$1" local next_id="" local nextdns_ids="/opt/scripts/nextdns_ids.txt" line_number=$(grep -n "$input_id" "$nextdns_ids" | cut -d ':' -f 1) if [ -z "$line_number" ]; then line_number=0 fi next_line=$((line_number % $(wc -l < "$nextdns_ids") + 1)) next_id=$(sed -n "${next_line}p" "$nextdns_ids") echo "$next_id" } config_file=$(cat /etc/config/https-dns-proxy) current_id="${config_file#*nextdns\.io/}"; current_id="${current_id%%/*}" next_id=$(find_next_id "$current_id") echo "Change NextDNS from [$current_id] to [$next_id]" logger -t NextDNS "Change NextDNS from [$current_id] to [$next_id]" while uci -q delete https-dns-proxy.@https-dns-proxy[0]; do :; done uci set https-dns-proxy.config.force_dns="0" uci add https-dns-proxy https-dns-proxy > /dev/null uci set https-dns-proxy.@https-dns-proxy[-1].resolver_url="https://dns1.nextdns.io/$next_id/OpenWrt" uci set https-dns-proxy.@https-dns-proxy[-1].bootstrap_dns="8.8.8.8,1.1.1.1" uci set https-dns-proxy.@https-dns-proxy[-1].listen_addr="127.0.0.1" uci set https-dns-proxy.@https-dns-proxy[-1].listen_port="5053" uci add https-dns-proxy https-dns-proxy > /dev/null uci set https-dns-proxy.@https-dns-proxy[-1].resolver_url="https://dns2.nextdns.io/$next_id/OpenWrt" uci set https-dns-proxy.@https-dns-proxy[-1].bootstrap_dns="8.8.8.8,1.1.1.1" uci set https-dns-proxy.@https-dns-proxy[-1].listen_addr="127.0.0.1" uci set https-dns-proxy.@https-dns-proxy[-1].listen_port="5054" uci commit https-dns-proxy /etc/init.d/https-dns-proxy restart
Gõ lệnh sau để chmod file nextdns.sh có thể chạy:
Bash:chmod +x /opt/scripts/nextdns.sh
Bước 4: Tạo danh sách các id NextDNS
Gõ lệnh sau:
Tiếp tục bấm phím để chuyển sang chế độ chỉnh sửa tập tinBash:vi /opt/scripts/nextdns_ids.txt
Dán các id của NextDNS vào, mỗi id 1 dòng nhé.
Ví dụ:
Bấm lần lượt các phím: Esc => gõ :wq => EnterCode:a1b2c3 d4e5f6 g7h8i9
Để chạy test thử xem có lỗi gì không thì gõ lệnh
Bash:/opt/scripts/nextdns.sh
Bước 5: Tạo cron tự động xoay tua theo khung giờ
Vào System => Scheduled Tasks thêm dòng bên dưới và bấm Save.
Ví dụ dòng trên là script sẽ tự chạy vào lúc 3h00.Bash:0 3 * * * /opt/scripts/nextdns.sh
Mod @Fioren cập nhật #1 tắt Google Safe Browsing luôn đi để bớt chặn nhầm.Tên miền lgame-alpha-1300955520.file.myqcloud.com đang bị chặn bởi Google Safe Browsing gây lỗi không chơi được game Liên Minh Huyền Thoại: Tốc chiến trên di động
Hình như là bị chặn cái CNAME CDN cdn.dnsv1.com. Game Liên Quân cũng bị
P/s: Tắt cái Google Safe Browsing luôn cho khoẻ, bản thân các trình duyệt đều đã tích hợp sẵn Google Safe Browsing rồi nên k cần chặn bằng DNS nữa!
View attachment 2451625
Mod Fioren đang coi sex rồi thím :/Mod @Fioren cập nhật #1 tắt Google Safe Browsing luôn đi để bớt chặn nhầm.
Sao cái này chặn tào lao vậy, có nên bật cho phụ huynh kGoogle Safe Browsing
Tắt đi thím! Hồi trước mình share id free cũng tắt cái này, nó hay chặn mấy cái CDN làm lỗi dịch vụ!Sao cái này chặn tào lao vậy, có nên bật cho phụ huynh k
Hóng mod giải trìnhMod Fioren đang coi sex rồi thím :/
Sao em chơi PVP thấy bình thường nhỉ?Tên miền lgame-alpha-1300955520.file.myqcloud.com đang bị chặn bởi Google Safe Browsing gây lỗi không chơi được game Tốc Chiến trên di động