Following is a personal pleasure to be part of this list I already
installing the tproxy here at my company but so far is not working,
compiled the kernel pressed the module, and compiled the iptables my
server this way:<br><br><br>cache:/# uname -a<br>Linux cache 2.6.22.10-tproxy #1 SMP Thu Oct 18 22:30:57 AMT 2007 i686 GNU/Linux<br>cache:/# lsmod<br clear="all">xt_tproxy 1984 0<br>ip_gre 12608 0
<br>ipt_addrtype 1952 0<br>ip_queue 10480 0<br>ipt_REJECT 4608 0<br>arptable_filter 2272 0<br>arp_tables 11204 1 arptable_filter<br>ipt_ULOG 8036 0
<br>iptable_mangle 2912 0<br>ipt_tos 1760 0<br>ipt_TOS 2336 0<br>ipt_LOG 6208 0<br>ipt_ECN 3008 0<br>ipt_ttl 1984 0<br>ipt_ah 2016 0
<br>ipt_TTL 2432 0<br>ipt_recent 9048 0<br>ipt_iprange 1888 0<br>iptable_raw 2496 0<br>ipt_ecn 2304 0<br>arpt_mangle 2560 0<br>ipt_owner 2080 0
<br>iptable_filter 3104 1<br>iptable_tproxy 6468 0<br>ip_tables 12420 4 iptable_mangle,iptable_raw,iptable_filter,iptable_tproxy<br>x_tables 14564 18 xt_tproxy,ipt_addrtype,ipt_REJECT,arp_tables,ipt_ULOG,ipt_tos,ipt_TOS,ipt_LOG,ipt_ECN,ipt_ttl,ipt_ah,ipt_TTL,ipt_recent,ipt_iprange,ipt_ecn,arpt_mangle,ipt_owner,ip_tables
<br>button 8080 0<br>ipv6 237412 18<br>i2c_viapro 8340 0<br>8139cp 22080 0<br>3c59x 41256 0<br>8139too 25472 0<br><br><div id="result_box" dir="ltr">
My squid this configured this way:<br><br><div id="result_box" dir="ltr">This compiled with the settings:</div><br>cache:/# squid -v<br>Squid Cache: Version 2.6.STABLE16-20071017<br>configure options: '--prefix=/usr' '--sysconfdir=/etc/squid' '--libexecdir=/usr/libexec/squid' '--datadir=/usr/share/squid' '--enable-dlmalloc' '--enable-wccp' '--with-maxfd=8192' '--enable-gnuregex' '--enable-carp' '--enable-storeio=diskd,ufs' '--enable-head-replacement' '--enable-removal-polices=heap,lru' '--enable-icmp' '--enable-epoll' '--enable-useragent-log' '--enable-referer-log' '--enable-arp-acl' '--enable-htcp' '--enable-cache-digests' '--enable-err-laguage=Portuguese' '--enable-ident-lookup' '--enable-truncate' '--enable-underscore' '--enable-linux-netfilter' '--enable-snmp'
<br><br><br>cache:/# squid -d 3 -F -N -X<br><br>2007/10/20 10:30:19| Processing: 'icp_access allow all'<br>2007/10/20 10:30:19| parse_line: icp_access allow all<br>2007/10/20 10:30:19| aclParseAccessLine: looking for ACL name 'all'
<br>2007/10/20 10:30:19| Processing: 'http_port 8080 transparent tproxy'<br>2007/10/20 10:30:19| parse_line: http_port 8080 transparent tproxy<br>FATAL: Bungled squid.conf line 925: http_port 8080 transparent tproxy
<br>Squid Cache (Version 2.6.STABLE16-20071017): Terminated abnormally.<br><br><div id="result_box" dir="ltr">This configured so my squid:<br></div><br>cache:/# cat /etc/squid/squid.conf<br>httpd_accel_host virtual<br>httpd_accel_port 80
<br>httpd_accel_with_proxy on<br>httpd_accel_uses_host_header on<br>acl all src <a href="http://0.0.0.0/0.0.0.0">0.0.0.0/0.0.0.0</a><br>acl minha_rede src <a href="http://201.30.200.0/255.255.255.128">201.30.200.0/255.255.255.128
</a><br>acl manager proto cache_object<br>acl localhost src <a href="http://127.0.0.1/255.255.255.255">127.0.0.1/255.255.255.255</a><br>acl to_localhost dst <a href="http://127.0.0.0/8">127.0.0.0/8</a><br>acl SSL_ports port 443
<br>acl Safe_ports port 80 # http<br>acl Safe_ports port 21 # ftp<br>acl Safe_ports port 443 # https<br>acl Safe_ports port 70 # gopher<br>acl Safe_ports port 210 # wais<br>acl Safe_ports port 1025-65535 # unregistered ports
<br>acl Safe_ports port 280 # http-mgmt<br>acl Safe_ports port 488 # gss-http<br>acl Safe_ports port 591 # filemaker<br>acl Safe_ports port 777 # multiling http<br>acl CONNECT method CONNECT
<br>http_access allow minha_rede<br>http_access allow manager localhost<br>http_access deny manager<br>http_access deny !Safe_ports<br>http_access deny CONNECT !SSL_ports<br>http_access deny all<br>icp_access allow all<br>
http_port 8080 transparent tproxy<br>hierarchy_stoplist cgi-bin ?<br>cache_mem 256 MB<br>maximum_object_size_in_memory 512 KB<br>memory_replacement_policy lru<br>cache_replacement_policy lru<br>cache_dir ufs /var/cache/squid/squid1 10000 16 256
<br>cache_dir ufs /var/cache/squid/squid2 10000 16 256<br>cache_dir ufs /var/cache/squid/squid3 10000 16 256<br>cache_swap_low 90<br>cache_swap_high 95<br>access_log /var/log/squid/access.log<br>cache_log /var/log/squid/cache.log
<br>cache_store_log /var/log/squid/store.log<br>logfile_rotate 10<br>mime_table /etc/squid/mime.conf<br>pid_filename /var/logs/squid.pid<br>client_netmask <a href="http://255.255.255.255">255.255.255.255</a><br>acl QUERY urlpath_regex cgi-bin \?
<br>cache deny QUERY<br>refresh_pattern ^ftp: 1440 20% 10080<br>refresh_pattern ^gopher: 1440 0% 1440<br>refresh_pattern . 0 20% 4320<br>request_header_max_size 20 KB
<br>reply_header_max_size 20 KB<br>acl apache rep_header Server ^Apache<br>broken_vary_encoding allow apache<br>cache_mgr <a href="mailto:rodrigofsantos@gmail.com">rodrigofsantos@gmail.com</a><br>cache_effective_user proxy
<br>snmp_port 3401<br>snmp_access deny all<br>error_directory /var/cache/squid/errors/Portuguese<br>hosts_file /etc/hosts<br>forwarded_for on<br>coredump_dir /usr/local/squid//var/cache<br><br></div>Please need much help from staff of you ..
<br> May God bless you all.<br>-- <br>----------------------------------------------------<br> (o_ Rodrigo Ferreira Santos<br> //\ Gerente de TI <br> V_/_ ICQ - 15372370 <br> aMSN - <a href="mailto:rodrigofsantos@gmail.com">
rodrigofsantos@gmail.com</a><br> Linux user number 372852<br>----------------------------------------------------