Sign inSign up

ophub/openwrt-aarch64

By ophub

Updated 3 days ago

Image
30

10K+

ophub/openwrt-aarch64 repository overview

Image Description / 镜像说明

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

Default OpenWrt Information / 默认信息

  • IP: 192.168.1.1
  • Username: root
  • Password: password

Check the macvlan networks / 检查 macvlan 网络

docker 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

Pull the OpenWrt image / 拉取 OpenWrt 镜像

docker run -d --name=openwrt \
  --network macnet \
  --privileged \
  --restart always \
  ophub/openwrt-armv8:latest

Modify network settings (IP, gateway, DNS, etc.)

进入 OpenWrt 系统,修改 IP、网关、DNS等。

docker exec -it openwrt bash
vi /etc/config/network

After editing, press ESC and type :wq! to save changes.

修改完成后按 ESC 键,并输入 :wq! 保存修改结果。

restart the OpenWrt network service / 重启 OpenWrt 的网络

/etc/init.d/network restart

OpenWrt Bypass Router Configuration / 旁路由设置

  • 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

Restart the firewall / 添加后重启防火墙

/etc/init.d/firewall restart

Configure Network Interconnection / 设置网络互联互通

Configure Armbian and OpenWrt for Mutual Access, for detailed instructions, refer to Section 12.7:

设置 ArmbianOpenWrt 互相访问,详见第 12.7 章节:

https://github.com/ophub/amlogic-s9xxx-armbian/tree/main/documents

Tag summary

Content type

Image

Digest

sha256:c5fd418e8

Size

84 MB

Last updated

3 days ago

docker pull ophub/openwrt-aarch64