Difference between revisions of "Squid"
From CBLFS
Jump to navigationJump to search(4 intermediate revisions by 2 users not shown) | |||
Line 11: | Line 11: | ||
== Dependencies == | == Dependencies == | ||
− | === | + | === Recommended === |
− | * [[ | + | * [[Iptables]] |
+ | |||
=== Optional === | === Optional === | ||
* [[OpenSSL]] | * [[OpenSSL]] | ||
− | |||
== Squid User/Group == | == Squid User/Group == | ||
− | |||
groupadd -g 59 squid && | groupadd -g 59 squid && | ||
Line 29: | Line 28: | ||
{|style="text-align: left;" | {|style="text-align: left;" | ||
|- | |- | ||
− | |''--enable-linux-netfilter'': to compile with [[Iptables]] support. | + | |''--enable-linux-netfilter'': to compile with [[Iptables]] support. |
|- | |- | ||
|''--enable-ssl'': to compile with [[OpenSSL]] support. | |''--enable-ssl'': to compile with [[OpenSSL]] support. | ||
Line 35: | Line 34: | ||
|''--enable-shared'': to compile with shared libs support. | |''--enable-shared'': to compile with shared libs support. | ||
|- | |- | ||
− | |'' --enable-default-err-language=German '': to compile with your language; see $src_dir/error | + | |''--enable-default-err-language=German'': to compile with your language; see $src_dir/error |
|- | |- | ||
− | |- | + | |-''--enable-icmp'': ICMP support over Squid |
|} | |} | ||
Line 52: | Line 51: | ||
== Multilib == | == Multilib == | ||
+ | |||
+ | {{Note|You must have ABI compatible libraries from Iptables or no transparent proxy support is available.}} | ||
=== 32Bit === | === 32Bit === | ||
Line 76: | Line 77: | ||
make install | make install | ||
− | |||
− | |||
=== BootScript === | === BootScript === | ||
Line 83: | Line 82: | ||
Squid has his own start script. copy from source tree: | Squid has his own start script. copy from source tree: | ||
− | cp contrib/squid.rc /etc/rc.d/init.d | + | cp contrib/squid.rc /etc/rc.d/init.d |
− | ln -sf ../init.d/squid.rc /etc/rc.d/rc0.d/K82squid.rc | + | ln -sf ../init.d/squid.rc /etc/rc.d/rc0.d/K82squid.rc |
− | ln -sf ../init.d/squid.rc /etc/rc.d/rc1.d/K82squid.rc | + | ln -sf ../init.d/squid.rc /etc/rc.d/rc1.d/K82squid.rc |
− | ln -sf ../init.d/squid.rc /etc/rc.d/rc2.d/K82squid.rc | + | ln -sf ../init.d/squid.rc /etc/rc.d/rc2.d/K82squid.rc |
− | ln -sf ../init.d/squid.rc /etc/rc.d/rc3.d/S82squid.rc | + | ln -sf ../init.d/squid.rc /etc/rc.d/rc3.d/S82squid.rc |
− | ln -sf ../init.d/squid.rc /etc/rc.d/rc4.d/S82squid.rc | + | ln -sf ../init.d/squid.rc /etc/rc.d/rc4.d/S82squid.rc |
− | ln -sf ../init.d/squid.rc /etc/rc.d/rc5.d/S82squid.rc | + | ln -sf ../init.d/squid.rc /etc/rc.d/rc5.d/S82squid.rc |
− | ln -sf ../init.d/squid.rc /etc/rc.d/rc6.d/K82squid.rc | + | ln -sf ../init.d/squid.rc /etc/rc.d/rc6.d/K82squid.rc |
+ | |||
+ | [[Category:Servers]] |
Latest revision as of 14:10, 19 March 2009
Download Source: | http://squidcache.cybermirror.org/squid-3/STABLE/squid-3.0.STABLE9.tar.bz2 |
---|
Contents
Introduction to Squid
The Squid package is a powerful Web Cache Proxy.
Project Homepage: http://www.squid-cache.org
Dependencies
Recommended
Optional
Squid User/Group
groupadd -g 59 squid && useradd -c 'squid cache' -d /var/spool/squid -g squid -s /bin/false -u 59 squid && install -v -m700 -d /var/spool/squid && chown -v squid:squid /var/spool/squid
Configuration Information
--enable-linux-netfilter: to compile with Iptables support. |
--enable-ssl: to compile with OpenSSL support. |
--enable-shared: to compile with shared libs support. |
--enable-default-err-language=German: to compile with your language; see $src_dir/error |
Non-Multilib
Compile the package:
./configure --prefix=/usr --sysconfdir=/etc/squid --enable-linux-netfilter && make
Install the package
make install
Multilib
You must have ABI compatible libraries from Iptables or no transparent proxy support is available.
32Bit
Compile the package:
CC="gcc ${BUILD32}" ./configure --prefix=/usr --sysconfdir=/etc/squid \ --enable-linux-netfilter && make
Install the package
make install
64Bit
Compile the package
CC="gcc ${BUILD64}" ./configure --prefix=/usr --sysconfdir=/etc/squid \ --enable-linux-netfilter --libdir=/usr/lib64 && make
Install the package
make install
BootScript
Squid has his own start script. copy from source tree:
cp contrib/squid.rc /etc/rc.d/init.d ln -sf ../init.d/squid.rc /etc/rc.d/rc0.d/K82squid.rc ln -sf ../init.d/squid.rc /etc/rc.d/rc1.d/K82squid.rc ln -sf ../init.d/squid.rc /etc/rc.d/rc2.d/K82squid.rc ln -sf ../init.d/squid.rc /etc/rc.d/rc3.d/S82squid.rc ln -sf ../init.d/squid.rc /etc/rc.d/rc4.d/S82squid.rc ln -sf ../init.d/squid.rc /etc/rc.d/rc5.d/S82squid.rc ln -sf ../init.d/squid.rc /etc/rc.d/rc6.d/K82squid.rc