LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux > 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
 
Thread Tools
Old 12-15-2004, 07:20 AM   #1
jomy
Member
 
Registered: Jul 2004
Location: UAE
Distribution: RedHat
Posts: 84
Thanked: 0
controlling access through squid( blocking all sites except for one)


[Log in to get rid of this advertisement]
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
jomy is offline     Reply With Quote
Old 12-15-2004, 07:27 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,173
Thanked: 0
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.
maxut is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 09:33 AM
iptables is blocking sites... The_wave Linux - Networking 9 09-09-2005 05:44 PM
Blocking some sites... gani *BSD 2 11-05-2004 10:07 PM
Blocking porn sites debug019 Linux - Newbie 4 09-07-2004 02:13 AM
Blocking web sites lovswr Linux - Software 6 11-03-2003 01:10 PM


All times are GMT -5. The time now is 03:09 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration