Redhat_7.6_RHCE-IPTABLES

iptables****ide

注意:一、iptables 默認:ACCEPT 二、注意方向blog

[root@10 /]# iptables -nvL OUTPUT --line //查看out方向的規則
Redhat_7.6_RHCE-IPTABLES
[root@10 /]# iptables -L OUTPUT
Redhat_7.6_RHCE-IPTABLESip

[root@10 /]# iptables -L INPUT INPUT 方向
Redhat_7.6_RHCE-IPTABLESit

[root@10 /]# iptables -L OUTPUT
[root@10 /]# iptables -L OUTPUT --line
[root@10 /]# iptables -D OUTPUT 1
Redhat_7.6_RHCE-IPTABLEStable

[root@10 /]# iptables -A INPUT -s 192.168.10.20 -j DROP
[root@10 /]# iptables -vnL INPUT --line
Redhat_7.6_RHCE-IPTABLESclass

Redhat_7.6_RHCE-IPTABLES

[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 動做
Redhat_7.6_RHCE-IPTABLESiptables

//在out方向作 -s 192.168.10.112 to 192.168.10.10im

Redhat_7.6_RHCE-IPTABLES

相關文章
相關標籤/搜索
本站公眾號
   歡迎關注本站公眾號,獲取更多信息