Script - Tentation! ( for experts )
Carstea Catalin
carstea.catalin at gmail.com
Wed Aug 10 17:54:34 GMT 2005
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
More information about the freebsd-questions
mailing list