Skip to content

Instantly share code, notes, and snippets.

@tjgruber
tjgruber / squid.conf
Last active December 4, 2017 12:43
Squid Stuff
#
# Recommended minimum configuration:
#
# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
@tjgruber
tjgruber / index.html
Last active May 3, 2016 02:54
Nice little hub for Squid Proxy server
<br /> <br /> <br /> <br /> <br /> <br /> <br /> <center> <hr />
<h2>My-Proxy</h2> <hr /> <br /> <a href="https://serv-proxy1:10000">Web Admin</a><br /> <a href="http://serv-proxy1/squid-reports">Squid Reports</a> </center>
@tjgruber
tjgruber / proxy.pac
Last active April 5, 2017 09:13
Used for deployment of Proxy
function FindProxyForURL(url, host) {
// If the hostname matches the domains below, send direct (bypass proxy).
if (dnsDomainIs(host, ".your.domain") ||
dnsDomainIs(host, ".domain1.com") ||
dnsDomainIs(host, ".domain2.com"))
return "DIRECT";
// If the protocol or URL matches, send direct.
// if (url.substring(0, 4)=="ftp:" ||
@tjgruber
tjgruber / squid-whitelist.acl
Last active August 2, 2023 02:17
A squid proxy whitelist to get started. Allows all Office 365 and windows updates through proxy.
# PUT IN ALPHABETICAL ORDER
.aadrm.com
.activedirectory.windowsazure.com
.adhybridhealth.azure.com
.ajax.aspnetcdn.com
.ajax.googleapis.com
# .amazon.com
# .amazonaws.com
.appex.bing.com
.appex-rf.msn.com
@tjgruber
tjgruber / squid-manual-blacklist.acl
Created November 2, 2015 16:40
Squid Proxy server manual blacklist to use - Contains just one entry so it works when you turn the proxy on.
.facebook.com
pref("general.config.obscure_value", 0); // only needed if you do not want to obscure the content with ROT-13
pref("general.config.filename", "mozilla.cfg");
//
lockPref("network.proxy.type", 5);
<html dir="ltr" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" gpmc_reportInitialized="false">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-16" />
<title>Windows 10 Security Settings</title>
<!-- Styles -->
<style type="text/css">
body { background-color:#FFFFFF; border:1px solid #666666; color:#000000; font-size:68%; font-family:MS Shell Dlg; margin:0,0,10px,0; word-break:normal; word-wrap:break-word; }
table { font-size:100%; table-layout:fixed; width:100%; }
param(
$Name = 'WEB1',
$Location = 'westeurope',
$ResourceGroup = 'WebServers'
)
New-AzResourceGroup -Name $ResourceGroup -Location $Location
$params = @{
Name = $Name
az account list-locations | ConvertFrom-Json | FT displayName,name