我已将gitlab安装在proxmox的lxc容器上。
它的作用类似于gitlab
proxy
cloudflare
。
如果我将一个条目添加到/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(...
所以,我只是将直接IP地址添加到/etc/hosts
,并且所有这些都作为附件。