LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

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

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


Hi,

I have two questions


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

acl <aclnamefordomain> src 192.168.0.0/255.255.255.0
acl yahoo dstdomain .yahoo.com
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

Regards,

Jomy
 
Old 12-15-2004, 06:27 AM   #2
maxut
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 www.iptables-script.dk generate a script to do that. btw add the following line end of that script:
iptables -A INPUT -i lo -j ACCEPT

good luck.
 
  


Reply


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


All times are GMT -5. The time now is 01:42 AM.

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