Skip to content

GoOnNowGit/squid

Repository files navigation

Sandbox dnscrypt-proxy workflow

squid

Squid from source

Build image

docker-compose build

kubernetes Setup

Make a self-signed cert (Testing purposes)

mkdir ssl_cert
openssl req -newkey rsa:2048 -x509 -sha256 -days 365 -nodes -out ssl_cert/tls.crt -keyout ssl_cert/tls.key

Create dhparam file

openssl dhparam -out confs/dhparams.pem 2048

Create confs config map

kubectl create configmap squid.config --from-file=confs

Create acls config map

kubectl create configmap squid.acls --from-file=acls

Create secret using existing key-pair or self-signed above

kubectl create secret tls squid.tls --cert=ssl_cert/tls.crt --key=ssl_cert/tls.key

Apply the deployment

kubectl apply -f kubernetes/squid.yml

Delete the deployment

kubectl delete -f kubernetes/squid.yml

Connect via the proxy

curl -v -k --proxy http://127.0.0.1:3128 --proxy-cacert tls.crt https://www.google.com

References