How to Start/Stop and Enable/Disable FirewallD and Iptables Firewall in Linux

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Use our Linode referral link if you plan to buy VPS (it starts at only $10/month).
  4. Support us via PayPal donate - Make a Donation
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Gunjit Khera

Currently a Computer Science student and a geek when it comes to Operating System and its concepts. Have 1+ years of experience in Linux and currently doing a research on its internals along with developing applications for Linux on python and C.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

5 Responses

  1. Ryan C says:

    Hi, the first 2 commands are incorrect.

    # systemctl firewalld start >> should be >> # systemctl start firewalld
    # systemctl firewalld stop >> should be >> # systemctl stop firewalld

  2. kevin says:

    Hello, great post.
    Im starting to set some rules in my laptop, just a question, I have 2 NIC; eth0 and eth1. Both have internet connection, so i cant deny internet package from eth1? Thanks

    • Ravi Saive says:

      @Kevin,

      Yes, you can deny Internet traffic on particular NIC, in your case it is eth1 and the rule for iptables is:

      # iptables -I INPUT -i eth1 -j DROP
      

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

Join Over 300K+ Linux Users
  1. 177,942
  2. 8,310
  3. 37,548

Are you subscribed?