Redhat_7.6_RHCE-IPTABLES

iptables****

我们提供的服务有:网站制作、成都网站制作、微信公众号开发、网站优化、网站认证、西湖ssl等。为上千余家企事业单位解决了网站和推广的问题。提供周到的售前咨询和贴心的售后服务,是有科学管理、有技术的西湖网站制作公司

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

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

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

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

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

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-IPTABLES

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

Redhat_7.6_RHCE-IPTABLES


标题名称:Redhat_7.6_RHCE-IPTABLES
本文网址:http://csdahua.cn/article/gdsgse.html
扫二维码与项目经理沟通

我们在微信上24小时期待你的声音

解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流