proxypoolCheck icon indicating copy to clipboard operation
proxypoolCheck copied to clipboard

有两个问题请教一下

Open outcastveron opened this issue 3 years ago • 6 comments

基本搭建已经完成,也可以运行

  1. 自启动设置一直失败,错误代码如下 [root@bogon proxypoolcheck]# systemctl daemon-reload [root@bogon proxypoolcheck]# systemctl start proxypoolcheck.service [root@bogon proxypoolcheck]# systemctl status proxypoolcheck.service -l ● proxypoolcheck.service - proxypoolcheck Loaded: loaded (/etc/systemd/system/proxypoolcheck.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Mon 2021-06-14 12:43:50 CST; 1s ago Process: 2898 ExecStart=/proxypoolcheck -c /config.yaml (code=exited, status=203/EXEC) Main PID: 2898 (code=exited, status=203/EXEC)

  2. 准备是在内网搭建,然后frp出去,不知道怎么设置,求指教

非常好用,期待回复

outcastveron avatar Jun 14 '21 04:06 outcastveron

问题1解决了,FRP的问题还需要请教:)

outcastveron avatar Jun 14 '21 08:06 outcastveron

我也没有操作过frp 相关的,麻烦 @892947707 帮忙看看

Sansui233 avatar Jun 15 '21 08:06 Sansui233

谢邀!frp好久没用了,我也不知道该怎么配置,主要是frp本身也要占用端口,应该跟Nginx反向代理差不多吧,或者做一下端口转发,研究一下应该是可行的。 如果你是自用的话,zerotier这种虚拟区域网络比较方便,订阅链接就使用http://虚拟区域网ip:[端口]就行了

892947707 avatar Jun 15 '21 08:06 892947707

感谢二位回复,后来直接挂了个frpc,dns解析过来搞定,就是没有https

outcastveron avatar Jun 15 '21 13:06 outcastveron

感谢二位回复,后来直接挂了个frpc,dns解析过来搞定,就是没有https

如果你会Nginx的话,做个反向代理就行了,当然https相关的也要

892947707 avatar Jun 15 '21 13:06 892947707

多看看文档吧 https://gofrp.org/docs/ frp可用实现http转https 不过需要自己解决证书(自签或者用CF或者用DNS解析商提供的) 可以借鉴我的

[https]
type = https
custom_domains = www.test.xyz,test.xyz
use_encryption = false
use_compression = true
force_https = 301
plugin = https2http
plugin_local_addr = 192.168.0.163:8888
plugin_crt_path = 'D:\XXX\tls.crt'
plugin_key_path = 'D:\XXX\tls.key'

custom_domains:绑定的域名 plugin_local_addr:本地服务地址 绑定的域名要在DNS解析那设置A记录或者CNAME记录指向frps所在机子的ip或者域名(这个域名绑定了frps的ip) 这个配置要求 frps设置有vhost_https_port 如

[common]
bind_port = 7000
vhost_https_port = 443

这时以https的方式访问绑定的域名即可 如 https://www.test.xyz (注:如果frps所在的机子是大陆ip,443和80是不能访问的 更换vhost_https_port 的端口如8443 这时访问就得加上端口https://www.test.xyz:8443/ (这有点硬核,建议思考,经验是自己积累的

wangwang-code avatar Jun 16 '21 14:06 wangwang-code