LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 05-17-2008, 07:31 AM   #1
Ammad
Member
 
Registered: Apr 2004
Distribution: redhat 9.0, fc4, redhat as 4
Posts: 522

Rep: Reputation: 31
squid problem in fc8


Hi

I am using squid 2.6 stable 18 on Fc8. there is problem in this my acl are ,

acl mynet src 192.168.1.0/24

acl msnads dstdom_regex -i .icq.com
acl msnads dstdom_regex -i .telepk.com
acl msnads dstdom_regex -i .stealthsettings.com
acl msnads dstdom_regex -i .studentscafe.com
acl msnads dstdom_regex -i .stealthsettings.com
acl msnads dstdom_regex -i .neomessenger.com


http_access deny msnads
http_access allow mynet


it works fine if a user browse using "http://www.icq.com" he get deny page of squid. if he types "http://icq.com" he is able to browse this.
whereas it shouldn't be.

there is alternate url_regex but there are some address that contain a word e.g whoicqme so it also block required or business websites.

Any idea for this .

thanks
 
Old 05-17-2008, 07:57 AM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
When using a regex, I just put in the main part and leave out the .net, .com or whatever. You can also combine them into one acl...
Code:
acl msnads dstdom_regex -i icq telepk stealthsettings studentscafe stealthsettings neomessenger
Two things I do to make squid life easier.

1. I trim down the squid.conf with a backup so it's readable.
sed -i.bak '/^$/d; /^#/d' /etc/squid/squid.conf

2. I use webmin to tweak the squid settings whenever possible.
 
Old 05-17-2008, 11:07 AM   #3
espiya7
Member
 
Registered: Jul 2007
Posts: 33

Rep: Reputation: 15
because you're using "acl msnads dstdom_regex -i .icq.com" notice you used .icq.com that's why you were able to pass using http://icq.com and denied when using http://www.icq.com.

It would be better if you'd place all these urls to a file and use acl url_regex
 
  


Reply



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
LDAP authentication for squid squid 2.6.STABLE16 release 2.fc8 farrukhndm Linux - Security 2 04-03-2008 01:57 AM
Disable selinux at install problem FC8 Ezplan Fedora - Installation 4 03-13-2008 07:07 PM
FC4 to FC8 Installation by CD Problem h_tere2000 Linux - Software 7 12-28-2007 11:01 PM
Problem installing FC8 on my scsi DinoFly Linux - Newbie 1 11-22-2007 01:15 AM
FC8 wireless problem using bcm43xx_fwcutter nga_tom Linux - Wireless Networking 1 11-20-2007 10:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration