Find the answer to your Linux question:
Results 1 to 3 of 3
Hi folks, Ubuntu 7.04 server amd64 Just found iptables NOT running which, I suppose, was caused by accidentally deleting /home/satimis previously. $ sudo /etc/rc.local start/stop/restart No response (w/o printout) Neither ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,778

    How to restore iptables starting script


    Hi folks,


    Ubuntu 7.04 server amd64


    Just found iptables NOT running which, I suppose, was caused by accidentally deleting /home/satimis previously.


    $ sudo /etc/rc.local start/stop/restart
    No response (w/o printout)


    Neither I find;
    $ sudo ls /etc/init.d/ | grep iptables
    No printout


    The file /etc/rc.local is still there with rules intact.


    $ ls -l /sbin/iptables
    Code:
    -rwxr-xr-x 1 root root 57336 2007-07-06 02:17 /sbin/iptables
    is still there.


    Please advise where can I get the starting script "iptables" back?

    Which is the correct step starting iptables;
    $ sudo /etc/rc.local
    ???

    OR
    $ sudo /etc/init.d/iptables
    ???


    Please advise. TIA


    B.R.
    satimis

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    I guess it would depend on what distro you are using.

    RH/FC/CentOS it would be /etc/rc.d/init.d/iptables
    The rules are stored in /etc/sysconfig/iptables and are read when the script is started.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,778
    Quote Originally Posted by Lazydog View Post
    I guess it would depend on what distro you are using.

    RH/FC/CentOS it would be /etc/rc.d/init.d/iptables
    The rules are stored in /etc/sysconfig/iptables and are read when the script is started.
    Oh sorry. I forgot to mention the OS is Ubuntu 7.04 server amd64


    satimis

Posting Permissions

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