在第 25.1.2 节中。Partitions: Turning One Drive Into Many,有如下说法:
分区表分为四个部分或四个主分区。主分区是硬盘驱动器上只能包含一个逻辑驱动器(或部分)的分区。每个部分都可以保存定义单个分区所需的信息,这意味着分区表最多可以定义四个分区。
我不明白为什么只能有四个分区。这只是它最初设计的方式吗?真的可以只有 4 个主分区吗?
我正在以 root 身份运行以下 bash 脚本来配置 iptables(我通过 SSH 登录):
#!/bin/bash
# Delete all existing rules
iptables --flush
# Set default chain policies
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP
# Allow port 80 (http)
iptables -A INPUT -p tcp --sport 80 -j ACCEPT
iptables -A OUTPUT -p tcp --dport 80 -j ACCEPT
# Allow port 443 (https)
iptables -A INPUT -p tcp --sport 443 -j ACCEPT
iptables -A OUTPUT -p tcp --dport 443 -j ACCEPT
# …Run Code Online (Sandbox Code Playgroud)