Script - Tentation! ( for experts )

Garrett Cooper youshi10 at u.washington.edu
Wed Aug 10 17:57:04 GMT 2005


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


More information about the freebsd-questions mailing list