blocking sites(URLs) by squid proxy server (Linux)(with webmin)

5 pts.
Tags:
Linux
Proxy servers
Squid
Squid configuration
How to block some IP addresses of users so that they cann't access some defined sites by use of Webmin in Squid Server(access contol) ? Please help....?  

Software/Hardware used:
squid Proxy server(Linux)
ASKED: September 19, 2009  8:09 AM
UPDATED: September 15, 2011  6:58 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

You can use a module called ‘Dansguardian’ which can be configured and controlled via webmin using the associated plugin. Dansguarian will allow you to block access to specific websites only, or block specific LAN IP’s from accessing the Internet. It works quite well.

You’ll need to configure Dansguardian as your ‘proxy’ e.g port 8080, which firstly filters all network requests according to your policy, and then forwards valid requests to squid which runs on a different port e.g 8081.

Hope that helps.

Chris Partsenidis.
www.Firewall.cx

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Frazerbangladesh
    I got few information from ::: http://www.linux1stop.com/block-websites-squid.html but failure to perform : following bellow-
      * Create a new file called "blocked" and save it under /etc * List all the websites you need to block in the newly created file i.e. facebook.com etc. * Save the file and exit * Log into webmin, navigate to Servers -> Squid Proxy Server -> Access Control * Create a new ACL and choose type URL Regexp * In the name section, enter Blocked * In Store ACL values in file section, choose Seperate File and enter /etc/blocked * Click SAVE * Go to Proxy Restrictions -> Add new restriction * Click Deny and select Blocked from the list * Click Save and make sure your Deny Blocked is listed 1st * Restart Squid
    10 pointsBadges:
    report
  • squid3
    already I blocked some sites like youtube,facebook using suid. Now i want to give special permission to view these sites for certain users.How to do this? please reply
    10 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following