• 2022-06-06
    用iptables写一条规则不允许172.16.0.0/16的网段访问本设备,以下哪项规则写法是正确的? ( )。
    A: iptables –t filter –A INPUT –s 172.16.0.0/16 –p all –j DROP
    B: iptables –t filter –P INPUT –s 172.16.0.0/16 –p all –j DROP
    C: iptables –t filter –A INPUT –s 172.16.0.0/16 –p all –j ACCEPT
    D: iptables –t filter –P INPUT –s 172.16.0.0/16 –p all –j ACCEPT