{"id":15858984,"url":"https://github.com/nitrocode/working-with-squid-proxy","last_synced_at":"2025-08-17T16:17:40.577Z","repository":{"id":84691371,"uuid":"153056336","full_name":"nitrocode/working-with-squid-proxy","owner":"nitrocode","description":null,"archived":false,"fork":false,"pushed_at":"2018-10-15T05:11:49.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-22T04:47:20.913Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nitrocode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-15T05:11:36.000Z","updated_at":"2018-10-15T05:11:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"e753d8a6-4226-40fc-b87e-0a2ddd44277d","html_url":"https://github.com/nitrocode/working-with-squid-proxy","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"b961248a167a329fdb2914e22d27a36f726c7424"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nitrocode/working-with-squid-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrocode%2Fworking-with-squid-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrocode%2Fworking-with-squid-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrocode%2Fworking-with-squid-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrocode%2Fworking-with-squid-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nitrocode","download_url":"https://codeload.github.com/nitrocode/working-with-squid-proxy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrocode%2Fworking-with-squid-proxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270871678,"owners_count":24660248,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-05T21:02:33.421Z","updated_at":"2025-08-17T16:17:40.542Z","avatar_url":"https://github.com/nitrocode.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Squid Test Blocking ACLs\n\nWork in progress.\n\nSimple Vagrant vm to test squid blocking acls.\n\n## Setup\n\nStart squid 3.3\n\n    vagrant up trusty\n\nStart squid 3.5\n\n    vagrant up xenial\n\n## Configure\n\n1. Modify or add regex to `squid_sites.txt`\n2. Restart squid\n\n    Without debug\n\n        vagrant ssh trusty\n        sudo service squid restart\n\n    With debug\n\n        sudo squid3 -k debug\n\n3. Or restart\n\n## Test ACL\n\nExample of blocked url:\n\n    $ ./test_acl.sh http://www.google.com\n    Server: squid/3.3.8\n    X-Squid-Error: ERR_ACCESS_DENIED 0\n    Via: 1.1 vagrant-ubuntu-trusty-64 (squid/3.3.8)\n\nExample of allowed url:\n\n    $ ./test_acl.sh http://www.github.com\n    Via: 1.1 vagrant-ubuntu-trusty-64 (squid/3.3.8)\n\n## Squid logs\n\nFor access and deny summaries\n\n    /var/log/squid*/access.log\n\nFor more in depth\n\n    /var/log/squid*/cache.log\n\n## References\n\n* https://wiki.squid-cache.org/SquidFaq/SquidAcl#How_can_I_block_access_to_porn_sites.3F\n* http://www.squid-cache.org/Versions/v3/3.5/cfgman/\n* http://www.squid-cache.org/Versions/v3/3.3/cfgman/\n* https://wiki.squid-cache.org/SquidFaq/BugReporting#Debugging_Squid\n* https://github.com/chef-cookbooks/squid\n\n## TODO\n\n* find out what configuration sets a granular whitelist using regexes and denies everything else\n* find out how chef uses it - where the script is, what version cookbook, elc\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitrocode%2Fworking-with-squid-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnitrocode%2Fworking-with-squid-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitrocode%2Fworking-with-squid-proxy/lists"}