惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Cloudbric
Cloudbric
E
Exploit-DB.com RSS Feed
SecWiki News
SecWiki News
Forbes - Security
Forbes - Security
N
News | PayPal Newsroom
S
Security @ Cisco Blogs
Schneier on Security
Schneier on Security
V
V2EX - 技术
S
Secure Thoughts
W
WeLiveSecurity
Google DeepMind News
Google DeepMind News
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
S
Securelist
S
Security Archives - TechRepublic
Know Your Adversary
Know Your Adversary
V
Vulnerabilities – Threatpost
Security Latest
Security Latest
Recent Commits to openclaw:main
Recent Commits to openclaw:main
G
GRAHAM CLULEY
H
Hacker News: Front Page
Microsoft Azure Blog
Microsoft Azure Blog
I
Intezer
Google Online Security Blog
Google Online Security Blog
美团技术团队
阮一峰的网络日志
阮一峰的网络日志
T
The Exploit Database - CXSecurity.com
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Webroot Blog
Webroot Blog
Jina AI
Jina AI
Engineering at Meta
Engineering at Meta
P
Proofpoint News Feed
The Cloudflare Blog
I
InfoQ
L
LangChain Blog
U
Unit 42
P
Proofpoint News Feed
S
Schneier on Security
S
Security Affairs
Y
Y Combinator Blog
T
Tenable Blog
N
News and Events Feed by Topic
MyScale Blog
MyScale Blog
量子位
Google DeepMind News
Google DeepMind News
Cyberwarzone
Cyberwarzone
博客园 - 聂微东
D
Darknet – Hacking Tools, Hacker News & Cyber Security
GbyAI
GbyAI
AWS News Blog
AWS News Blog

Frp on 轻风云

暂无文章

最好用的完全开源的内网穿透工具frps
2022-12-02 · via Frp on 轻风云

前期准备:

首先你要有一台云服务器或者VPS,有公网ip或域名都可以,内网主机(自己的电脑)一台。

本文所用的服务端是我用阿里云的Linux系统,客户端是windows11系统。

服务端(Linux)搭建步骤

  1. 下载服务端的frp

  2. 使用tar命令解压下载成功的压缩包文件:

1
tar -zxvf frp_0.45.0_linux_arm64.tar.gz
  1. 使用cd命令进入解压出来的文件夹:
1
mv frp_0.45.0_linux_arm64 frp && cd frp
  1. 修改服务器配置文件(frps.ini):
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
vim fros.ini
# 编辑
[common]
bind_port = 7000
vhost_http_port = 88
vhost_https_port = 89
#与客户端通信的令牌
token = 57854
dashboard_user  = admin
#dashboard 密码
dashboard_pwd = admin
#dashboard 端口,启动成功后可通过浏览器访问如http://ip:7500
dashboard_port = 7500
  1. 启动frp服务端,让frp在后台运行:
1
nohup ./frps -c frps.ini &  > frp.log

这样即使关掉了SSH,frp依然在后台运行中。到此,服务端的搭建已经完成。

客户端搭建步骤

  1. 下载客户端的frp,在上文地址下载最新windows压缩包

  2. 解压下载成功的压缩包

  3. 编辑frpc.ini文件,内容如下:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
[common]
server_addr = x.x.x.x  #公网ip
server_port = 7000
#与服务端通信的令牌
token = 57854
[mysql]
type = tcp
#local_ip = 127.0.0.1
local_port = 3306  #本地mysql端口
remote_port = 3366 #印射公网端口
#连接Windows远程桌面的
[rdp]
type = tcp
local_ip = 127.0.0.1
local_port = 3389
remote_port = 3389
custom_domains = x.x.x.x  #公网ip或域名
[web01]
type = http
local_ip = 127.0.0.1
local_port = 80
locations  = /
custom_domains =  x.x.x.x  #公网ip或域名
[web02]
type = http
local_ip =  127.0.0.1
local_port = 8090
locations  = /cardmanager
custom_domains =  x.x.x.x  #公网ip或域名
#通过tcp来连接svn
[svn]
type = tcp
local_ip =127.0.0.1
local_port = 81
remote_port = 9000
  1. 启动frp客户端:
    在目录下打开cmd命令窗口,执行如下命令:

到此,客户端的搭建已经完成。