GitLab ssh over cloudflare和代理

问题描述 投票:1回答:1

我已将gitlab安装在proxmox的lxc容器上。

它的作用类似于gitlabproxycloudflare

如果我将一个条目添加到/ets/hosts(在使用gitlab的本地计算机或任何其他服务器上)上,我的proxy的公共IP行都可以正常工作,但SSH克隆/推/拉,BUT除外。和我的gitlab的域名-可以。

proxy VM也是lxc容器。我只是用规则将22端口重定向到gitlab VM

-A PREROUTING -d AAA.AAA.AAA.AAA/32 -p tcp -m tcp --dport 22 -j DNAT --to-destination 192.168.10.150:22
ssh -T [email protected]

这与hosts文件中的条目一起使用。但是,如果删除-它不起作用。

错误:

# git pull

ssh: connect to host git.peacedata.su port 22: Network is unreachable
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

UPD on 24.04.2020

我发现,Cloudflare阻塞了22端口。我有一些解决方法,但是我需要大多数“美丽”的解决方案))。]

我已将gitlab安装在proxmox的lxc容器上。它像gitlabproxycloudflare一样工作。如果我将一个条目添加到/ ets / hosts(...

ssh gitlab cloudflare
1个回答
1
投票

所以,我只是将直接IP地址添加到/etc/hosts,并且所有这些都作为附件。

© www.soinside.com 2019 - 2024. All rights reserved.