> > > > i try to setup a transparent proxy . on my gate with 3 nics...
> maybe you got some moreinformations for me ?!
I assume from your mention of port 3128 you are using squid as a proxy
server, and that you want to intercept all outgoing web traffic
and redirect it to the proxy server.
You need to keep in mind that:
1. Redirect rules happen during INPUT processing. You need
to put the redirect rule on your INTERNAL interface, not
the EXTERNAL one.
2. The server program to which connections are redirected must be
NAT-aware, as it needs to use special NAT ioctl operations to
retrieve the actual pre-redirect destination. I have a vague
memory that squid can do this, but I do not have a detailed
knowledge of squid, so check this.
3. It's late, and my eyes are so sore I can hardly focus. I
reserve the right to be wrong.
On each internal interface, you need a rule like
rdr en0 0.0.0.0/0 port 80 -> 127.0.0.1 port 3128
My kernel modifications consisted of improving the specificity of
rules of the general form used above, allowing redirect rules to match
on both incoming and outgoing interface. They are not necessary in
your simple case.
To all those people who suggested the FAQ or tutorials, last time I
looked (nearly a year ago), all the various sources of ipfilter doco
give exactly one example each of using NAT redirects and its always
the *same* example. If you want to use NAT redirects to do anything
else you're reduced to UTSL.
--cjb
--
------------------------------------------------------------------------
The IEEE has monitored this electronic mail message, and asserts that no
energy was created or destroyed during its construction or transmission.
------------------------------------------------------------------------