Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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,798
    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
    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. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,798
    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

  6. #5
    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
  •