首页 > 其他 > 详细

Redhat_7.6_RHCE-IPTABLES

时间:2020-01-15 10:15:25      阅读:128      评论:0      收藏:0      [点我收藏+]
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

技术分享图片

Redhat_7.6_RHCE-IPTABLES

原文:https://blog.51cto.com/9616635/2466829

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!