[點晴永久免費OA]FRP內(nèi)網(wǎng)穿透轉(zhuǎn)發(fā)Windows遠程桌面端口
當(dāng)前位置:點晴教程→點晴OA辦公管理信息系統(tǒng)
→『 經(jīng)驗分享&問題答疑 』
下載地址(版本frp_0.52.3_windows_amd64): https://github.com/fatedier/frp/releases/download/v0.52.3/frp_0.52.3_windows_amd64.zip 其他版本下載: https://github.com/fatedier/frp/releases 1、配置frps.ini文件并啟動(云服務(wù)器)訪問:42.194.142.223:7500 [common] #1、這個是你當(dāng)前的frp服務(wù)器ip,默認0.0.0.0就是接受所有來者 bind_addr = 0.0.0.0 #2、這個默認端口是7000,就是客戶端和服務(wù)端通信的,不是你轉(zhuǎn)發(fā)的那個端口 #如果這個要改了,客戶端的7000也要改成和這里一樣。 bind_port = 10010 #3、這個是frp的web管理控制臺的用戶名密碼,可以通過127.0.0.1:7500登錄 dashboard_user = admin dashboard_pwd = admin #4、管理控制臺的默認端口 dashboard_port = 7500 #5、你要轉(zhuǎn)發(fā)的服務(wù)端口 vhost_ssh_port = 11100 vhost_mstsc_port = 11101 vhost_http_port = 11102 vhost_tcp01_port = 11103 vhost_tcp_range01_port = 11104 vhost_tcp_range02_port = 11105 vhost_tcp_range03_port = 11106 #6、心跳連接:必須得有,frp 0.43.0版本如果不加,60秒就會自動斷開連接! # 服務(wù)器就加這一條,客戶機每臺都要加。 heartbeat_timeout = 30 2、配置frpc.ini文件并啟動(需要映射到外網(wǎng)出去的內(nèi)網(wǎng)主機) [common] #1、你frp服務(wù)器的公網(wǎng)ip地址 server_addr = 42.194.142.223 #2、你frp服務(wù)器的通信端口,默認是7000,如果你服務(wù)器端改了,這里也要跟著改 server_port = 10010 # 轉(zhuǎn)發(fā)多個端口 [ssh] #3、協(xié)議類tcp/udp type = tcp #4、你當(dāng)前內(nèi)網(wǎng)服務(wù)器的網(wǎng)卡IP地址,不要用127.0.0.1 1oca1_ip = 192.168.0.109 #5、你要轉(zhuǎn)發(fā)的服務(wù)端口(遠程端口:3389;ssh:22) local_port = 22 #6、你要映射到公網(wǎng)上的那個端口 remote_port = 11100 [mstsc] type = tcp 1oca1_ip = 192.168.0.109 local_port = 3389 remote_port = 11101 [http] type = http 1oca1_ip = 192.168.0.109 local_port = 5200 remote_port = 11102 custom_domains = 42.194.142.223 [tcp01] type = tcp 1oca1_ip = 192.168.0.109 local_port = 11103 remote_port = 11103 [range:tcp] type = tcp 1oca1_ip = 192.168.0.109 local_port = 11104,11105,11106 remote_port = 11104,11105,11106 #7、服務(wù)器與客戶機之間的心跳連接: 如果沒有,每隔60秒就會自動斷開連接??! heartbeat_timeout = 30 啟動 D:\Program_Files\frp_0.47.0_windows_amd64\client>frpc.exe -c frpc.ini 2023/03/29 12:36:26 [I] [service.go:299] [de12e81d53b4342f] login to server success, get run id [de12e81d53b4342f], server udp port [0] 2023/03/29 12:36:26 [I] [proxy_manager.go:142] [de12e81d53b4342f] proxy added: [mstsc http tcp01 ssh] 2023/03/29 12:36:26 [I] [control.go:172] [de12e81d53b4342f] [tcp01] start proxy success 2023/03/29 12:36:26 [I] [control.go:172] [de12e81d53b4342f] [ssh] start proxy success 2023/03/29 12:36:26 [I] [control.go:172] [de12e81d53b4342f] [mstsc] start proxy success 2023/03/29 12:36:26 [I] [control.go:172] [de12e81d53b4342f] [http] start proxy success 測試
該文章在 2023/10/25 11:59:31 編輯過 |
關(guān)鍵字查詢
相關(guān)文章
正在查詢... |