群晖docker部署openwrt

群晖docker部署openwrt

Docker OpenWRT

1: 开启网卡混杂模式

#ip link set ovs_eth0 promisc on
#ip link set eth0 promisc on

2: 创建macvlan

#docker network create -d macvlan
–subnet=192.168.10.0/24
–gateway=192.168.10.1
-o parent=ovs_eth0
openwrt

3: 启动容器

#docker run -d
–restart always
–name DSM-OpenWrt
–network openwrt
–privileged=true
zzsrv/openwrt:latest /sbin/init

4: /etc/config/network配置

config interface ‘loopback’
option proto ‘static’
option ipaddr ‘127.0.0.1’
option netmask ‘255.0.0.0’
option device ‘lo’

config globals ‘globals’
option packet_steering ‘1’

config interface ‘lan’
option type ‘macvlan’
option proto ‘static’
option netmask ‘255.255.255.0’
option ip6assign ‘60’
option ipaddr ‘192.168.10.30’
option gateway ‘192.168.10.1’
option dns ‘192.168.10.1’
option device ‘eth0’

config device
option name ‘br-lan’
option type ‘macvlan’
list ports ‘eth0’

5: 重启网卡服务

#/etc/init.d/network restart

6: 浏览器打开OpenWrt页面 http://192.168.10.30/

7: 安装iStore商店 https://doc.istoreos.com/zh/guide/istore/

#opkg update || exit 1
#cd /tmp
#wget https://github.com/linkease/openwrt-app-actions/raw/main/applications/luci-app-systools/root/usr/share/systools/istore-reinstall.run
#chmod 755 istore-reinstall.run
#./istore-reinstall.run

8: 安装V2rayA https://proxyguide.github.io/v2ray/v2raya-openwrt/

#opkg update
#opkg install luci-i18n-v2raya-zh-cn v2ray-geoip v2ray-geosite
#opkg update
#opkg install v2raya

9: V2rayA导入订阅节点。