Sign inSign up

sampoon/openwrt

By sampoon

•Updated about 3 years ago
Archived

X86-64 OpenWrt docker image with naive and tuic

Image
1

4.4K

sampoon/openwrt repository overview

每个版本号有不同功能,密码是password

2023_08_26的版本只包含openclash,passwall,ssrplus,非常适合作为旁路由浏览世界

多得各位大神,passwall和ssrplus已经完美支持各种协议,例如最新的naive和tuic

查看网卡名

ifconfig

网卡混杂模式打开,也有人说不用开混杂模式也是正常的

nano /etc/rc.local

增加

ip link set eth0 promisc on         #eth0改为你自己的网卡

保存退出

重启网络

/etc/init.d/network restart 

检测混杂模式是否开启,网卡名称后有写“running promisc”

ifconfig

创建 docker 网卡

docker network create -d macvlan --subnet=192.168.31.0/24 --gateway=192.168.31.1 -o parent=eth0 macnet        #网段和网关按实际更改,父接口填写上一步的接口名称

查看系统

uname -a 

下载 openwrt 镜像

docker pull sampoon/openwrt:2023_08_26

查看已经下载的镜像

docker images

启动 docker 镜像

docker run --restart always --name openwrt -d --network macnet --privileged sampoon/openwrt:2023_08_26 /sbin/init

进入到容器内部

docker exec -it openwrt /bin/bash

修改lan口的IP,DNS,网关,DNS和网关填写主路由地址

nano /etc/config/netwrok

保存退出

重启网络

/etc/init.d/network restart 

exit

关闭ssh

浏览器登录openwrt

只留下lan即可

网络 -> 接口 -> LAN -> 物理设置 -> 桥接接口 取消勾选

网络 -> 接口 -> LAN -> 禁用dhcp功能

网络 => 接口 => LAN => DHCP 服务器 => IPv6 设置 三个都禁用

主路由的网关和 DNS 设置成 openwrt 的IP

Tag summary

Content type

Image

Digest

sha256:52fc4ffd2…

Size

135.5 MB

Last updated

about 3 years ago

docker pull sampoon/openwrt:2023_08_26