Giter Site home page Giter Site logo

openwrt-actions's Introduction

OpenWRT 编译

build-openwrt build-n1 build-private

每周五自动构建新版本。

专注制作旁路由精简固件,稳定运行!

默认 IP: 192.168.11.4/24 默认 GW: 192.168.11.1

密码: 没有密码,其他涉及默认密码的都是 password

详细说明见各个目标子目录

分为旁路由固件和硬件路由固件。需要其他固件可以提 Wiki

注意:旁路由固件默认未开启 DHCP!!!

旁路由固件

重点是 AdGuardHome 、 mosdns 和 openclash (或 ssrp )的搭配,详细介绍见子目录下的 README。更多信息可以参考这篇文章

特别说明

1. DHCP 服务器

一般情况下建议禁用旁路由 DHCP 服务器,在主路由配置 DHCP 服务器,把网关设置成旁路由,或者通过静态分配指定不同客户端指向不同网关。

由于旁路由 openclash 专属固件默认未设置 53 端口劫持,所以 DHCP 服务器设置中的 DNS 服务器,务必设置成旁路由,不要设置公共 DNS。如果需要配置劫持 53,可参考 firewall.user 配置防火墙自定义规则

2. IPv6

主路由上请勿通告 IPv6 DNS 服务器(这里指 IPv6 地址的 DNS 服务器,如 2400:3200::1)。通过 IPv4 地址的 DNS 服务器解析域名,一样可以拿到 AAAA 记录,所以没必要开启 IPv6 地址的 DNS 服务器,开启反而会增加配置难度,影响 DNS 分流,并可能造成 DNS 泄露。

Openwrt、iKuai、RouterOS 都是支持不通告 IPv6 DNS 的。如果你的主路由不支持,IPv6 DNS 可以填个无效地址,如 ::1

硬件路由固件

命令行修改IP和掩码

注意,旁路由固件默认未开启 DHCP,旁路由固件默认未开启 DHCP,旁路由固件默认未开启 DHCP!

所以,如果不在控制台修改 IP,请修改电脑的 IP 访问,然后可以在网页修改。

# 作为旁路路由,IP 不建议设置 1,防止和主路由冲突!
# 命令行修改 IP 示例:
uci set network.lan.ipaddr='192.168.1.2'
uci set network.lan.netmask='255.255.255.0'
uci set network.lan.gateway='192.168.1.1'
uci commit network

编译和固件个性化流程说明

  1. 导出 Settings.ini 内容为环境变量
  2. 克隆 OpenWRT 源码
  3. 安装 user/common/patchesuser/[target]/patches 目录下的补丁
  4. 更新 feeds,Update feeds
  5. 复制 user/common/filesuser/[target]/files[OpenWRT Code Dir]/files,注意后者覆盖前者
  6. 执行脚本 user/common/custom.shuser/[target]/custom.sh
  7. 安装 feeds,Install feeds
  8. 执行 app_config.sh 脚本,对插件做自定义,包括下载部分插件需要的二进制执行文件,例如 clashAdGuardHome
  9. 开始编译

转换工具下载

StarWind V2V Converter

Download link

链接

openwrt-actions's People

Contributors

alecthw 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.