Re: [FUG-BR] Cache squid de 1 Tb

2008-09-27 Por tôpico Alexandre Correa
sobre a parte de consumo de cpu, talvez a solução conjunta de CACHEBOY
+ FUSION I/O !! chega aos 10.000 usuarios !!

www.cacheboy.net

projeto paralelo ao squid.. porem mantido na linguagem C !!!

2008/9/27 Joao Rocha Braga Filho [EMAIL PROTECTED]:
 2008/9/27 Eduardo Schoedler [EMAIL PROTECTED]:
 Agora imagina um storage COSS para arquivos pequenos utilizando esse
 hardware:

 http://www.fusionio.com/Products.aspx

 Até aceito um hd ide para deixar os arquivos grandes... rsrsrs.

 Muito bom, mas parece ter um problema grave... falta de driver.

 Tem a promessa para segunda metade deste ano o suporte para
 Mac OS X. Pelo visto não simula uma controladora com um disco,
 o que eu tentaria fazer para não ter problemas com drivers.

 O de 320 GB cai MUITO o desempenho, mas mesmo assim ja é
 muito superior a um HD. Realmente, é um monstro em desempenho.

 Um squid com um COSS nele para fazer arquivos até 128 KB, e
 um conjunto de discos de 15 KRPM para arquivos maiores seria um
 monstro. Acho que poderia atender uns 10 mil usuários simultâneos,
 exceto pelo problema que faltaria CPU para atender o squid.


 Abraços,
João Rocha.



 Abraços.


 --
 From: Joao Rocha Braga Filho [EMAIL PROTECTED]
 Subject: Re: [FUG-BR] Cache squid de 1 Tb

 2008/9/26 João Paulo Just [EMAIL PROTECTED]:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Joao Rocha Braga Filho wrote:
 | Voltando ao assunto. Me deu a idéia de usar um disco com coss, sem
 | sistema de arquivos, para arquivos até uns 32 KB, ou 64 KB, e um com
 | diskd ou aufs para objetos maiores. Dúvida. Se um objeto for grande
 | para armazenar no coss, onde ele colocará? Ele armazenará no outro
 | cache, ou descartará? Se todos os objetos pequenos ficarão no coss
 | deixando os grandes para o outro? De dividir assim, acho que fica uma
 | boa relação de desempenho.

 Tem um parâmetro no cache_dir, max-size=n, onde n é o tamanho máximo do
 arquivo em bytes, se não me engano. Use o max-size no cache_dir com COSS
 e use min-size no outro cache_dir.

 Eu fiz por merecer um RTFM, e obrigado por não ter falado. rsrs

 Tirando do squid.conf

 
 #   min-size=n, refers to the min object size this storedir will accept.
 #   It's used to restrict a storedir to only store large objects
 #   (e.g. aufs) while other storedirs are optimized for smaller objects
 #   (e.g. COSS). Defaults to 0.
 #
 #   max-size=n, refers to the max object size this storedir supports.
 #   It is used to initially choose the storedir to dump the object.
 #   Note: To make optimal use of the max-size limits you should order
 #   the cache_dir lines with the smallest max-size value first and the
 #   ones with no max-size specification last.
 

 Muito Obrigado.
João Rocha.


 - --
 João Paulo Just
 Diretor Executivo - Justsoft Informática Ltda.
 http://www.justsoft.com.br/
 - --
 Feira de Santana, BA, Brasil.
 +55 75 8104 8473
 Blog: http://just.rg3.net/

 -
 Histórico: http://www.fug.com.br/historico/html/freebsd/
 Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd




 --
 Sempre se apanha mais com as menores besteiras. Experiência própria.

 [EMAIL PROTECTED]
 -
 Histórico: http://www.fug.com.br/historico/html/freebsd/
 Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd




-- 

Sds.
Alexandre J. Correa
Onda Internet / OPinguim.net
http://www.ondainternet.com.br
http://www.opinguim.net
-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


Re: [FUG-BR] Cache squid de 1 Tb

2008-09-27 Por tôpico João Paulo Just
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Joao Rocha Braga Filho wrote:
| Eu fiz por merecer um RTFM, e obrigado por não ter falado. rsrs

Ôh,é verdade. rsrsrs :P

- --
João Paulo Just
Diretor Executivo - Justsoft Informática Ltda.
http://www.justsoft.com.br/
- --
Feira de Santana, BA, Brasil.
+55 75 8104 8473
Blog: http://just.rg3.net/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI3e89XL+vuN2d7ZwRAs5gAJ4su1qvgpm5aShDhpTRF6kD2aKBRwCeOnxn
zHOQx2XsJmNteeOoVT+w1IY=
=mEhU
-END PGP SIGNATURE-
-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


[FUG-BR] ipfw de 10 em 10..

2008-09-27 Por tôpico Juliano Paiva Matos
Pessoal... como faço para que o ipfw conte as regras de 10 em 10... e não de
100 em 100 que é o padrão...



Juliano


-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


Re: [FUG-BR] ipfw de 10 em 10..

2008-09-27 Por tôpico Brenno Oliveira
Juliano

2008/9/27 Juliano Paiva Matos [EMAIL PROTECTED]:
 Pessoal... como faço para que o ipfw conte as regras de 10 em 10... e não de
 100 em 100 que é o padrão...

via sysctl:

strcpy# sysctl -d net.inet.ip.fw.autoinc_step
net.inet.ip.fw.autoinc_step: Rule number autincrement step



 Juliano


 -
 Histórico: http://www.fug.com.br/historico/html/freebsd/
 Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


--Brenno
-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


Re: [FUG-BR] Nova maquina 64, 7.0 ou 7.0cvsupado, ou 7.1 beta ? ERRO KERNEL

2008-09-27 Por tôpico Leonardo Augusto
Bom fiz com o RELENG_7 compilou tudo kernel GENERIC e reboot OK

server# uname -a
FreeBSD server.intervir.no-ip.org 7.1-PRERELEASE FreeBSD
7.1-PRERELEASE #0: Sat Sep 27 03:50:43 UTC 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  amd64

Como se nota esta no 7.1 PRERELEASE...
Se eu fizer para o 7_0 vai ser o 7.0 atualizado ? pq a versao que est
ano ftp é de fevereiro de 2008, ja vai ter as atualizacoes do bind e
etc ?

Bom, aí fui recompilar o kernel desse 7.1... para por ipfw e etc.
Simplemente copiei o GENERIC para K1 e:

/usr/sbin/config K1...

Da o seguinte erro:
--
server# /usr/sbin/config K1
Kernel build directory is ../compile/K1
Don't forget to do ``make cleandepend  make depend''
server# cd ../compile/K1/
server# make cleandepend
rm -f .depend machine amd64
cd ../../../modules;
MAKEOBJDIRPREFIX=/usr/src/sys/i386/compile/K1/modules
KMODDIR=/boot/kernel MACHINE=i386
KERNBUILDDIR=/usr/src/sys/i386/compile/K1 make  cleandepend
=== aac (cleandepend)
rm -f @ machine amd64
rm -f .depend GPATH GRTAGS GSYMS GTAGS
=== accf_data (cleandepend)
rm -f @ machine amd64
rm -f .depend GPATH GRTAGS GSYMS GTAGS
=== accf_http (cleandepend)
rm -f @ machine amd64
rm -f .depend GPATH GRTAGS GSYMS GTAGS
=== acpi (cleandepend)
=== acpi/acpi (cleandepend)
Makefile, line 4: ACPI can only be compiled into the kernel on the
amd64 and ia64 platforms
*** Error code 1

Stop in /usr/src/sys/modules/acpi.
*** Error code 1

Stop in /usr/src/sys/modules.
*** Error code 1

Stop in /usr/src/sys/i386/compile/K1.
--

O arquivo do kernel esta abaixo :

cpu I686_CPU
ident   K1

options SCHED_ULE   # ULE scheduler
options PREEMPTION  # Enable kernel thread preemption
options INET# InterNETworking
options INET6   # IPv6 communications protocols
options SCTP# Stream Control Transmission Protocol
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_ACL # Support for access control lists
options UFS_DIRHASH # Improve performance on big directories
options UFS_GJOURNAL# Enable gjournal-based UFS journaling
options MD_ROOT # MD is a potential root device
options NFSCLIENT   # Network Filesystem Client
options NFSSERVER   # Network Filesystem Server
options NFSLOCKD# Network Lock Manager
options NFS_ROOT# NFS usable as /, requires NFSCLIENT
options MSDOSFS # MSDOS Filesystem
options CD9660  # ISO 9660 Filesystem
options PROCFS  # Process filesystem (requires PSEUDOFS)
options PSEUDOFS# Pseudo-filesystem framework
options GEOM_PART_GPT   # GUID Partition Tables.
options GEOM_LABEL  # Provides labelization
options COMPAT_43TTY# BSD 4.3 TTY compat [KEEP THIS!]
options COMPAT_FREEBSD4 # Compatible with FreeBSD4
options COMPAT_FREEBSD5 # Compatible with FreeBSD5
options COMPAT_FREEBSD6 # Compatible with FreeBSD6
options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI
options KTRACE  # ktrace(1) support
options STACK   # stack(9) support
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time
extensions
options KBD_INSTALL_CDEV# install a CDEV entry in /dev
options ADAPTIVE_GIANT  # Giant mutex is adaptive.
options STOP_NMI# Stop CPUS using NMI instead of IPI
options AUDIT   # Security event auditing
#optionsKDTRACE_HOOKS   # Kernel DTrace hooks

# To make an SMP kernel, the next two lines are needed
options SMP # Symmetric MultiProcessor Kernel
device  apic# I/O APIC

# CPU frequency control
device  cpufreq

# Bus support.

device  pci
# ATA and ATAPI devices
device  ata
device  atadisk # ATA disk drives
device  ataraid # ATA RAID drives
device  atapicd # ATAPI CDROM drives
device  atapifd # ATAPI floppy drives
device  atapist # ATAPI tape drives
options ATA_STATIC_ID   # Static device numbering

# SCSI Controllers
device  mpt # LSI-Logic MPT-Fusion

# SCSI peripherals
device  

Re: [FUG-BR] [Off Topic]OS Cluster

2008-09-27 Por tôpico Luis
Sergio,
Obrigado pela força vou ficar aguardando.

Eduardo
obrigado tbm...
link mto bom...
-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


[FUG-BR] Ajuda com ipfw

2008-09-27 Por tôpico Bandeira
O que acharam, ta bom? É para desktop.

ipfw add 200 allow ip from any to any via lo0
ipfw add 300 deny log logamount 1000 ip from any to 127.0.0.0/8
ipfw add 310 deny log logamount 1000 ip from 224.0.0.0/4 to any in
ipfw add 500 check-state
ipfw add 600 allow tcp from any to any established
ipfw add 700 allow tcp from any to any out keep-state
ipfw add 710 allow udp from any to any out keep-state
ipfw add 800 allow udp from any to any in frag
ipfw add 900 deny log tcp from any to any established in
ipfw add 1100 allow icmp from any to any icmptypes 0
ipfw add 1110 allow icmp from any to any
ipfw add 5100 allow tcp from any to any dst-port 53
ipfw add 5110 allow udp from any to any dst-port 53
ipfw add 5120 allow tcp from any to any dst-port 53 out keep-state
ipfw add 5130 allow udp from any to any dst-port 53 out keep-state
ipfw add 1 allow icmp from any to any icmptypes 3
ipfw add 10100 allow icmp from any to any icmptypes 4
ipfw add 10200 allow icmp from any to any icmptypes 8 out
ipfw add 10210 allow icmp from any to any icmptypes 0 in
ipfw add 10300 allow icmp from any to any icmptypes 11 in
ipfw add 65534 deny log logamount 1000 ip from any to any
ipfw add 65501 allow udp from me to any keep-state
ipfw add 65534 deny log ip from any to any
ipfw add 65535 allow ip from any to any

ipfw add 5150 allow tcp from any to any dst-port 16000
ipfw add 5200 allow tcp from any to any dst-port 32700
ipfw add 5300 allow tcp from any to any dst-port 32703
ipfw add 5400 allow tcp from any to any dst-port 32715
ipfw add 5500 allow tcp from any to any dst-port 51413
-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


Re: [FUG-BR] Ajuda com ipfw

2008-09-27 Por tôpico Bandeira
Uma duvida, tiro essa regra?

ipfw add 33300 deny icmp from any to me in icmptypes 8
-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


Re: [FUG-BR] Nova maquina 64, 7.0 ou 7.0cvsupado, ou 7.1 beta ? ERRO KERNEL

2008-09-27 Por tôpico Wanderson Tinti
Boa noite Leonardo.

 Parece que seu caminho é: /usr/src/sys/i386/conf. O correto seria
/usr/src/sys/amd64/conf.
 Já que a saida do seu comando uname -a mostra amd64.

Att,

2008/9/27 Leonardo Augusto [EMAIL PROTECTED]:
 Bom fiz com o RELENG_7 compilou tudo kernel GENERIC e reboot OK

 server# uname -a
 FreeBSD server.intervir.no-ip.org 7.1-PRERELEASE FreeBSD
 7.1-PRERELEASE #0: Sat Sep 27 03:50:43 UTC 2008
 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  amd64

 Como se nota esta no 7.1 PRERELEASE...
 Se eu fizer para o 7_0 vai ser o 7.0 atualizado ? pq a versao que est
 ano ftp é de fevereiro de 2008, ja vai ter as atualizacoes do bind e
 etc ?

 Bom, aí fui recompilar o kernel desse 7.1... para por ipfw e etc.
 Simplemente copiei o GENERIC para K1 e:

 /usr/sbin/config K1...

 Da o seguinte erro:
 --
 server# /usr/sbin/config K1
 Kernel build directory is ../compile/K1
 Don't forget to do ``make cleandepend  make depend''
 server# cd ../compile/K1/
 server# make cleandepend
 rm -f .depend machine amd64
 cd ../../../modules;
 MAKEOBJDIRPREFIX=/usr/src/sys/i386/compile/K1/modules
 KMODDIR=/boot/kernel MACHINE=i386
 KERNBUILDDIR=/usr/src/sys/i386/compile/K1 make  cleandepend
 === aac (cleandepend)
 rm -f @ machine amd64
 rm -f .depend GPATH GRTAGS GSYMS GTAGS
 === accf_data (cleandepend)
 rm -f @ machine amd64
 rm -f .depend GPATH GRTAGS GSYMS GTAGS
 === accf_http (cleandepend)
 rm -f @ machine amd64
 rm -f .depend GPATH GRTAGS GSYMS GTAGS
 === acpi (cleandepend)
 === acpi/acpi (cleandepend)
 Makefile, line 4: ACPI can only be compiled into the kernel on the
 amd64 and ia64 platforms
 *** Error code 1

 Stop in /usr/src/sys/modules/acpi.
 *** Error code 1

 Stop in /usr/src/sys/modules.
 *** Error code 1

 Stop in /usr/src/sys/i386/compile/K1.
 --

 O arquivo do kernel esta abaixo :

 cpu I686_CPU
 ident   K1

 options SCHED_ULE   # ULE scheduler
 options PREEMPTION  # Enable kernel thread preemption
 options INET# InterNETworking
 options INET6   # IPv6 communications protocols
 options SCTP# Stream Control Transmission Protocol
 options FFS # Berkeley Fast Filesystem
 options SOFTUPDATES # Enable FFS soft updates support
 options UFS_ACL # Support for access control lists
 options UFS_DIRHASH # Improve performance on big 
 directories
 options UFS_GJOURNAL# Enable gjournal-based UFS journaling
 options MD_ROOT # MD is a potential root device
 options NFSCLIENT   # Network Filesystem Client
 options NFSSERVER   # Network Filesystem Server
 options NFSLOCKD# Network Lock Manager
 options NFS_ROOT# NFS usable as /, requires NFSCLIENT
 options MSDOSFS # MSDOS Filesystem
 options CD9660  # ISO 9660 Filesystem
 options PROCFS  # Process filesystem (requires 
 PSEUDOFS)
 options PSEUDOFS# Pseudo-filesystem framework
 options GEOM_PART_GPT   # GUID Partition Tables.
 options GEOM_LABEL  # Provides labelization
 options COMPAT_43TTY# BSD 4.3 TTY compat [KEEP THIS!]
 options COMPAT_FREEBSD4 # Compatible with FreeBSD4
 options COMPAT_FREEBSD5 # Compatible with FreeBSD5
 options COMPAT_FREEBSD6 # Compatible with FreeBSD6
 options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI
 options KTRACE  # ktrace(1) support
 options STACK   # stack(9) support
 options SYSVSHM # SYSV-style shared memory
 options SYSVMSG # SYSV-style message queues
 options SYSVSEM # SYSV-style semaphores
 options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time
 extensions
 options KBD_INSTALL_CDEV# install a CDEV entry in /dev
 options ADAPTIVE_GIANT  # Giant mutex is adaptive.
 options STOP_NMI# Stop CPUS using NMI instead of IPI
 options AUDIT   # Security event auditing
 #optionsKDTRACE_HOOKS   # Kernel DTrace hooks

 # To make an SMP kernel, the next two lines are needed
 options SMP # Symmetric MultiProcessor Kernel
 device  apic# I/O APIC

 # CPU frequency control
 device  cpufreq

 # Bus support.

 device  pci
 # ATA and ATAPI devices
 device  ata
 device  atadisk # ATA disk drives
 device  ataraid # ATA RAID drives
 device   

Re: [FUG-BR] RES: Sendmail - /var/spool/clientmqueue - encheu o /VAR

2008-09-27 Por tôpico Felippe de Meirelles Motta
On Mon, 22 Sep 2008 23:18:28 -0300
Renato Frederick [EMAIL PROTECTED] wrote:

 Obrigado pela Informação Felippe! :)
 
 Será que isto já foi atualizado em ports tipo o qmail que colocam um
 NONE lá para desabilitar o serviço?

Renato,

Perdoe-me a demora, o tempo tá cada vez mais curto, hehe! Ótima
observacão você fez, e verificando aqui, ao menos o qmail ainda não foi
atualizado.

Se possível Renato, envie um email para seu chará, Renato Botelho (AKA
garga, garga at FreeBSD dot org) avisando-lhe deste detalhe, ou se
quiser, pode abrir um Problem Report no site oficial do Projeto.

Obrigado, abracos! :)

-- 
[EMAIL PROTECTED]
Felippe de Meirelles Motta
-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


Re: [FUG-BR] Ajuda com ipfw

2008-09-27 Por tôpico Bandeira
Ficou pior?

ipfw add 200 allow ip from any to any via lo0
ipfw add 300 deny log logamount 1000 ip from any to 127.0.0.0/8
ipfw add 310 deny log logamount 1000 ip from 224.0.0.0/4 to any in
ipfw add 500 check-state
ipfw add 600 allow tcp from any to any established
ipfw add 700 allow tcp from any to any out keep-state
ipfw add 710 allow udp from any to any out keep-state

ipfw add 800 deny all from any to any in frag

ipfw add 900 deny  tcp from any to any established in

ipfw add 5100 allow tcp from any to any dst-port 53
ipfw add 5110 allow udp from any to any dst-port 53

ipfw add 5150 allow tcp from any to any dst-port 16000
ipfw add 5200 allow tcp from any to any dst-port 32700
ipfw add 5300 allow tcp from any to any dst-port 32703
ipfw add 5400 allow tcp from any to any dst-port 32715
ipfw add 5500 allow tcp from any to any dst-port 51413

ipfw add 10200 allow icmp from any to any icmptypes 0 in
ipfw add 10210 deny icmp from any to any in
ipfw add 10220 allow icmp from any to any icmptypes 8 out
ipfw add 10230 deny icmp from any to any out

ipfw add 65501 allow udp from me to any keep-state
ipfw add 65534 deny all from any to any
-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


Re: [FUG-BR] VPN com PPTP

2008-09-27 Por tôpico Ciro Cardoso de Meneses
tenta usar o mpd4, ele cria tuneis pptp com facilidade

- Original Message - 
From: Fabiano Carlos Heringer [EMAIL PROTECTED]
To: Lista Brasileira de Discussão sobre FreeBSD (FUG-BR) 
freebsd@fug.com.br
Sent: Saturday, September 27, 2008 10:19 PM
Subject: [FUG-BR] VPN com PPTP


Pessoal, to tentando configurar uma VPN utilizando o PPTP, mas da o
seguinte erro:

Sep 28 21:03:30  ppp[45975]: Warning: Label /etc/ppp/ppp.conf rejected
-direct connection: Configuration label not found

ai vao meus arquivos:

 ppp.conf

pptpd:
 enable mschapv2 mppe
 set mppe 128 *
 enable proxy
 accept dns
 set dns 200.217.234.202
 allow mode direct
 set device localhost:pptpd
 set server /tmp/loop  0177


###options.pptpd
lock
name pptpd
proxyarp
bsdcomp 0
require-mschap-v2
require-mppe-128

###pptpd.conf
option /etc/ppp/ppp.conf
listen x.x.x.x
localip 10.0.1.1
remoteip 10.0.1.100-110
pidfile /var/run/pptpd.pid


Estou errando em algo? Instalei o poptop pelo ports, freebsd 7.0

abracos

-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


__ Informação do NOD32 IMON 3477 (20080927) __

Esta mensagem foi verificada pelo NOD32 sistema antivírus
http://www.eset.com.br


-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd