Apache Reverse Proxy with Memory Cache

2009-01-28 Thread Cagri Ersen
Hi all,

I installed an apache22 server (with mod_proxy, mod_cache and
mod_mem_cache) on FreeBSD 7.0 for reverse proxy that using static
contents of a web site.
Now it's seems work fine; but i didn't found a way to looking mem
cache status. Ofc i can get some information about that with using
native tools (like top, systat, vmstat). But what if i need to looking
for the cached objects in the memory ?

Is there any way to getting list of that cached objects ?

Best Regards.

-- 
Cagri Ersen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Transparent Proxy with IPFW + Squid 2.7

2008-11-23 Thread Cagri Ersen
Hi there,

I want to configure a transparent proxy with IPFW and Squid.
I enabled IPFW on a FreeBSD 7.0 and also install squid 2.7

this is content of my squid.conf:

acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl all src all
acl localnet src 192.168.12.0/24
acl SSL_ports port 443
acl Safe_ports port 80  # http
acl Safe_ports port 21  # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70  # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
icp_access allow localnet
icp_access deny all
http_port 3128 transparent
hierarchy_stoplist cgi-bin ?
access_log /usr/local/squid/logs/access.log squid
refresh_pattern ^ftp:   144020% 10080
refresh_pattern ^gopher:14400%  1440
refresh_pattern (cgi-bin|\?)0   0%  0
refresh_pattern .   0   20% 4320
icp_port 3130
coredump_dir /usr/local/squid/cache


And this is base IPFW rules.

$cmd 00500 fwd 127.0.0.1,3128 $log tcp from any to any 80 in recv $lanif
$cmd 02000 allow $log all from any to any

As you can see, all packages which is destination port 80 forwarding to the
squid's port (3128). with this configuration everything seems work fine.

however if i deny all traffic on the last rule and then open desired ports
or connections one by one then squid isn't work.

Sample base denying rule set like this:

$cmd 00010 allow all from any to any via lo0
$cmd 00015 check-state
$cmd 00020 allow tcp from any to any established   .
$cmd 00021 deny all from any to any frag in via $adslif
$cmd 00025 allow all from me to any keep-state
$cmd 00050 allow tcp from table() to any keep-state

$cmd 00500 fwd 127.0.0.1,3128 $log tcp from any to any 80 in recv $lanif

$cmd 00600 allow all from $lan to any 53
$cmd 00602 allow udp from any 53 to any out via $lanif
$cmd 00603 allow udp from any 53 to any in via $adslif

$cmd 01500 allow all from $lan to any 443,25,110 keep-state
$cmd 02000 deny $log all from any to any

As i said, if i run IPFW with this rules, my client doesn't surf on the
internet. And also i didn't seen anything about denying on the ipfw log
file. Also there is no activity on squid log files. I think forwarding rule
didn't work with that conf.

So please can somebody tell me what's wrong in this situation ?
Thanks in advance for your help.


-- 
Cagri Ersen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Need FreeBSD 7.0 XEN-KERNEL

2008-08-11 Thread Cagri Ersen
Thanks mate,
If i need that FS files, i can give you a ftp accunt.

BTW, My XEN server is installed on Fedora 8.0. And i need 3 FreeBSD as a
guest OS for production. That servers will be a qmail cluster with 2
qmail/vpopmail and a NFS storage server for mail servers.

Can you tell me your opinion about this condition ?

Thanks again.

On Mon, Aug 11, 2008 at 4:53 AM, Outback Dingo [EMAIL PROTECTED]wrote:

 heres three kernels working and my config, i also have 4, 8 and 16GB file
 systems ready to roll, compressed they run 70+Megs each, if you want them i

 need a place to drop em, good luck though, paravirtualized is good for
 maybe
 light dev work, not production, hypervised under linux KVM both 7 and
 CURRENT
 work fine

 On Sun, Aug 10, 2008 at 10:39 PM, Cagri Ersen [EMAIL PROTECTED]wrote:

 Hi list,
 I want to install a FreeBSD 7.0 on a XEN Server as (para-virtualize) domU.
 There is an installation document on FreeBSD handbook (
 http://www.freebsd.org/doc/en/books/handbook/virtualization-guest.html)
 However,
 the link is broken on the page which is for downloading the kernel file.

 So, where can i get that file ?

 Thanks for help.
 --
 Cagri Ersen
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]





-- 
Cagri Ersen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Need FreeBSD 7.0 XEN-KERNEL

2008-08-10 Thread Cagri Ersen
Hi list,
I want to install a FreeBSD 7.0 on a XEN Server as (para-virtualize) domU.
There is an installation document on FreeBSD handbook (
http://www.freebsd.org/doc/en/books/handbook/virtualization-guest.html)
However,
the link is broken on the page which is for downloading the kernel file.

So, where can i get that file ?

Thanks for help.
-- 
Cagri Ersen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]