Re: Help regarding TProxy required

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Wed, 23 Jul 2008 00:01:49 +0200

http://www.squid-cache.org/Versions/v2/2.6/changesets/12334.patch

On lör, 2008-07-19 at 04:28 +0500, Munawar Zeeshan (zmunawar) wrote:
>
> Dear Henrik,
>
> I need help for the config of trpoxy. here is my config.
>
> kernel = 2.6.20
> fedora core 8
> cttproxy = cttproxy-2.6.20-2.0.6
> iptables 1.3.8
>
> I have squid-2.6.STABLE9.
>
> Let me start from scratch if I patching might be faulty. after kernel
> patching I issued this command and here is the output.
>
> [root_at_localhost Desktop]# dmesg | grep TPROXY
> IP_TPROXY: Transparent proxy support initialized 2.0.6
> IP_TPROXY: Copyright (c) 2002-2006 BalaBit IT Ltd.
>
> then I patched iptables and again issued this command for confirmation.
>
> [root_at_localhost Desktop]# iptables -t nat -L -n
> Chain PREROUTING (policy ACCEPT)
> target prot opt source destination
>
> Chain POSTROUTING (policy ACCEPT)
> target prot opt source destination
>
> Chain OUTPUT (policy ACCEPT)
> target prot opt source destination
>
> Now I started configuring squid. In the squid directory I issued the
> command
> and get this error,
>
>
> /configure --enable-linux-tproxy --enable-linux-netfilter --enable-storeio="diskd,aufs,ufs"
> --enable-removal-policies="lru,heap" --enable-delay-pools --enable-snmp --enable-arp-acl
> --enable-cache-digests --enable-linux-netfilter --disable-ident-lookups --enable-underscores
> --enable-auth="basic" --enable-basic-auth-helpers="NCSA" --with-maxfd=8192
>
>
> checking if Linux 2.4 or newer kernel header files are installed... no
> WARNING: Cannot find necessary Linux kernel header files
> Linux Netfilter Transparent Proxy support WILL NOT be enabled
> checking if TPROXY header files are installed... no
>
> make all
>
> /usr/include/linux/netfilter.h:41: error: expected specifier-qualifier-list
> before â__be32â
> make[3]: *** [client_side.o] Error 1
> make[3]: Leaving directory `/root/Desktop/squid-2.6.STABLE9/src'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/root/Desktop/squid-2.6.STABLE9/src'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/root/Desktop/squid-2.6.STABLE9/src'
> make: *** [all-recursive] Error 1
>
>
> make install
> from client_side.c:96:
> /usr/include/linux/netfilter.h:41: error: expected specifier-qualifier-list
> before â__be32â
> make[3]: *** [client_side.o] Error 1
> make[3]: Leaving directory `/root/Desktop/squid-2.6.STABLE9/src'
> make[2]: *** [install-recursive] Error 1
> make[2]: Leaving directory `/root/Desktop/squid-2.6.STABLE9/src'
> make[1]: *** [install] Error 2
> make[1]: Leaving directory `/root/Desktop/squid-2.6.STABLE9/src'
> make: *** [install-recursive] Error 1
>
> To aovid this I did this
> cp /usr/src/linux-source-2.6.18/include/linux/netfilter_ipv4/ip_tproxy.h
> /usr/include/linux/netfilter_ipv4/
>
> But again in squid configuration I am getting the same above mentioned
> errors.
>
> Any help please.
>
> If you can provide me a detailed documentation about installation of tproxy
> , I will be very thankful to u.
>
>
>

Received on Tue Jul 22 2008 - 22:01:54 MDT

This archive was generated by hypermail 2.2.0 : Wed Jul 23 2008 - 12:00:07 MDT