transparent proxy howto
skylar at cs.earlham.edu
Mon Jul 3 14:38:20 UTC 2006
Oliver A. Rojo wrote:
> Skylar Thompson wrote:
>> Oliver A. Rojo wrote:
>>> Im using freebsd-5.2.1-RELEASE-p14 and I just want to ask if how can I
>>> setup transparent proxying with squid using ipnat?
>> You're going to want something like this in your ipnat configuration:
>> rdr int0 0/0 port 80 -> 192.168.0.1 port 3128
>> Where int0 is your internal interface name, and 192.168.0.1 is your
>> internal interface IP address. You'll also want this in your squid.conf:
>> http_port 8080
>> httpd_accel_host virtual
>> httpd_accel_port 80
>> httpd_accel_with_proxy on
>> Full documentation here:
>> httpd_accel_uses_host_header on
> is there anything to be done with the kernel? I've done this one but
> it didn't worked...
Make sure that ipnat is loaded by putting ipnat_enable="YES" in
/etc/rc.conf, and you should be good to go.
-- Skylar Thompson (skylar at cs.earlham.edu)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20060703/2500274e/signature.pgp
More information about the freebsd-questions