Subject: Re: tircproxy as a transparent proxy
To: Julio Merino <juli@merino.net>
From: Michael Kukat <michael@bsdfans.org>
List: netbsd-users
Date: 02/03/2002 16:44:29
Hi !

On Sun, 3 Feb 2002, Julio Merino wrote:
> > > rdr ed0 192.168.1.0/24 port 6667 -> 127.0.0.1 port 7666 tcp
[...]
>
> I tried this and does not work...
>
> Any other idea?

Ah. Okay, maybe i found it. Here is what i use:

zeus# bash-2.05# ipnat -l|grep 80
rdr fxp0 0.0.0.0/0 port 80 -> 192.168.177.1 port 80 tcp
bash-2.05# netstat -naf inet|grep "\.80.*LISTEN"
tcp        0      0  192.168.177.1.80       *.*                    LISTEN

This work fine, every connect to _ANY_ address on port 80 on fxp0 (the internal
interface of my firewall) will be redirected to my squid here. Maybe you
should use 0.0.0.0/0, as in your statement, only connections to 192.168.1.0/24
will be redirected to 127.0.0.1 on port 6667 i think.

...Michael

-- 
http://www.bsdfans.org/    Home network powered by: NetBSD OpenBSD FreeBSD IRIX
Solaris AIX HP-UX Tru64 MUNIX Ultrix VMS SINIX Dolphin_Unix OpenStep MacOS A/UX