frp

服务端配置

[common]
bind_port = 8870
'security configuration info
authentication_method = token
authenticate_new_work_conns = true
tls_enable = true
token = 1111111111
 
启动服务端
frps -c ./frps.ini

 

客户端配置

[common]
server_addr = 81.33.33.33
server_port = 8870

'security configuration info
authentication_method = token
authenticate_new_work_conns = true
tls_enable = true
token = 1111111111

 

[RDP]
type = tcp
local_ip = 127.0.0.1
local_port = 3389
remote_port = 8888

 启动客户端

frpc -c frpc.ini 或者

frpc

 

下载

https://github.com/fatedier/frp

https://github.com/fatedier/frp/releases

 

set a service for autorun

<service>
  <id>frp</id>
  <name>frp</name>
  <description>This service runs frp continuous integration system.</description>
  <executable>e:\frp\frpc.exe</executable>
  <arguments>-c frpc.ini</arguments>
  <log mode="roll"></log>

<onfailure action="restart" delay="20 sec"/>
</service>

  

winsw-x64 install frp-service.xml 'install as a service
winsw-x64 status frp-service.xml 'view the status
netstart frp 'or winsw-x64 start  frp-service.xml

  

winsw-x64 install frp-service.xml

https://github.com/winsw/winsw/releases

 

wget https://github.com/fatedier/frp/releases/download/v0.52.1/frp_0.52.1_linux_amd64.tar.gz

posted @ 2022-06-21 16:19  zyip  阅读(89)  评论(0)    收藏  举报