From 434c3dea0ec6b9324e591144424acda19e60b7c6 Mon Sep 17 00:00:00 2001 From: bel Date: Tue, 14 Sep 2021 06:42:54 -0600 Subject: [PATCH] archive --- pihole/Dockerfile | 30 +++++ pihole/build.sh | 11 ++ pihole/resolv.conf | 4 + squidsies/.dockerignore | 7 ++ squidsies/Dockerfile | 35 ++++++ squidsies/LICENSE | 21 ++++ squidsies/Makefile | 4 + squidsies/README.md | 187 +++++++++++++++++++++++++++++++ squidsies/VERSION | 1 + squidsies/archDocker | 33 ++++++ squidsies/build.sh | 11 ++ squidsies/circle.yml | 13 +++ squidsies/compile-squid.sh | 35 ++++++ squidsies/docker-compose.yml | 7 ++ squidsies/entrypoint.sh | 41 +++++++ squidsies/kubernetes/pod.yml | 19 ++++ squidsies/kubernetes/service.yml | 14 +++ squidsies/s.conf | 39 +++++++ squidsies/squidserver.crt | 30 +++++ squidsies/squidserver.key | 51 +++++++++ squidsies/test.sh | 1 + 21 files changed, 594 insertions(+) create mode 100755 pihole/Dockerfile create mode 100755 pihole/build.sh create mode 100755 pihole/resolv.conf create mode 100755 squidsies/.dockerignore create mode 100755 squidsies/Dockerfile create mode 100755 squidsies/LICENSE create mode 100755 squidsies/Makefile create mode 100755 squidsies/README.md create mode 100755 squidsies/VERSION create mode 100755 squidsies/archDocker create mode 100755 squidsies/build.sh create mode 100755 squidsies/circle.yml create mode 100755 squidsies/compile-squid.sh create mode 100755 squidsies/docker-compose.yml create mode 100755 squidsies/entrypoint.sh create mode 100755 squidsies/kubernetes/pod.yml create mode 100755 squidsies/kubernetes/service.yml create mode 100755 squidsies/s.conf create mode 100755 squidsies/squidserver.crt create mode 100755 squidsies/squidserver.key create mode 100755 squidsies/test.sh diff --git a/pihole/Dockerfile b/pihole/Dockerfile new file mode 100755 index 0000000..1d7d878 --- /dev/null +++ b/pihole/Dockerfile @@ -0,0 +1,30 @@ +FROM pihole/pihole:latest + +RUN echo "addn-hosts=/mnt/lan.list" >> /etc/dnsmasq.d/02-lan.conf +#RUN echo "192.168.0.86 vpntor.scratch.home" >> /mnt/lan.list \ +# && echo "192.168.0.86 syncthing.scratch.home" >> /mnt/lan.list \ +# && echo "192.168.0.86 plex.scratch.home" >> /mnt/lan.list \ +# && echo "192.168.0.86 firefly.scratch.home" >> /mnt/lan.list \ +# && echo "192.168.0.86 firefly2.scratch.home" >> /mnt/lan.list \ +# && echo "192.168.0.86 rssmon2.scratch.home" >> /mnt/lan.list \ +# && echo "192.168.0.86 rssmon.scratch.home" >> /mnt/lan.list \ +# && echo "192.168.0.86 redirector.scratch.home" >> /mnt/lan.list \ +# && echo "192.168.0.86 ytubespdrun.scratch.home" >> /mnt/lan.list \ +# && echo "192.168.0.86 vpntorfeed.scratch.home" >> /mnt/lan.list \ +# && echo "192.168.0.86 stuncaddsies.scratch.home" >> /mnt/lan.list \ +# && echo "192.168.0.86 stuncaddsiesi.scratch.home" >> /mnt/lan.list \ +# && echo "192.168.0.86 fproxy.scratch.home" >> /mnt/lan.list \ + +RUN echo 'nameserver 127.0.0.1' >> /etc/resolv.conf \ + && echo 'nameserver 1.1.1.1' >> /etc/resolv.conf \ + && echo 'nameserver 8.8.8.8' >> /etc/resolv.conf \ + && echo 'nameserver 8.8.4.4' >> /etc/resolv.conf + +RUN echo "address=/scratch.com/192.168.0.86" >> /etc/dnsmasq.d/03-wildlan.conf + +ENV WEB_PORT=8888 +ENV DNSMASQ_LISTENING=all +ENV WEBPASSWORD=letme123in +ENV ServerIP=192.168.0.86 +ENV DNS1=1.1.1.1 +ENV DNS2=8.8.8.8 diff --git a/pihole/build.sh b/pihole/build.sh new file mode 100755 index 0000000..4112a73 --- /dev/null +++ b/pihole/build.sh @@ -0,0 +1,11 @@ +#! /bin/bash + +docker build -t dev:dev . +docker run --rm -it --net=host \ + --dns 127.0.0.1 \ + --dns 1.1.1.1 \ + --dns 8.8.8.8 \ + --dns 8.8.4.4 \ + -e ServerIP=192.168.0.18 \ + dev:dev + #--restart=unless-stopped \ diff --git a/pihole/resolv.conf b/pihole/resolv.conf new file mode 100755 index 0000000..78234c0 --- /dev/null +++ b/pihole/resolv.conf @@ -0,0 +1,4 @@ +nameserver 127.0.0.1 +nameserver 1.1.1.1 +nameserver 8.8.8.8 +nameserver 8.8.4.4 diff --git a/squidsies/.dockerignore b/squidsies/.dockerignore new file mode 100755 index 0000000..810979f --- /dev/null +++ b/squidsies/.dockerignore @@ -0,0 +1,7 @@ +.git +circle.yml +LICENSE +VERSION +README.md +Changelog.md +Makefile diff --git a/squidsies/Dockerfile b/squidsies/Dockerfile new file mode 100755 index 0000000..fb1e1c7 --- /dev/null +++ b/squidsies/Dockerfile @@ -0,0 +1,35 @@ +#FROM ubuntu:bionic-20180526 +FROM centos:7.5.1804 +LABEL maintainer="breel@blapointe.com" + +ENV \ + SQUID_CACHE_DIR=/var/spool/squid \ + SQUID_LOG_DIR=/var/log/squid \ + SQUID_USER=proxy + +#RUN rpm -i http://ngtech.co.il/repo/centos/7/squid-repo-1-1.el7.centos.noarch.rpm +#RUN yum install squid +#RUN apt-get update \ +# && DEBIAN_FRONTEND=noninteractive apt-get install -y squid=${SQUID_VERSION}* apache2-utils \ +# && rm -rf /var/lib/apt/lists/* + +RUN yum install -y gcc +RUN yum install -y gcc-c++ +RUN yum install -y perl gcc autoconf automake make sudo wget +RUN yum install -y libxml2-devel libcap-devel +RUN yum install -y libtool-ltdl-devel + +RUN curl http://www.squid-cache.org/Versions/v4/squid-4.3.tar.gz > /squid-4.3.tar.gz + +COPY compile-squid.sh /compile-squid.sh + +RUN bash /compile-squid.sh + +RUN mkdir -p /etc/squid3 + +COPY entrypoint.sh /sbin/entrypoint.sh +RUN chmod 755 /sbin/entrypoint.sh + +EXPOSE 3128/tcp +EXPOSE 3228/tcp +ENTRYPOINT ["/sbin/entrypoint.sh"] diff --git a/squidsies/LICENSE b/squidsies/LICENSE new file mode 100755 index 0000000..c8476ac --- /dev/null +++ b/squidsies/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014 Sameer Naik + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/squidsies/Makefile b/squidsies/Makefile new file mode 100755 index 0000000..f3e3244 --- /dev/null +++ b/squidsies/Makefile @@ -0,0 +1,4 @@ +all: build + +build: + @docker build --tag=sameersbn/squid . diff --git a/squidsies/README.md b/squidsies/README.md new file mode 100755 index 0000000..5f64908 --- /dev/null +++ b/squidsies/README.md @@ -0,0 +1,187 @@ +[![Circle CI](https://circleci.com/gh/sameersbn/docker-squid.svg?style=shield)](https://circleci.com/gh/sameersbn/docker-squid) [![Docker Repository on Quay.io](https://quay.io/repository/sameersbn/squid/status "Docker Repository on Quay.io")](https://quay.io/repository/sameersbn/squid) + +# sameersbn/squid:3.5.27 + +- [Introduction](#introduction) + - [Contributing](#contributing) + - [Issues](#issues) +- [Getting started](#getting-started) + - [Installation](#installation) + - [Quickstart](#quickstart) + - [Command-line arguments](#command-line-arguments) + - [Persistence](#persistence) + - [Configuration](#configuration) + - [Usage](#usage) + - [Logs](#logs) +- [Maintenance](#maintenance) + - [Upgrading](#upgrading) + - [Shell Access](#shell-access) + +# Introduction + +`Dockerfile` to create a [Docker](https://www.docker.com/) container image for [Squid proxy server](http://www.squid-cache.org/). + +Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-requested web pages. Squid has extensive access controls and makes a great server accelerator. + +## Contributing + +If you find this image useful here's how you can help: + +- Send a pull request with your awesome features and bug fixes +- Help users resolve their [issues](../../issues?q=is%3Aopen+is%3Aissue). +- Support the development of this image with a [donation](http://www.damagehead.com/donate/) + +## Issues + +Before reporting your issue please try updating Docker to the latest version and check if it resolves the issue. Refer to the Docker [installation guide](https://docs.docker.com/installation) for instructions. + +SELinux users should try disabling SELinux using the command `setenforce 0` to see if it resolves the issue. + +If the above recommendations do not help then [report your issue](../../issues/new) along with the following information: + +- Output of the `docker version` and `docker info` commands +- The `docker run` command or `docker-compose.yml` used to start the image. Mask out the sensitive bits. +- Please state if you are using [Boot2Docker](http://www.boot2docker.io), [VirtualBox](https://www.virtualbox.org), etc. + +# Getting started + +## Installation + +Automated builds of the image are available on [Dockerhub](https://hub.docker.com/r/sameersbn/squid) and is the recommended method of installation. + +> **Note**: Builds are also available on [Quay.io](https://quay.io/repository/sameersbn/squid) + +```bash +docker pull sameersbn/squid:3.5.27 +``` + +Alternatively you can build the image yourself. + +```bash +docker build -t sameersbn/squid github.com/sameersbn/docker-squid +``` + +## Quickstart + +Start Squid using: + +```bash +docker run --name squid -d --restart=always \ + --publish 3128:3128 \ + --volume /srv/docker/squid/cache:/var/spool/squid \ + sameersbn/squid:3.5.27 +``` + +*Alternatively, you can use the sample [docker-compose.yml](docker-compose.yml) file to start the container using [Docker Compose](https://docs.docker.com/compose/)* + +## Command-line arguments + +You can customize the launch command of the Squid server by specifying arguments to `squid` on the `docker run` command. For example the following command prints the help menu of `squid` command: + +```bash +docker run --name squid -it --rm \ + --publish 3128:3128 \ + --volume /srv/docker/squid/cache:/var/spool/squid \ + sameersbn/squid:3.5.27 -h +``` + +## Persistence + +For the cache to preserve its state across container shutdown and startup you should mount a volume at `/var/spool/squid`. + +> *The [Quickstart](#quickstart) command already mounts a volume for persistence.* + +SELinux users should update the security context of the host mountpoint so that it plays nicely with Docker: + +```bash +mkdir -p /srv/docker/squid +chcon -Rt svirt_sandbox_file_t /srv/docker/squid +``` + +## Configuration + +Squid is a full featured caching proxy server and a large number of configuration parameters. To configure Squid as per your requirements mount your custom configuration at `/etc/squid/squid.conf`. + +```bash +docker run --name squid -d --restart=always \ + --publish 3128:3128 \ + --volume /path/to/squid.conf:/etc/squid/squid.conf \ + --volume /srv/docker/squid/cache:/var/spool/squid \ + sameersbn/squid:3.5.27 +``` + +To reload the Squid configuration on a running instance you can send the `HUP` signal to the container. + +```bash +docker kill -s HUP squid +``` + +## Usage + +Configure your web browser network/connection settings to use the proxy server which is available at `172.17.0.1:3128` + +If you are using Linux then you can also add the following lines to your `.bashrc` file allowing command line applications to use the proxy server for outgoing connections. + +```bash +export ftp_proxy=http://172.17.0.1:3128 +export http_proxy=http://172.17.0.1:3128 +export https_proxy=http://172.17.0.1:3128 +``` + +To use Squid in your Docker containers add the following line to your `Dockerfile`. + +```dockerfile +ENV http_proxy=http://172.17.0.1:3128 \ + https_proxy=http://172.17.0.1:3128 \ + ftp_proxy=http://172.17.0.1:3128 +``` + +## Logs + +To access the Squid logs, located at `/var/log/squid/`, you can use `docker exec`. For example, if you want to tail the access logs: + +```bash +docker exec -it squid tail -f /var/log/squid/access.log +``` + +You can also mount a volume at `/var/log/squid/` so that the logs are directly accessible on the host. + +# Maintenance + +## Upgrading + +To upgrade to newer releases: + + 1. Download the updated Docker image: + + ```bash + docker pull sameersbn/squid:3.5.27 + ``` + + 2. Stop the currently running image: + + ```bash + docker stop squid + ``` + + 3. Remove the stopped container + + ```bash + docker rm -v squid + ``` + + 4. Start the updated image + + ```bash + docker run -name squid -d \ + [OPTIONS] \ + sameersbn/squid:3.5.27 + ``` + +## Shell Access + +For debugging and maintenance purposes you may want access the containers shell. If you are using Docker version `1.3.0` or higher you can access a running containers shell by starting `bash` using `docker exec`: + +```bash +docker exec -it squid bash +``` diff --git a/squidsies/VERSION b/squidsies/VERSION new file mode 100755 index 0000000..96e9491 --- /dev/null +++ b/squidsies/VERSION @@ -0,0 +1 @@ +3.5.27 diff --git a/squidsies/archDocker b/squidsies/archDocker new file mode 100755 index 0000000..d3548b4 --- /dev/null +++ b/squidsies/archDocker @@ -0,0 +1,33 @@ +FROM base/archlinux:latest +LABEL maintainer="breel@blapointe.com" + +ENV \ + SQUID_CACHE_DIR=/var/spool/squid \ + SQUID_LOG_DIR=/var/log/squid \ + SQUID_USER=proxy + +#RUN rpm -i http://ngtech.co.il/repo/centos/7/squid-repo-1-1.el7.centos.noarch.rpm +#RUN yum install squid +#RUN apt-get update \ +# && DEBIAN_FRONTEND=noninteractive apt-get install -y squid=${SQUID_VERSION}* apache2-utils \ +# && rm -rf /var/lib/apt/lists/* + +#RUN yum install -y gcc +#RUN yum install -y gcc-c++ +#RUN yum install -y perl gcc autoconf automake make sudo wget +#RUN yum install -y libxml2-devel libcap-devel +#RUN yum install -y libtool-ltdl-devel + +RUN pacman -Sy --noconfirm squid +#RUN pacman -Sy --noconfirm htpasswd +RUN useradd $SQUID_USER + +RUN mkdir -p /var/cache/squid +RUN mkdir -p /etc/squid3 + +COPY entrypoint.sh /sbin/entrypoint.sh +RUN chmod 755 /sbin/entrypoint.sh + +EXPOSE 3128/tcp +EXPOSE 3228/tcp +ENTRYPOINT ["/sbin/entrypoint.sh"] diff --git a/squidsies/build.sh b/squidsies/build.sh new file mode 100755 index 0000000..fc19c83 --- /dev/null +++ b/squidsies/build.sh @@ -0,0 +1,11 @@ +#! /bin/bash + +set -e +docker build -f ./archDocker -t squidprox:latest . +docker run --rm -it \ + -p 3128:3128 \ + -p 3228:3228 \ + -v $(pwd)/s.conf:/etc/squid/squid.conf \ + -v $(pwd)/squidserver.crt:/etc/squid/server.crt \ + -v $(pwd)/squidserver.key:/etc/squid/server.key \ + squidprox diff --git a/squidsies/circle.yml b/squidsies/circle.yml new file mode 100755 index 0000000..8d53cae --- /dev/null +++ b/squidsies/circle.yml @@ -0,0 +1,13 @@ +machine: + services: + - docker + +dependencies: + override: + - docker info + +test: + override: + - docker build -t sameersbn/squid . + - docker run -d -p 23128:3128 sameersbn/squid; sleep 10 + - curl --retry 10 --retry-delay 5 -v -s -L -x http://127.0.0.1:23128 -o /dev/null https://www.google.com diff --git a/squidsies/compile-squid.sh b/squidsies/compile-squid.sh new file mode 100755 index 0000000..52dcfdf --- /dev/null +++ b/squidsies/compile-squid.sh @@ -0,0 +1,35 @@ +#! /bin/bash + +set -e + +yum install -y gcc + +tar xzf /squid-4.3.tar.gz + +cd /squid* + +./configure \ + \ + --enable-auth \ + --disable-auth-basic \ + \ + --prefix=/usr \ + --includedir=/usr/include \ + --datadir=/usr/share \ + --bindir=/usr/sbin \ + --libexecdir=/usr/lib/squid \ + --localstatedir=/var \ + --sysconfdir=/etc/squid \ + +#--help=short \ + #--disable-esi \ + #--disable-icap-client \ + #--disable-snmp \ + #--disable-eui \ + #--disable-htcp \ + #--disable-devpoll \ + +make install + +exit 1 + diff --git a/squidsies/docker-compose.yml b/squidsies/docker-compose.yml new file mode 100755 index 0000000..1b1b286 --- /dev/null +++ b/squidsies/docker-compose.yml @@ -0,0 +1,7 @@ +Squid: + image: sameersbn/squid:3.5.27 + ports: + - "3128:3128" + volumes: + - /srv/docker/squid/cache:/var/spool/squid + restart: always diff --git a/squidsies/entrypoint.sh b/squidsies/entrypoint.sh new file mode 100755 index 0000000..c395f6f --- /dev/null +++ b/squidsies/entrypoint.sh @@ -0,0 +1,41 @@ +#!/bin/bash +set -e + +create_log_dir() { + mkdir -p ${SQUID_LOG_DIR} + chmod -R 755 ${SQUID_LOG_DIR} + chown -R ${SQUID_USER}:${SQUID_USER} ${SQUID_LOG_DIR} +} + +create_cache_dir() { + mkdir -p ${SQUID_CACHE_DIR} + chown -R ${SQUID_USER}:${SQUID_USER} ${SQUID_CACHE_DIR} +} + +create_log_dir +create_cache_dir + +# allow arguments to be passed to squid +if [[ ${1:0:1} = '-' ]]; then + EXTRA_ARGS="$@" + set -- +elif [[ ${1} == squid || ${1} == $(which squid) ]]; then + EXTRA_ARGS="${@:2}" + set -- +fi + +# default behaviour is to launch squid +if [[ -z ${1} ]]; then + if [[ ! -d ${SQUID_CACHE_DIR}/00 ]]; then + echo "Initializing cache..." + $(which squid) -N -f /etc/squid/squid.conf -z + #htpasswd -c /etc/squid3/passwords breel + username="${username:-breel}" + username="breel" + printf "${username}:`openssl passwd -apr1`\n" >> /etc/squid3/passwords + fi + echo "Starting squid..." + exec $(which squid) -f /etc/squid/squid.conf -NYCd 1 ${EXTRA_ARGS} +else + exec "$@" +fi diff --git a/squidsies/kubernetes/pod.yml b/squidsies/kubernetes/pod.yml new file mode 100755 index 0000000..e7487e4 --- /dev/null +++ b/squidsies/kubernetes/pod.yml @@ -0,0 +1,19 @@ +apiVersion: v1 +kind: Pod +metadata: + name: squid + labels: + name: squid +spec: + containers: + - name: squid + image: sameersbn/squid:3.5.27 + ports: + - containerPort: 3128 + protocol: TCP + volumeMounts: + - mountPath: /var/spool/squid + name: data + volumes: + - name: data + emptyDir: {} diff --git a/squidsies/kubernetes/service.yml b/squidsies/kubernetes/service.yml new file mode 100755 index 0000000..01ccf5d --- /dev/null +++ b/squidsies/kubernetes/service.yml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: Service +metadata: + name: squid + labels: + name: squid +spec: + type: LoadBalancer + ports: + - port: 3128 + targetPort: 3128 + protocol: TCP + selector: + name: squid diff --git a/squidsies/s.conf b/squidsies/s.conf new file mode 100755 index 0000000..b77041d --- /dev/null +++ b/squidsies/s.conf @@ -0,0 +1,39 @@ +auth_param basic program /usr/lib/squid/basic_ncsa_auth /etc/squid/passwords +auth_param basic realm proxy +acl authenticated proxy_auth REQUIRED +http_access allow authenticated + +#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 +#acl localnet src fc00::/7 # RFC 4193 local private network range +#acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines +acl SSL_ports port 443 +acl Safe_ports port 80 # http +acl Safe_ports port 21 # ftp +acl Safe_ports port 443 # https +acl Safe_ports port 70 # gopher +acl Safe_ports port 210 # wais +acl Safe_ports port 1025-65535 # unregistered ports +acl Safe_ports port 280 # http-mgmt +acl Safe_ports port 488 # gss-http +acl Safe_ports port 591 # filemaker +acl Safe_ports port 777 # multiling http +acl CONNECT method CONNECT +http_access deny !Safe_ports +http_access deny CONNECT !SSL_ports +http_access allow localhost manager +http_access deny manager +http_access deny to_localhost +#http_access allow localnet +http_access allow localhost +http_access deny all +#http_port 3128 +https_port 3228 tls-cert=/etc/squid/server.crt key=/etc/squid/server.key +cache_dir ufs /var/spool/squid 100 16 256 +coredump_dir /var/spool/squid +refresh_pattern ^ftp: 1440 20% 10080 +refresh_pattern ^gopher: 1440 0% 1440 +refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 +refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880 +refresh_pattern . 0 20% 4320 diff --git a/squidsies/squidserver.crt b/squidsies/squidserver.crt new file mode 100755 index 0000000..ab3d534 --- /dev/null +++ b/squidsies/squidserver.crt @@ -0,0 +1,30 @@ +-----BEGIN CERTIFICATE----- +MIIFODCCAyCgAwIBAgIJAPipUls/qtoBMA0GCSqGSIb3DQEBCwUAMEMxCzAJBgNV +BAYTAlVTMQswCQYDVQQIDAJVVDEOMAwGA1UECgwFYnJlZWwxFzAVBgNVBAMMDmxv +Y2FsaG9zdDozMjI4MB4XDTE4MTAwNTIzMzMxOFoXDTE5MTAwNTIzMzMxOFowQzEL +MAkGA1UEBhMCVVMxCzAJBgNVBAgMAlVUMQ4wDAYDVQQKDAVicmVlbDEXMBUGA1UE +AwwObG9jYWxob3N0OjMyMjgwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoIC +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652LE4Y5tDYNqfPvw +o0jNuDbb5q3pRnutFfRaCIHXn7/DyjtU/wvHsp3Iotiopq7zVIU0U4K7VfrRlTFr +h0y3i4qUQWN4OtRmdMYVCoq0OYGyitbbvexHAyDgOP7xDvO0CdQGyoD+WmPwBubl +pg+BGyjQe+i3o3Tp6UqyDSNDBvdFPRE+MGKx7cwqeWJt1FX8swmRite07/fRdxfJ +BQ7UuQg3brMSZ17FSQwxYmjNX4O5UaizsC4UBaVGoplmp3xA8eAmbJkPNnI8oCKQ +0SbfSUhQaYr4Cdq/uhyH4Z67Eys2C2uJc1Fq0k9v3JMnvmy+PscfFLfo7MK+TDSQ +PKcQzrPxZlru2EbzhQMSwauzbNfQjJz3d0kGYMIirJAktQ6eK9sXaK+odlg= +-----END CERTIFICATE----- diff --git a/squidsies/squidserver.key b/squidsies/squidserver.key new file mode 100755 index 0000000..9afea5b --- /dev/null +++ b/squidsies/squidserver.key @@ -0,0 +1,51 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIJKQIBAAKCAgEA0DQj8JZc1y8TJVqueAN6cW+xX0vnlQJSzrM1lC09/i4tPPRq +dTaZXPYI/jU8nO6GlSMh9xLQNT4nQGS7Io/TiAT8hfGzZPMG1YNFzePSUxzPnnr4 +bjeBxE3+NhA/24M4Oyt0eTQXXXwUD+XaUlQ9C/LSDTyXGShDptHF3VFcK74YG1Qp +aJrK8Mxm3Xze0e0ajOclAbXxMIxqd5P32iZmjbB9/7RaeldzMNt0ysrVIcxhSrHW +VrR5673Vdd36KaaqP2Kp2X/86Bvcf/2yEXq7PBuGKInDXnpE6hE75XBYmZ7+CCyP +3y4Cd6rpvXMYyx/tdI2QmF6sQojVI70916+lyj3XGor3GNUK09eMhLsZUhYrGxcJ +rivVNpEsTb2H/NePiv8YoDzx1Pw4i0Rgny7swzaLghxurJkiBkdT6Htpi5gJwTA/ +Zfg6N5t1B4dKpR0rVdeEMA2Xd8a0eizaa7lLghX4ONQHmisQmROyFc8iRo4hdlAn +840fV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GnkdsdDVPenkSlfsTGbp3D3ATusNkeg6MB8w5UKfEchwJqDt +fdqHvR2Jr47XPCwwLOXQe/Z+6QKRmVccBEbPgQY3MlZ6dXUv1FaCe4qe16TmEp6j +3OJu8hgt2WU3VX1muOp77fkKPgPfvfALJwKCAQA5oZUhppF30gP2fG1qMamLubFD +QqKhgftEr6aexmMoW5eDuUyZoHja5SNei1ImBrITK4XHU7x9IhJXGb5UHs/lPcuf +Ard/5iyTdXCemzCZjTBBWgEVm208RiyJjr0Y8aH5lRDN9bk9YUQSLvTWNZoY/Wz+ +3L5+NSxtn16D12jgXkGsh3PSEHAHlhy4nydI1RGpCLkBP1AGv2SKwk+06lks1Agk +edcC7Lg2APTfah4xIGh8WOq0dKeSPkDpiKwEbkQOM9m0vxomsFHSnWXe8I5DKPze +gCnDmTv4sSEE+MdofEf6SAA60mA5w/DJriw+YvjaaI1PrysY3OC9jgizfF6L +-----END RSA PRIVATE KEY----- diff --git a/squidsies/test.sh b/squidsies/test.sh new file mode 100755 index 0000000..42283cf --- /dev/null +++ b/squidsies/test.sh @@ -0,0 +1 @@ +curl -v -U breel:ok -x localhost:3228 http://google.com | head -n 2