Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jun 2003 14:34:38 -0400
From:      "Kliment Andreev" <klimenta@futurebit.com>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   ipfw + squid
Message-ID:  <000501c33111$4a89dd60$ca0110ac@vinyl.tkvbp.com>

next in thread | raw e-mail | index | archive | help
I have ipfw + squid (ext NIC: fxp0, int NIC: dc0). Squid is listening on
port 3128.

Using ipfilter I will do

rdr dc0 0/0 port 80 -> 127.0.0.1 port 3128 tcp

How can I do this in ipfw

00050 36764 12234591 divert 8668 ip from any to any via fxp0
---->>>>>>   00060     0        0 divert 80 tcp from any to any 3128
00100  4732 13839892 allow ip from any to any via lo0
00200     0        0 deny ip from any to 127.0.0.0/8
00300     0        0 deny ip from 127.0.0.0/8 to any
65000 53018 18345167 allow ip from any to any
65535     1      328 allow ip from any to any


Line 60 doesn't seem to work for me.

Thanks!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000501c33111$4a89dd60$ca0110ac>