iptables
类别: Linux 标签: iptables目录
规则
添加规则
iptables -t raw -A OUTPUT -p icmp -j TRACE
iptables -t raw -A PREROUTING -p icmp -j TRACE
查看规则
# iptables -t raw -L -n --line-numbers
Chain PREROUTING (policy ACCEPT)
num target prot opt source destination
1 TRACE icmp -- 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT)
num target prot opt source destination
1 TRACE icmp -- 0.0.0.0/0 0.0.0.0/0
删除规则
iptables -t raw -D PREROUTING 1
iptables -t raw -D OUTPUT 1