按论坛里各位大神的帖子,成功开启Ax1800 ssh,碰到了问题,除非关闭防火墙,才可以访问端口,其他方法都不行。
这个大神方法也尝试了,也不行,我是路由拨号的。
那么就进入WINSCP,找到/etc下面的rc.local文件,把它拉到桌面,最好备份一个,然后用记事本打开,将下列内容粘贴进去 # Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
# restore phy config
speed=$(uci -q get xiaoqiang.common.WAN_SPEED)
[ -n "$speed" ] && /usr/sbin/phyhelper swan "$speed"
ip6tables -I forwarding_rule -p tcp --dport 5000 -j ACCEPT
ip6tables -I forwarding_rule -p tcp --dport 32400 -j ACCEPT
exit 0
完了以后保存退出,进入WINSCP,把原文件替换了,就全部完成了,以后你如果还有其他需求要开放其他端口的,一样按这个格式重新修改下rc.local文件就好
|