连接被拒绝(GRE 隧道 - FiveM)

连接被拒绝(GRE 隧道 - FiveM)

我正在使用 Vultr 运行游戏服务器。我想做的是通过 GRE 隧道运行游戏服务器(后端服务器)。为此,我使用 x4b.net 作为我的 GRE 隧道。需要注意以下几点:

我使用的指南列在此处:https://www.x4b.net/kb/Tutorials/FiveMDDoSProtection

我用于游戏服务器的端口是 2002。我已经创建了防火墙规则以允许流量通过该端口。

根据 x4b 支持,他们的回复如下:

Having bound your service to the tunnel it is expected that the service will no longer be accessible on the backend ip of your server. This is normally desired by most people.

Its outside the scope of what most customers do (therefore you may need to investigate for any binding related issues) but you can look into binding to 0.0.0.0 (every IP on your system). This may however introduce IP leaks and other compatibility issues in some services. 我该怎么做呢?这样做有用吗?

现在,我的服务器看到服务从隧道 IP 地址运行,但由于某种原因,连接仍然被拒绝。我有 10.16.2.6 通过 NAT 绑定到 103.77.224.85,并使用 10.16.2.6 作为我的监听 IP 地址,而不是 0.0.0.0。我按照 x4b 的指南在 server.cfg 中设置了它。

如何让服务器不拒绝连接?请参阅下面的 gyazo 屏幕截图。

https://gyazo.com/31387e42252b72f84567102aa2e64952

https://gyazo.com/ebc73666f998b2c36b5ead3b719d8ebf

https://gyazo.com/532f940631f6d1c01d7ab12300c81221

感谢任何能提供帮助的人。

答案1

这篇文章解决了这个问题!希望它能帮助其他人。

https://forum.cfx.re/t/help-gre-tunnel-reverse-proxy-setup-curl-7-refusing-connection/4872661

相关内容