November 25, 2024, 09:53:33 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Squid, Limited Service  (Read 6398 times)

Offline wmac

  • New Member
  • Posts: 3
Squid, Limited Service
« on: November 04, 2006, 10:06:58 AM »
Hello,

I need to configure a squid which is intended to allow access to only 1 specific website. (this proxy is open to all internal network users and we are going to use it to access to a specific portal only).

Below config allows users to browse every website:

acl ourportal urlpath_regex www.ourportal.com
acl our_networks src 10.10.0.0/16
http_access allow ourportal
http_access allow our_networks
http_access deny all

Now how can I limit access to just this specific website?

I appereciate your help.

Regards,
Mac

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Squid, Limited Service
« Reply #1 on: November 07, 2006, 02:27:55 PM »
You actually need to use dstdomain ACL

So it should be like
Code: [Select]
acl our_portal dstdomain .ourportal.com
acl our_networks src 10.10.0.0/16
http_access allow ourportal
http_access allow our_networks
http_access deny all

Let me know if it works properly.

Offline wmac

  • New Member
  • Posts: 3
Squid, Limited Service
« Reply #2 on: November 08, 2006, 10:45:53 AM »
Hello,

Yes the dstdomain is the key, but a small change is needed

acl our_portal dstdomain .ourportal.com
acl our_networks src 10.10.0.0/16
http_access allow ourportal our_networks
http_access deny all

Offline wmac

  • New Member
  • Posts: 3
Squid, Limited Service
« Reply #3 on: November 08, 2006, 10:47:16 AM »
Sorry,

Forgot to thank you.  I appreciate your help.

Regards,
Mac

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Squid, Limited Service
« Reply #4 on: November 08, 2006, 12:51:09 PM »
yes ofcourse..

And you are welcome.