Re: Run during Boot Up...

From: Ruben (ruben_at_localhost.localdomain)
Date: 05/31/04


Date: Mon, 31 May 2004 15:18:50 GMT

On Sun, 23 May 2004 23:48:38 +0000, Ramen Junkie wrote:

> I'm trying to figure out how to make a command run during the boot sequence.
> I've set up Redhat 9 running Apache as a webserver. I had trouble getting
> it to work at first but later figured out I needed to flush the ip tables.
> Recently the machine was rebooted due to a power outage and when it came
> back up the server wasn't working properly and I had to run
> "/sbin/iptables -F" again. The problem is this PC doesn't have a monitor of
> Keyboard of it's own. I can't seem to SSH or Telnet into the machine either
> before "/sbin/iptables -F" so I was wondering how I could set things up to
> run this command automatically any time the machine is rebooted.

If you do not want to run a firewall in this system, you should turn it
off. That is what you are doing by flushing iptables. From the command
line as root run "setup" and select services. De-select iptables and/or
ipchains. Next time system reboots, these services should not come on and
your problem will be solved.

Like other posters have said, maybe you want to learn on setting the
proper rules to allow the right port requests to come thru. By doing a
flush of iptables, you are leaving the system wide open to any requests
coming in and unless your system is behind a firewall to protect it, then
you are making the same mistake microsoft does with windows.

Ruben



Relevant Pages

  • Re: Feedback solicited - best way to harden a mail/web server?
    ... Was the system protected by a properly configured firewall? ... it's not a bad "starting point" and it can generate an IPtables rule ... > nor is there a web or ftp server; aside from that I haven't tried to secure ... Before I'll install some nifty application ...
    (comp.os.linux.security)
  • Re: EMERGENCY - need to secure my server against an ongoing SPAMMER
    ... computer with a broadband connection. ... that IP range will prevent that spammer from wasting your systems ... This approach eventually makes your firewall machine so busy it has ... A better approach is to use IPTables to deny ALL inbound attempts to ...
    (Fedora)
  • linux - iptable firewall DNS question
    ... When my firewall is active, i am unable to use name solving features from my ... iptables -P INPUT ACCEPT ... # $ipnet -> adresse ip de l'interface connectée à internet ... echo ACCES AU FIREWALL DEPUIS LOCAL ...
    (comp.security.firewalls)
  • Re: firestarter start failure?
    ... It writes to iptables firewall rules, and then is done, ... unless gui is open. ... Do I have to start Firestarter after I have rebooted? ... When Firestarter is installed from a package, the firewall ...
    (Ubuntu)
  • Clearing up some security "jargon"
    ... The kernel supplies the iptables service, which is by default, ... There is no need to "turn on" a firewall. ... Consider the package "ufw", a tool that some people say can ... Consider Firestarter. ...
    (Ubuntu)