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 ...
- 12-01-2007 #1Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,532
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/iptablesis still there.Code:-rwxr-xr-x 1 root root 57336 2007-07-06 02:17 /sbin/iptables
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
- 12-01-2007 #2
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.
- 12-01-2007 #3Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,532


Reply With Quote

