gofrp / frp-doc Goto Github PK
View Code? Open in Web Editor NEWDocuments for frp.
Home Page: https://gofrp.org
License: Creative Commons Attribution 4.0 International
Documents for frp.
Home Page: https://gofrp.org
License: Creative Commons Attribution 4.0 International
max_pool_count解释为最大连接池大小,是啥意思,影响什么?
frp 客户端的详细配置说明中
log_file | string | 日志文件地址 | ./frps.log | | 如果设置为 console,会将日志打印在标准输出中
日志文件地址
应该为./frpc.log
你好:
这里的"将 www.yourdomain.com 和 www.yourdomain2.com 的域名 A 记录解析到 IP x.x.x.x"这句话该怎么理解呢,是将www.yourdomain.com在公网上解析为IP x.x.x.x 吗,如果是这样那该怎么操作呢?
期待你的回复!
这个charp我看完了,最大的困惑是未来能不能支持直接在frps端直接支持反向代理呢?
现在我想打一个c2s的反向隧道,需要在s端起一个s+一个指向自己的stcp的c,感觉有点多余。
在这个链接下 https://gofrp.org/docs/examples/stcp/
这句话: “2.在需要暴露到内网的机器上部署 frpc,且配置如下:”
应改为: “2.在需要暴露到外网的机器上部署 frpc,且配置如下:”
https://github.com/fatedier/frp/releases
在Windows的二进制包里放入systemd的配置文件,用意是什么?
有问题,如果只设置vhost_http_port会报错: [web] start error: type [https] not support when vhost_https_port is not set;
必须这两个vhost_https_port,vhost_http_port都设置才行
如 服务器上设置(frps.ini):
vhost_https_port = 7080
vhost_http_port = 7081
客户端设置(frpc.ini):
[web]
type = http
local_port = 8080
custom_domains = www.baidu.com
完整的设置服务器端:
#[common]
#bind_port = 7000
[common]
bind_port = 7000
vhost_https_port = 7080
vhost_http_port = 7081
#dashboard_port状态以及代理统计信息展示,网址:7500可查看详情
dashboard_port = 7500
#dashboard_user访问用户dashboard_pwd访问密码
dashboard_user = admin
dashboard_pwd = admin
#log_file日志文件log_level记录的日志级别log_max_days日志留存3天authentication_timeout超时时间
log_file = ./frps.log
log_level = info
log_max_days = 3
authentication_timeout = 0
#max_pool_count最大链接池,每个代理预先与后端服务器建立起指定数量的最大链接数
max_pool_count = 50
token = dskdhlskdjlksd
[rdp] #远程桌面的设置
type = tcp
local_ip = 127.0.0.1
local_port = 3389
remote_port = 3389
[smb] #共享目录的设置
type = tcp
local_ip = 127.0.0.1
local_port = 445
remote_port = 7002
完整的客户端:
[common]
server_addr = 1.2.3.4 #服务器IP
server_port = 7000
token = dskdhlskdjlksd
[rdp]
type = tcp
local_ip = 127.0.0.1
local_port = 3389
remote_port = 7001
[smb]
type = tcp
local_ip = 127.0.0.1
local_port = 445
remote_port = 7002
[web]
type = http
local_port = 8180
custom_domains = www.baidu.com
[common]
server_addr = x.x.x.x
server_port = 7000
[test_static_file]
type = tcp
remote_port = 6000
plugin = static_file
plugin_local_path = /tmp/file
plugin_strip_prefix = static
plugin_http_user = abc
plugin_http_passwd = abc
请问bind_port用的是tcp还是udp?
请问如何删除一个frp连接
如文档中所述,配置为相同的custom_domains,会报错error: router config conflict
frps.ini 内容如下:
[common]
bind_port = 7000
frpc.ini 内容如下:
[common]
server_addr = x.x.x.x
server_port = 7000
[test_htts2http]
type = https
custom_domains = test.yourdomain.com
plugin = https2http
plugin_local_addr = 192.168.10.189:80
plugin_crt_path = /volume2/docker/frpc/server.crt
plugin_key_path = /volume2/docker/frpc/server.key
plugin_host_header_rewrite = 127.0.0.1
plugin_header_X-From-Where = frp
这是配置方法,按这个配置没有成功,有几个问题想问一下;
1.frps.ini我开启了443端口,防火墙开启了443,但没有成功,需要开启443吗
2.证书是使用IIS的还是Apache的。
- 通过浏览器访问 http://www.yourdomain.com:8080 即可访问到处于内网机器上 80 端口的服务,访问 http://www.yourdomain2.com:8080 则访问到内网机器上 8080 端口的服务。
http://www.yourdomain.com:8080应该改为http://www.yourdomain.com:80
应该是
第一点说了frps.ini 内容如下,应该是在frps.ini下面写,但是第二点开始到第三点,究竟就加载哪个文件,是frpc.ini还是frps.ini
Whether frp supports WebSocket?
How to set the time of retrying and the number of reconnections after I am disconnected。I couldn't find it in the user documentation。
可不可以让http没有成功的界面可以自定义,不显示The page you requested was not found.
Sorry, the page you are looking for is currently unavailable.
Please try again later.
Hello, how can I update the FRP version? Do you need to reinstall the new version pack?
下午还在看原版、晚上回到家就改成网站了,找了半天没有全部配置的说明,恳请大佬加上或者告知在哪个位置。。
你好, 请问如何配置多个本地 HTTP 服务转换成 HTTPS 服务呢?我参考文档成功配置了HTTP转HTTPS, 但是当我用同样的方式配置另一个服务的之后, 无法通过浏览器访问新的web2服务.
[common]
server_addr = 47...*
server_port = 7000
[web1]
type = https
custom_domains = web1域名
plugin = https2http
plugin_local_addr = 192.168.3.205:8080
# HTTPS 证书相关的配置
plugin_crt_path = server.crt
plugin_key_path = ./demo.key
plugin_host_header_rewrite = 192.168.3.205
plugin_header_X-From-Where = frp
[web2]
type = https
custom_domains = web2域名
plugin = https2http
plugin_local_addr = 192.168.3.205:8081
# HTTPS 证书相关的配置
plugin_crt_path = ./server.crt
plugin_key_path = ./demo.key
plugin_host_header_rewrite = 192.168.3.205
plugin_header_X-From-Where = frp
`
第2条 "在需要暴露到内网的机器上部署 frpc,且配置如下:" 应该为 "在需要暴露到公网
的机器上部署 frpc,且配置如下:"。
Can "server_addr" in the client configuration be a web address?
关于文档中的:
是否需要自己去申请证书?本地按照文档配置并未实现https访问,猜测可能需要自己去申请证书自己部署
如果需要自己申请证书,能否考虑做成一键自动申请证书,自动部署,自动续期?
[common]
server_addr = x.x.x.x
server_port = 7000
user = client1
[secret_ssh]
type = stcp
# 只有 sk 一致的用户才能访问到此服务
sk = abcdefg
local_ip = 127.0.0.1
local_port = 22
此时,frps上显示服务名称为client1.secret_ssh
但是无论我另外一个client配置成带前缀或者不带前缀的服务名称,都无法连接
[secret_ssh_visitor]
type = stcp
# stcp 的访问者
role = visitor
# 要访问的 stcp 代理的名字
server_name = secret_ssh / client1.secret_ssh
sk = abcdefg
# 绑定本地端口用于访问 SSH 服务
bind_addr = 127.0.0.1
bind_port = 6000
有问题,如果只设置vhost_http_port会报错: [web] start error: type [http] not support when vhost_http_port is not set;
必须这两个vhost_https_port,vhost_http_port都设置才行
如 服务器上设置(frps.ini):
vhost_https_port = 7080
vhost_http_port = 7081
客户端设置(frpc.ini):
[web]
type = http
local_port = 8080
custom_domains = www.baidu.com
完整的设置服务器端:
#[common]
#bind_port = 7000
[common]
bind_port = 7000
vhost_https_port = 7080
vhost_http_port = 7081
#dashboard_port状态以及代理统计信息展示,网址:7500可查看详情
dashboard_port = 7500
#dashboard_user访问用户dashboard_pwd访问密码
dashboard_user = admin
dashboard_pwd = admin
#log_file日志文件log_level记录的日志级别log_max_days日志留存3天authentication_timeout超时时间
log_file = ./frps.log
log_level = info
log_max_days = 3
authentication_timeout = 0
#max_pool_count最大链接池,每个代理预先与后端服务器建立起指定数量的最大链接数
max_pool_count = 50
token = dskdhlskdjlksd
[rdp] #远程桌面的设置
type = tcp
local_ip = 127.0.0.1
local_port = 3389
remote_port = 3389
[smb] #共享目录的设置
type = tcp
local_ip = 127.0.0.1
local_port = 445
remote_port = 7002
完整的客户端:
[common]
server_addr = 1.2.3.4 #服务器IP
server_port = 7000
token = dskdhlskdjlksd
[rdp]
type = tcp
local_ip = 127.0.0.1
local_port = 3389
remote_port = 7001
[smb]
type = tcp
local_ip = 127.0.0.1
local_port = 445
remote_port = 7002
[web]
type = http
local_port = 8180
custom_domains = www.baidu.com
https://github.com/fatedier/frp/releases
在Windows的二进制包里放入systemd的配置文件,用意是什么?
通过浏览器访问 http://www.yourdomain.com:8080 即可访问到处于内网机器上 80 端口的服务,访问 http://www.yourdomain2.com:8080 则访问到内网机器上 8080 端口的服务。
应该改为
通过浏览器访问 http://www.yourdomain.com:80 即可访问到处于内网机器上 80 端口的服务,访问 http://www.yourdomain2.com:8080 则访问到内网机器上 8080 端口的服务。
通过浏览器访问 http://www.yourdomain.com:8080 即可访问到处于内网机器上 80 端口的服务,访问 http://www.yourdomain2.com:8080 则访问到内网机器上 8080 端口的服务。
改成
通过浏览器访问 http://www.yourdomain.com:80 即可访问到处于内网机器上 80 端口的服务,访问 http://www.yourdomain2.com:8080 则访问到内网机器上 8080 端口的服务。
这个代理是如何使用的,可以出一个示例吗?
proxy_protocol_version
[common]
token =
server_addr =
server_port = 17000
[项目名字-ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 10000
[项目名字-web]
type = tcp
local_ip = 127.0.0.1
local_port = 8080
remote_port = 10001
[项目名字-摄像头名字1]
type = tcp
local_ip = 192.168.0.180
local_port = 80
remote_port = 10002
[项目名字-摄像头名字2]
type = tcp
local_ip = 192.168.0.181
local_port = 80
remote_port = 10003
中文乱码该怎么办
local_port 不起作用,即使设置了 local_port 也只能通过 www.daomain:8080 来访问,8080 是服务端配置的 vhost_http_port
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.