【openWrt】安装后进行定制

    • 修改openWrt管理后台默认端口

 vim /etc/config/uhttpd

修改如下图内容

【openWrt】安装后进行定制_第1张图片

然后重启uhttpd服务即可生效

etc/init.d/uhttpd restart
    • 修改openWrt软件包源

可以在openwrt后台改

【openWrt】安装后进行定制_第2张图片

也可以在/etc/opkg/distfeeds.conf直接改

vim /etc/opkg/distfeeds.conf
【openWrt】安装后进行定制_第3张图片

配置如下

src/gz handsomemod_core https://downloads.openwrt.org/releases/21.02-SNAPSHOT/targets/armvirt/64/packages
src/gz handsomemod_base https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/base
src/gz handsomemod_luci https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/luci
src/gz handsomemod_packages https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/packages
src/gz handsomemod_routing https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/routing
src/gz handsomemod_telephony https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/aarch64_cortex-a53/telephony
src/gz openwrt_kiddin9 https://op.supes.top/packages/aarch64_cortex-a53
    • 配置后台地址ip

在operWrt后台修改,配置LAN接口,如果没有,自行新增

【openWrt】安装后进行定制_第4张图片
【openWrt】安装后进行定制_第5张图片
    • 如果openWrt设备作为客户端接入wifi,但无法通过ip地址访问后台,问题排查

注意

  1. openwrt的lan网段不能与wifi设备的网段冲突

  1. openwrt的后台地址不能与wifi后台地址冲突

将openwrt设备插入电脑,电脑安装rndis驱动,电脑通过openwrt设备连接网络,访问openwrt后台地址进行设置

修改防火墙配置,保存并应用即可

【openWrt】安装后进行定制_第6张图片

你可能感兴趣的:(OpenWrt,服务器)