Atlantic.Net Blog

How to use IPTables Instead of firewalld for Fedora 21-23

Michael Douse
by Atlantic.Net (9posts) under VPS Hosting
Verified and Tested 11/25/15


As of Fedora 18, the iptables service has been replaced by firewalld. For those that prefer managing static firewall rules with iptables, follow these steps to revert back to iptables.


You will need to have a Fedora 21, 22, or 23 virtual private server provisioned and root permissions.

Using IPTables instead of firewalld

Disable firewalld and stop the service with the following commands:

systemctl disable firewalld
systemctl stop firewalld

Now install the iptables-services package:

dnf install iptables-services -y

Enable iptables and start the service:

touch /etc/sysconfig/iptables
systemctl start iptables
systemctl enable iptables

Check to make sure iptables is now running:

systemctl status iptables

Your output should look like this:

anet - Use iptables instead of firewalld - 1

anet – Use iptables instead of firewalld – 1

You’re finished! Now start adding your rules to the /etc/sysconfig/iptables file.

Thank you for reading! Check out some of the related articles here or below and thanks for trying our reliable VPS hosting solutions at Atlantic.Net.

Get A Free To Use Cloud VPS

Free Tier Includes:
G2.1GB Cloud VPS Free to Use for One Year
50 GB of Block Storage Free to Use for One Year
50 GB of Snapshots Free to Use for One Year

Looking for a Hosting Solution?

We Provide Cloud, Dedicated, & Colocation.

  • Seven Global Data Center Locations.
  • Flexible Private, Public, & Hybrid Hosting.
  • 24x7x365 Security, Support, & Monitoring.
Contact Us Now! Med Tech Award FTC
SOC Audit HIPAA Audit HITECH Audit

Recent Posts

Get started with 12 months of free cloud VPS hosting

Free Tier includes:
G2.1GB Cloud VPS Server Free to Use for One Year
50 GB of Block Storage Free to Use for One Year
50 GB of Snapshots Free to Use for One Year

New York, NY

100 Delawanna Ave, Suite 1

Clifton, NJ 07014

United States

San Francisco, CA

2820 Northwestern Pkwy,

Santa Clara, CA 95051

United States

Dallas, TX

2323 Bryan Street,

Dallas, Texas 75201

United States

Ashburn, VA

1807 Michael Faraday Ct,

Reston, VA 20190

United States

Orlando, FL

440 W Kennedy Blvd, Suite 3

Orlando, FL 32810

United States

Toronto, Canada

20 Pullman Ct, Scarborough,

Ontario M1X 1E4


London, UK

14 Liverpool Road, Slough,

Berkshire SL1 4QZ

United Kingdom