Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-15-2004, 06:20 AM   #1
Registered: Jul 2004
Location: UAE
Distribution: RedHat
Posts: 93

Rep: Reputation: 15
controlling access through squid( blocking all sites except for one)


I have two questions

1. I've a squid proxy server running. What I want is to block all sites except for one say I tried this method.

acl <aclnamefordomain> src
acl yahoo dstdomain
http_access allow <aclnamefordomain> yahoo

This setting allowed me to browse only yahoo site and nothing else. But the problem is I'm only able to see the home page of yahoo. When I give the username & pasword , then the follwing screens are not clear or shows errors. How can this be solved.

2. My system which accesses internet through the proxy server is not able to send or receive mails through outlook express. Outlook express shares the internet settings from internet explorer. Is there any other settings to be changed.

Thanking you in advance


Old 12-15-2004, 06:27 AM   #2
Senior Member
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
1- i think u need to add some other sites to browse yahoo completely.
check squid access.log for details.
2- u cannot do that with squid. u need to do NAT. visit generate a script to do that. btw add the following line end of that script:
iptables -A INPUT -i lo -j ACCEPT

good luck.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SQUID for blocking yahoo and msn [inc squid.conf] chrisfirestar Linux - Security 10 03-03-2008 08:33 AM
iptables is blocking sites... The_wave Linux - Networking 9 09-09-2005 04:44 PM
Blocking some sites... gani *BSD 2 11-05-2004 09:07 PM
Blocking porn sites debug019 Linux - Newbie 4 09-07-2004 01:13 AM
Blocking web sites lovswr Linux - Software 6 11-03-2003 12:10 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:36 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration