<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Discuz! BBS - 网络管理</title>
    <link>https://www.unicoder.cn/forum.php?mod=forumdisplay&amp;fid=59</link>
    <description>Latest 20 threads of 网络管理</description>
    <copyright>Copyright(C) Discuz! BBS</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Sat, 16 May 2026 07:54:12 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://www.unicoder.cn/static/image/common/logo_88_31.gif</url>
      <title>Discuz! BBS</title>
      <link>https://www.unicoder.cn/</link>
    </image>
    <item>
      <title>ssh(sshd)禁止root登录</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=537</link>
      <description><![CDATA[要禁止SSH服务（sshd）上的root用户登录，可以通过编辑SSH配置文件来实现。以下是几个步骤来达到这个目的：

‌编辑SSH配置文件‌：
打开SSH的配置文件/etc/ssh/sshd_config。你可以使用文本编辑器来编辑这个文件，比如使用nano或vim。

‌禁用root登录‌：
在文件中找 ...]]></description>
      <category>网络管理</category>
      <author>admin</author>
      <pubDate>Mon, 05 Jan 2026 21:38:50 +0000</pubDate>
    </item>
    <item>
      <title>unifi设备如何在防火墙”中查看和调整规则。允许从外部访问</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=525</link>
      <description><![CDATA[在UniFi设备的“网络”-&gt;“防火墙”中查看和调整规则，以确保允许从外部到内部端口的流量，可以按照以下步骤操作。这些步骤基于UniFi控制器的常见界面和功能，具体路径可能因设备型号或软件版本略有差异。

查看现有防火墙规则
‌登录UniFi控制器‌：通过浏览器访问UniF ...]]></description>
      <category>网络管理</category>
      <author>admin</author>
      <pubDate>Mon, 22 Dec 2025 02:46:34 +0000</pubDate>
    </item>
    <item>
      <title>nginx 使用 certbot 实现https</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=524</link>
      <description><![CDATA[使用 Certbot 来管理 Nginx 的 SSL/TLS 证书是一个常见的做法，因为它可以帮助你自动获取和续订 Let\'s Encrypt 证书。以下是如何在 Nginx 上使用 Certbot 的步骤：

1. 安装 Certbot
首先，你需要安装 Certbot。在 Ubuntu 或 Debian 系统上，可以使用以下命令：

2. 获 ...]]></description>
      <category>网络管理</category>
      <author>admin</author>
      <pubDate>Sun, 21 Dec 2025 10:45:51 +0000</pubDate>
    </item>
    <item>
      <title>iptables 打开某个端口</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=478</link>
      <description><![CDATA[XXX为端口号]]></description>
      <category>网络管理</category>
      <author>admin</author>
      <pubDate>Wed, 22 Oct 2025 06:22:16 +0000</pubDate>
    </item>
    <item>
      <title>彻底删除iptables</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=477</link>
      <description><![CDATA[要彻底删除iptables， 需要如下步骤：
1. 停止 iptables 服务


2. 卸载 iptables 相关包


3. 清除 iptables 规则


4. 删除配置文件


5. 使用 ufw 替代（可选）
Ubuntu 20.04 默认使用 ufw 作为防火墙管理工具：


注意事项
删除 iptables 前请确保有其他安全措施
某 ...]]></description>
      <category>网络管理</category>
      <author>admin</author>
      <pubDate>Wed, 22 Oct 2025 05:32:21 +0000</pubDate>
    </item>
    <item>
      <title>Failed to open a WebSocket connection: empty Connection header.</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=474</link>
      <description><![CDATA[您遇到的错误信息表明您尝试用 curl 直接访问 WebSocket 服务器，但 WebSocket 协议需要特殊的握手过程，而普通 HTTP 客户端（如 curl 或浏览器）无法直接完成这个协议升级过程。以下是详细分析和解决方案：1. 错误原因分析
[*]WebSocket 协议特性
WebSocket 连接需要从 ...]]></description>
      <category>网络管理</category>
      <author>admin</author>
      <pubDate>Tue, 21 Oct 2025 12:09:06 +0000</pubDate>
    </item>
    <item>
      <title>iptables: unrecognized service</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=473</link>
      <description><![CDATA[  您遇到的 iptables: unrecognized service 错误表明您的系统可能没有使用传统的 service 命令管理 iptables，或者使用的是其他防火墙工具（如 nftables 或 firewalld）。以下是详细分析和解决方案：
1. 错误原因分析系统差异：
旧版 Linux（如 CentOS 6）使用 servi ...]]></description>
      <category>网络管理</category>
      <author>admin</author>
      <pubDate>Tue, 21 Oct 2025 11:41:27 +0000</pubDate>
    </item>
    <item>
      <title>在 Docker 容器中使用某端口 出现 raise TimeoutError(&quot;timed out du</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=472</link>
      <description><![CDATA[在 Docker 容器中使用端口xxx 出现 raise TimeoutError(\&quot;timed out during opening h\&quot;) 这类错误通常与网络配置、防火墙设置或容器内部应用程序的启动和监听有关。下面是一些解决步骤，可以帮助你诊断和解决这个问题：1. 检查 Docker 容器的端口映射首先，确保你的 Dock ...]]></description>
      <category>网络管理</category>
      <author>admin</author>
      <pubDate>Tue, 21 Oct 2025 11:31:49 +0000</pubDate>
    </item>
    <item>
      <title>添加端口并使iptables更改生效</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=471</link>
      <description><![CDATA[ubuntu20.4.2：
在Ubuntu 20.04.2中，要让修改的iptables规则生效，你需要确保几条关键步骤被正确执行。下面是一些步骤和提示，帮助你确保iptables规则能够正确应用：

1. 编辑或添加iptables规则
首先，你需要使用iptables命令来添加或修改规则。例如，要允许所有进入 ...]]></description>
      <category>网络管理</category>
      <author>admin</author>
      <pubDate>Tue, 21 Oct 2025 11:05:02 +0000</pubDate>
    </item>
    <item>
      <title>在 Docker 中运行 Vosk 服务器并使其通过 wss WebSocket 连接</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=470</link>
      <description><![CDATA[要在 Docker 中运行 Vosk 服务器并使其通过 WebSocket 连接（使用 WSS，即通过安全 WebSocket 连接），你需要进行几个步骤来设置你的 Docker 容器和相关的网络配置。以下是一个详细的指南：

步骤 1: 准备 Docker 镜像
首先，确保你有一个可以运行 Vosk 服务器的 Docker ...]]></description>
      <category>网络管理</category>
      <author>admin</author>
      <pubDate>Tue, 21 Oct 2025 00:51:45 +0000</pubDate>
    </item>
    <item>
      <title>dig</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=440</link>
      <description><![CDATA[dig @114.114.114.114 registry-1.docker.io]]></description>
      <category>网络管理</category>
      <author>admin</author>
      <pubDate>Wed, 24 Sep 2025 15:30:56 +0000</pubDate>
    </item>
    <item>
      <title>iptables 允许转发</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=366</link>
      <description><![CDATA[先删掉相关chain:


然后再重建：


最后保存：

查看:
删除整个链:选择自动还是手动：0 就是自动，1就是手动，注意：一般不需要修改]]></description>
      <category>网络管理</category>
      <author>admin</author>
      <pubDate>Sat, 10 May 2025 01:10:21 +0000</pubDate>
    </item>
    <item>
      <title>网卡驱动和interface启动问题</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=195</link>
      <description><![CDATA[首先，确认网卡pcii安装正确：
lspci | grep -i net
2)看看驱动模块是否正确安装：     lsmod  | grep r8169  (  这个是我的模块名称）
如果列的出来，就安装正确了。否则  modprobe r8169  这个会自动安装，如果想安装其他芯片的，可看https://blog.csdn.net/s9426224/ ...]]></description>
      <category>网络管理</category>
      <author>admin</author>
      <pubDate>Fri, 19 Apr 2024 03:23:58 +0000</pubDate>
    </item>
    <item>
      <title>有关远程登陆报:no matching host key type found.offer: ssh-rsa,ssh-dss</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=189</link>
      <description><![CDATA[scp -o HostKeyAlgorithms=+ssh-rsa +ssh-dss ./SourcePath/mmm.tgz  user@x.x.x.x:/DestiPath/dir/
ssh -o HostKeyAlgorithms=+ssh-rsa user@x.x.x.x

如果报：
ash: /usr/libexec/sftp-server: not found
scp: Connection closed
表示openssh 9.0版本之后，scp使用sft ...]]></description>
      <category>网络管理</category>
      <author>admin</author>
      <pubDate>Fri, 08 Mar 2024 09:43:09 +0000</pubDate>
    </item>
    <item>
      <title>配置和关闭代理</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=172</link>
      <description><![CDATA[1）打开代理：
export http_proxy=\&quot;127.0.0.1:1203\&quot;
export https_proxy=\&quot;127.0.0.1:1203“
export socks_proxy=\&quot;127.0.0.1:1203\&quot;
export socks4_proxy=\&quot;127.0.0.1:1203\&quot;
export socks5_proxy=\&quot;127.0.0.1:1203\&quot;


2）关闭代理：
export http_proxy=\&quot;\&quot;
export https_p]]></description>
      <category>网络管理</category>
      <author>admin</author>
      <pubDate>Fri, 01 Dec 2023 03:09:51 +0000</pubDate>
    </item>
    <item>
      <title>自己本地的代理配置</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=135</link>
      <description><![CDATA[1：  服务器：     代理3个，proxy, privoxy, clash。 
a） proxy+ privoxy 的目的是 forward .golang.org/  ，  privoxy又转发到另一台机器上的代理（clash）。这个配置在privoxy的配置文件里面，而proxy配置在.bashrc ， 目的就是给本地应用转发的。 这里主要是下载一 ...]]></description>
      <category>网络管理</category>
      <author>admin</author>
      <pubDate>Mon, 24 Jul 2023 20:44:15 +0000</pubDate>
    </item>
    <item>
      <title>linux服务器网络配置</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=107</link>
      <description><![CDATA[http://www.unicoder.me/wp/index.php/2 ... ver-network-config/]]></description>
      <category>网络管理</category>
      <author>admin</author>
      <pubDate>Sat, 01 Jul 2023 18:25:36 +0000</pubDate>
    </item>
    <item>
      <title>网管员技巧（netstat 等）</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=106</link>
      <description><![CDATA[netstat -apn   列出各个端口的监听程序（如 netstat -apn | grep 53)
netstat -tln  查看所有监听端口 
ps aux     ps -le      ps -fC   查看所有进程
route -F   查看转发路由 
dig：dig www.google.com +noedns
openDNS：208.67.220.220,208.67.222.222   tcp端口： ...]]></description>
      <category>网络管理</category>
      <author>admin</author>
      <pubDate>Sun, 25 Jun 2023 14:14:54 +0000</pubDate>
    </item>
    <item>
      <title>IPv6  小知识</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=104</link>
      <description><![CDATA[Ping IPv6:
win直接ping：    ping6 
linux 要加上接口   ping6 nnn%eth0]]></description>
      <category>网络管理</category>
      <author>admin</author>
      <pubDate>Fri, 23 Jun 2023 09:20:17 +0000</pubDate>
    </item>
    <item>
      <title>DNS Flush and DHCP Renewer</title>
      <link>https://www.unicoder.cn/forum.php?mod=viewthread&amp;tid=74</link>
      <description><![CDATA[DNS Flush

Flush dns [return]

sudo dhclient -r 清除当前租约。 sudo dhclient 重新获得租约。]]></description>
      <category>网络管理</category>
      <author>admin</author>
      <pubDate>Sat, 25 Feb 2023 14:30:11 +0000</pubDate>
    </item>
  </channel>
</rss>