1 、openwrt,防火墙转发端口 7000,3389 到 openwrt
root@OpenWrt:/# cat /etc/config/frps
config frps 'main'
option server 'frps'
option client_file '/usr/bin/frps'
option bind_port '7000'
option tcp_mux 'true'
option run_user 'root'
option token 'tokenpwd'
option tls_only 'false'
option dashboard_user 'dashboard_user'
option dashboard_pwd 'dashboard_pwd'
option dashboard_port '7443'
option enabled '1'
2 、windows C:\frp_0.33.0_windows_amd64\frpc.ini
[common]
server_addr = your.server.addr
server_port = 7000
# for authentication
token = tokenpwd
[RDP]
type = tcp
local_ip = 127.0.0.1
local_port = 3389
remote_port = 3389
3 、windows C:\frp_0.33.0_windows_amd64\run.vbs
Set ws = CreateObject("Wscript.Shell")
ws.run "cmd /c C:\frp_0.33.0_windows_amd64\frpc.exe -c C:\frp_0.33.0_windows_amd64\frpc.ini",vbhide