Skip to content
This repository was archived by the owner on Aug 17, 2022. It is now read-only.

Commit aaa8e60

Browse files
neutron-ahIliya Polyakov
and
Iliya Polyakov
authored
Update squid version and fix little bugs (#7)
* update build * fix security_file_certgen option * fix sources.list generate * fix ssl_bump rule * add install nano Co-authored-by: Iliya Polyakov <[email protected]>
1 parent bcc25f2 commit aaa8e60

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

docker-squid/Dockerfile

+7-6
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ RUN if [ ! -z "$TRUST_CERT" ]; then \
1010
fi
1111

1212
# Normalize apt sources
13-
RUN cat /etc/apt/sources.list | grep -v '^#' | sed /^$/d | sort | uniq > sources.tmp.1 && \
14-
cat /etc/apt/sources.list | sed s/deb\ /deb-src\ /g | grep -v '^#' | sed /^$/d | sort | uniq > sources.tmp.2 && \
15-
cat sources.tmp.1 sources.tmp.2 > /etc/apt/sources.list && \
13+
RUN cat /etc/apt/sources.list | grep -v '^#' | sed /^$/d > sources.tmp.1 && \
14+
cat /etc/apt/sources.list | sed s/deb\ /deb-src\ /g | grep -v '^#' | sed /^$/d > sources.tmp.2 && \
15+
cat sources.tmp.1 sources.tmp.2 | sort -u > /etc/apt/sources.list && \
1616
rm -f sources.tmp.1 sources.tmp.2
1717

1818
RUN apt-get update && \
1919
DEBIAN_FRONTEND=noninteractive apt-get build-dep -y squid && \
20-
DEBIAN_FRONTEND=noninteractive apt-get install -y wget tar xz-utils libssl-dev
20+
DEBIAN_FRONTEND=noninteractive apt-get install -y wget tar xz-utils libssl-dev nano
2121

22-
ARG SQUID_VERSION=4.0.21
22+
ARG SQUID_VERSION=4.0.25
2323

2424
# TODO: verify the squid download with the signing key
2525
RUN mkdir /src \
@@ -64,7 +64,8 @@ RUN cd /src/squid && \
6464
--with-filedescriptors=65536 \
6565
--with-large-files \
6666
--with-default-user=proxy \
67-
--disable-arch-native
67+
--disable-arch-native \
68+
--disable-ipv6
6869

6970
ARG CONCURRENCY=1
7071

docker-squid/squid.bsh

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ chown proxy: /dev/stdout
3838
chown proxy: /dev/stderr
3939

4040
# Initialize the certificates database
41-
/usr/libexec/security_file_certgen -c -s /var/spool/squid4/ssl_db
41+
/usr/libexec/security_file_certgen -c -s /var/spool/squid4/ssl_db -M 4MB
4242
chown -R proxy: /var/spool/squid4/ssl_db
4343

4444
#ssl_crtd -c -s

docker-squid/squid.conf.p2

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ http_port {{HTTP_PORT}} {% if MITM_PROXY|default:"" == "yes" %} ssl-bump \
3030
{% endif %}
3131

3232
{% if MITM_PROXY|default:"" == "yes" %}
33-
ssl_bump server-first all
33+
ssl_bump bump all
3434
{% endif %}
3535

3636
{% if ICP_PORT|default:"" != "" %}

0 commit comments

Comments
 (0)