Squid allow one IP on a particular port
Hello. This is my squid configuration:
acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https acl Safe_ports port 70 # gopher acl Safe_ports port 210 # wais acl Safe_ports port 1025-65535 # unregistered ports acl Safe_ports port 280 # http-mgmt acl Safe_ports port 488 # gss-http acl Safe_ports port 591 # filemaker acl Safe_ports port 777 # multiling http Now i want to allow URL http://213.145.166.138/ on port 81 (which is currently blocked) for everyone. Is it possible to configure it? |
Quote:
http://wiki.squid-cache.org/SquidFaq/SquidAcl ...or try to put "how to configure squid to allow a website" into Google? http://wiki.squid-cache.org/ConfigEx...nticate/Bypass |
Yes i looked into it.
Problem here is if i allow port 81 it will be allowed for any website. I want to allow only one website for port 81. I didn't find any acl combination for that. |
Quote:
|
A bit more 'hint' needed, sorry...
I wanted to learn a bit about squid from this Thread, but I seem to need a bit more 'clue' here.
Is that URL http://213.145.166.138/ *on your server* [dst] (or *from* a src)? I tried hour of web-searches like: allow one|specific ip|dst access "to a port" squid but kept getting confused by thinking http_access meant port 80 only [?] As that first doc link begins by saying: "Squid's access control scheme is relatively comprehensive and difficult for some people to understand." Maybe [my **guess**] something like: acl myport port 81 acl myaddr dst 213.145.166.138 http-access allow myport myaddr (partly based on that doc's "And/Or logic" [under "Common Mistakes"]) Maybe try that & let us know. *logs*?! (again, that is *just my guess* & may be incorrect!) A bit more of a hint/clue/more-specific-link-quotation/... from LQ'ers is welcome here. Thanks! |
Quote:
|
Quote:
|
Quote:
|
All times are GMT -5. The time now is 03:52 PM. |