BER分博客 - 端口转发 https://blog.berfen.com/tag/%E7%AB%AF%E5%8F%A3%E8%BD%AC%E5%8F%91/ zh-CN Tue, 29 Apr 2025 03:04:14 +0000 Tue, 29 Apr 2025 03:04:14 +0000 macOS下Nginx绑定80端口的终极解决方案:端口转发与权限管理实践 https://blog.berfen.com/post/46.html https://blog.berfen.com/post/46.html Tue, 29 Apr 2025 03:04:14 +0000 taotecode 一、问题背景

在macOS系统中部署Nginx时,开发者常遇到两个核心问题:

  1. 权限警告:使用sudo brew services restart nginx时出现路径所有权警告(如Taking root:admin ownership)。
  2. 端口限制:非root用户无法绑定1024以下特权端口(如80端口)。

本文将系统性解决这些问题,并提供可复用的配置方案。

[...]

]]>
0 https://blog.berfen.com/post/46.html#comments
跨服务器安全访问:基于Nginx反向代理与端口转发的实践指南 https://blog.berfen.com/post/45.html https://blog.berfen.com/post/45.html Tue, 29 Apr 2025 03:00:14 +0000 taotecode 引言

在多服务器架构中,网络隔离与访问控制是保障安全的重要手段。本文将基于实际场景,探讨如何在仅允许特定端口通信的限制下,通过Nginx反向代理与端口转发技术,实现从隔离服务器(服务器B)安全访问外网服务(如Git、OSS)的完整方案。

[...]

]]>
0 https://blog.berfen.com/post/45.html#comments
通过Nginx反向代理与端口转发实现跨服务器安全访问 https://blog.berfen.com/post/39.html https://blog.berfen.com/post/39.html Sat, 12 Apr 2025 08:50:00 +0000 taotecode 背景与需求

在内网环境中,服务器B因安全限制仅能通过特定端口(如10443)与服务器A通信,且无法直接访问外网。如何让服务器B通过服务器A代理访问外部服务(如Git仓库、OSS存储),同时保持通信安全?本文提供完整解决方案。

[...]

]]>
0 https://blog.berfen.com/post/39.html#comments