Twitter
RSS
Showing posts with label sex sites blocking. Show all posts
Showing posts with label sex sites blocking. Show all posts

Filtering URL's of sex through Dansguardian with Transparent Squid Proxy

0

After running successfully Transparent proxy of Squid in Intranet or LAN, How to block Illegal sites through Dansguardian:

1) Need to check Transparent squid proxy running in LAN if running well go through below procedure:

2)Get Dansguadian file from http://rpmfind.net and search Dansguardian, get "dansguardian-2.8.0.6-1.2.el4.rpm" save to /opt.

3) Go to CD /opt : install Dansguardian software

"rpm -ivh dansguardian-2.8.0.6-1.2.el4.rpm"
after success install of Dansguardian file......

4) Copy the file "Dansguardian.pl" from /var/www/dansguardian to /var/www/cgi-bin

5)Edit below file:

Vi /etc/dansguardian/dansguardian.conf
============================================

Filter port = 8080
Proxy ip = 192.168.0.1 (eth1 IP)
Proxy port = 3128
============================================

6)Edit another file like below:

Vi /etc/httpd/conf.d/dansguardian.conf

==================================================
Script Alias /dansguardian/ /var/www/danguardian/

DirectoryIndex dansguardian.pl
Options ExecCGI
Order allow, deny
Allow from all

Allow from 127.0.0.1

=================================================

7) In browser of LAN or INTRANET put proxy IP AND PORT :

Proxy IP: 192.168.0.1 Port: 8080

8) All Illegal url blocked, can't access withthis proxy.

9) Need to enable Dansguarian from Boot: "ntsysv" and check Dansguardian, OK.

10) service dansguardian start

11) service network restart

12) service iptables restart

Credits: nsharif.blogspot.com