Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Apr 2000 19:33:17 +0200
From:      "Dan Larsson" <dl@tyfon.net>
To:        "[FreeBSD-Questions-List] (E-mail)" <freebsd-questions@freebsd.org>, "[Squid-Users-List] (E-mail)" <squid-users@ircache.net>
Subject:   www and squid on same machine
Message-ID:  <000101bfaedc$57f315d0$1401a8c0@intranet.tyfon.net>

next in thread | raw e-mail | index | archive | help
I'm currently running a transparent cache on a
FreeBSD machine. The machine is connected via two
network interface cards one to the internet and one
to the local lan.

squid is bound to 127.0.0.1 and listens on port 8080
apache is bound to 127.0.0.1 and listens on port 81

These are the firewall rules I use to hijack http:
ifpw add 100 pass tcp from INTERNET_IP_ADDRESS to any
ipfw add 110 fwd 127.0.0.1,8080 tcp from any to any 80

What do I need to do to serve http on the outside interface without
allowing everyone access to the squid cache?

( I've tried to use nat and ipforwarding without success )

Regards
------------
Dan Larsson



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000101bfaedc$57f315d0$1401a8c0>