需求

项目用到一台华为的嵌入式设备且ip不允许更改,计划使用openwrt软路由+4G网卡实现内网穿透远程访问。

改造

4G网卡型号华为E8372h-155,路由器(理论上支持openwrt带usb都行)
连接4G网卡,登陆openwrt后台,如无法识别需要安装依赖

kmod-usb-net-rndis
kmod-usb-net
kmod-usb2
usb-modeswitch
kmod-usb-net-cdc-ether

依赖名称可能随版本变化,能够识别到usb网卡即可。

启动

openwrt开机启动和ubuntu类似
/etc/rc.local加入

echo | /usr/local/frpc_linux_mipsle -f [token]:[number] > /dev/null &
exit 0

重启即可

相关文章:

  • 2021-10-12
  • 2021-08-07
  • 2021-08-12
  • 2022-02-18
  • 2022-12-23
猜你喜欢
  • 2021-05-19
  • 2022-02-12
  • 2021-11-27
  • 2021-06-21
  • 2021-07-05
  • 2021-10-26
相关资源
相似解决方案