惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Recorded Future
Recorded Future
Microsoft Security Blog
Microsoft Security Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
The Register - Security
The Register - Security
The GitHub Blog
The GitHub Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
人人都是产品经理
人人都是产品经理
量子位
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
有赞技术团队
有赞技术团队
Stack Overflow Blog
Stack Overflow Blog
H
Help Net Security
Apple Machine Learning Research
Apple Machine Learning Research
The Cloudflare Blog
B
Blog RSS Feed
小众软件
小众软件
博客园 - 叶小钗
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 聂微东
博客园_首页
B
Blog
雷峰网
雷峰网
S
SegmentFault 最新的问题
N
Netflix TechBlog - Medium
D
Docker
博客园 - 司徒正美
博客园 - 【当耐特】
大猫的无限游戏
大猫的无限游戏
博客园 - Franky
MongoDB | Blog
MongoDB | Blog
U
Unit 42
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
腾讯CDC
F
Fortinet All Blogs
aimingoo的专栏
aimingoo的专栏
Martin Fowler
Martin Fowler
Jina AI
Jina AI
WordPress大学
WordPress大学
D
DataBreaches.Net
V
V2EX
V
Visual Studio Blog
Know Your Adversary
Know Your Adversary
P
Privacy & Cybersecurity Law Blog
F
Full Disclosure
G
Google Developers Blog
Engineering at Meta
Engineering at Meta
The Hacker News
The Hacker News
Security Archives - TechRepublic
Security Archives - TechRepublic
IT之家
IT之家
P
Privacy International News Feed

博客园 - bluce chen

swif debounce实现 oculus quest2的思考 博文阅读密码验证 - 博客园 用户中心 - 博客园 Share架构的一些心得 flutter输入颜色枚举卡顿假死 n2n网络环境搭建 p2p技术之n2n源码核心简单分析一 分享一个14年写的用户管理类-swift版 MIUI通过xposed自动设置root权限 基于xposed实现android注册系统服务,解决跨进程共享数据问题 2017 UICollectionView swift2模版 angularjs 分页精华代码 Reveal分析IOS界面,plist文件读取 php嵌套数组递归搜索返回数组key 结合阿里云服务器,设置家中jetson tk1随时远程登陆 sqlite3 根据实体自动生成建表语句 prism4 StockTrader RI 项目分析一些体会2
https点对点转发响应示意图
bluce chen · 2019-12-04 · via 博客园 - bluce chen
	curl 			nginx(proxy_connect)			nginx(NAS)
	 |  					  |							  |
	 |  					  |							  |
(1)	 |-- CONNECT 443 -> 	  |							  |
	 |  					  |							  |
	 |						  |---- [ TCP connection ]--->|
	 |  					  |							  |
	 |  					  |							  |
(2)  |<- HTTP/1.1 200 --------|							  |
	 |  					  |							  |
	 | 建立连接成功 |							  |
	 |  					  							  |
	   ========= 内网隧道通讯(依赖组件,我这里使用n2n) =======
	 |  					    						  |
	 |  					  							  |
	 |  					  |							  |
	 |   [ SSL stream  ]      |							  |
(3)  |---[ GET / HTTP/1.1] -->|     [ SSL stream ]  	  |
	 |   [ Host: xxxx.com]    |---  [ GET / HTTP/1.1 ] -->.
	 |  					  |		[ Host: xxxx.com ]	  |
	 |  					  |							  |
	 |  					  |							  |
	 |  					  |							  |
	 |  					  |							  |
	 |  					  |		[ SSL stream ]		  |
	 |  [ SSL stream ]	  	  |	<--[ HTTP/1.1 200 OK  ]---'
	 |<--[ HTTP/1.1 200 OK ]--|		[ < html page >    ]  |
	 |  [ < html page > ]     |							  |
	 |  					  |							  |
	 |  					  |							  |

 nginx转发配置参考,注意该nginx服务器需要配置hosts指向

server {
    listen       80;
    server_name  xxx.com www.xxx.com;
    return       301 https://www.xxx.com$request_uri;
}

server {
    listen      443 ssl;
    server_name  xxx.com;
    return       301 https://www.xxx.com$request_uri;

    ssl on;
    ssl_session_cache    shared:SSL:1m;
    ssl_session_timeout  5m;

    ssl_ciphers  HIGH:!aNULL:!MD5;
    ssl_prefer_server_ciphers  on;
    ssl_certificate /usr/local/nginx/conf/keys/xxx.com.pem;
    ssl_certificate_key /usr/local/nginx/conf/xxx.com.key;
}

server {
    listen      443 ssl;
    server_name  www.xxx.com;
    charset utf-8;

    error_log /var/log/nginx/xxx.com.error_log info;
    access_log /var/log/nginx/xxx.com.access_log json_log;

    allow  all;
    autoindex off;
    concat on;
    concat_max_files 40;

    ssl on;
    ssl_session_cache    shared:SSL:1m;
    ssl_session_timeout  5m;

    ssl_ciphers  HIGH:!aNULL:!MD5;
    ssl_prefer_server_ciphers  on;
    ssl_certificate /usr/local/nginx/conf/keys/xxx.com.pem;
    ssl_certificate_key /usr/local/nginx/conf/keys/xxx.com.key;
    location / {
        proxy_pass https://www.xxx.com:443;
    }
}