—
參考資源
—
支援硬體
- [OpenWrt Wiki] FriendlyARM NanoPi
- [OpenWrt Wiki] Xunlong Orange Pi
- Google: OpenWrt + ?
—
成果
192.168.0.1 是主要路由器,原先使用 192.168.0.1 上網,行動裝置因為瀏覽器沒有 uBlock 去廣告,所以將閘道設定到 192.168.0.2 OpenWrt 的旁路由,OpenWrt 安裝 Adblock 達到基本去廣告功能。
此去廣告的功能可以將 APP 上的廣告有效去除,可是遊戲內看廣告拿獎勵的功能也會失效,因為家裡不是所有人可需要這個功能,所以使用這種模式自己選擇。
—
預設帳號、密碼
192.168.1.1
root
沒有密碼
—
設置 DNS
Network → Interfaces → Edit → Advanced Settings → Use custom DNS servers
—
軟體安裝
系統 → Software → Update lists
—
中文介面
1 |
luci-i18n-base-zh-tw |
網頁重新整理就是中文
luci-i18n-* 其他翻譯
—
Web terminal
1 |
luci-app-ttyd |
—
WebCam
—
網路設定 – uci
有時候會遇到從網頁設定無法儲存的問題,這時候可以使用下指令嘗試
1 2 3 |
uci set network.lan.ipaddr='192.168.0.4' uci set network.lan.gateway='192.168.0.1' uci commit network |
—
應用
Hoyo 整理
- 網路總機
- MariaDB
- PostgreSQL
- SMTP
- PHP 7 & 8
- Postfix
- python3
- Redis
- Ruby
- Samba
- VPN
- Subversion
- Tesseract
- vsftpd
- youtube-dl
—
Adblock
luci-i18n-adblock-zh-tw
1 2 3 4 5 6 7 8 9 10 11 12 13 |
# Install packages opkg update opkg install adblock # Provide web interface opkg install luci-app-adblock # Backup the blocklists uci set adblock.global.adb_backupdir="/etc/adblock" # Save and apply uci commit adblock /etc/init.d/adblock restart |
OpenWrt 選單會多一個 Services,就有 Adblock 選擇,沒有的話請重新開機
開機後 adblock 啟動需要時間,實測需要 2 分鐘以上
—
—
NanoPi Neo2
使用 Debug Port 可以操作終端
—
57 total views, 1 views today