Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

centos7 下问题求助 #117

Open
mrwu77 opened this issue Mar 6, 2023 · 0 comments
Open

centos7 下问题求助 #117

mrwu77 opened this issue Mar 6, 2023 · 0 comments

Comments

@mrwu77
Copy link

mrwu77 commented Mar 6, 2023

版本-1.3.2

最开始是使用账号密码验证:method: pam none 配置文件两处都是这样,后面发现连不上,然后有参考其他人问题里的,改成了method: none 去掉密码验证,这下是可以连了

但是遇到问题是,浏览器代理速度很快,但是我用php的curl 就速度很慢并且时不时的报错,后面查看日志如下:
Mar 6 17:55:16 (1678096516.170477) sockd[4758]: info: pass(1): tcp/connect [: .39000 10.1.92.3.1088 -> 10.1.92.3.39000 api.openai.com.443 Mar 6 17:55:16 (1678096516.218332) sockd[4758]: info: pass(1): tcp/connect ]: 0 -> .39000 10.1.92.3.1088 -> 517, 517 -> 10.1.92.3.39000 api.openai.com.443 -> 0: local client error (Connection reset by peer). Session duration: 1s Mar 6 17:55:17 (1678096517.963726) sockd[4758]: info: pass(1): tcp/connect [: .39006 10.1.92.3.1088 -> 10.1.92.3.39006 api.openai.com.443 Mar 6 17:55:20 (1678096520.095378) sockd[4758]: info: pass(1): tcp/connect ]: 5426 -> .39006 10.1.92.3.1088 -> 973, 973 -> 10.1.92.3.39006 api.openai.com.443 -> 5426: local client closed. Session duration: 3s

我的配置如下:
`internal: 10.1.92.3 port = 1088
external: 10.1.92.3

internal: 10.8.0.1 port = 1088
external: 10.8.0.1

external.rotation: same-same
method: none
clientmethod: none
user.privileged: root
user.notprivileged: sockd
logoutput: /var/log/sockd.log

client pass {
from: 客户端IP/32 to: 0.0.0.0/0
}
client block {
from: 客户端IP/32 to: 0.0.0.0/0
}
pass {
from: 客户端IP/32 to: 0.0.0.0/0
protocol: tcp udp
method: none
log: connect disconnect
}
block {
from: 客户端IP/32 to: 0.0.0.0/0
log: connect error
}`
请问为什么速度不仅慢还偶尔关闭连接,我是哪里配置有问题吗?感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant