Sponsored Content
Special Forums Cybersecurity Dynamic filtering with dansguardian Post 302139790 by sysgate on Tuesday 9th of October 2007 07:59:56 AM
Old 10-09-2007
Personally I haven't had the chance to work with this application, but restarting the application is common approach, for example to re-read the config file, or any other file that's being parsed. So, your concern is whether this is normal or not. Well, if this is the only chance to update the exceptionsitelist, I don't think you should worry, unless restart takes too much time. BTW, what kind of application is that, I mean, can you restart it just like "/etc/init.d/dansguardian restart" or it's more complicated ?
I spent some time at the dansguardian's site, have you looked at the source code or at the Extras page ? Is there something that would satisfy your needs ?
I understand that I'm not helping much with this post, just trying to point the thoughts in the right direction, hopefully Smilie
Given this flow, it just came on my mind how I apply new rules at /etc/sysctl.conf file - "sysctl -p", so you probably need something like this.
 

10 More Discussions You Might Find Interesting

1. OS X (Apple)

dansguardian

I've just Dl'd and installed the osxgnu package of danguardian and squid on my 10.2 machine, which is mainly used as a router/firewall (set up with brickhouse) And now I'm not quite sure what to do next...I have a speedtouch 330 USB ADSL modem and I share the connection via built in ethernet. ... (1 Reply)
Discussion started by: mistafeesh
1 Replies

2. Programming

Web server for dansguardian

Hi, I am currently doing a project to remove the dependency on a web server of dansguardian if anyone has any tips or points either on sections of code I need to modify or about how to build a very very simple web server. I would be very appreciative Thanks.. (4 Replies)
Discussion started by: cb.mark
4 Replies

3. UNIX for Advanced & Expert Users

Sql dynamic table / dynamic inserts

I have a file that reads File (X.txt) Contents of record 1: rdrDESTINATION_ADDRESS (String) "91 971502573813" rdrDESTINATION_IMSI (String) "000000000000000" rdrORIGINATING_ADDRESS (String) "d0 movies" rdrORIGINATING_IMSI (String) "000000000000000" rdrTRAFFIC_EVENT_TIME... (0 Replies)
Discussion started by: magedfawzy
0 Replies

4. Red Hat

Dansguardian Access rights

well hi to all The thing is I need to allow particular site to just one or 2 user not to everybody. Can anybody tell me how do i do it. If i put there ip in exception then whole Restriction would be bypassed which i dont want. Your Responses would be highly appreciated THANKS in ADVANCE (0 Replies)
Discussion started by: achtani_jeetu
0 Replies

5. UNIX for Dummies Questions & Answers

Filtering some columns

Hi, I would like to get some specific coloumns from from line. My line looks CcnCDRFile0-8380123164201007114335_2010-07-20_11:51:02:,,9963387265,,,,,00720105720,,-0.010,+101.785,+101.795,,,,1492,,,,0,... (3 Replies)
Discussion started by: kkarthik_kaja
3 Replies

6. Shell Programming and Scripting

Please help me to do some filtering

I have to grep a pattern. scenario is like :- Suppose "/etc/sec/one" is a string, i need to check if this string contains "one" using any utility something like if /etc/sec/one | grep ; then Thanks in advance Renjesh Raju (3 Replies)
Discussion started by: Renjesh
3 Replies

7. AIX

Need help with filtering

Hi!! I have a bit of a task here and filtering/scripting not my strongest. I have to collect info of approx 1100 hdiskpower.so i have appended all the hdisk into a text file and i need it to run the command lscfg -vl to confirm if the drive is symmetrix. here's what i have so far at... (3 Replies)
Discussion started by: vpundit
3 Replies

8. Shell Programming and Scripting

Filtering

Hi I am interested in DNS resolving a set of sites and each time the output is different- $ host www.yahoo.com www.yahoo.com is an alias for fd-fp3.wg1.b.yahoo.com. fd-fp3.wg1.b.yahoo.com is an alias for ds-fp3.wg1.b.yahoo.com. ds-fp3.wg1.b.yahoo.com is an alias for... (1 Reply)
Discussion started by: jamie_123
1 Replies

9. Shell Programming and Scripting

Need help on filtering

Hi experts, I have a file image.csv as below: COMPUTERNAME,23/07/2013,22/07/2013,21/07/2013,20/07/2013,19/07/2013,18/07/2013,17/07/2013 AED03852180,3,3,3,3,3,3,3 AED03852181,3,3,3,3,3,3,1 AED09020382,3,0,3,0,3,3,3 AED09020383,1,3,3,3,2,1,3 AED09020386,3,3,0,3,3,0,3 ... (4 Replies)
Discussion started by: zaq1xsw2
4 Replies

10. BSD

Can't install Dansguardian in 9.2-RELEASE-p2

Hi Guys, I'm a FreeBSD newbie with some basic Linux experience. I have installed FreeBSD 9.2 with Squid and IPFW but am struggling to get dansguardian working. I have also installed apache24 which I believe is a pr-requisite dependency and that seems to be running happily enough I have... (0 Replies)
Discussion started by: andyh2451
0 Replies
dansguardian(3pm)					User Contributed Perl Documentation					 dansguardian(3pm)

NAME
Dansguardian - Simple module for administer dansguardian's control files. SYNOPSIS
use Dansguardian; # Make the objet $dg using the contructor new() my $dg = Dansguardian->new(dir => '/etc/dansguardian', group_dir => '/etc/dansguardian/lists'); # Save IP's banned in array my @banned_ips = $dg->get('bannediplist'); print "The IP address $_ is banned!! " foreach @banned_ips; # Add exception web site my $site = 'mogaal.com'; $dg->set(file => 'exceptionsitelist', add => $site, comment => "Is not porn site"); # Remove banned IP my $ip_free = '192.168.0.2'; $dg->remove(file => 'bannediplist', line => $ip_free); # list sites banned my @sites_banned = $dg->get('bannedsitelist'); print "The site $_ is banned!! " foreach @sites_banned; # list dansguardian's config directory and the current group directory print "Dansguardian's config directory is " . $dg->group() . " and " . $dg->dir() . " is the current group directory "; # Change group directory; $dg->group("/etc/dansguardian/chiefs"); print "Dansguardian's config directory is " . $dg->dir() . " and " . $dg->group() . " is the current group directory "; DESCRIPTION
"DansGuardian is an award winning Open Source web content filter which currently runs on Linux, FreeBSD, OpenBSD, NetBSD, Mac OS X, HP-UX, and Solaris. It filters the actual content of pages based on many methods including phrase matching, PICS filtering and URL filtering. It does not purely filter based on a banned list of sites like lesser totally commercial filters." Dansguardian Perl module is small module for administer dansguardian's content control files. It let you add, remove and get information from files control across methods. METHODS
Dansguardian perl module provides some basic methods for administer control files, with it you can add, remove and get information about IP's blocked, sites denies, IP exception and other information. new (constructor) $dg = Dansguardian->new([%attributes]) The constructor will create an object. It accepts a list of key => value pairs: dir => 'dansguardian/config/directory' If you don't set up a config directory for dansguardian the module will set up default value: /etc/dansguardian group_dir => 'path/to/group_dir/directory' Same that dir hash, and the default value is: /etc/dansguardian/lists $dg->group([$group_dir]); If group method don't have attribute: the function return array with dansguardian current group directory. Is possible change the group directory setting up $group_dir variable. $dg->dir([$config_dir]); If dir method don't have attribute: the function return array with dansguardian current config directory. Is possible change the group directory setting up $group_dir variable. $dg->set(%attributes); set method must have hash attributes. So, it accepts a list of key => value pairs: file => 'FILE' The FILE value is the file (locate inside current group dir) where you wish add information. For example: If you want add site to exception. $dg->set(file => 'exceptionsitelist', add => $site, comment => "Is not porn site"); This line will add $site to /etc/dansguardian/lists/exceptioniplist assuming that /etc/dansguardian/lists is current group directory add => 'INFORMATION' The 'add' value is the information to add in dansguardian control file. For example: If you need add one IP for bannediplist control file, then assign 'IP' value for add hash key. comment => 'OPTIONAL COMMENT' This key is optional but very usefull for reading control files. It add comment at final line, after the 'add' value. $dg->remove($file) remove method must have one hash attribute with keys: file => 'FILE' The FILE value is the file (locate inside current group dir) where you wish remove information. line => 'LINE/IP/SITE/whatever' The value of hash key line is the information for remove in dansguardian control file. For example: For remove IP address from bannediplist control file you must add 'IP' like value of line hash key. Example $dg->remove(file => 'bannediplist', line => '192.168.24.76'); $dg->get($file) Get method return an array data with information inside content control file. The incoming parameter is the control file name. Example: @ips_banned = $dg->get('bannediplist') print "The IP address $_ is banned!! " foreach @banned_ips; BUGS
The package don't have been bugs reported. If you find one notice me. AUTHOR
Alejandro Garrido Mota <garridomota@gmail.com>. COPYRIGHT AND LICENSE
Copyright (c) 2007 Alejandro Garrido Mota. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module. LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module. perl v5.10.0 2009-05-10 dansguardian(3pm)
All times are GMT -4. The time now is 10:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy