如何在AIX上实现IP包过滤的功能(1) AIX操作系统支持静态的IP包过滤功能,您可以利用这一功能来保护连接在网络上的服务器。在使用这一功能之前,您需要安装以下软件包: bos.net.ipsec.keymgt bos.net.ipsec.rte 然后您就可以进行包过滤的配置了。 首先运行smitty ipsec4, 选择Advanced IP Security Configuration->Configure IP Security Filter Rules->Add an IP Security Filter Rule,然后在其中填写过滤的细节。具体介绍如下:
Rule Action 操作: deny 拒绝 permit 允许
IP Source Address 源地址。可以是 IP 地址或主机名。
IP Source Mask 比较位掩码。设置为“1”的位表示源地址中对应的位将被比较。
IP Destination Address 目标地址。可以是 IP 地址或主机名。
IP Destination Mask 目标比较位掩码。设置为“1”的位表示目标地址中对应的位将被比较。
Apply to Source Routing? (PERMIT/inbound only) 源路由控制:yes 或 no。决定是(yes)否(no)允许Source Routing包。
Source Port / ICMP Type Operation 源端口或 ICMP 类型操作。可以是等于(eq)、大于(gt)、小于(lt)、不等于(neq)、小于等于(le)、大于等于(ge)、任何(any)。
Source Port Number / ICMP Type 源端口或 ICMP 类型值。 ICMP 类型值列出如下: 0 = Echo Reply 3 = Destination Unreachable 4 = Source Quench 5 = Redirect 8 = Echo Request 11 = Time Exceeded 12 = Parameter Problem 13 = Timestamp Request 14 = Timestamp Reply 15 = Information Request 16 = Information Reply A1 = Address Format Request A2 = Address Format Reply
Destination Port / ICMP Code Operation 目标端口或 ICMP 代码操作。可以是等于(eq)、大于(gt)、小于(lt)、不等于(neq)、小于等于(le)、大于等于(ge)、任何(any)。
Destination Port Number / ICMP Type 目标端口或 ICMP 代码值。ICMP类型对应的代码值列出如下: TYPE = 0 - Echo Reply sent by: 0 = (no special meaning) host, router TYPE = 3 - Destination Unreachable sent by: 0 = network unreachable router 1 = host unreachable router 2 = protocol unreachable host 3 = port unreachable host 4 = fragmentation needed but impossible router because of 'don't fragment' command 5 = source route not reachable router TYPE = 4 - Source Quench sent by: 0 = datagram could not be received host, router