All of lore.kernel.org
 help / color / mirror / Atom feed
* How do I envoke the firewall script?
@ 2004-12-02 16:47 Glen Spidal
  2004-12-03 15:27 ` How do I envoke the firewall script? (nfcan: addressed to exclusive sender for this address) Jim Laurino
  2004-12-04 11:56 ` How do I envoke the firewall script? John A. Sullivan III
  0 siblings, 2 replies; 4+ messages in thread
From: Glen Spidal @ 2004-12-02 16:47 UTC (permalink / raw)
  To: netfilter

Greetings,

I've edited the script from Oskar Andreasson's tutorial for a DMZ firewall (rc.DMZ.firewall), but since I'm kind of a newbie I don't know how to automaticvally run it at startup.  I have a fresh minimal install of Redhat 9.  I selected medium firewall with this install.  How do I undo that and run only the DMZ firewall script?  I manually ran the DMZ script without errors.  Also how do the stress test the firewall to make sure it is working?  I will have a mailserver, two BIND DNS servers, plus multiple websites on the DMZ subnet.

Glen Spidal
Cybercorp Computers
PH:503-681-9786 -x- FX:503-615-2936 -x- www.cybercorpinc.com 




________________________________________________________________
Sent via the WebMail system at mail.cybercorpinc.com


 
                   


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How do I envoke the firewall script? (nfcan: addressed to exclusive sender for this address)
  2004-12-02 16:47 How do I envoke the firewall script? Glen Spidal
@ 2004-12-03 15:27 ` Jim Laurino
  2004-12-04  8:12   ` Askar
  2004-12-04 11:56 ` How do I envoke the firewall script? John A. Sullivan III
  1 sibling, 1 reply; 4+ messages in thread
From: Jim Laurino @ 2004-12-03 15:27 UTC (permalink / raw)
  To: netfilter

On 2004.12.02 11:47, Glen Spidal - glens@mail.cybercorpinc.com wrote:
> Greetings,
> 
> I've edited the script from Oskar Andreasson's tutorial for a DMZ firewall
> (rc.DMZ.firewall), but since I'm kind of a newbie I don't know how to
> automaticvally run it at startup.  I have a fresh minimal install of Redhat
> 9.  I selected medium firewall with this install.  How do I undo that and  
> run only the DMZ firewall script?
> I manually ran the DMZ script without errors.

I have a Redhat system.
After I change a script, check it into cvs, and test it
I use on the Redhat "service" script
to store the changes for the next boot:

  sudo service iptables save

This script should produce an [OK] response.

The Redhat system will reload from this save at the next boot.

I put the related /proc/sys/net... switch settings in rc.local

I hope that helps.

Jim


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How do I envoke the firewall script? (nfcan: addressed to exclusive sender for this address)
  2004-12-03 15:27 ` How do I envoke the firewall script? (nfcan: addressed to exclusive sender for this address) Jim Laurino
@ 2004-12-04  8:12   ` Askar
  0 siblings, 0 replies; 4+ messages in thread
From: Askar @ 2004-12-04  8:12 UTC (permalink / raw)
  To: nfcan.x.jimlaur; +Cc: netfilter

or call your fw script from rc.local , it will run on each boot

hope this will also helps

regards

On Fri, 3 Dec 2004 10:27:01 -0500, Jim Laurino <nfcan.x.jimlaur@dfgh.net> wrote:
> On 2004.12.02 11:47, Glen Spidal - glens@mail.cybercorpinc.com wrote:
> > Greetings,
> >
> > I've edited the script from Oskar Andreasson's tutorial for a DMZ firewall
> > (rc.DMZ.firewall), but since I'm kind of a newbie I don't know how to
> > automaticvally run it at startup.  I have a fresh minimal install of Redhat
> > 9.  I selected medium firewall with this install.  How do I undo that and
> > run only the DMZ firewall script?
> > I manually ran the DMZ script without errors.
> 
> I have a Redhat system.
> After I change a script, check it into cvs, and test it
> I use on the Redhat "service" script
> to store the changes for the next boot:
> 
>   sudo service iptables save
> 
> This script should produce an [OK] response.
> 
> The Redhat system will reload from this save at the next boot.
> 
> I put the related /proc/sys/net... switch settings in rc.local
> 
> I hope that helps.
> 
> Jim
> 
> 


-- 
(after bouncing head on desk for days trying to get mine working, I'll make
your life a little easier)


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How do I envoke the firewall script?
  2004-12-02 16:47 How do I envoke the firewall script? Glen Spidal
  2004-12-03 15:27 ` How do I envoke the firewall script? (nfcan: addressed to exclusive sender for this address) Jim Laurino
@ 2004-12-04 11:56 ` John A. Sullivan III
  1 sibling, 0 replies; 4+ messages in thread
From: John A. Sullivan III @ 2004-12-04 11:56 UTC (permalink / raw)
  To: glens; +Cc: Netfilter users list

On Thu, 2004-12-02 at 11:47, Glen Spidal wrote:
> Greetings,
> 
> I've edited the script from Oskar Andreasson's tutorial for a DMZ
> firewall (rc.DMZ.firewall), but since I'm kind of a newbie I don't
> know how to automaticvally run it at startup.  I have a fresh minimal
> install of Redhat 9.  I selected medium firewall with this install. 
> How do I undo that and run only the DMZ firewall script?  I manually
> ran the DMZ script without errors.  Also how do the stress test the
> firewall to make sure it is working?  I will have a mailserver, two
> BIND DNS servers, plus multiple websites on the DMZ subnet.
> 
> <snip>
Welcome to the adventurous world of iptables!

I believe what happens in Redhat 9 is that the boot sequence runs
through the S prefixed files of the /etc/rc.d/rcX.d directory (where X
is whatever run level you are entering) in numeric order.  One of those
is SXXiptables where XX is the sequencing number.

This file reads its configuration in the iptables-restore format from
/etc/sysconfig/iptables file.  You can overwrite this file directly
although I do not believe the iptables-restore syntax is clearly
documented (perhaps someone else can point to that documentation) or you
can add and delete rules from the command line with the iptables command
until your set up is as you'd like it and then do a 
service iptables save
which overwrite the /etc/sysconfig/iptables file with the current
configuration.

The /proc/sys settings like rp_filter or ip_forward are loaded when
/etc/rc.d/rcX.d/SXXnetwork is run.  The configuration is called from
/etc/sysctl.conf.  You can edit that file to configure the /proc
settings as you'd like.

You can load your script from rc.local but it will then be added to
whatever Redhat is doing when it loads iptables.  That may lead to
unexpected results.

I do not recall because it has been a long time since I wrote them but
some of this material may be in the training section of the ISCS web
page (http://iscs.sourceforge.net).

You can use Nessus (http://www.nessus.org) to give your firewall a good
workout.  Good luck - John
>            
-- 
John A. Sullivan III
Open Source Development Corporation
Financially sustainable open source development
http://www.opensourcedevel.com



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-12-04 11:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-02 16:47 How do I envoke the firewall script? Glen Spidal
2004-12-03 15:27 ` How do I envoke the firewall script? (nfcan: addressed to exclusive sender for this address) Jim Laurino
2004-12-04  8:12   ` Askar
2004-12-04 11:56 ` How do I envoke the firewall script? John A. Sullivan III

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.