openwrt-aarch64 is the OpenWrt Docker image for ARMv8 devices. It can be used within Docker environments on systems such as Armbian. The source code from https://github.com/coolsnowwolf/lede
openwrt-aarch64 是 armv8 设备的 OpenWrt docker 镜像。 可以在 Armbian 等系统上的 docker 中使用。使用的源码是 https://github.com/coolsnowwolf/lede
192.168.1.1rootpassworddocker network ls
Modify the subnet, gateway, and network interface according to your actual setup.
网段、网关和网口根据自己的实际情况修改。
docker network create -d macvlan \
--subnet=192.168.1.0/24 \
--gateway=192.168.1.1 \
-o parent=eth0 \
macnet
docker run -d --name=openwrt \
--network macnet \
--privileged \
--restart always \
ophub/openwrt-armv8:latest
进入 OpenWrt 系统,修改 IP、网关、DNS等。
docker exec -it openwrt bash
vi /etc/config/network
After editing, press ESC and type :wq! to save changes.
修改完成后按 ESC 键,并输入 :wq! 保存修改结果。
/etc/init.d/network restart
Disable DHCP
Set the gateway to your main router’s IP
Set DNS to either the main router’s IP or a public DNS
In Physical Settings, uncheck Bridge interfaces
Add the following firewall rule:
关闭 dhcp
网关填主路由 ip
dns 可以为主路由 ip 或公共 dns
将其 物理设置 中的 桥接接口 取消掉
在防火墙添加规则设置:
iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE
/etc/init.d/firewall restart
Configure Armbian and OpenWrt for Mutual Access, for detailed instructions, refer to Section 12.7:
设置 Armbian 和 OpenWrt 互相访问,详见第 12.7 章节:
https://github.com/ophub/amlogic-s9xxx-armbian/tree/main/documents
Content type
Image
Digest
sha256:c5fd418e8…
Size
84 MB
Last updated
3 days ago
docker pull ophub/openwrt-aarch64