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
-
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
-
You actually need to use dstdomain ACL
So it should be like
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.
-
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
-
Sorry,
Forgot to thank you. I appreciate your help.
Regards,
Mac
-
yes ofcourse..
And you are welcome.