Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Aug 2005 10:54:33 -0700
From:      Carstea Catalin <carstea.catalin@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Script - Tentation! ( for experts )
Message-ID:  <dc6701ba05081010545ba15247@mail.gmail.com>

next in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?dc6701ba05081010545ba15247>