Squid 3.3 unter Ubuntu als Revese Proxy mit SSL

Letzte Aktualisierung am 22.09.2019, 15:09:10 Uhr

Der Eine oder Andere erinnert sich noch an diesen Beitrag von mir. Dieser ist inzwischen steht Squid in der Version 3.3.8 zur Verfügung.

Die damalige Paketquelle wird Ubuntu 14.04 und Squid 3.3.x nicht mehr gepflegt. Das “Brightbox”- Team bei launchpad.net bietet aktuell das Paket 3.3.8 an. Dazu muss erst einmal die Paketquelle von apt angepasst werden:

vi /etc/apt/sources.list
deb http://de.archive.ubuntu.com/ubuntu trusty main universe multiverse
deb http://de.archive.ubuntu.com/ubuntu trusty-updates main universe multiverse
deb http://de.archive.ubuntu.com/ubuntu trusty-security main universe multiverse

# Squid 3 with SSL
deb http://ppa.launchpad.net/brightbox/squid-ssl/ubuntu trusty main
deb-src http://ppa.launchpad.net/brightbox/squid-ssl/ubuntu trusty main

Die Datei mit der Tastenfolge „:wq“ speichern und schließen.

Danach muss noch der Publickey importiert werden. Dazu gibt man folgenden Befehl ein:

root@j138266:/# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F5DA5F09C3173AA6
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.C3uzngEbNw --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys F5DA5F09C3173AA6
gpg: requesting key C3173AA6 from hkp server keyserver.ubuntu.com
gpg: key C3173AA6: public key "Launchpad PPA for Brightbox" imported
gpg: Total number processed: 1
gpg: imported: 1  (RSA: 1)

Nun muss die Paketlisten aktualisiert werden:

root@j138266:/# apt-get update
Ign http://de.archive.ubuntu.com trusty InRelease
Ign http://ppa.launchpad.net trusty InRelease
Ign http://de.archive.ubuntu.com trusty-updates InRelease
Get:1 http://ppa.launchpad.net trusty Release.gpg [316 B]
Ign http://de.archive.ubuntu.com trusty-security InRelease
Hit http://ppa.launchpad.net trusty Release
Hit http://de.archive.ubuntu.com trusty Release.gpg
Hit http://de.archive.ubuntu.com trusty-updates Release.gpg
Hit http://ppa.launchpad.net trusty/main Sources
Hit http://de.archive.ubuntu.com trusty-security Release.gpg
Hit http://de.archive.ubuntu.com trusty Release
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://de.archive.ubuntu.com trusty-updates Release
Hit http://de.archive.ubuntu.com trusty-security Release
Hit http://de.archive.ubuntu.com trusty/main amd64 Packages
Hit http://de.archive.ubuntu.com trusty/universe amd64 Packages
Hit http://de.archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://de.archive.ubuntu.com trusty/main Translation-en
Hit http://de.archive.ubuntu.com trusty/multiverse Translation-en
Hit http://de.archive.ubuntu.com trusty/universe Translation-en
Hit http://de.archive.ubuntu.com trusty-updates/main amd64 Packages
Ign http://ppa.launchpad.net trusty/main Translation-en_US
Ign http://ppa.launchpad.net trusty/main Translation-en
Hit http://de.archive.ubuntu.com trusty-updates/universe amd64 Packages
Hit http://de.archive.ubuntu.com trusty-updates/multiverse amd64 Packages
Hit http://de.archive.ubuntu.com trusty-updates/main Translation-en
Hit http://de.archive.ubuntu.com trusty-updates/multiverse Translation-en
Hit http://de.archive.ubuntu.com trusty-updates/universe Translation-en
Hit http://de.archive.ubuntu.com trusty-security/main amd64 Packages
Hit http://de.archive.ubuntu.com trusty-security/universe amd64 Packages
Hit http://de.archive.ubuntu.com trusty-security/multiverse amd64 Packages
Hit http://de.archive.ubuntu.com trusty-security/main Translation-en
Hit http://de.archive.ubuntu.com trusty-security/multiverse Translation-en
Hit http://de.archive.ubuntu.com trusty-security/universe Translation-en
Ign http://de.archive.ubuntu.com trusty/main Translation-en_US
Ign http://de.archive.ubuntu.com trusty/multiverse Translation-en_US
Ign http://de.archive.ubuntu.com trusty/universe Translation-en_US
Fetched 316 B in 1s (159 B/s)
Reading package lists... Done

Jetzt kann Squid installiert werden:

apt-get install squid3-ssl
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libecap2 libmnl0 libnetfilter-conntrack3 libnfnetlink0 squid-langpack
  squid3-common
Suggested packages:
  squidclient squid-cgi squid-purge smbclient ufw winbindd apparmor
The following NEW packages will be installed:
  libecap2 libmnl0 libnetfilter-conntrack3 libnfnetlink0 squid-langpack
  squid3-common squid3-ssl
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,613 kB of archives.
After this operation, 9,216 kB of additional disk space will be used.
Do you want to continue? [Y/n] y

Die Konfiguration für die Konfigurationsdatei squid.conf kann aus dem bestehen Beitrag übernommen werden.

Die neue Version kann nur noch mit gestoppt/gestartet werden mit dem Befehl service:

service squid3 stop
service squid3 start
Abonnieren
Benachrichtige mich bei
0 Comments
Inline Feedbacks
View all comments