openwrt源码编译

  • 下载openwrt源码

git clone https://github.com/openwrt/chaos_calmer.git // 官方下载地址

当前我们基于15.05版本开发,如果开发者想用最新的OpenWRT系统,可以下载 https://github.com/openwrt/openwrt.git

git clone https://github.com/Ying-Yun/openwrt.git

  • 源代码主体结构

/config : 菜单设置配置文件

/include : 文件生成配置文件

/package : 用于文件生成和菜单配置的软件包

/scripts : 构建期间用到的各类脚本文件

/target : 构建imagebuilder,内核,sdk和工具链所需的生成文件和配置

/toolchain : 构建工具链所需的生成文件和配置

/tools : 在构建过程中使用的各种工具

  • 如果刷完系统,发现ssh无法远程登录,那么修改防火墙参数即可,vi /etc/config/firewall

    config rule
    option name 'Allow-SSH'
    option target ACCEPT
    option src 'wan'
    option dest_port '22'
    option proto 'tcp'
    option family 'ipv4'
    config rule
    option name 'Allow-http'
    option src wan
    option dest_port 80
    option target ACCEPT
    option proto tcp

修改源码的防火墙

/home/luke/openwrt_CC_mt76xx_zhuotk_source/package/network/config/firewall/files

  • 其他
相关推荐
好好学习啊天天向上12 分钟前
世上最全:ubuntu 上及天河超算上源码编译llvm遇到的坑,cmake,ninja完整过程
linux·运维·ubuntu·自动性能优化
tan180°1 小时前
MySQL表的操作(3)
linux·数据库·c++·vscode·后端·mysql
典学长编程2 小时前
Linux操作系统从入门到精通!第二天(命令行)
linux·运维·chrome
wuk9982 小时前
基于MATLAB编制的锂离子电池伪二维模型
linux·windows·github
独行soc5 小时前
#渗透测试#批量漏洞挖掘#HSC Mailinspector 任意文件读取漏洞(CVE-2024-34470)
linux·科技·安全·网络安全·面试·渗透测试
BD_Marathon5 小时前
Ubuntu下Tomcat的配置
linux·ubuntu·tomcat
饥饿的半导体5 小时前
Linux快速入门
linux·运维
BD_Marathon5 小时前
Ubuntu:Tomcat里面的catalina.sh
linux·ubuntu·tomcat
BD_Marathon5 小时前
设置LInux环境变量的方法和区别_Ubuntu/Centos
linux·ubuntu·centos
Me4神秘5 小时前
Linux国产与国外进度对垒
linux·服务器·安全