Git Product home page Git Product logo

rootfs's Introduction

简介

小白一枚,根据各路大神教程,编译自用PVE CT / LXC 模板,Arm&x86_x64版 ROOTFS。

OpenWRT v22.03.5/v22.03.6 Fork xYx-c/build-openwrt使用OpenWRT官方源码编译

OpenWRT v23.05(main)为缝合产物,搞了两天没搞定,因为同样的配置文件v23.05会编译错误。

OpenWRT(LEDE) v24.07.07 Fork Zane-E/ROOTFS使用LEDE源码源码编译

OpenWRT(ImmortalWrt) v23.05 Fork 217heidai/OpenWrt-Builder使用ImmortalWrt源码源码编译

固件下载

点击下表中 即可跳转到该设备固件下载页面

平台+设备名称 固件编译状态 固件下载
  • 为什么要有三个版本的OpenWRT?
  • 仅限于就自身使用需求来看,ImmortalWrt更适合作为主路由,LEDE更适合旁路网关,或者无IPV6 RA设置需求的。
  • 另外的OpenWRT官方版如xYx-c所说很清爽。

LEDE ARM X86_X64

Tip

插件:基础功能、IPV6、Wireguard、SSR Plus+、PW、PW2、OC、Argon 主题、AdGuard Home、Mosdns、upnp、ZeroTier、Turbo ACC、ShutDown/关机、......

待解决,直接使用管理界面无法打开,需更改uhttpd注释掉 443 相关的两行。 coolsnowwolf/lede#11546

ImmortalWrt X86_X64

Tip

插件:基础功能、IPV6、Wireguard、PW、OC、Argon 主题、Mosdns、upnp、Turbo ACC、ShutDown/关机、USB网卡......

OpenWRT Official - ARM

Tip

插件:基础功能、IPV6、OC、AdguardHome、MosDNS、Agron主题

仅适用于ARMv8的CPU,且只提供LXC所需的rootfs.

名称 说明 用户 密码
IP 10.5.2.1 root password

用于x86_x64的的请到原作者处xYx-c/build-openwrt/releases下载.

说明:构建本openwrt目的是自己使用,没有太多功能比较清爽,仅仅适用我个人使用 - 附议原作者xYx-c,的确清爽.

感谢

xYx-c/build-openwrtZane-E/ROOTFS217heidai/OpenWrt-Builderdb-one/OpenWrt-AutoBuildshidahuilang/openwrthaiibo/OpenWrtophub/amlogic-s9xxx-openwrt 等等无私的大神分享及教程

鸣谢

使用了

  1. P3TERX大佬的云编译
  2. 最后感谢上面使用了但未提及的大佬们

Credits

License

MIT © P3TERX

pve8构建lxc openwrt容器-转自https://github.com/xYx-c/build-openwrt

  • 进入容器,执行命令:
pct create xxx \ # xxx容器序号
local:vztmpl/openwrt-xxx-rootfs.tar.gz \ # 镜像文件
--rootfs local:2 \ # 容器大小
--ostype unmanaged \
--hostname openwrt \
--arch amd64 \
--cores 4 \ # cpu
--memory 1024 \ # 内存
--swap 0  # 交换空间
  • 配置文件路径
vim /etc/pve/lxc/xxx.conf
  • lxc追加配置

注意: 网卡配置的type, veth为虚拟网卡, phys为真实网卡

onboot: 0 # 是否开机启动 1是 0否
features: nesting=1
lxc.cgroup2.devices.allow: c 108:0 rwm
lxc.cgroup2.devices.allow: c 10:200 rwm
lxc.mount.auto: proc:mixed sys:ro cgroup:mixed
lxc.mount.entry: /dev/net/tun dev/net/tun none rw,bind,create=file 0 0
lxc.mount.entry: /dev/ppp dev/ppp none rw,bind,optional,create=file 0 0
lxc.net.0.flags: up 
lxc.net.0.type: veth 
lxc.net.0.link: vmbr0 #虚拟网卡名
lxc.net.0.name: eth0
lxc.net.1.flags: up
lxc.net.1.type: phys
lxc.net.1.link: enp1s0 #真实网卡名
lxc.net.1.name: eth1

从lxc openwrt中dhcpv6服务获取ipv6

pve启动后负责拨号的openwrt还未启动无法获取ipv6地址,添加定时任务系统启动3分钟后获取ipv6,每12小时重新尝试获取

  • 创建dhcpv6.service

cat >> /etc/systemd/system/dhcpv6.service << EOF
[Unit]
Description=OpenWrt DHCPv6 Server
After=network.target
[Service]
ExecStart=/usr/sbin/dhclient -6 vmbr0
[Install]
WantedBy=multi-user.target
EOF
  • 创建dhcpv6.timer

cat >> /etc/systemd/system/dhcpv6.timer << EOF
[Unit]
Description=OpenWrt DHCPv6 Server
After=network.target
[Timer]
OnBootSec=3min
OnUnitActiveSec=12h
[Install]
WantedBy=multi-user.target
EOF
  • 运行定时任务

systemctl daemon-reload
systemctl enable dhcpv6.timer
systemctl start dhcpv6.timer

网络配置

接口-> lan-> IPV6设置-> 本地IPV6-> DNS服务器取消勾选

AdgHome DNS配置

  • 重定向53端口到AdGuardHome
127.0.0.1:7874
# 防污染解析、
tls://dns.pub
https://dns.pub/dns-query
tls://dns.alidns.com
https://dns.alidns.com/dns-query
tls://dns.google.com
https://dns.google/dns-query
——————————————————
Bootstrap DNS
——————————————————
119.29.29.29
202.96.134.133
2402:4e00::
2400:3200::1

OpenClash配置

插件设置-> DNS设置-> 停用*本地DNS劫持

rootfs's People

Contributors

518512 avatar zane-e avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.