Sign inSign up

xrbbm/openwrt

By xrbbm

•Updated over 5 years ago

openwrt ARM64版,基于Lean最新源码编译,集成55Rplus+ 、passwall,N1等适用.

Image
1

2.0K

xrbbm/openwrt repository overview

⁠Docker运行OpenWrt

⁠SSH登录后用命令

⁠网络模式改为混合模式(以前改过的不用再改)

ip link set eth0 promisc on

⁠在Docker里面的网络模式添加macvlan模式,使容器可拥有独立IP(以前改过的不用再改)

docker network create -d macvlan --subnet=192.168.1.0/24 --gateway=192.168.1.1 -o parent=eth0 macnet

注意:192.168.1.0/24是你主路由所在的网段,192.168.1.1是网关地址

⁠启动OpenWrt

docker run --restart always -d --network macnet --privileged --name OpenWrt xrbbm/openwrt:latest /sbin/init

⁠进入OpenWrt容器

docker exec -it OpenWrt /bin/sh

⁠修改ipaddr

vi /etc/config/network

*config interface 'lan'下的option ipaddr '192.168.1.1'*的192.168.1.1修改成网段未分配的ip,例:192.168.1.2

⁠重启

reboot

⁠浏览器访问

访问"修改ipaddr"步骤中的设置的ip

用户:root

默认密码:password

⁠警告:网络-接口-修改-IPv6 分配长度 需要禁用,否则科学上网无法使用GFW模式

⁠导入自己编译的镜像

openwrt-armvirt-64-default-rootfs.tar.gz文件上传到*/tmp/openwrt*里面

docker import /tmp/openwrt/openwrt-armvirt-64-default-rootfs.tar.gz xrbbm/openwrt

直接启动即可

Tag summary

Content type

Image

Digest

Size

42.1 MB

Last updated

over 5 years ago

docker pull xrbbm/openwrt