Find the answer to your Linux question:
Results 1 to 3 of 3
hi, iv been trying for hours to try and get this to work, basicly this is what i am wanting to do, Deny if requested is not on allowed port ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2009
    Posts
    1

    Squid ACL, allow url?


    hi,

    iv been trying for hours to try and get this to work,

    basicly this is what i am wanting to do,

    Deny if requested is not on allowed port
    Allow local users accounts (got this working)
    Allow if the requested url is *.mydomain.com
    Deny if no the above

    below what im using, - all the fully working...

    can anyone tell me what im doing wrong?

    thanks

    Code:
    acl LocalServer url_regex -i *.mydomain.com
    acl all src all
    
    http_access deny !Safe_ports
    http_access allow LocalUsers
    http_access allow LocalServer
    http_access deny all

  2. #2
    Linux Newbie
    Join Date
    Feb 2009
    Posts
    101
    try
    acl LocalServer dstdomain .mydomain.com
    alc Localusers src 192.168.10.0/255.255.255.0
    http_access allow Localusers LocalServer
    http_access deny all

  3. #3
    Linux User
    Join Date
    May 2008
    Location
    NYC, moved from KS & MO
    Posts
    251
    Code:
    acl LocalServer url_regex -i *.mydomain.com
    acl all src 0.0.0.0/0.0.0.0
    
    http_access deny !Safe_ports
    http_access allow LocalUsers LocalServer
    http_access deny all

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •