Merhaba, O zaman yapmaniz gereken, squid.conf dosyasi icerisinde cache_effective_user ve cache_effective_group olarak belirttiginiz user ve group tanimini ( diyelim ki squid ) , /dev/pf aygitina tam erisim ile hak vermeniz gerekmektedir. Yani; chown squid:squid /dev/pf Bu, hatanin tam tanimini Daniel Hertmeier asagidaki eposta icerisinde de aciklamistir. Iyi calismalar ================== As long as the client sends a Host: header, squid will use it, and it works. Without the Host: header, squid needs the original destination address/port. There's ipf specific code that does a lookup. For pf, the following diff adds this functionality. Add these lines to your squid.conf file: http_port 8080 httpd_accel_host virtual httpd_accel_port 80 httpd_accel_with_proxy on httpd_accel_uses_host_header on Tested on macppc-current, I have rdr on $int_if from any to !$int_if port www -> $int_if port 8080 and from a local workstation I can run telnet www.openbsd.org www GET / HTTP/1.0 and squid fetches the page from the external server. Note that squid must be able to open /dev/pf read-writable, hence you need to adjust cache_effective_user/_group and chmod /dev/pf accordingly, if you don't run squid as root. If someone wants to add this to the squid port, or better yet, ask the author to include it in the original distfile, please do so. Daniel================ Ömer Koyun wrote:
-- Murat Ustuntas UNIX/Linux Sistem Koordinatoru MarketWeb Fidan Iletisim Hizmetleri A.S. +-----------------------------------------------------------------------------------------------------------+ pub 1024D/23CE4D2E 2004-10-26 Murat Ustuntas (UNIX/Linux Sistem Koordinatoru) <[EMAIL PROTECTED]> sub 1024g/2CAC8D6D 2004-10-26 +-----------------------------------------------------------------------------------------------------------+ www.keyserver.net adresini kullanarak PGP sorgusu yapabilirsiniz.--------------------------------------------------------------------- Cikmak icin, e-mail: [EMAIL PROTECTED] Liste arsivi: http://lists.enderunix.org Turkiye'nin ilk FreeBSD kitabi: http://www.acikakademi.com/freebsd.php |
- Re: [FreeBSD] Squid Murat Ustuntas
- Re: [FreeBSD] Squid �mer
- Re: [FreeBSD] Squid Murat Ustuntas
- [FreeBSD] squid Osman AYHAN
- Re: [FreeBSD] squid �AHBAZ
- [FreeBSD] Re: squid Omer Faruk Sen
- Re: [FreeBSD] Re: squid Engin OZTURK