Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

There is a line in squid default configuration:

# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports

acls are applied from top down, so CONNECT acl will deny access to all non SSL and SSL ports. I mean it never reaches the second access rule.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

CONNECT here means the HTTPS CONNECT method, i.e., the standardized way a browser talks to a proxy server, asking for a connection to an HTTPS-serving site

http_access deny CONNECT !SSL_ports means 'deny all HTTPS CONNECT that asks to be connected to a port other than SSL_ports'. If the browser sends a CONNECT method asking to be connected to an SSL_port, the rule doesn't fire.

Whether or not the CONNECT actually gets through depends on the successive http_access rules.

share|improve this answer
    
So the acls after http_access deny are conjoined with a logical AND. am I right? –  Majid Azimi Apr 25 '11 at 5:40
    
@Majid yes. In general, everything on the same line are conjoined with logical AND, while rules on different lines are conjoined with logical OR –  pepoluan Apr 25 '11 at 8:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.