Script - Tentation! ( for experts )

2005-08-10 Thread Carstea Catalin
I want to make a script but i don't know how. Please help me! 
 1.I want one script that put MAC address automaticaly to my ruleset of ipfw 
and restart at the end of script ipfw - service .
2.In this script ipfw has rules to permit only some MAC addresses and deny 
others.
 *Ex: /etc/firewall.sh -add 00:23:f3:23:a0:e4 -name WS1*
 In this script ( /etc/firewall.sh ) are my rules to permit only MAC address 
of my LAN users specified with this inputs (*-add 00:23:f3:23:a0:e4 -name 
WS1)*
..
To make this script a must verify if exist -add and if exist i must verify 
if exist  02:23 (the MAC) and after if exist -name and ws#

.after i must add this MAC adress to ipfw command in the 
/etc/firewall.sh
..
 If exist one expert that can helpe me please give me the script! Tks!
 
Carstea Catalin
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Script - Tentation! ( for experts )

2005-08-10 Thread Garrett Cooper

Carstea Catalin wrote:

I want to make a script but i don't know how. Please help me! 
1.I want one script that put MAC address automaticaly to my ruleset of ipfw 
and restart at the end of script ipfw - service .
2.In this script ipfw has rules to permit only some MAC addresses and deny 
others.

*Ex: /etc/firewall.sh -add 00:23:f3:23:a0:e4 -name WS1*
In this script ( /etc/firewall.sh ) are my rules to permit only MAC address 
of my LAN users specified with this inputs (*-add 00:23:f3:23:a0:e4 -name 
WS1)*

..
To make this script a must verify if exist -add and if exist i must verify 
if exist  02:23 (the MAC) and after if exist -name and ws#


.after i must add this MAC adress to ipfw command in the 
/etc/firewall.sh

..
If exist one expert that can helpe me please give me the script! Tks!

Carstea Catalin
 

Based on all of your emails lately, it sounds like you need a consultant 
more than just answers to some questions :).

-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]