How can i use iptables on centos 7 or fedora?
2014-12-28 11:56
190 查看
http://stackoverflow.com/questions/24756240/how-can-i-use-iptables-on-centos-7 #sudoserviceiptablesstart Redirectingto/bin/systemctlstartiptables.service Failedtoissue
method
call:Unitiptables.servicefailedtoload:Nosuchfileordirectory.
WithRHEL7/CentOS7,
Itispossibletogobacktoamoreclassiciptablessetup.First,stopandmaskthefirewalldservice:
systemctlstopfirewalld
systemctlmaskfirewalld
Then,installtheiptables-servicespackage:
yuminstalliptables-services
Enabletheserviceatboot-time:
systemctlenableiptables
Managingtheservice
systemctl[stop|start|restart]iptables
Savingyourfirewallrulescanbedoneasfollows:
serviceiptablessave
or
/usr/libexec/iptables/iptables.initsave
相关文章推荐
- How can i use iptables on centos 7
- How can i use iptables save on centos 7?
- How can i use iptables on centos 7?
- How to install Firefox 17 on Linux Mint, Ubuntu, Debian, CentOS, Fedora ... or any other Linux dist
- How to set up a Subversion (SVN) server on CentOS or Fedora
- How to fix yum errors on CentOS, RHEL or Fedora
- How to disable PackageKit on CentOS, Fedora or RHEL
- How to fix yum errors on CentOS, RHEL or Fedora
- How to Setup NFS (Network File System) on RHEL/CentOS/Fedora and Debian/Ubuntu
- How to use MinGW Cross Compiler on Fedora
- How To Install Speedtest-cli On a CentOS / RHEL / Scientific / Fedora Linux To Check Internet Speed
- Howto Install PHP 5.4, 5.5 or 5.6 on CentOS 6 and CentOS 7
- How to install 64-bit Google Chrome 28+ on 64-bit RHEL/CentOS 6 or 7
- Install WordPress 3.6.1 Using LAMP or LEMP on RHEL, CentOS & Fedora
- Howto install VMware tools on Centos 6.3 or Redhat 6.3 RHEL
- (OK) rdesktop - How to Use Remote Desktop (rdesktop) in Redhat/Fedora/CentOS
- Install MongoDB on Red Hat Enterprise, CentOS, Fedora, or Amazon Linux
- 转: How to Install MongoDB 3.2 on CentOS/RHEL & Fedora (简单易懂)
- WordPress 3.9 Released – Install Using LAMP or LEMP on RHEL, CentOS & Fedora
- How to Install OSSEC on Red Hat or CentOS 6