Skip to content

Commit 3ed5705

Browse files
author
digoal
committed
fix
1 parent 55b7257 commit 3ed5705

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

202407/20240704_01.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 通过海外服务器配置squid http/https proxy代理, 本地ssh建隧道 端口映射, 使用http/https proxy代理配置拉取docker hub镜像
1+
## 通过海外服务器配置squid http/https proxy代理, 本地ssh建隧道 端口映射, 使用http/https proxy代理配置拉取docker hub镜像, 手机youtube app登陆等
22
33
### 作者
44
digoal
@@ -13,15 +13,19 @@ PostgreSQL , PolarDB , DuckDB , docker , http_proxy , https_proxy
1313
1414
## 背景
1515
解决无法拉取docker.io官方Image的问题.
16+
17+
解决手机Youtube app无法登陆的问题.
1618

1719
准备:
18-
- 1台海外的Linux服务器(例如 debian 11), 支持公网访问.
19-
- 在这台服务器搭建http/https代理.
20-
- ssh隧道, 访问本地端口被转发到远程服务器http代理端口.
21-
- 配置docker http/https proxy, 使用这台海外的服务器访问docker registry拉取镜像.
20+
- 1台海外的Linux服务器(例如 debian 11), 支持公网被ssh访问.
21+
- 在这台海外服务器搭建http/https代理 (squid, 监听127.0.0.1 即可).
22+
- ssh隧道, 访问本地主机IP+端口 被转发到 远程服务器http代理端口(squid 127.0.0.1:port).
23+
- 配置docker http/https proxy 为本机IP+端口, 使用这台海外的服务器访问docker registry拉取镜像.
24+
- 确保手机可以访问本地主机网络(例如都在家庭网内). 配置手机网络、手动设置代理(本地主机IP:PORT)
2225

2326
访问路径如下:
2427
- 本地机器 --> 本地端口转发 --ssh隧道--> 远程机器 --> 远程http代理 --> docker.io
28+
- iphone --> 本地机器 --> 本地端口转发 --ssh隧道--> 远程机器 --> 远程http代理 --> docker.io
2529

2630

2731
docker desktop配置:

202407/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
##### 20240705_03.md [《PostgreSQL 18 preview - Support "Right Semi Join" plan shapes》](20240705_03.md)
3333
##### 20240705_02.md [《PostgreSQL 18 preview - Add memory/disk usage for Material nodes in EXPLAIN》](20240705_02.md)
3434
##### 20240705_01.md [《Github 最火的开源项目》](20240705_01.md)
35-
##### 20240704_01.md [《通过海外服务器配置squid http/https proxy代理, 本地ssh建隧道 端口映射, 使用http/https proxy代理配置拉取docker hub镜像》](20240704_01.md)
35+
##### 20240704_01.md [《通过海外服务器配置squid http/https proxy代理, 本地ssh建隧道 端口映射, 使用http/https proxy代理配置拉取docker hub镜像, 手机youtube app登陆等](20240704_01.md)
3636
##### 20240701_06.md [《PostgreSQL 18 preview - 64-bit XID 设计和patch出炉, 真的来了?》](20240701_06.md)
3737
##### 20240701_05.md [《PostgreSQL 18 preview - pg_log_query_plan() 打印running SQL的执行计划》](20240701_05.md)
3838
##### 20240701_04.md [《PostgreSQL 18 preview - PostgreSQL pg_stat_activity新增状态authenticating, 可检测拒绝服务DDoS攻击》](20240701_04.md)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ digoal's|PostgreSQL|文章|归类
284284
##### 202407/20240705_03.md [《PostgreSQL 18 preview - Support "Right Semi Join" plan shapes》](202407/20240705_03.md)
285285
##### 202407/20240705_02.md [《PostgreSQL 18 preview - Add memory/disk usage for Material nodes in EXPLAIN》](202407/20240705_02.md)
286286
##### 202407/20240705_01.md [《Github 最火的开源项目》](202407/20240705_01.md)
287-
##### 202407/20240704_01.md [《通过海外服务器配置squid http/https proxy代理, 本地ssh建隧道 端口映射, 使用http/https proxy代理配置拉取docker hub镜像》](202407/20240704_01.md)
287+
##### 202407/20240704_01.md [《通过海外服务器配置squid http/https proxy代理, 本地ssh建隧道 端口映射, 使用http/https proxy代理配置拉取docker hub镜像, 手机youtube app登陆等》](202407/20240704_01.md)
288288
##### 202407/20240701_06.md [《PostgreSQL 18 preview - 64-bit XID 设计和patch出炉, 真的来了?》](202407/20240701_06.md)
289289
##### 202407/20240701_05.md [《PostgreSQL 18 preview - pg_log_query_plan() 打印running SQL的执行计划》](202407/20240701_05.md)
290290
##### 202407/20240701_04.md [《PostgreSQL 18 preview - PostgreSQL pg_stat_activity新增状态authenticating, 可检测拒绝服务DDoS攻击》](202407/20240701_04.md)

0 commit comments

Comments
 (0)