Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build a frp service simply

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces "how to build frp service simply". In daily operation, I believe many people have doubts about how to build frp service simply. Xiaobian consulted all kinds of materials and sorted out simple and easy operation methods. I hope to help you answer the doubts about "how to build frp service simply"! Next, please follow the small series to learn together!

Document the process of building frp services

First download frp, I use version 0.22.0, other versions may not be applicable can be downloaded through wget command wget https://github.com/fatedier/frp/releases or visit https://github.com/fatedier/frp/releases to download manually

After downloading, extract and enter the directory

tar -xzvf frp_0.22.0_linux_386.tar.gzcd frp_0.22.0_linux_386

There are 4 main files in the directory, frpc, frpc.ini and frps, frps.ini respectively. Frpc is related to the client. Delete frpc and frpc.ini here first, and then edit the server configuration file.

vi frps.ini

configured as follows

#Port for communication with client bind_port = 7000bind_addr = 0.0.0.0#http port vhost_http_port = 8080#https port vhost_https_port = 443#Manage ports and user information used by background (you can view port usage information in background, optional configuration)dashboard_port = 7500dashboard_user = xxdashboard_pwd = xx#token = xxxxx

server-side startup

./ frps -c ./ frps.ini

running in the background

nohup ./ frps -c frps.ini &

The client deletes frps and frps.ini files, and the frpc.ini file configuration is as follows (since I do not have a domain name, only ip information is configured. If you need to configure domain name information, please Baidu yourself)

[common]#Access address of server (IP or domain name available)server_addr = x. x.x#Port used by server for penetration, Keep consistent with the server_port = 7000privilege_token = xxxxxuser = xxx# frpc client management interface admin_addr = 127.0.0.1admin_port = 7400admin_user = xxxadmin_passwd = xxx#failed to reconnect login_fail_exit = true#Heartbeat_interval = 10heartbeat_timeout = 90#Server-client communication protocol supported tcp\updprotocol = tcp[ssh]#Penetration type = tcp#Need to penetrate service local access address local_ip = 127.0.0.1#Need to penetrate service local access port local_port = xx#Use communication encryption, default falseuse_encryption = false#Use communication compression, Default falseuse_compression = false#Access port from external network after penetration. remote_port = xx[https]type = tcplocal_port = 8443remote_port = 8443[dns]type = udplocal_port = 53remote_port = 6002use_encryption = falseuse_compression = false[terraria]type = tcplocal_port = 7777remote_port = 7777[mysql]type = tcplocal_port = 3306remote_port = 3306

client starts

frpc.exe -c frpc.ini At this point, the study of "how to simply build frp services" is over, hoping to solve everyone's doubts. Theory and practice can better match to help you learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report