Re: my lame attempt at a shell script...
From: Paul Schmehl (pauls_at_utdallas.edu)
Date: 01/04/05
- Previous message: Jordan Michaels: "FreeBSD 4.10 and finding dependant packages"
- In reply to: Eric F Crist: "Re: my lame attempt at a shell script..."
- Next in thread: Eric F Crist: "Re: my lame attempt at a shell script..."
- Reply: Eric F Crist: "Re: my lame attempt at a shell script..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 03 Jan 2005 17:00:16 -0600 To: Eric F Crist <ecrist@secure-computing.net>
--On Monday, January 03, 2005 04:49:04 PM -0600 Eric F Crist
<ecrist@secure-computing.net> wrote:
>
> By on-the-fly, I meant by manually typing in a new rule on the command
> line. From there, I'd take the output of ipfw show and figure out where
> I want that rule placed. So, for the purposes of this script, I just
> want it to add new rules at an interval of 50. Within the script,
> different sets of rules will be grouped by the 10000, but I'll worry
> about that vailidation on my own. The syntax is where my limitations lie.
>
In that case write to a ruleset. Keep in mind that you want to not only
add the rule on the fly, but you also want it implemented should the server
be rebooted or the firewall be restarted. All you have to do is write the
rule to the next line of the ruleset and disable and enable the ruleset and
you're done. Much easier than trying to figure out what number to add and
you've killed both birds with the same stone.
Paul Schmehl (pauls@utdallas.edu)
Adjunct Information Security Officer
The University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
- Previous message: Jordan Michaels: "FreeBSD 4.10 and finding dependant packages"
- In reply to: Eric F Crist: "Re: my lame attempt at a shell script..."
- Next in thread: Eric F Crist: "Re: my lame attempt at a shell script..."
- Reply: Eric F Crist: "Re: my lame attempt at a shell script..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|