
什麼“!”表示以下 iptable 規則中的
iptables -I inacc ! -i br0 -p UDP --dport 69 -j ACCEPT
我認為與接口有關br0
。我認為這意味著除br0
我對麼?
答案1
是的,你是。來自“男人 iptables”
[!] -i, --in-interface name
Name of an interface via which a packet was received (only for packets entering the INPUT, FORWARD and PREROUTING chains). When the "!" argument is used before the interface name, the sense is inverted. If the
interface name ends in a "+", then any interface which begins with this name will match. If this option is omitted, any interface name will match.