Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可以支持https么 #8

Open
a1618x4881 opened this issue Jan 24, 2018 · 1 comment
Open

可以支持https么 #8

a1618x4881 opened this issue Jan 24, 2018 · 1 comment

Comments

@a1618x4881
Copy link

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

@suokunlong
Copy link

suokunlong commented Feb 28, 2020

我的亲自测试,完全可以支持 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 上 配置
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants