Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: boka <boka@sto-procent.art.pl>
To: lartc@vger.kernel.org
Subject: [LARTC] Transparent web-caching using netfilter, iproute2 and squid - from
Date: Wed, 14 May 2003 19:29:49 +0000	[thread overview]
Message-ID: <marc-lartc-105294072224921@msgid-missing> (raw)

Hi !

I want to set up the same functionality using squid and iproute. I have a
netfilter box (2.4.20 kernel 10.10.9.2) and squid box (10.10.10.9). My
conf is:

On netfilter box:
[root@nat root]# ip rule sh
0:      from all lookup local
32765:  from all fwmark 0x3 lookup 2
32766:  from all lookup main
32767:  from all lookup 253
[root@nat root]# ip route sh table 2
default via 10.10.9.1 dev eth0
[root@nat root]# iptables -t mangle -L PREROUTING
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
ACCEPT     tcp  --  squid    anywhere           tcp dpt:http
MARK       tcp  --  anywhere             anywhere           tcp dpt:http
MARK set 0x3

On squid box:
[root@bishop root]# iptables -L PREROUTING -t nat
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
REDIRECT   tcp  --  anywhere             anywhere           tcp dpt:http
redir ports 8080

I was looking through tcpdump on netfilter and squid box, and there is no
traffic between them ...

ps. i have send the same email from different email account but my message
was bounced ...

--
"W przysz³o¶ci bêdziemy ¿yli albo w faszyzmie albo demokracji. Je¶li
bêdziesz sta³ z boku, to bêdzie to faszyzm" Richard K. Moore
pozdrawiam boka@sto-procent.art.pl
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

                 reply	other threads:[~2003-05-14 19:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-105294072224921@msgid-missing \
    --to=boka@sto-procent.art.pl \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox