Find the answer to your Linux question:
Results 1 to 5 of 5
Hello! I am using Ubuntu 9.04 and working on installing squid for a web cache. At the end I am needing to modify iptables. So when I finished up and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2009
    Posts
    18

    Question iptables not being recognized


    Hello! I am using Ubuntu 9.04 and working on installing squid for a web cache. At the end I am needing to modify iptables. So when I finished up and typed the save command I got:

    Code:
    $ sudo service iptables save
    $iptables: unrecognized service
    so I tried to see if it was installed:
    Code:
    $ dpkg --list iptables
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
    ||/ Name           Version        Description
    +++-==============-==============-============================================
    ri  iptables       1.4.1.1-4ubunt administration tools for packet filtering an
    So is there a way to get the "r" to go back to installed? I tried running upgrade, install, and update but it is still there.

    Another bit of information for the status:
    Code:
    $ sudo 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
    Also it will not start:

    Code:
    $ sudo service iptable start
    $iptable: unrecognized service
    Thanks for any available input!

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    I don't know Ubuntu so I don't think I'll be able to help you much with the commands but iptables-save should save your rules.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    Just Joined!
    Join Date
    Aug 2009
    Posts
    18
    Yes I am trying to save the setting after I input some iptables commands. And I get the error as shown above saying the service is not recognized.

  4. #4
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    Do not think you understood me.

    Don't use service iptables save
    Use iptables-save

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  5. #5
    Just Joined!
    Join Date
    Aug 2009
    Posts
    18
    Quote Originally Posted by Lazydog View Post
    Do not think you understood me.

    Don't use service iptables save
    Use iptables-save
    That got it! I appreciate the help, sorry for the initial disconnect on your suggestion, I had been up and at it for way too long at that point.

    Thanks!!!

Posting Permissions

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