抱歉,您的浏览器无法访问本站
本页面需要浏览器支持(启用)JavaScript
了解详情 >

记录CloudflareTunnel内网穿透操作。

Proxmox VE

版本:8.1.4

使用https,需要在Public Hostname Page的Additional application settings开启以下3个选项。

1
2
3
No TLS Verify
HTTP2 connection
Disable Chunked Encoding

Snipaste_2024-03-09_15-32-15

Unraid

版本:6.12.6

使用http协议,配置如图:

Snipaste_2024-03-09_15-40-55

SSH

设置

Snipaste_2023-06-16_21-13-22

连接

如官方文档Connect as a user所示,请首先在你的电脑上安装cloudflared

然后配置SSH, 比如 ~/.ssh/config

1
2
3
4
5
6
7
8
Host home-ubuntu.example.com
HostName home-ubuntu.example.com
TCPKeepAlive yes
User dong
ServerAliveInterval 15
IdentityFile ~/.ssh/dell_ubuntu
Port 22
ProxyCommand /opt/homebrew/bin/cloudflared access ssh --hostname %h

注意,这里主要的区别是多了ProxyCommand /opt/homebrew/bin/cloudflared access ssh --hostname %h, 以及Hostname192.168.1.101变成了你在Cloudflare设置的home-ubuntu.example.com

参考

评论