Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Network Troublshooting => Linux Proxy Server Support => Topic started by: wmac on November 04, 2006, 10:06:58 AM

Title: Squid, Limited Service
Post by: wmac 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
Title: Squid, Limited Service
Post by: Ricky 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.
Title: Squid, Limited Service
Post by: wmac 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
Title: Squid, Limited Service
Post by: wmac on November 08, 2006, 10:47:16 AM
Sorry,

Forgot to thank you.  I appreciate your help.

Regards,
Mac
Title: Squid, Limited Service
Post by: Ricky on November 08, 2006, 12:51:09 PM
yes ofcourse..

And you are welcome.