找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2895|回复: 0

newifi2 D1 做二级路由离线下载机

[复制链接]
发表于 2018-11-29 17:52:35 | 显示全部楼层 |阅读模式
搬家发现弱电箱还是小了,本来用华为SA1456C光猫桥接newifi Y1S刷华硕固件做主路由的日子是一去不复返了,只能开光猫路由模式了。想着用D2继续做2级路由及AP的,发现原来WAN口和LAN口做端口桥接的D2只要接上网线就死机,并且光猫也断网,真是无语,降级刷固件,恢复备份各种折腾从21点到晚上3点上还是没用,原来接在Y1S后面好好的只是最近升到最新官方固件不能连手机APP了,只能说它和SA1456八字不合了。
后来想着要不退而求其次做2级路由离线下载机好了,手机APP用来远程下片还是8错的,恢复出厂,正常连WAN口,最新手机APP端成功发现并绑定设备。然后就到了1级路由下如何访问2级路由管理界面及共享硬盘的老梗上了,恩山,官方论坛,CSDN转了一圈,教程都是newifiMINI的,想着一个厂的都是基于opwrt系统应该差不多,上呗,开ssh,改防火墙,又是一顿折腾,发现一开WAN口80访问就断网,各种抓耳挠腮,各种不死心,终于实现一级路由下电脑访问D2控制页面及硬盘。现将命令整理如下省的有需要的再折腾。

newifi2 D2  官方固件版本:3.2.1.9700
开启ssh,官方插件自带
1.允许WAN口登录管理界面(重要,首先得开,不然先开防火墙80必断网,网上现有教程都把这跳了)
#显示查看uhttpd文件内容(不是必须)
uci show uhttpd
#修改uhttpd.main.rfc1918_filter='0'为'1'
uci set uhttpd.main.rfc1918_filter='0'
#确认应用命令
uci commit

2.修改防火墙,允许WAN口80端口访问(方括号 [ ]内 数字根据自己防火墙的条目数进行修改)
#显示查看firewall文件内容(不是必须)
uci show firewall
#添加一条防火墙规则
uci add firewall rule
uci set firewall.@rule[8].name=WEBGL
uci set firewall.@rule[8].src=wan
uci set firewall.@rule[8].proto=tcp
uci set firewall.@rule[8].dest_port=80
uci set firewall.@rule[8].target=ACCEPT
uci commit

3.修改防火墙,允许WAN口访问路由共享(方括号 [ ]内 数字根据自己防火墙的条目数进行修改)
uci add firewall rule
uci set firewall.@rule[6].name=Samba_1
uci set firewall.@rule[6].src=wan
uci set firewall.@rule[6].proto=tcp
uci set firewall.@rule[6].dest_port=445
uci set firewall.@rule[6].target=ACCEPT
uci commit
uci add firewall rule
uci set firewall.@rule[7].name=Samba_2
uci set firewall.@rule[7].src=wan
uci set firewall.@rule[7].proto=tcp
uci set firewall.@rule[7].dest_port=8200
uci set firewall.@rule[7].target=ACCEPT
uci commit
#重启防火墙应用更改
/etc/init.d/firewall restart

*滑块验证:
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|宽带技术网 |网站地图

粤公网安备 44152102000001号

GMT+8, 2024-3-29 18:17 , Processed in 0.019637 second(s), 4 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表