Skip to content

Instantly share code, notes, and snippets.

@higebu
Last active February 25, 2016 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save higebu/2cb3c4c8fc1e236716ce to your computer and use it in GitHub Desktop.
Save higebu/2cb3c4c8fc1e236716ce to your computer and use it in GitHub Desktop.
Install squid 3.5.15 to VyOS
#!/bin/bash
apt-get install build-essential libdb4.8-dev libcppunit-dev libntlm0-dev libldap2-dev libxml2-dev libpam0g-dev libc6-dev
version=3.5.15
cd squid-$version
./configure \
--build=x86_64-linux-gnu \
--prefix=/usr \
--includedir=${prefix}/include \
--mandir=${prefix}/share/man \
--infodir=${prefix}/share/info \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=${prefix}/lib/squid3 \
--disable-maintainer-mode \
--disable-dependency-tracking \
--disable-silent-rules \
--srcdir=. \
--datadir=/usr/share/squid3 \
--sysconfdir=/etc/squid3 \
--mandir=/usr/share/man \
--with-cppunit-basedir=/usr \
--enable-inline \
--enable-async-io=8 \
--enable-storeio="ufs,aufs,diskd" \
--enable-removal-policies="lru,heap" \
--enable-delay-pools \
--enable-cache-digests \
--enable-underscores \
--enable-icap-client \
--enable-follow-x-forwarded-for \
--enable-auth \
--enable-basic-auth-helpers="LDAP,MSNT,NCSA,PAM,SASL,SMB,YP,DB,POP3,getpwnam,squid_radius_auth,multi-domain-NTLM" \
--enable-ntlm-auth-helpers=smb_lm \
--enable-digest-auth-helpers="ldap,password" \
--enable-negotiate-auth-helpers=squid_kerb_auth \
--enable-external-acl-helpers="file_userip,LDAP_group,session,unix_group,wbinfo_group" \
--enable-arp-acl \
--enable-esi \
--disable-translation \
--with-logdir=/var/log/squid3 \
--with-pidfile=/var/run/squid3.pid \
--with-filedescriptors=65536 \
--with-large-files \
--with-default-user=proxy \
--enable-linux-netfilter
make && make install
cp -pb /usr/sbin/squid /usr/sbin/squid3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment