Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

有两个问题请教一下 #23

Open
outcastveron opened this issue Jun 14, 2021 · 6 comments
Open

有两个问题请教一下 #23

outcastveron opened this issue Jun 14, 2021 · 6 comments
Labels
help wanted Extra attention is needed

Comments

@outcastveron
Copy link

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

  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
Copy link
Author

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

@Sansui233 Sansui233 added the help wanted Extra attention is needed label Jun 15, 2021
@Sansui233
Copy link
Owner

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

@892947707
Copy link

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

@outcastveron
Copy link
Author

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

@892947707
Copy link

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

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

@wangwang-code
Copy link
Contributor

wangwang-code commented Jun 16, 2021

多看看文档吧
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/
(这有点硬核,建议思考,经验是自己积累的

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants