Find the answer to your Linux question:
Results 1 to 7 of 7
Hi everyone I'm new with linux, I just want to know how to check if iptables is currently active, and how to disable it ?? I'm using SUSE 10. Thanks ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2009
    Posts
    16

    Unhappy newbie question about iptables


    Hi everyone

    I'm new with linux, I just want to know how to check if iptables is currently active, and how to disable it ?? I'm using SUSE 10.

    Thanks for your time

  2. #2
    Linux Newbie
    Join Date
    Apr 2007
    Posts
    119
    You can use Yast to turn on and off the firewall

  3. #3
    Just Joined!
    Join Date
    Jan 2009
    Posts
    16
    From YaST:

    ===========================================
    ┌Switch On and Off───────────────────────
    │Current Status: Firewall is not running
    ===========================================

    Does it mean that iptables is disabled?

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Newbie
    Join Date
    Apr 2007
    Posts
    119
    in short yes. The yast interface is actually to susefirewall2 which uses iptabes to set the rules.


    You can also run iptables -L from the command line ( as root or sudo) to see if iptables is running alone, but it shouldn't be.

  6. #5
    Just Joined!
    Join Date
    Jan 2009
    Posts
    16
    Hi!

    executed iptables -L, and got this output:

    ======================================
    reilbq01:~ # iptables -L
    Chain INPUT (policy ACCEPT)
    target prot opt source destination

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination

    ======================================

    I'm assuming that because there's no entry for each "chain", iptables is off right?

  7. #6
    Linux Newbie
    Join Date
    Apr 2007
    Posts
    119
    Well, the output of rules implies that iptables is running, but from the rules printed, everything is set to ACCEPT, so it will not block anything.

    Is your goal to not have the service even loaded, or just to not have anything blocked?

  8. #7
    Just Joined!
    Join Date
    Jan 2009
    Posts
    16
    Yes, I just wanted to make sure that iptables wasn't blocking anything because of some tests I'm doing with an app.

    Thanks again, you made my day

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •