iptables的安装和使用
文章目录
前言
提示:需要自行安装iptbales
使用iptbales防火墙
一、安装iptables
1.yum源安装
[root@localhost sysconfig]# yum install iptables-services -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package iptables-services.x86_64 0:1.4.21-35.el7 will be installed
--> Processing Dependency: iptables = 1.4.21-35.el7 for package: iptables-services-1.4.21-35.el7.x86_64
--> Running transaction check
---> Package iptables.x86_64 0:1.4.21-35.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==========================================================================================================================
Package Arch Version Repository Size
==========================================================================================================================
Installing:
iptables-services x86_64 1.4.21-35.el7 base 52 k
Installing for dependencies:
iptables x86_64 1.4.21-35.el7 base