欢迎光临
我们一直在努力

Redhat_7.6_RHCE-IPTABLES

iptables****

注意:1、iptables 默认:ACCEPT 2、注意方向

[root@10 /]# iptables -nvL OUTPUT –line //查看out方向的规则

[root@10 /]# iptables -L OUTPUT

[root@10 /]# iptables -L INPUT INPUT 方向

[root@10 /]# iptables -L OUTPUT
[root@10 /]# iptables -L OUTPUT –line
[root@10 /]# iptables -D OUTPUT 1

[root@10 /]# iptables -A INPUT -s 192.168.10.20 -j DROP
[root@10 /]# iptables -vnL INPUT –line

[root@10 ~]# iptables -t filter -I OUTPUT -s 192.168.10.10 -j ACCEPT
[root@10 ~]# iptables -t filter -I OUTPUT -d 192.168.10.10 -j ACCEPT
//插入语句 -s原地址 -j 动作

//在out方向做 -s 192.168.10.112 to 192.168.10.10

赞(0)
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。