<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>网络 on 🐟🐟🐟🐟🐟🐟🐟🐟🐟🐟🐟🐟</title>
    <link>https://fps.ink/tags/%E7%BD%91%E7%BB%9C/</link>
    <description>Recent content from 🐟🐟🐟🐟🐟🐟🐟🐟🐟🐟🐟🐟</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    
    <managingEditor>xxx@example.com (Jarvis)</managingEditor>
    <webMaster>xxx@example.com (Jarvis)</webMaster>
    
    <copyright>本博客所有文章除特别声明外，均采用 BY-NC-SA 许可协议。转载请注明出处！</copyright>
    
    <lastBuildDate>Sat, 22 Oct 2022 21:53:00 +0800</lastBuildDate>
    
    
    <atom:link href="https://fps.ink/tags/%E7%BD%91%E7%BB%9C/index.xml" rel="self" type="application/rss&#43;xml" />
    

    
    

    <item>
      <title>路由器命令大全：华为 / H3C / 思科对照</title>
      <link>https://fps.ink/post/router-cli/</link>
      <pubDate>Sat, 22 Oct 2022 21:53:00 &#43;0800</pubDate>
      <author>xxx@example.com (Jarvis)</author>
      <guid>https://fps.ink/post/router-cli/</guid>
      <description>
        <![CDATA[<h1>路由器命令大全：华为 / H3C / 思科对照</h1><p>作者：Jarvis（xxx@example.com）</p>
        
          <p>华为 VRP、H3C Comware、思科 IOS 三家命令体系高度相似，但关键字不同。本文按「模式 → 基础 → 接口 → 交换 → 路由 → 安全 → 管理 → 排障」分类，每类给出三家写法，最后附一张对照总表。</p>
<h2 id="一三种-cli-体系">
<a class="header-anchor" href="#%e4%b8%80%e4%b8%89%e7%a7%8d-cli-%e4%bd%93%e7%b3%bb"></a>
一、三种 CLI 体系
</h2><table>
	<thead>
			<tr>
					<th></th>
					<th>华为 VRP</th>
					<th>H3C Comware</th>
					<th>思科 IOS</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>提示符</td>
					<td><code>&lt;Huawei&gt;</code> / <code>[Huawei]</code></td>
					<td><code>&lt;H3C&gt;</code> / <code>[H3C]</code></td>
					<td><code>Router&gt;</code> / <code>Router#</code> / <code>Router(config)#</code></td>
			</tr>
			<tr>
					<td>配置模式</td>
					<td><code>system-view</code></td>
					<td><code>system-view</code></td>
					<td><code>configure terminal</code></td>
			</tr>
			<tr>
					<td>端口视图</td>
					<td><code>[Huawei-GigabitEthernet0/0/1]</code></td>
					<td><code>[H3C-GigabitEthernet1/0/1]</code></td>
					<td><code>Router(config-if)#</code></td>
			</tr>
			<tr>
					<td>返回上一层</td>
					<td><code>quit</code></td>
					<td><code>quit</code></td>
					<td><code>exit</code></td>
			</tr>
			<tr>
					<td>直接回用户视图</td>
					<td><code>return</code>（或 <code>Ctrl+Z</code>）</td>
					<td><code>return</code>（或 <code>Ctrl+Z</code>）</td>
					<td><code>end</code>（或 <code>Ctrl+Z</code>）</td>
			</tr>
			<tr>
					<td>保存</td>
					<td><code>save</code></td>
					<td><code>save force</code></td>
					<td><code>write</code> / <code>copy run start</code></td>
			</tr>
			<tr>
					<td>取消命令</td>
					<td><code>undo xxx</code></td>
					<td><code>undo xxx</code></td>
					<td><code>no xxx</code></td>
			</tr>
			<tr>
					<td>查看</td>
					<td><code>display xxx</code></td>
					<td><code>display xxx</code></td>
					<td><code>show xxx</code></td>
			</tr>
	</tbody>
</table>
<p>记住三组对应关系，剩下的就是查具体参数：<strong><code>display</code> ↔ <code>show</code>、<code>undo</code> ↔ <code>no</code>、<code>save</code> ↔ <code>write</code></strong>。</p>
        
        <hr><p>本文2022-10-22首发于<a href='https://fps.ink/'>🐟🐟🐟🐟🐟🐟🐟🐟🐟🐟🐟🐟</a>，最后修改于2022-10-22</p>]]>
      </description>
      
        <category>技术</category>
      
    </item>
    
    

    <item>
      <title>常用端口详解：从 22 到 6379</title>
      <link>https://fps.ink/post/common-ports/</link>
      <pubDate>Thu, 18 Jun 2020 20:36:00 &#43;0800</pubDate>
      <author>xxx@example.com (Jarvis)</author>
      <guid>https://fps.ink/post/common-ports/</guid>
      <description>
        <![CDATA[<h1>常用端口详解：从 22 到 6379</h1><p>作者：Jarvis（xxx@example.com）</p>
        
          <p>端口是网络服务的「门牌号」。这篇文章把常用端口按用途分类整理，附高危端口清单、排查方法和转发技巧，可作为日常运维的速查表。</p>
<h2 id="一端口基础">
<a class="header-anchor" href="#%e4%b8%80%e7%ab%af%e5%8f%a3%e5%9f%ba%e7%a1%80"></a>
一、端口基础
</h2><ul>
<li>端口号是 <strong>16 位无符号整数</strong>，范围 <code>0–65535</code>；</li>
<li><strong>TCP 和 UDP 的端口相互独立</strong>，同一个数字可以各有一个服务；</li>
<li>一条连接由<strong>四元组</strong>唯一确定：<code>源IP:源端口 + 目标IP:目标端口</code>。</li>
</ul>
<p>按号段分三类：</p>
<table>
	<thead>
			<tr>
					<th>范围</th>
					<th>名称</th>
					<th>说明</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>0–1023</td>
					<td>知名端口（Well-known）</td>
					<td>系统服务专用，Linux 下绑定需 root</td>
			</tr>
			<tr>
					<td>1024–49151</td>
					<td>注册端口</td>
					<td>应用常用，如 3306、6379</td>
			</tr>
			<tr>
					<td>49152–65535</td>
					<td>动态/临时端口</td>
					<td>客户端发起连接时随机分配</td>
			</tr>
	</tbody>
</table>
<h2 id="二web-与代理">
<a class="header-anchor" href="#%e4%ba%8cweb-%e4%b8%8e%e4%bb%a3%e7%90%86"></a>
二、Web 与代理
</h2><table>
	<thead>
			<tr>
					<th>端口</th>
					<th>协议</th>
					<th>用途</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>80</td>
					<td>TCP</td>
					<td>HTTP</td>
			</tr>
			<tr>
					<td>443</td>
					<td>TCP</td>
					<td>HTTPS</td>
			</tr>
			<tr>
					<td>8080 / 8443</td>
					<td>TCP</td>
					<td>备用 HTTP / HTTPS（Tomcat、代理）</td>
			</tr>
			<tr>
					<td>8000 / 8008</td>
					<td>TCP</td>
					<td>开发服务器（Django、Hugo 等）</td>
			</tr>
			<tr>
					<td>3000</td>
					<td>TCP</td>
					<td>Node.js / Grafana 默认</td>
			</tr>
			<tr>
					<td>5000</td>
					<td>TCP</td>
					<td>Flask / .NET 开发服务器</td>
			</tr>
			<tr>
					<td>1313</td>
					<td>TCP</td>
					<td>Hugo 本地预览</td>
			</tr>
			<tr>
					<td>1080</td>
					<td>TCP</td>
					<td>SOCKS5 代理</td>
			</tr>
			<tr>
					<td>3128</td>
					<td>TCP</td>
					<td>Squid 代理</td>
			</tr>
			<tr>
					<td>8888</td>
					<td>TCP</td>
					<td>Jupyter / 各类面板</td>
			</tr>
	</tbody>
</table>
<h2 id="三远程管理">
<a class="header-anchor" href="#%e4%b8%89%e8%bf%9c%e7%a8%8b%e7%ae%a1%e7%90%86"></a>
三、远程管理
</h2><table>
	<thead>
			<tr>
					<th>端口</th>
					<th>协议</th>
					<th>用途</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>22</td>
					<td>TCP</td>
					<td>SSH / SFTP / SCP</td>
			</tr>
			<tr>
					<td>23</td>
					<td>TCP</td>
					<td>Telnet（明文，禁用）</td>
			</tr>
			<tr>
					<td>3389</td>
					<td>TCP</td>
					<td>Windows 远程桌面 RDP</td>
			</tr>
			<tr>
					<td>5900–5903</td>
					<td>TCP</td>
					<td>VNC</td>
			</tr>
			<tr>
					<td>5985 / 5986</td>
					<td>TCP</td>
					<td>WinRM（HTTP / HTTPS）</td>
			</tr>
			<tr>
					<td>2222</td>
					<td>TCP</td>
					<td>常见的 SSH 改端口</td>
			</tr>
	</tbody>
</table>
<h2 id="四文件共享">
<a class="header-anchor" href="#%e5%9b%9b%e6%96%87%e4%bb%b6%e5%85%b1%e4%ba%ab"></a>
四、文件共享
</h2><table>
	<thead>
			<tr>
					<th>端口</th>
					<th>协议</th>
					<th>用途</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>20 / 21</td>
					<td>TCP</td>
					<td>FTP 数据 / 控制</td>
			</tr>
			<tr>
					<td>69</td>
					<td>UDP</td>
					<td>TFTP</td>
			</tr>
			<tr>
					<td>137–139</td>
					<td>TCP/UDP</td>
					<td>NetBIOS（Windows 旧共享）</td>
			</tr>
			<tr>
					<td>445</td>
					<td>TCP</td>
					<td>SMB（Windows 共享，高危）</td>
			</tr>
			<tr>
					<td>2049</td>
					<td>TCP/UDP</td>
					<td>NFS</td>
			</tr>
			<tr>
					<td>873</td>
					<td>TCP</td>
					<td>rsync</td>
			</tr>
	</tbody>
</table>
<h2 id="五邮件">
<a class="header-anchor" href="#%e4%ba%94%e9%82%ae%e4%bb%b6"></a>
五、邮件
</h2><table>
	<thead>
			<tr>
					<th>端口</th>
					<th>协议</th>
					<th>用途</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>25</td>
					<td>TCP</td>
					<td>SMTP（服务器间投递）</td>
			</tr>
			<tr>
					<td>465</td>
					<td>TCP</td>
					<td>SMTPS（隐式 TLS）</td>
			</tr>
			<tr>
					<td>587</td>
					<td>TCP</td>
					<td>SMTP 提交（STARTTLS）</td>
			</tr>
			<tr>
					<td>110 / 995</td>
					<td>TCP</td>
					<td>POP3 / POP3S</td>
			</tr>
			<tr>
					<td>143 / 993</td>
					<td>TCP</td>
					<td>IMAP / IMAPS</td>
			</tr>
	</tbody>
</table>
<h2 id="六数据库与缓存">
<a class="header-anchor" href="#%e5%85%ad%e6%95%b0%e6%8d%ae%e5%ba%93%e4%b8%8e%e7%bc%93%e5%ad%98"></a>
六、数据库与缓存
</h2><table>
	<thead>
			<tr>
					<th>端口</th>
					<th>服务</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>3306</td>
					<td>MySQL / MariaDB</td>
			</tr>
			<tr>
					<td>5432</td>
					<td>PostgreSQL</td>
			</tr>
			<tr>
					<td>1433</td>
					<td>SQL Server</td>
			</tr>
			<tr>
					<td>1521</td>
					<td>Oracle</td>
			</tr>
			<tr>
					<td>6379</td>
					<td>Redis</td>
			</tr>
			<tr>
					<td>27017 / 27018</td>
					<td>MongoDB</td>
			</tr>
			<tr>
					<td>9200 / 9300</td>
					<td>Elasticsearch（HTTP / 节点通信）</td>
			</tr>
			<tr>
					<td>11211</td>
					<td>Memcached</td>
			</tr>
			<tr>
					<td>2181</td>
					<td>ZooKeeper</td>
			</tr>
			<tr>
					<td>9042</td>
					<td>Cassandra</td>
			</tr>
			<tr>
					<td>8086</td>
					<td>InfluxDB</td>
			</tr>
	</tbody>
</table>
<h2 id="七目录与基础设施">
<a class="header-anchor" href="#%e4%b8%83%e7%9b%ae%e5%bd%95%e4%b8%8e%e5%9f%ba%e7%a1%80%e8%ae%be%e6%96%bd"></a>
七、目录与基础设施
</h2><table>
	<thead>
			<tr>
					<th>端口</th>
					<th>服务</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>53</td>
					<td>DNS（TCP/UDP）</td>
			</tr>
			<tr>
					<td>67 / 68</td>
					<td>DHCP（服务端 / 客户端）</td>
			</tr>
			<tr>
					<td>123</td>
					<td>NTP</td>
			</tr>
			<tr>
					<td>161 / 162</td>
					<td>SNMP（查询 / Trap）</td>
			</tr>
			<tr>
					<td>389 / 636</td>
					<td>LDAP / LDAPS</td>
			</tr>
			<tr>
					<td>88</td>
					<td>Kerberos</td>
			</tr>
			<tr>
					<td>514</td>
					<td>Syslog</td>
			</tr>
	</tbody>
</table>
<h2 id="八消息队列与大数据">
<a class="header-anchor" href="#%e5%85%ab%e6%b6%88%e6%81%af%e9%98%9f%e5%88%97%e4%b8%8e%e5%a4%a7%e6%95%b0%e6%8d%ae"></a>
八、消息队列与大数据
</h2><table>
	<thead>
			<tr>
					<th>端口</th>
					<th>服务</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>5672</td>
					<td>RabbitMQ（AMQP）</td>
			</tr>
			<tr>
					<td>15672</td>
					<td>RabbitMQ 管理界面</td>
			</tr>
			<tr>
					<td>9092</td>
					<td>Kafka</td>
			</tr>
			<tr>
					<td>1883 / 8883</td>
					<td>MQTT / MQTTS</td>
			</tr>
			<tr>
					<td>9090</td>
					<td>Prometheus / 各类 Web 面板</td>
			</tr>
			<tr>
					<td>9100</td>
					<td>node_exporter</td>
			</tr>
			<tr>
					<td>8088</td>
					<td>Hadoop YARN</td>
			</tr>
	</tbody>
</table>
<h2 id="九容器与编排">
<a class="header-anchor" href="#%e4%b9%9d%e5%ae%b9%e5%99%a8%e4%b8%8e%e7%bc%96%e6%8e%92"></a>
九、容器与编排
</h2><table>
	<thead>
			<tr>
					<th>端口</th>
					<th>服务</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>2375 / 2376</td>
					<td>Docker API（明文 / TLS）</td>
			</tr>
			<tr>
					<td>6443</td>
					<td>Kubernetes API Server</td>
			</tr>
			<tr>
					<td>10250</td>
					<td>kubelet</td>
			</tr>
			<tr>
					<td>2379 / 2380</td>
					<td>etcd（客户端 / 对等）</td>
			</tr>
			<tr>
					<td>30000–32767</td>
					<td>K8s NodePort 默认范围</td>
			</tr>
	</tbody>
</table>
<h2 id="十组网--vpn--内网穿透">
<a class="header-anchor" href="#%e5%8d%81%e7%bb%84%e7%bd%91--vpn--%e5%86%85%e7%bd%91%e7%a9%bf%e9%80%8f"></a>
十、组网 / VPN / 内网穿透
</h2><table>
	<thead>
			<tr>
					<th>端口</th>
					<th>服务</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>1194</td>
					<td>OpenVPN</td>
			</tr>
			<tr>
					<td>51820</td>
					<td>WireGuard</td>
			</tr>
			<tr>
					<td>11010</td>
					<td>EasyTier 默认（TCP/UDP）</td>
			</tr>
			<tr>
					<td>7000</td>
					<td>frp 服务端</td>
			</tr>
			<tr>
					<td>7500</td>
					<td>frp 管理面板</td>
			</tr>
			<tr>
					<td>1080</td>
					<td>SOCKS5</td>
			</tr>
			<tr>
					<td>8090</td>
					<td>常见的内网穿透管理端</td>
			</tr>
	</tbody>
</table>
<h2 id="十一高危端口清单">
<a class="header-anchor" href="#%e5%8d%81%e4%b8%80%e9%ab%98%e5%8d%b1%e7%ab%af%e5%8f%a3%e6%b8%85%e5%8d%95"></a>
十一、高危端口清单
</h2><p>这些端口<strong>不应直接暴露在公网</strong>：</p>
        
        <hr><p>本文2020-06-18首发于<a href='https://fps.ink/'>🐟🐟🐟🐟🐟🐟🐟🐟🐟🐟🐟🐟</a>，最后修改于2020-06-18</p>]]>
      </description>
      
        <category>技术</category>
      
    </item>
    
  </channel>
</rss>
