Coyote Linux & BrazilFW Addons
Coyote Linux & BrazilFW Addons
Search | Statistics | User listing Forums | Forum RSS feed
You are logged in as a guest. ( logon | register )

L7 update script
Moderators:

Jump to page : 1
Now viewing page 1 [25 messages per page]
   Coyote Linux & BrazilFW Packages-> QoS Layer7 filtering packageMessage format
 
Radiator
Posted 2005-12-28 2:16 PM (#15)
Subject: L7 update script
Hi.

It would be nice to see in next QOS-L7 Package version automatic l7 protocols update script,like this (old version):
--------------------------------------------------------------------------
cd /tmp
wget -q http://sourceforge.net/projects/l7-filter/index.html
lastupdate=$(cat index.html | grep -e "[>][0-9]\{4\}[-]" | cut -f3 -d">" | cut -f1 -d"<")
currentY=$(cat l7 | cut -f1 -d"-")
currentM=$(cat l7 | cut -f2 -d"-")
currentD=$(cat l7 | cut -f3 -d"-")
currentV="$currentD$currentM$currentY"
lastY=$(cat index.html | grep -e "[>][0-9]\{4\}[-]" | cut -f3 -d">" | cut -f1 -d"<" | cut -f1 -d"-")
lastM=$(cat index.html | grep -e "[>][0-9]\{4\}[-]" | cut -f3 -d">" | cut -f1 -d"<" | cut -f2 -d"-")
lastD=$(cat index.html | grep -e "[>][0-9]\{4\}[-]" | cut -f3 -d">" | cut -f1 -d"<" | cut -f3 -d"-")
lastV="$lastD$lastM$lastY"
if [ "$lastV" != "$currentV" ]
then
wget -q http://ovh.dl.sourceforge.net/sourceforge/l7-filter/l7-protocols-"$lastupdate".tar.gz
if [ -f l7-protocols-"$lastupdate".tar.gz ]
then
echo $lastupdate > l7
tar xz -f l7-protocols-"$lastupdate".tar.gz
rm -rf /etc/l7-protocols/
mv l7-protocols-"$lastupdate" /etc/l7-protocols
rm l7-protocols-"$lastupdate".tar.gz
echo "$(date) : Layer 7 protocols updated successefully"
fi
else
echo "$(date) : Layer 7 protocols are up-to-date"
fi
rm index.html
--------------------------------------------------------------------------

Thanx.
dolly
Posted 2005-12-29 9:34 PM (#16 - in reply to #15)
Subject: RE: L7 update script
Member

Posts: 13

Hi,

similar functionality will be included in next QoS-L7 filtering package version. It won't be completely automatic, but you will be able to update Layer7 protocol definition from sourceforge by clicking on a link in webadmin interface (it will check if you already have most current definitions like in your script).

I'm just testing and finalizing new version of QoS-L7 filtering package and it could be available for download today...
Jump to page : 1
Now viewing page 1 [25 messages per page]
Printer friendly version
E-mail a link to this thread
Jump to forum :


(Delete all cookies set by this site)
Running MegaBBS ASP Forum Software v2.0
© 2003 PD9 Software