aploium / shootback

a reverse TCP tunnel let you access target behind NAT or firewall

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

可以支持https么

a1618x4881 opened this issue · comments

服务端如何配置才能支持https

我的亲自测试,完全可以支持 https。其实这个支不支持 https 和 shootback 没多大关系,shootback只负责端口转发。

因此,假设:公网 ip 为 1.2.3.4的机器作为 master 作为跳板,内网 192.168.1.2 的机器是网页服务器,该内网网页服务器的 https 端口是 443,则:

# 在1.2.3.4 上:
python3 master.py --m 0.0.0.0:10000 -c 0.0.0.0:443 # 前提是443端口没有被公网上这个机器的httpd占用!

# 在192.168.1.2的内网机器上,假设已经配置好了一切正常的 https 配置:
python3 slaver.py -m 1.2.3.4:10000 -t 127.0.0.1:443

此时,其他人访问 https://1.2.3.4 的时候,浏览器默认使用的是443端口,1.2.3.4收到请求之后便转发给了 192.168.1.2 的内网主机的443端口,一切如常。https证书等配置也都是在 192.168.1.2 上 配置
`