Re: what cpu type to use for a intel duo e6850 (i386 or amd64)

2007-10-05 Thread mario . lobo
> On Sat, 29 Sep 2007 16:03:05 +
> "Aryeh Friedman" <[EMAIL PROTECTED]> wrote:
>
>> I have more then 4gb and was wondering why it didn't all show up is
there anyway to do a in place upgrade (I have a lot of user
>> data)... also someone should think about changing the naming on the
iso/cpu types since 20 years of industry experience (15 with FreeBSD)
and reading hardware.txt did not give a clue on this.
>
> What's confusing?
>
> i386 is for 386 compatible processors - a 32-bit OS for 32-bit
> processors, which is therefore limited to 2^32 bytes (4GiB) without the
PAE workaround.
>
> amd64 is for AMD 64 compatible processors operated in 64-bit mode.
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"
>

A while back, when a bought my current machine (an Pentium(R) D CPU
3.20GHz Dual core) and was wondering which FreeBSD to install (i386 or
amd64), someone advised me that amd64 was better for servers. On a desktop
machine, i386 would be a better. As far as ports are concerned, this makes
sence since some (or a lot, I don't know) ports (nvidia driver is a
classic) do not compile on, or don't have versions for amd64.

So, I did an SMP/i386 install. I cannot say I regret it since everything
runs absolutely smooth and fast here.

On the tecnical side (not practical) was it correct to give up 64 bit
processing?

-- 
**
   //| //| Mario Lobo
  // |// | http://www.ipad.com.br
 //  //  |||  FreeBSD since 2.2.8 - 100% Rwindows-free
**




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


Re: what cpu type to use for a intel duo e6850 (i386 or amd64)

2007-10-05 Thread Mario Lobo
On Friday 05 October 2007, Matthew Seaman wrote:
> [EMAIL PROTECTED] wrote:
> > So, I did an SMP/i386 install. I cannot say I regret it since everything
> > runs absolutely smooth and fast here.
> >
> > On the tecnical side (not practical) was it correct to give up 64 bit
> > processing?
>
> This is a question to which there is no simple answer, other than
> 'It depends.'
>
> What it depends on are such things as:
>
>* software compatibility with 32 or 64 bit system
>
>* what application load you require
>
>* how large the disk and memory structures you're dealing with are
>
>* how much RAM you have
>
> You'll find that programs like databases that have to do large
> amounts of IO benefit greatly from being on a 64bit system,
> especially if that system is fully populated with memory and disks.
>
> On the other hand, really compute-intensive programs can often gain
> on a 32bit system by virtue of being able to fit more 32bit sized
> objects into cache RAM.
>
> Desktops tend to be run at 32bit because of software compatibility
> problems.  Machines with Nvidia graphics cards need to be 32bit in
> order to use the Nvidia accelerated graphics driver.
>
> As it is, for your server it seems that you have achieved that happy
> performance level of "fast enough."  Anything else is just gravy.
>
>   Cheers,
>
>   Matthew

I have both types running (dual-core servers as 64 and dual-core desktops at 
32). 

I was just curious as to what would happen if the roles were reversed. You 
sure cleared that up

Thanks for the confirmation !
-- 
**
   //| //| Mario Lobo
  // |// | http://www.ipad.com.br
 //  //  |||  FreeBSD since 2.2.8 - 100% Rwindows-free
**


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


Re: CPU usage 100% but no process hogging CPU

2007-10-28 Thread Mario Lobo
On Sunday 28 October 2007 10:38:36 Kris Kennaway wrote:
> Oh, you were going by the load average?  That is not a measure of system
> performance, it only shows how many processes are running.
>
> Anyway, glad you resolved it to your satisfaction.
>
> Kris
>

What would be the proper way to measure system performance/load then ?

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Memory problem

2007-11-07 Thread Mario Lobo
On Wednesday 07 November 2007, Erik Trulsson wrote:
> On Wed, Nov 07, 2007 at 11:39:55AM -0300, Mario Lobo wrote:
> > Hello;
> >
> > I'm running a qmailrocks install + DNS server here. Hosting 14 domains
> > and their respective e-mail accounts. Everything seems to be working
> > fine.
> >
> > The machine is:
> >
> > --
> > FreeBSD 6.2-STABLE #0: Mon Sep 10 14:15:16 BRT 2007
> > CPU: Intel(R) Core(TM)2 CPU  6700  @ 2.66GHz (2669.94-MHz K8-class CPU)
> >   Origin = "GenuineIntel"  Id = 0x6f6  Stepping = 6
> >   Cores per package: 2
> > real memory  = 3488481280 (3326 MB)
> > avail memory = 3362598912 (3206 MB)
> > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
> >  cpu0 (BSP): APIC ID:  0
> >  cpu1 (AP): APIC ID:  1
> > --
> >
> > When I turn the machine on/restart it, it starts off with around 2800 Mb
> > free memory. I know that, in its course of work, a few of those processes
> > do not properly return memory back to the system. The machine was last
> > restarted exactly a week ago (last wednesday). Now 'top' shows me this:
> >
> > --
> > last pid: 17204;  load averages:  0.00,  0.04,  0.06   up 5+21:00:50 
> > 11:18:58 135 processes: 1 running, 132 sleeping, 2 zombie
> > CPU states:  0.6% user,  0.0% nice,  0.4% system,  0.2% interrupt, 98.9%
> > idle Mem: 379M Active, 1915M Inact, 256M Wired, 119M Cache, 214M Buf,
> > 415M Free Swap: 5120M Total, 5120M Free
> > --
> >
> > Here are my questions:
> >
> > Is this a "normal thing" to happen with memory in just one week?
>
> Yes, it is normal and nothing to worry about.
>
> > Does the  '1915M Inact'  means "zombie memory" (non-returned)?
>
> No.  'Inact[ive]', 'Cache' and 'Free' can all be considered free memory in
> slighly different states.
> There are differences between them that can be important in some
> circumstances, but if you are just trying to determine if you have a memory
> leak somewhere they can be lumped together,
>
> > Is there a manual garbage collector i could run?
>
> No.
>
> > What is your advise on what method I could use to precisely track down
> > what program(s) is(are) causing this?
>
> My advice is that you ignore it.  It is nothing to worry about.

Ok. Thanks Erik ! Pitty the majordomo cut out the .png file I sent.

> I have seen memory "eaten up" by running anti-virus and mail scanning 
> software particularly if you are not bouncing spam.  I would check your 
> spam handling.
>
>         -Derek

Derek, what exactly do you suggest that I should check in the spam handling 
area ?

-- 
**
   //| //| Mario Lobo
  // |// | http://www.ipad.com.br
 //  //  |||  FreeBSD since 2.2.8 - 100% Rwindows-free
**


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


Memory problem

2007-11-07 Thread Mario Lobo
Hello;

I'm running a qmailrocks install + DNS server here. Hosting 14 domains and 
their respective e-mail accounts. Everything seems to be working fine.

The machine is:

--
FreeBSD 6.2-STABLE #0: Mon Sep 10 14:15:16 BRT 2007
CPU: Intel(R) Core(TM)2 CPU  6700  @ 2.66GHz (2669.94-MHz K8-class CPU)
  Origin = "GenuineIntel"  Id = 0x6f6  Stepping = 6
  Cores per package: 2
real memory  = 3488481280 (3326 MB)
avail memory = 3362598912 (3206 MB)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
--

When I turn the machine on/restart it, it starts off with around 2800 Mb free 
memory. I know that, in its course of work, a few of those processes do not 
properly return memory back to the system. The machine was last restarted 
exactly a week ago (last wednesday). Now 'top' shows me this:

--
last pid: 17204;  load averages:  0.00,  0.04,  0.06   up 5+21:00:50  11:18:58
135 processes: 1 running, 132 sleeping, 2 zombie
CPU states:  0.6% user,  0.0% nice,  0.4% system,  0.2% interrupt, 98.9% idle
Mem: 379M Active, 1915M Inact, 256M Wired, 119M Cache, 214M Buf, 415M Free
Swap: 5120M Total, 5120M Free
--

Here are my questions:

Is this a "normal thing" to happen with memory in just one week?
Does the  '1915M Inact'  means "zombie memory" (non-returned)?
Is there a manual garbage collector i could run?
What is your advise on what method I could use to precisely track down what 
program(s) is(are) causing this?

I am attaching a png graphic of this.

Thanks,

-- 
******
   //| //| Mario Lobo
  // |// | http://www.ipad.com.br
 //  //  |||  FreeBSD since 2.2.8 - 100% Rwindows-free
**


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

Re: About Freebsd 7.0 versus 6.3

2007-11-08 Thread Mario Lobo
On Thursday 08 November 2007, Aryeh Friedman wrote:
> On Nov 8, 2007 11:55 AM, Expresso Digital ISP <[EMAIL PROTECTED]> wrote:
> > Hi, my name is Cesar.
> >
> > I'd like to know what is the diference between 7.0 and 6.3 and why create
> > a newest version and after old version.
>
> 6.X is the last of versions meant primarilly for single processing
> machines (with some after thought payed to multiprocessing).
>
> 7.X is the beginning of the versions specifically designed with
> multiprocessing/cores in mind
>
> Under the hood many things have been changed improved in 7 the
> offical recommendation is 6.3 is for people who can *NOT* upgrade to 7
> for whatever reason and everyone else should use 7... note as far most
> people can tell there is no "easy" way to upgrade to 7 if you have 6
> installed so you should start with 7
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"

Concerning this, I've "cvsuping" to 6-CURRENT on a dual-core desktop. The 
system is running well, but I'd really like to move up to 7. Can it be done 
through cvsup from 6.2-STABLE to 7-CURRENT or is it "wiser" to install from 
scratch? any upgrade gotchas/procedure ? I searched the web and the only 
reference I found was:

http://people.freebsd.org/~rse/upgrade/freebsd-upgrade-6x-7x.txt

which states:

"ATTENTION: THIS UPGRADE PROCEDURE MIGHT NOT WORK FOR YOU AS YOUR
ENVIRONMENT IS DIFFERENT. ALSO, THIS UPGRADE PROCEDURES MIGHT DESTROY
YOUR SYSTEM AND YOU POTENTIALLY MIGHT LOOSE DATA. NO WARRANTY AT ALL.
USE IT AT YOUR OWN RISK!"

The procedure is far from a regular source upgrade (like the one noted in 
UPDATING from 5x -> 6x), hence, my doubts.

Also, concerning this statement

> 7.X is the beginning of the versions specifically designed with
> multiprocessing/cores in mind

Does this mean that 6.x will perform better on single cpu systems?

-- 
Mario Lobo
Segurança de Redes - Desenvolvimento e Análise
IPAD - Instituto de Pesquisa e Apoio ao Desenvolvimento Tecnológico e 
Científico


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


Re: About Freebsd 7.0 versus 6.3

2007-11-08 Thread Mario Lobo
On Thursday 08 November 2007, Roland Smith wrote:
> On Thu, Nov 08, 2007 at 02:48:47PM -0300, Mario Lobo wrote:
> > Concerning this, I've "cvsuping" to 6-CURRENT on a dual-core desktop. The
> > system is running well, but I'd really like to move up to 7. Can it be
> > done through cvsup from 6.2-STABLE to 7-CURRENT or is it "wiser" to
> > install from scratch? any upgrade gotchas/procedure ?
>
> It _can_ be done. (I've done it).
>
> First, make a list of all your ports (portmaster -L works fine for
> that). Then csup to RELENG_7. Then follow the instructions from
> /usr/src/Makefile (the bit about 'upgrade their source'). I've outlined
> the process below, with my own additions marked with lowercase letters
>
>
>  a.  Make backups
>  b.  Read /usr/src/UPDATING
>  1.  `cd /usr/src'   (or to the directory containing your source tree).
>  2.  `make buildworld'
>  3.  `make buildkernel KERNCONF=YOUR_KERNEL_HERE' (default is GENERIC).
>  4.  `make installkernel KERNCONF=YOUR_KERNEL_HERE'   (default is GENERIC).
>   [steps 3. & 4. can be combined by using the "kernel" target]
>  5.  `reboot'(in single user mode: boot -s from the loader prompt).
>  6.  `mergemaster -p'
>  7.  `make installworld'
>  8.  `make delete-old'
>  9.  `mergemaster'
> 10.  `reboot'
>  c. `pkg_delete -a' (delete all your ports)
> 11.  `make delete-old-libs' (in case no 3rd party program uses them
> anymore) d.  Reinstall all root and leaf ports. Dependencies will then be
>  installed automatically.
>
> Roland

Wow ! Thanks, Roland !! Just what I needed. 
One last question.
You said "csup to RELENG_7". I use cvsup so should my tag be 7-RELENG ?

-- 
Mario Lobo
Segurança de Redes - Desenvolvimento e Análise
IPAD - Instituto de Pesquisa e Apoio ao Desenvolvimento Tecnológico e 
Científico


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


Re: (no subject)

2007-11-21 Thread Mario Lobo
On Wednesday 21 November 2007, tusar kumar wrote:
> hi
>i want to know how can i assembly laptop. i want a video copy
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"

Ahahahahah !

Sorry guys. That was really funny !

-- 
Mario Lobo
Segurança de Redes - Desenvolvimento e Análise
IPAD - Instituto de Pesquisa e Apoio ao Desenvolvimento Tecnológico e 
Científico


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


Re: (no subject)

2007-11-21 Thread Mario Lobo
On Wednesday 21 November 2007, Gerard wrote:
> > On November 21, 2007 at 07:11AM Mario Lobo wrote:
> >
> > On Wednesday 21 November 2007, tusar kumar wrote:
> > > hi
> > >i want to know how can i assembly laptop. i want a video copy
> >
> > Ahahahahah !
> >
> > Sorry guys. That was really funny !
>
> You did notice his email address I assume.

I know, I know.. I saw it. 
I presume he meant "I would like to know how to install FreeBSD on a laptop. 
Do you have a how-to video?"

I wasn't making fun OF him but the possibility that he really meant  "assemble 
a laptop" sounded funny, to me at least.

-- 
Mario Lobo
Segurança de Redes - Desenvolvimento e Análise
IPAD - Instituto de Pesquisa e Apoio ao Desenvolvimento Tecnológico e 
Científico


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


Re: (no subject)

2007-11-21 Thread Mario Lobo
On Wednesday 21 November 2007, Jerry McAllister wrote:
> On Wed, Nov 21, 2007 at 09:11:28AM -0300, Mario Lobo wrote:
> > On Wednesday 21 November 2007, tusar kumar wrote:
> > > hi
> > >i want to know how can i assembly laptop. i want a video copy
> > > ___
> > > freebsd-questions@freebsd.org mailing list
> > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > > To unsubscribe, send any mail to
> > > "[EMAIL PROTECTED]"
> >
> > Ahahahahah !
> >
> > Sorry guys. That was really funny !
>
> What was so funny??
> I couldn't understand the question.
> But, difficulty with the language is not something to laugh at.
>
> jerry
>
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"

Like I said before,

I presume he meant "I would like to know how to install FreeBSD on a laptop. 
Would you have a how-to video?"

I wasn't making fun OF him but the possibility, the image of,  that he really 
meant  "assemble a laptop" sounded funny, that's ALL. Nothing else!.

English is a foreign language for me one day. I am not a native english 
speaker. When I was learning english during my 6 months of exchange student 
in a Pendlenton high school in Indiana back in 1975, I knew people would make 
fun of me. I EXPECTED that !. Among teenagers there is no politness. If you 
say something that sounds funny to them, they will laugh at you in a split 
second. No second thoughts about it. I had to accept my mistakes and laugh 
about them too, otherwise I would go nuts. And their laughs caused me no 
trauma at all.

Being a foreign student from Brasil in a 400 people town in those days was 
almost like being from mars. I went to an elementry school where the students 
were assembled to hear me talk about my country. And I sttod up and said:
"In Brasil we have lots of soccer championSHITS". All the kids broke into a 
roaring laughter. I was a little embarassed at first. I didn't know what I 
said wrong. As soon as someone told me what I said, I joined the kids.

I did not expect my microscopic comment to offend anyone. I sincerelly 
apologize and I swear that will never ever post an out-of-freebsd-subject 
comment again.

I sure hope I can end this thread with this.

thanks,
-- 
Mario Lobo
Segurança de Redes - Desenvolvimento e Análise
IPAD - Instituto de Pesquisa e Apoio ao Desenvolvimento Tecnológico e 
Científico


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


Re: flash9 checklist

2008-11-03 Thread Mario Lobo
ize the plugin.
>
> Yeah I forgot to note that you want to run nspluginwrapper -i
> as the user that will run the native browser, not as root, then the
> wrapper will go into ~/.mozilla/plugins/...
>
> >  After that
> >Youtube, google video, and google maps (incl. street view) work fine,
> >but slow.  A friend of mine with a very similar setup was not so lucky
> >and still has problems with flash9 locking up FF.
>
>  Hmm, lockups I haven't seen yet here.
>
>  HTH,
>   Juergen
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"

It works almost perfectly for me ! Thanks for this, Juergen !.

I had to say "almost perfectly" because in myspace, for instance, it takes a 
while for the "flashies" to start. One thing I noticed is that if I terminate 
FF, npviewer.bin remains loaded and I have to kill it.

Here is what I've got:

CPU: Intel(R) Pentium(R) D CPU 3.20GHz (3199.66-MHz 686-class CPU)
real memory  = 2146304000 (2046 MB)
nvidia0:  on vgapci0
FreeBSD 7.1-PRERELEASE #3: Wed Oct 29 18:37:07 BRT 2008 (i386)

kern.ipc.shmmax: 33554432  -> 1036870912
kern.ipc.shmall: 8192  -> 261072
compat.linux.osrelease: 2.4.2  -> 2.6.16

firefox-3.0.3,1 AND 2.0.0.17 (both work!)
linux_base-fc-4_10
nspluginwrapper-1.0.0
linux-flashplugin-9.0r124_2

The mtv site worked fine all the way !! Great oldie stuff !

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Qemu network question

2008-11-03 Thread Mario Lobo
Hi:

Please use a fixed font to see the diagram bellow:


   FBSD HOST(7.1-PRERELEASE)
  +-+
  |10.10.10.1   | 
 LAN -+- re0| 
  | | 
  |+-+  |
  +---++tap0 |  |  
  |  +++tap1 |  | 
  |  ||+-+  |  
  |  ||bridge0  |  (if_bridge)
  |  || 192.168.100.254 |  
  |  |+-+
  |  |
  |  |  QEMU GUEST 1 (linux Fedora core 5)
  |  |   +-+
  |  |   | |
  |  +---+ eth0| 
  |  | 192.168.100.1   | 
  |  | | 
  |  +-+ 
  | QEMU GUEST 2  (windows XP)
  |  +-+
  |  | |
  +--+--- realtek  | 
 | 192.168.100.2   | 
 | | 
 +-+ 

It's working like a charm ! 

I turned my FBSD desktop into a router/gateway, put pf to nat everything and 
set up an independent smb server on the host. Pings travel on any direction!. 
The guests have access to ALL the host's files and vice versa, BOTH guests 
have internet access and best of all, I can access the linux guest through an 
ssh shell and the windows guest through vncviewer, and, of course, the 2 
guests see each other ! Imagine how happy I am !

I tried this without turning my desktop into a gateway. The guests had 
internet access but the host was invisible to them and I got tired of trying 
to make qemu's -smb option work, so I adapted this "a-bit radical" approach I 
saw on a how-to for Sun OS I found on the net.

I'm really impressed with qemu performance !. I´ve compiled kernels, built 
RPMs and the reduction in performance from doing these things in a separate 
machine is really endurable.

My question is: If I don't put re0 into promiscous mode, all of this falls 
apart ! The network goes totally down for the host<->guests, but the host 
retains its internet conectivity. I discovered that by chance! I was trying 
to find out what was happening with conectivity so I tried pinging the host 
from the linux guest. As soon as I started tcpdump on the host, the pings 
went through so I found out what I needed from there.

Is this normal or is there something wrong with my NIC? setup?

Thanks,
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: flash9 checklist

2008-11-04 Thread Mario Lobo

> Mario try linux_base_fc7 it should stop the freezing. but myself I m having
> issues with audio and can't figure out why.
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"

Matt :

I have no audio issues.

I have linux_base_fc4 and I just installed linux_base_fc7. How do I disable 
fc4 and enable fc7??

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: flash9 checklist

2008-11-04 Thread Mario Lobo
On Tuesday 04 November 2008 19:10:55 matt donovan wrote:
> On Tue, Nov 4, 2008 at 5:05 PM, Mario Lobo <[EMAIL PROTECTED]> wrote:
> > > Mario try linux_base_fc7 it should stop the freezing. but myself I m
> >
> > having
> >
> > > issues with audio and can't figure out why.
> > > ___
> > > freebsd-questions@freebsd.org mailing list
> > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > > To unsubscribe, send any mail to
> > > "[EMAIL PROTECTED]"
> >
> > Matt :
> >
> > I have no audio issues.
> >
> > I have linux_base_fc4 and I just installed linux_base_fc7. How do I
> > disable fc4 and enable fc7??
> >
> > --
> > Mario Lobo
> > http://www.mallavoodoo.com.br
> > FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows
> > FREE) ___
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "
> > [EMAIL PROTECTED]"
>
> they get installed in the same place, but you need fc4 for ports still so I
> would keep it installed just so that the ports will think you have it in
> use. They will still work though

Do I have to recompile the flash plugin with OVERRIDE_LINUX_BASE_PORT=fc7? How 
do I know which fc the pligin is using?

Thanks for helping, Matt  !

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: flash9 checklist

2008-11-04 Thread Mario Lobo
On Tuesday 04 November 2008 19:26:56 matt donovan wrote:
> On Tue, Nov 4, 2008 at 5:17 PM, Mario Lobo <[EMAIL PROTECTED]> wrote:
> > On Tuesday 04 November 2008 19:10:55 matt donovan wrote:
> > > On Tue, Nov 4, 2008 at 5:05 PM, Mario Lobo <[EMAIL PROTECTED]> wrote:
> > > > > Mario try linux_base_fc7 it should stop the freezing. but myself I
> > > > > m
> > > >
> > > > having
> > > >
> > > > > issues with audio and can't figure out why.
> > > > > ___
> > > > > freebsd-questions@freebsd.org mailing list
> > > > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > > > > To unsubscribe, send any mail to
> > > > > "[EMAIL PROTECTED]"
> > > >
> > > > Matt :
> > > >
> > > > I have no audio issues.
> > > >
> > > > I have linux_base_fc4 and I just installed linux_base_fc7. How do I
> > > > disable fc4 and enable fc7??
> > > >
> > > > --
> > > > Mario Lobo
> > > > http://www.mallavoodoo.com.br
> > > > FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows
> > > > FREE) ___
> > > > freebsd-questions@freebsd.org mailing list
> > > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > > > To unsubscribe, send any mail to "
> > > > [EMAIL PROTECTED]"
> > >
> > > they get installed in the same place, but you need fc4 for ports still
> > > so
> >
> > I
> >
> > > would keep it installed just so that the ports will think you have it
> > > in use. They will still work though
> >
> > Do I have to recompile the flash plugin with
> > OVERRIDE_LINUX_BASE_PORT=fc7? How
> > do I know which fc the pligin is using?
> >
> > Thanks for helping, Matt  !
> >
> > --
> > Mario Lobo
> > http://www.mallavoodoo.com.br
> > FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows
> > FREE)
>
> you shouldn't have to but it wouldn't hurt. since if you mess that up you
> can just uninstall and reinstall flash9 as usual

Now i'm having audio issues ! no sound at all :-(. 

I'll revert to fc4 for now. At least the slow downs/freezes were random.

Thanks Matt !
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: auto-addm new tap device to existing bridge ...

2008-11-23 Thread Mario Lobo
On Sunday 23 November 2008 02:22:02 Marc G. Fournier wrote:
> Is this possible?
>
> I'm using qemu, and when I start it up, it auto-create a tap device if one
> isn't available ... but, having that tap device not attached to the bridge
> that does exist doesn't help much ... if there some flag I can set, or
> sysctl value, that will have the new tap device attach itself to an
> existing bridge device?
>
> thanks ...

in /etc/rc.conf, add:

autobridge_interfaces="bridge0"   <-- whatever you called your bridge
autobridge_bridge0="tap0 tap1 [tapn..]"
cloned_interfaces="bridge0"

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: auto-addm new tap device to existing bridge ...

2008-11-23 Thread Mario Lobo
On Sunday 23 November 2008 02:22:02 Marc G. Fournier wrote:
> Is this possible?
>
> I'm using qemu, and when I start it up, it auto-create a tap device if one
> isn't available ... but, having that tap device not attached to the bridge
> that does exist doesn't help much ... if there some flag I can set, or
> sysctl value, that will have the new tap device attach itself to an
> existing bridge device?
>
> thanks ...

in /etc/rc.conf, add:

autobridge_interfaces="bridge0"   <-- whatever you called your bridge
autobridge_bridge0="tap0 tap1 [tapn..]"
cloned_interfaces="bridge0"

forgot to add this:

Create a qemu-ifup script like this:

#!/usr/local/bin/bash
# qemu-ifup
/sbin/ifconfig $1 up
TEST=`ifconfig -a | grep member | grep $1`
if [ "$TEST" == "" ]; then
   /sbin/ifconfig bridge0 addm $1
fi

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: tap interface problem

2009-09-27 Thread Mario Lobo
On Sunday 27 September 2009 16:13:38 Sébastien Serre wrote:
> On Sunday 27 September 2009 18:17:22 Sébastien Serre wrote:
> > Hello, I hope somebody here known well tap interfaces on freebsd :).
> >
> > I try to configure virtualbox with bridge interface. Everything seams ok:
> > # ifconfig tap0
> >
> > tap0: flags=8943 metric 0
> >  mtu 1500
> > ether 00:bd:4f:0a:00:00
> > inet 192.168.0.1 netmask 0xff00 broadcast 192.168.0.255
> >
> > # ls -l /dev/tap0
> > crw-rw-rw-  1 root  wheel0, 109 Sep 27 16:54 /dev/tap0
> >
> > The problem is that nothing pass in the tap0 interface. tcpdump does not
> >  show any traffic when I try to connect a machine on the 192.168 network.
> > I can ping the interface address (192.168.0.1). But without with the use
> > of the tap itself (use of lo0):
> >
> > # route -n get 192.168.0.1
> >route to: 192.168.0.1
> > destination: 192.168.0.1
> >   interface: lo0
> >   flags: 
> >  recvpipe  sendpipe  ssthresh  rtt,msecrttvar  hopcount  mtu
> > expire
> >0 0 0 0 0 0 16384
> >   0
> >
> >
> > Then i have a tap interface up, but i can't pass to it any traffic.
> > Does anybody have a suggestion, or know some debugging tools to show what
> > append?
> >
> > Thanks
> >
> > Sebovick
> > ___
> > 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"
> 
> Me again,
> 
> I can now listen something on tap0:
> 
> # tcpdump -i tap0
> tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
> listening on tap0, link-type EN10MB (Ethernet), capture size 96 bytes
> 21:08:22.668835 arp who-has 192.168.0.1 tell 192.168.0.101
> 21:08:23.668526 arp who-has 192.168.0.1 tell 192.168.0.101
> 21:08:24.668272 arp who-has 192.168.0.1 tell 192.168.0.101
> 21:08:25.671499 arp who-has 192.168.0.1 tell 192.168.0.101
> 
> 192.168.0.101 is my virtual machine trying to ping the host address of the
>  tap interface. The host did not reply.
> When I try to ping the guest from the host, tcpdump stay silent.
> 
> So the tap interface is ok for the guest, but the host don't know how to
>  talk against tap. Any idea?
> ___
> 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"
> 
 is the brige0 interface up too? 
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE)
___
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"


Re: ASUS M4A78T-E Motherboard

2009-10-11 Thread Mario Lobo
On Saturday 10 October 2009 22:51:49 Bryan Cassidy wrote:
> Hi, I am in the process of building a new PC and I am building this
> machine (one of three... second will be OpenBSD Firewall for FreeBSD and a
> third one for Windows.. you know games and all that stuff) and I am
>  wondering if I will have any problems with this motherboard amd its
>  chipset. North Bridge is AMD 790GX and South Bridge is AMD SB750. it comes
>  with a VIA VT1708S onboard soundcard and the handbook states the VIA
>  VT1708 is supported so I am hoping it is the case with this one. Second,
>  ATI Radeon HD 3300 onboard video. I keep coming up with info that states
>  it is suppported and last is the Atheros L1E onboard LAN card.
> 
> I will give you a rundown of what I want to do and maybe I can get some
>  advice on hardware and how I approach this. I mainly use FreeBSD for my
>  daily machine because I just enjoy using FreeBSD and it is just what I
>  need for a day to day use. I have a 23" LCD right now hookup via VGA on my
>  laptop and when the machine I am building is done I would like to run a
>  triple LCD setup. I've always wanted to run OpenBSD as a firewall and so I
>  would like to build a basic machine with no sound, and no video to serve
>  this purpose. I would like to also run Apache and run my own website. The
>  third machine for Windows I might just partition one of my hard drives (I
>  will be getting 3 Seagate Barracuda LP ST32000542AS 2TB hard drives. Total
>  6 TBs.) and put Windows on it and just by another video card for extreme
>  gaming or something. I am kinda new to building my own PC so some opinions
>  on this would be greatly appreciated.
> 
> Also, as a side note, the specs above would be just to get it started and I
> would eventually add my own PCI NIC card, PCI sound, and PCI Video card.
>  Any and all thoughts are welcome. Thanks for any help.
> 
> hoping that everything will work out of box with FreeBSD.
> 
> ___
> 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"
> 

Hi Bryan;

I think I have exactly the same MoBo. ASRock  AOD790GX. I am running FreeBSD 
8.0 RC1 amd64 and everything is working fine here. I use it as my desktop.

I've got it dual booting with XP because I need it for my Audio projects. I 
have an extra PCI sound card on it because of its MIDI port. In fact I use it 
as my main sound output on FreeBSD. I also have another sound card but FreeBSD 
doesnt have drivers for It but I only use it in XP anyway.


-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE)
___
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"


Re: Anybody is using VirtualBox?

2009-10-25 Thread Mario Lobo
On Sunday 25 October 2009 07:15:50 henter2009 wrote:
> Hi!
> 
> I'm using 7.4 STABLE amd64, and i was not able to run it as well... from
> source, or even from packages...
> It keeps giving me the same error as you, btw I have been pointed in the
> past to one small fix, (that did not work from me as well) but did for
> others, let me find out this solution and re-posted for you!
> 
> cheers!
> 
> Yuri-10 wrote:
> > I am tryingto run Windows under FreeBSD.
> >
> > When I run:
> > cat /dev/ad1s1 | VBoxManage stdin OutPutFile.vdi 21474836480
> > on 80-RC2 I get this output:
> > ERROR: failed to create the VirtualBox object!
> > ERROR: code NS_ERROR_ABORT (0x80004004) - Operation aborted (extended
> > info not available)
> > Most likely, the VirtualBox COM server is not running or failed to start.
> >
> > No processes with name VirtualBox are running.
> >
> > What could be the problem?
> > Yuri
> >
> > ___
> > 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"
> 
> -
>   _
> ASCII ribbon campaign   ( )
>  against HTML e-mail  X
>  / \
> 

This error sounds as if the /proc file system isn't mounted.
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE)
___
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"


Re: win 7 dual boot

2009-10-28 Thread Mario Lobo
On Tuesday 27 October 2009 23:11:15 Aryeh M. Friedman wrote:
> Completely side question I use sysutils/fusefs-ntfs to mount my vista
> partition do I need to change anything in my /etc/rc.d/* hierachy and/or
> /etc/fstab  after installing win 7 (I use a direct call to ntfs-3g
> instead of via the mount patch [which doesn't work on 8.0-XXX it seems
> {I am on RC2 right now}]?

I have FreeBSD papi 8.0-RC1 and fusefs works perfectly via mount & fstab.

Did you replace the original mount_ntfs with ntfs-3g like bellow?

cd /sbin
mv -f mount_ntfs mount_ntfs-kern
ln -s /usr/local/bin/ntfs-3g mount_ntfs


After that, any call to mount_ntfs will grant RW to the disk.


-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE)
___
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"


Tunning 8.0 for multiple VMs (VBox)

2009-11-24 Thread Mario Lobo
Hi to all;

I have a system where I will be running 5 VBox VMs (3 W2K3, 1 XP & 1 Linux) 
for a lab simulation (work obligations). I have already ran the 5 VMs with a 
regular load on each and everything went fine. I think VBox is truly a great 
VM Manager, and it runs better (smoother and faster) in FBSD than in any other 
OS I tried it (Ubuntu, Winblows and OpenSolaris (!) ). 

Along the years, I've been running FBSD, picking up info from any "Tuning  
FreeBSD" guide I could find, starting with the handbook of course, going 
through articles and mailing list archives, trying to find a balance that 
would fit my desktop, among the several roles FreeBSD is used for.

I would like to expose the hardware/settings I have now to the list, to see if 
what I've done is appropriate, over or under rated (or simply stupid), to 
squeeze every drop of performance FreeBSD can give with what I have. It is 
pretty fast as it is but it never hurts attempting to make it even better. 

Please bear 2 things in mind:
1) I am trying to learn here; 
2) This is a Desktop machine (not a server!), sitting on my home LAN, behind a 
properly configured (again, to the best of my modest ability) firewall. It is 
used for everyday tasks, plus developing and music production.

I am posting what I believe to be most relevant. 

Thank you all before hand for any advice. Here it goes:

[Machine]

FreeBSD 8.0-PRERELEASE #0 r198930M: Sat Nov 21 14:24:10 BRT 2009 
CPU: AMD Phenom(tm) II X4 955 Processor (3193.08-MHz K8-class CPU)
  on cpu0
 cpu1:  on acpi0
 cpu2:  on acpi0
 cpu3:  on acpi0
MB:  AOD790GX/128M
RAM: real mem = 8589934592 (8192 MB) avail mem = 7994658816 (7624 MB) 
VIDEO: on vgapci0
NET:   (yeah, i know...)
HD1: 476940MB  at ata2-master SATA300
HD2: 476940MB  at ata3-master SATA300

[loader.conf]

verbose_loading="YES"
amdtemp_load="YES"
drm_load="YES"
radeon_load="YES"
linux_load="YES"
vboxdrv_load="YES"
# vboxnetflt and #vboxnetadp loaded later
snd_cmi_load="YES"
atapicam_load="YES"
cpufreq_load="YES"

[rc.conf]

background_fsck="NO"
check_quotas="NO"
clear_tmp_enable="YES"
compat4x_enable="YES"
compat5x_enable="YES"
compat6x_enable="YES"
compat7x_enable="YES"
kern_securelevel_enable="NO"
tcp_extensions="YES"
defaultrouter="10.10.10.1"
hostname="me"
gateway_enable="NO"
ifconfig_re0="inet 10.10.10.2  netmask 255.255.255.0"
linux_enable="YES"
inetd_enable="NO"
sendmail_enable="NONE"
sshd_enable="YES"
smbd_enable="YES"
usbd_enable="YES"
cupsd_enable="YES"
fusefs_enable="YES"
fusefs_safe="YES"
hald_enable="YES"
dbus_enable="YES"
powerd_enable="YES"
# powerd_flags="-i 92 -r 65 -p 200"
powerd_flags="-p 200"
font8x8="cp850-8x8"
font8x14="cp850-8x14"
font8x16="cp850-8x16"
keymap="br275.iso.acc.kbd"

[sysctl.conf]

debug.cpufreq.lowest=1250
vfs.read_max=32
kern.maxvnodes=40
kern.maxfiles=65536
kern.maxfilesperproc=32768
kern.ipc.maxsockbuf=524288
kern.module_path=/boot/kernel;/boot/modules;/usr/local/modules
compat.linux.osrelease=2.6.16
kern.ipc.shmmax=1036870912
kern.ipc.shmall=261072


Thanks,

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winfoes FREE)
___
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"


Tunning 8.0 for multiple VMs (VBox)

2009-11-25 Thread Mario Lobo
Hi to all;

I have a system where I will be running 5 VBox VMs (3 W2K3, 1 XP & 1 Linux) 
for a lab simulation (work obligations). I have already ran the 5 VMs with a 
regular load on each and everything went fine. I think VBox is truly a great 
VM Manager, and it runs better (smoother and faster) in FBSD than in any other 
OS I tried it (Ubuntu, Winblows and OpenSolaris (!) ). 

Along the years, I've been running FBSD, picking up info from any "Tuning  
FreeBSD" guide I could find, starting with the handbook of course, going 
through articles and mailing list archives, trying to find a balance that 
would fit my desktop, among the several roles FreeBSD is used for.

I would like to expose the hardware/settings I have now to the list, to see if 
what I've done is appropriate, over or under rated (or simply stupid), to 
squeeze every drop of performance FreeBSD can give with what I have. It is 
pretty fast as it is but it never hurts attempting to make it even better. 

Please bear 2 things in mind:
1) I am trying to learn here; 
2) This is a Desktop machine (not a server!), sitting on my home LAN, behind a 
properly configured (again, to the best of my modest ability) firewall. It is 
used for everyday tasks, plus developing and music production.

I am posting what I believe to be most relevant. 

Thank you all before hand for any advice. Here it goes:

[Machine]

FreeBSD 8.0-PRERELEASE #0 r198930M: Sat Nov 21 14:24:10 BRT 2009 
CPU: AMD Phenom(tm) II X4 955 Processor (3193.08-MHz K8-class CPU)
  on cpu0
 cpu1:  on acpi0
 cpu2:  on acpi0
 cpu3:  on acpi0
MB:  AOD790GX/128M
RAM: real mem = 8589934592 (8192 MB) avail mem = 7994658816 (7624 MB) 
VIDEO: on vgapci0
NET:   (yeah, i know...)
HD1: 476940MB  at ata2-master SATA300
HD2: 476940MB  at ata3-master SATA300

[loader.conf]

verbose_loading="YES"
amdtemp_load="YES"
drm_load="YES"
radeon_load="YES"
linux_load="YES"
vboxdrv_load="YES"
# vboxnetflt and #vboxnetadp loaded later
snd_cmi_load="YES"
atapicam_load="YES"
cpufreq_load="YES"

[rc.conf]

background_fsck="NO"
check_quotas="NO"
clear_tmp_enable="YES"
compat4x_enable="YES"
compat5x_enable="YES"
compat6x_enable="YES"
compat7x_enable="YES"
kern_securelevel_enable="NO"
tcp_extensions="YES"
defaultrouter="10.10.10.1"
hostname="me"
gateway_enable="NO"
ifconfig_re0="inet 10.10.10.2  netmask 255.255.255.0"
linux_enable="YES"
inetd_enable="NO"
sendmail_enable="NONE"
sshd_enable="YES"
smbd_enable="YES"
usbd_enable="YES"
cupsd_enable="YES"
fusefs_enable="YES"
fusefs_safe="YES"
hald_enable="YES"
dbus_enable="YES"
powerd_enable="YES"
# powerd_flags="-i 92 -r 65 -p 200"
powerd_flags="-p 200"
font8x8="cp850-8x8"
font8x14="cp850-8x14"
font8x16="cp850-8x16"
keymap="br275.iso.acc.kbd"

[sysctl.conf]

debug.cpufreq.lowest=1250
vfs.read_max=32
kern.maxvnodes=40
kern.maxfiles=65536
kern.maxfilesperproc=32768
kern.ipc.maxsockbuf=524288
kern.module_path=/boot/kernel;/boot/modules;/usr/local/modules
compat.linux.osrelease=2.6.16
kern.ipc.shmmax=1036870912
kern.ipc.shmall=261072


Thanks,

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winfoes FREE)
___
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"


Tunning 8.0 for multiple VMs (VBox)

2009-11-28 Thread Mario Lobo
Hi to all;

I have a system where I will be running 5 VBox VMs (3 W2K3, 1 XP & 1 Linux) 
for a lab simulation (work obligations). I have already ran the 5 VMs with a 
regular load on each and everything went fine. I think VBox is truly a great 
VM Manager, and it runs better (smoother and faster) in FBSD than in any other 
OS I tried it (Ubuntu, Winblows and OpenSolaris (!) ). 

Along the years, I've been running FBSD, picking up info from any "Tuning  
FreeBSD" guide I could find, starting with the handbook of course, going 
through articles and mailing list archives, trying to find a balance that 
would fit my desktop, among the several roles FreeBSD is used for.

I would like to expose the hardware/settings I have now to the list, to see if 
what I've done is appropriate, over or under rated (or simply stupid), to 
squeeze every drop of performance FreeBSD can give with what I have. It is 
pretty fast as it is but it never hurts attempting to make it even better. 

Please bear 2 things in mind:
1) I am trying to learn here; 
2) This is a Desktop machine (not a server!), sitting on my home LAN, behind a 
properly configured (again, to the best of my modest ability) firewall. It is 
used for everyday tasks, plus developing and music production.

I am posting what I believe to be most relevant. 

Thank you all before hand for any advice. Here it goes:

[Machine]

FreeBSD 8.0-PRERELEASE #0 r198930M: Sat Nov 21 14:24:10 BRT 2009 
CPU: AMD Phenom(tm) II X4 955 Processor (3193.08-MHz K8-class CPU)
  on cpu0
 cpu1:  on acpi0
 cpu2:  on acpi0
 cpu3:  on acpi0
MB:  AOD790GX/128M
RAM: real mem = 8589934592 (8192 MB) avail mem = 7994658816 (7624 MB) 
VIDEO: on vgapci0
NET:   (yeah, i know...)
HD1: 476940MB  at ata2-master SATA300
HD2: 476940MB  at ata3-master SATA300

[loader.conf]

verbose_loading="YES"
amdtemp_load="YES"
drm_load="YES"
radeon_load="YES"
linux_load="YES"
vboxdrv_load="YES"
# vboxnetflt and #vboxnetadp loaded later
snd_cmi_load="YES"
atapicam_load="YES"
cpufreq_load="YES"

[rc.conf]

background_fsck="NO"
check_quotas="NO"
clear_tmp_enable="YES"
compat4x_enable="YES"
compat5x_enable="YES"
compat6x_enable="YES"
compat7x_enable="YES"
kern_securelevel_enable="NO"
tcp_extensions="YES"
defaultrouter="10.10.10.1"
hostname="me"
gateway_enable="NO"
ifconfig_re0="inet 10.10.10.2  netmask 255.255.255.0"
linux_enable="YES"
inetd_enable="NO"
sendmail_enable="NONE"
sshd_enable="YES"
smbd_enable="YES"
usbd_enable="YES"
cupsd_enable="YES"
fusefs_enable="YES"
fusefs_safe="YES"
hald_enable="YES"
dbus_enable="YES"
powerd_enable="YES"
# powerd_flags="-i 92 -r 65 -p 200"
powerd_flags="-p 200"
font8x8="cp850-8x8"
font8x14="cp850-8x14"
font8x16="cp850-8x16"
keymap="br275.iso.acc.kbd"

[sysctl.conf]

debug.cpufreq.lowest=1250
vfs.read_max=32
kern.maxvnodes=40
kern.maxfiles=65536
kern.maxfilesperproc=32768
kern.ipc.maxsockbuf=524288
kern.module_path=/boot/kernel;/boot/modules;/usr/local/modules
compat.linux.osrelease=2.6.16
kern.ipc.shmmax=1036870912
kern.ipc.shmall=261072


Thanks,

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winfoes FREE)
___
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"


Tunning 8.0 for multiple VMs (VBox)

2009-11-28 Thread Mario Lobo
Hi to all;

I have a system where I will be running 5 VBox VMs (3 W2K3, 1 XP & 1 Linux) 
for a lab simulation (work obligations). I have already ran the 5 VMs with a 
regular load on each and everything went fine. I think VBox is truly a great 
VM Manager, and it runs better (smoother and faster) in FBSD than in any other 
OS I tried it (Ubuntu, Winblows and OpenSolaris (!) ). 

Along the years, I've been running FBSD, picking up info from any "Tuning  
FreeBSD" guide I could find, starting with the handbook of course, going 
through articles and mailing list archives, trying to find a balance that 
would fit my desktop, among the several roles FreeBSD is used for.

I would like to expose the hardware/settings I have now to the list, to see if 
what I've done is appropriate, over or under rated (or simply stupid), to 
squeeze every drop of performance FreeBSD can give with what I have. It is 
pretty fast as it is but it never hurts attempting to make it even better. 

Please bear 2 things in mind:
1) I am trying to learn here; 
2) This is a Desktop machine (not a server!), sitting on my home LAN, behind a 
properly configured (again, to the best of my modest ability) firewall. It is 
used for everyday tasks, plus developing and music production.

I am posting what I believe to be most relevant. 

Thank you all before hand for any advice. Here it goes:

[Machine]

FreeBSD 8.0-PRERELEASE #0 r198930M: Sat Nov 21 14:24:10 BRT 2009 
CPU: AMD Phenom(tm) II X4 955 Processor (3193.08-MHz K8-class CPU)
  on cpu0
 cpu1:  on acpi0
 cpu2:  on acpi0
 cpu3:  on acpi0
MB:  AOD790GX/128M
RAM: real mem = 8589934592 (8192 MB) avail mem = 7994658816 (7624 MB) 
VIDEO: on vgapci0
NET:   (yeah, i know...)
HD1: 476940MB  at ata2-master SATA300
HD2: 476940MB  at ata3-master SATA300

[loader.conf]

verbose_loading="YES"
amdtemp_load="YES"
drm_load="YES"
radeon_load="YES"
linux_load="YES"
vboxdrv_load="YES"
# vboxnetflt and #vboxnetadp loaded later
snd_cmi_load="YES"
atapicam_load="YES"
cpufreq_load="YES"

[rc.conf]

background_fsck="NO"
check_quotas="NO"
clear_tmp_enable="YES"
compat4x_enable="YES"
compat5x_enable="YES"
compat6x_enable="YES"
compat7x_enable="YES"
kern_securelevel_enable="NO"
tcp_extensions="YES"
defaultrouter="10.10.10.1"
hostname="me"
gateway_enable="NO"
ifconfig_re0="inet 10.10.10.2  netmask 255.255.255.0"
linux_enable="YES"
inetd_enable="NO"
sendmail_enable="NONE"
sshd_enable="YES"
smbd_enable="YES"
usbd_enable="YES"
cupsd_enable="YES"
fusefs_enable="YES"
fusefs_safe="YES"
hald_enable="YES"
dbus_enable="YES"
powerd_enable="YES"
# powerd_flags="-i 92 -r 65 -p 200"
powerd_flags="-p 200"
font8x8="cp850-8x8"
font8x14="cp850-8x14"
font8x16="cp850-8x16"
keymap="br275.iso.acc.kbd"

[sysctl.conf]

debug.cpufreq.lowest=1250
vfs.read_max=32
kern.maxvnodes=40
kern.maxfiles=65536
kern.maxfilesperproc=32768
kern.ipc.maxsockbuf=524288
kern.module_path=/boot/kernel;/boot/modules;/usr/local/modules
compat.linux.osrelease=2.6.16
kern.ipc.shmmax=1036870912
kern.ipc.shmall=261072


Thanks,

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winfoes FREE)
___
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"


Re: Geode Xorg Driver

2009-12-08 Thread Mario Lobo
On Monday 07 December 2009 14:48:37 rhin...@postmail.ch wrote:
> Hi All,
> I use the Alix 1d computer from pcengines to build
> a X terminal and a small mail server.
> 
> The Xserver is working with the VESA driver. This is functional
> but a little bit slow. A Xorg driver for this graphic card
> (AMD Geode) exists but it is not available with FreeBSD.
> 
> With FreeBSD 7.2, I was able to use the drivers compiled
> for OpenBSD. But due to a version mismatch, they are not usable
> with FreeBSD 8.0 which is installed now.
> 
> I have lookup a many places since two days and I can see
> that some persons were able to compile the drivers for formers
> version of BSD.
> 
> Could someone explain how to compile the drivers for FreeBSD 8.0 ?
> There is no port, but since a lot of similar drivers (like the VESA) are
> available, it should not be too complicated to compile the geode driver
> (I have got the source on the GIT repository of Xorg).
> 
> I have started to compile VESA driver from ports but it fails
> at some points while not finding "gdm-config".
> 
> An other solution would be to get the drivers of a Linux
> distribution (normally this should work since Xorg modules are
> platform independents).
> 
> Thanks for any help or ideas.
> 
> regards,
> 
> Alain Aubord
> ___
> 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"
> 
Hi Alain;

John_doe made a port for a vesa driver that works perfectly in FBSD 8 amd64.

The driver is here:
ftp://ftp.lissyara.su/users/Guest/vesa-kmod.diff

instructions:

To apply use
$ cd /usr/ports
$ patch -sp0 -i /path/to/vesa-kmod.diff
$ cd misc/vesa-kmod; make install clean

put vesa_load="YES" into /boot/loader.conf


Here is the thread where I picked it up.

http://forums.freebsd.org/showthread.php?t=6291

Regards,

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winfoes FREE)
___
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"


Re: Tunning 8.0 for multiple VMs (VBox)

2009-12-08 Thread Mario Lobo
On Sunday 29 November 2009 10:36:53 you wrote:
> And your question was?
> 
> > I would like to expose the hardware/settings I have now to the list, to
> > see if what I've done is appropriate, over or under rated (or simply
> > stupid), to squeeze every drop of performance FreeBSD can give with what
> > I have. It is pretty fast as it is but it never hurts attempting to make
> > it even better.
> >

This was the main idea, so people more knowledgeable and experienced 
could comment on it.

I guess you could say the question was: " Am i doing it right?" or "can I do 
it better?"

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winfoes FREE)
___
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"


amdtemp problem

2009-12-12 Thread Mario Lobo
Hi to all;

Up to amd64 8-RC3, amdtemp correctly reported the temperature of my phenom 
processor(s).

From 8-RELEASE on (i'm on STABLE now), the temperature readings starts at 37C, 
dropping to 0 in about 2 minutes, and there it stays. 

I had saved the /usr/src/sys/dev/amdtemp/amdtemp.c file from the 8-RC3 file 
and compared it to the STABLE version, and they are the same, so I figured 
something changed elsewhere.

Would anyone have a hint to where I should look into to make it work again?

Thanks,
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winfoes FREE)
___
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"


Re: Root exploit for FreeBSD

2009-12-12 Thread Mario Lobo
On Saturday 12 December 2009 21:23:00 Rolf Nielsen wrote:
> Where's that? The Nvidia site says nothing about it yet, and the
> makefile for x11/nvidia-driver still says ONLY_FOR_ARCHS=i386. I'm
> eagerly waiting for it, but I can't find anything other than a forum
> post (I don't have the address handy at this computer, but I know it's
> somewhere in the mailing list archive) from Zander at Nvidia corporation
> saying it's on its way.
> 

http://www.nvnews.net/vbulletin/showthread.php?t=142120

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winfoes FREE)
___
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"


Re: Nvidia amd64 driver (WAS: Root exploit for FreeBSD )

2009-12-13 Thread Mario Lobo
On Saturday 12 December 2009 22:44:54 Rolf G Nielsen wrote:
> Mario Lobo wrote:
> > On Saturday 12 December 2009 21:23:00 Rolf Nielsen wrote:
> >> Where's that? The Nvidia site says nothing about it yet, and the
> >> makefile for x11/nvidia-driver still says ONLY_FOR_ARCHS=i386. I'm
> >> eagerly waiting for it, but I can't find anything other than a forum
> >> post (I don't have the address handy at this computer, but I know it's
> >> somewhere in the mailing list archive) from Zander at Nvidia corporation
> >> saying it's on its way.
> >
> > http://www.nvnews.net/vbulletin/showthread.php?t=142120
> 
> Thanks Mario and George. Just installed it and rebooted now. :D

You're welcome Rolf!

The driver DOES rock, doesn't it?

How is it working for you? any instabilities?

I am having some issues with virtualbox and KDE4.

KDE has 2 options for composite: OpenGL and xRender

I have composite enabled with openGl. If any vbox guest (winedows actually) 
has 3d acceleration enabled, the host freezes completely. only the reset 
button works ! I have to completely disable 3d accel on the Win guests.

But if composite is done with Xrender, the 3d accel on the guests doesn't 
freeze the host, but I loose a lot of performance, smoothness and most of the 
desktop effects on KDE.

I followed the advice on 
http://www.nvnews.net/vbulletin/showthread.php?t=58498
to enable HPET and that seemed to improve things on this issue but I still 
have to keep 3d disabled

Other than that, EVERYTHING else works perfectly. nVidia is much superior than 
my onboard radeon HD 3300, which I unceremoniously dumped for a GeForce 9800 
GT.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winfoes FREE)
___
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"


[OT?] tcpdump overhead

2008-03-10 Thread Mario Lobo
Hi there;

Forgive this possible OT (and lame) question.

I am writing a final paper for a PG course and  I need to take precise 
measurements on network performance. I gonna be doing lots of packet dumps 
and I would like to know you guys' opinion on how much of tcpdump overhead 
(if meaningful for these measurements) I should take into account.

If there are any readings on the subject you could point me to...

Thanks
-- 
Mario Lobo
Segurança de Redes - Desenvolvimento e Análise
IPAD - Instituto de Pesquisa e Apoio ao Desenvolvimento Tecnológico e 
Científico


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


Re: [OT?] tcpdump overhead

2008-03-10 Thread Mario Lobo
On Monday 10 March 2008, you wrote:
> > I am writing a final paper for a PG course and  I need to take precise
> > measurements on network performance. I gonna be doing lots of packet
> > dumps and I would like to know you guys' opinion on how much of tcpdump
> > overhead (if meaningful for these measurements) I should take into
> > account.
> >
> > If there are any readings on the subject you could point me to...
>
> no idea but small for sure. it would rather cause tcpdump to not catch all
> packets that network performance drop.

Thanks for the reply Wojciech.

Forgive my english but I couldn't quite get what you meant by:

"it would rather cause tcpdump to not catch all packets that network 
performance drop."

Could you rephrase that for me please ?

Thanks
-- 
Mario Lobo
Segurança de Redes - Desenvolvimento e Análise
IPAD - Instituto de Pesquisa e Apoio ao Desenvolvimento Tecnológico e 
Científico


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


Re: Any software that can do X windows screen capture (with mouse cursor)

2008-03-19 Thread Mario Lobo
On Tuesday 18 March 2008 13:54:34 Patrick Dung wrote:
> Hello
>
> As title, I have tried xwd, it can't capture mouse curosr.
>
> Regards
> Patrick
>
>
>  
> ___
>_ Looking for last minute shopping deals?
> Find them fast with Yahoo! Search. 
> http://tools.search.yahoo.com/newsearch/category.php?category=shopping
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"

ksanpshot. It does exactly what you need. requires kde though

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: QEMU networking quirkiness on 7.0

2008-04-10 Thread Mario Lobo
On Thursday 10 April 2008 12:33:29 Jim Stapleton wrote:
> > Yes, this needs to be setup on the host system.  The way a bridge is
> >  configured has changed on 7.  Here are the steps assuming that your
> >  external interface is em0:
>
> Well, it seems pretty calm, and hasn't tried to cut itself yet... But
> I think I can adapt.
>
> >  # ifconfig tap0 create
> >  # ifconfig tap0 up
> >  # ifconfig em0 up
> >  # ifconfig bridge0 create
> >  # ifconfig bridge0 addm tap0 addm em0
>
> Could I mimic this in RC.conf? Or is this saved between restarts?
>
>
> Also, for the bridge, could I do this, correct?
>
> #existing rc.conf
> hostname="elrond.var-dev.net"
> ifconfig_re0="inet 192.168.1.84 netmask 255.255.255.0"
> ifconfig_re0_alias0="192.168.1.85 netmask 255.255.255.255"
> defaultrouter="192.168.1.1"
> #adding... Should I use an IP not aliased by re0?
> ifconfig_bridge0="inet 192.168.1.85 netmask 255.255.255.0"
>
>
>
>
> Thanks for your help,
> -Jim Stapleton
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"

I have a virtual Linux (Fedora 5) and winedows (XP) machines in QEMU and they 
are both network functional. I use qemu-launch because it does everything you 
need to create a virtual machine. Here are my pertinent configs:


1) # rc.conf

ifconfig_re0="up polling"   <- no IP here !
autobridge_interfaces="bridge0"
autobridge_bridge0="tap0 re0" <- important even if tap0 does not exist yet
cloned_interfaces="bridge0"
# the bridge gets the IP
ifconfig_bridge0="inet 10.10.10.2 netmask 255.255.255.0"  

2) tell QEMU launch to open a tap device

3) tap up script to run when invoking the machine(s). 

# qemu-net

#!/usr/local/bin/bash
$1 = tap ifac created 
/sbin/ifconfig $1 up
# test if tap is already added
TEST=`ifconfig -a | grep -A 6 bridge | grep $1`
if [ "$TEST" == "" ]; then
   /sbin/ifconfig bridge0 addm $1
fi
# add a route to the virtual machine
/sbin/route add -host 10.10.10.100 -iface bridge0



Set the gateway on both machines to the same gateway of the host.
That's all.

This works perfectly for me. If I want both virtual machines up, I have to add 
another route to the IP of the second machine through the bridge.

I did not need to set up samba to access the local drives because I already 
have a samba server on the gateway and both the host and the guests can see 
it, and of course, is one less thing to set up at the host.

My 2 cents. Hope it helps !
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: if_bridge - what i do wrong

2008-04-10 Thread Mario Lobo
On Thursday 10 April 2008 10:02:55 Wojciech Puchar wrote:
> ifconfig: BRDGADD tap0: Invalid argument

I had this problem once because my kernel was out of sync with userland.
When I recompiled world, the problem went away.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: if_bridge - what i do wrong

2008-04-11 Thread Mario Lobo
On Friday 11 April 2008 05:36:16 Wojciech Puchar wrote:
> exactly this! thank you very much!
>
> On Thu, 10 Apr 2008, Mario Lobo wrote:
> > On Thursday 10 April 2008 10:02:55 Wojciech Puchar wrote:
> >> ifconfig: BRDGADD tap0: Invalid argument
> >
> > I had this problem once because my kernel was out of sync with userland.
> > When I recompiled world, the problem went away.
> >
> > --
> > Mario Lobo
> > http://www.mallavoodoo.com.br
> > FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows
> > FREE) ___
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> > "[EMAIL PROTECTED]"

Your welcome ! I am happy I could be of help. Everyone is so keen and quick on 
this list that everytime I try to give some helpful info, someone always does 
it ahead of me.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: QEMU networking quirkiness on 7.0

2008-04-11 Thread Mario Lobo
On Friday 11 April 2008 07:17:21 you wrote:
> Hi Mario,
>
> > 
> > 1) # rc.conf
> >
> > ifconfig_re0="up polling"   <- no IP here !
> > autobridge_interfaces="bridge0"
> > autobridge_bridge0="tap0 re0" <- important even if tap0 does not
> > exist yet cloned_interfaces="bridge0"
> > # the bridge gets the IP
> > ifconfig_bridge0="inet 10.10.10.2 netmask 255.255.255.0"
> >
> > 2) tell QEMU launch to open a tap device
> >
> > 3) tap up script to run when invoking the machine(s).
> >
> > # qemu-net
> >
> > #!/usr/local/bin/bash
> > $1 = tap ifac created
> > /sbin/ifconfig $1 up
> > # test if tap is already added
> > TEST=`ifconfig -a | grep -A 6 bridge | grep $1`
> > if [ "$TEST" == "" ]; then
> >/sbin/ifconfig bridge0 addm $1
> > fi
> > # add a route to the virtual machine
> > /sbin/route add -host 10.10.10.100 -iface bridge0
> >
> > 
> >
> > Set the gateway on both machines to the same gateway of the host.
> > That's all.
> >
> > This works perfectly for me. If I want both virtual machines up, I have
> > to add another route to the IP of the second machine through the bridge.
>
> I don't really understand why you need routing here.  In my
> understanding a bridge works like a layer 2 switch so there should be no
> need for any routing.
>
> Cheers,
>
>
> Andrew

I don't know exactly why. What I know is if I don't, it doesn't work.
I think it's because the virtual machine is on the same subnet of the bridge 
and the host is not configured as a gateway.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: HDD partitioning question...

2008-04-14 Thread Mario Lobo
On Monday 14 April 2008 18:36:30 Derek Ragona wrote:
> At 03:27 PM 4/14/2008, Dharma Wolford wrote:
> >Hi folks,
> >
> >(I'm a relative newcomer to all this... thanks for your patience & help.)
> >
> >I've installed FreeBSD 6.2 on a system that will be primarily used as an
> > FTP server.  It has 2 drives - one for the OS and the other for the FTP
> > storage.  My question is about the storage drive in this case.
> >
> >You can see how I have things partitioned right now:
> >#
> >[EMAIL PROTECTED] /var/log]# mount
> >/dev/da0s1a on / (ufs, local)
> >devfs on /dev (devfs, local)
> >/dev/da0s1d on /tmp (ufs, local, soft-updates)
> >/dev/da0s1f on /usr (ufs, local, soft-updates)
> >/dev/da0s1e on /var (ufs, local, soft-updates)
> >/dev/da1 on /usr/home (ufs, local, soft-updates)
> >[EMAIL PROTECTED] /var/log]#
> >#
> >
> >I started by trying to use fdisk to partition the storage drive (/dev/da1)
> >but was getting errors which I don't exactly recall - something about a
> >problem with the 'block device'.
> >Anyway, then I wound up using the command "newfs -O 2 /dev/da1"  which
> >seemed to work and I was then able to mount and use the drive.
> >
> >My question is:  is there anything wrong with having "/dev/da1"  mounted
> > an in-use?  Should I have created a partition like "/dev/da1s1a" or
> > something? I seem to remember somebody once chiding me for having
> > formatted or mounted the 'block device' itself instead of a partition...
> > is this making any sense to anyone?  Clearly I need to know more about
> > *NIX file systems (slices, partitions, block devices) and best practices
> > or some such - I am working on it but obviously have a ways to go!
> >
> >Thanks very much!
> >
> >dharma
>
> Sounds like the drive geometry was off or you may have a drive with
> issues.  You should have been able to create a partition with a single
> slice on it.  I would check the drive with diagnostics from the
> manufacturer.  Those utilities will also allow you to know the correct
> geometry.
>
>  -Derek

If you issue the command:

fdisk -I /dev/da1

 -I  Initialize sector 0 slice table for one FreeBSD slice covering
 the entire disk.

and then:  ls /dev/da1*

you'll get:

/dev/da1
/dev/da1s1

which I believe is what you want.

then you can:   newfs -O 2  (-U) /dev/da1s1

then you can: mount /dev/da1s1  /whatever

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: QEMU networking quirkiness on 7.0

2008-04-17 Thread Mario Lobo
On Thursday 17 April 2008, Jim Stapleton wrote:
> Sorry for the delayed reply, I didn't see this sent.
>
> On Thursday 10 April 2008 22:01:32 Mario Lobo wrote
>
> > I have a virtual Linux (Fedora 5) and winedows (XP) machines in QEMU and
> > they are both network functional. I use qemu-launch because it does
> > everything you need to create a virtual machine. Here are my pertinent
> > configs:
> >
> > 
> > 1) # rc.conf
> >
> > ifconfig_re0="up polling"   <- no IP here !
> > autobridge_interfaces="bridge0"
> > autobridge_bridge0="tap0 re0" <- important even if tap0 does not
> > exist yet cloned_interfaces="bridge0"
> > # the bridge gets the IP
> > ifconfig_bridge0="inet 10.10.10.2 netmask 255.255.255.0"
>
> To verify, the 10.10.10.2 is the IP that everyone sees my host as on
> the network, correct? That's the IP that used to be set on re0?

exactly !

>
> > 2) tell QEMU launch to open a tap device
>
> Open a TUN/TAP interface in the network interface configuration

yes

>
> > 3) tap up script to run when invoking the machine(s).
> >
> > # qemu-net
> >
> > #!/usr/local/bin/bash
> > $1 = tap ifac created
> > /sbin/ifconfig $1 up
> > # test if tap is already added
> > TEST=`ifconfig -a | grep -A 6 bridge | grep $1`
> > if [ "$TEST" == "" ]; then
> >/sbin/ifconfig bridge0 addm $1
> > fi
> > # add a route to the virtual machine
> > /sbin/route add -host 10.10.10.100 -iface bridge0
>
> This is the tun/tap configuration script, the IP on the last line is
> the IP I want the guest to look like to the network (i.e.
> 192.168.1.85)?

correct ! You will configure the guest's network interface with this IP.

>
>
> Thanks, I'll play with this more when I get home (I don't want to mess
> with my machine's network configuration while I've only got network
> access).
>

This worked so fine fine for me that I left the bridge as my main interface 
for good. Even if QEMU is not up.  It works just as well as re0 itself.

>
> Thanks,
> -Jim Stapleton
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"

You're welcome !

-- 
Mario Lobo
Segurança de Redes - Desenvolvimento e Análise
IPAD - Instituto de Pesquisa e Apoio ao Desenvolvimento Tecnológico e 
Científico


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


Re: QEMU networking quirkiness on 7.0

2008-04-24 Thread Mario Lobo
>
> OK, I finally got to test it last night. It almost worked. I ran it
> from the console, and it spit out the command line. Something on the
> command line looked obviously off to me (I think it was the iface=
> part of the network section), anyway, I copied & pasted it, added the
> tap0 reference, and it works perfectly.
>
> Thanks again,
> -Jim Stapleton

All right, Jim !! Great ! if you use X, I think you could consider using 
qemu-launch. It is really handy. And it saves the configs for every 
particular guest you have and you can call any of them up at the tip of the 
mouse.

-- 
Mario Lobo
Segurança de Redes - Desenvolvimento e Análise
IPAD - Instituto de Pesquisa e Apoio ao Desenvolvimento Tecnológico e 
Científico


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


Re: OpenOffice and "Environment error: "JAVA_HOME" should not be defined"

2008-04-29 Thread Mario Lobo
On Tuesday 29 April 2008 20:16:09 Marco Beishuizen wrote:
> Hi,
>
> When I try to install OO from the ports I get the message "Environment
> error: "JAVA_HOME" should not be defined".
>
> Does anyone know how to get rid of this?
>
> Thanks,
>
> Marco

unset JAVA_HOME
make install

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ACPI can only be compiled into the kernel on the amd64 and ia64 platforms

2008-05-01 Thread Mario Lobo
On Thursday 01 May 2008 18:43:17 alexus wrote:
>> why are you compiling under i386 when your system is
>> detected as amd64 or ia64 ?

You didn't answer this one.

uname -a can help.
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ACPI can only be compiled into the kernel on the amd64 and ia64 platforms

2008-05-02 Thread Mario Lobo
On Thursday 01 May 2008 20:41:49 alexus wrote:
> sorry, this is amd64
>
> On Thu, May 1, 2008 at 6:14 PM, Mario Lobo <[EMAIL PROTECTED]> wrote:
> > On Thursday 01 May 2008 18:43:17 alexus wrote:
> > >> why are you compiling under i386 when your system is
> > >> detected as amd64 or ia64 ?
> >
> > You didn't answer this one.
> >
> > uname -a can help.
> > --
> > Mario Lobo
> > http://www.mallavoodoo.com.br
> > FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows
> > FREE) ___
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> > "[EMAIL PROTECTED]"

Then you should:

cd /usr/src/sys/amd64/conf
copy/edit GENERIC dd 
/usr/sbin/config dd
cd ../compile/dd
make cleandepend;make depend;make;make 
make install

this should work
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Unexepcted behavior from read and cat

2008-05-12 Thread Mario Lobo
On Monday 12 May 2008, Paul Schmehl wrote:
> I created a small list of IPs that I wanted to do digs on (because I'm lazy
> and don't want to do them one at a time.)
>
> I then wrote the following on the commandline:
>
> % dig +short -x `cat iplist`
>
> The results was an answer for the first line only.
>
> So, I thought read line would do the trick.  I tried this:
>
> % dig +short -x `(read line; echo $line; while read line; do echo $line;
> done) < iplist`
>
> Same result.
>
> I even tried:
>
> % dig +short -s `cat iplist | awk '{print $1}'`
>
> Same result.  (Yes, I know, why do twice the work to get the same answer,
> but I was desperate.)
>
> WTF?  Why do these utilities, which usually read all the lines in a file
> now only work once when run through dig?  Is there a way to feed dig a list
> of IPs and have it return each and every one of them?
>
> I tried dig +short -x -f iplist, but that returns nothing at all.
>
> Sure, I can edit the file and prepend +short -x to each line, but by then I
> might as well just do them individually.
>
> What am I missing?

Why not:

for ips in `cat iplist`
do
 dig +short -x $ips
done

-- 
Mario Lobo
Segurança de Redes - Desenvolvimento e Análise
IPAD - Instituto de Pesquisa e Apoio ao Desenvolvimento Tecnológico e 
Científico


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


downgrading /sys/src

2008-05-31 Thread Mario Lobo
This may sound wierd but let me explain why.

On last may/26,  I added a Sound Blaster Live to my machine and I wanted to 
activate the midi interface of the emu10kx driver. I know there were some 
memory and timming problems but I wanted to experiment. So I did a csup to 
7_CURRENT (which is the tag I always use) then edited emu10kx to coment out 
the #if 0 that excludes the midi code. I took the oportunity to coment the 
drivers I did not need to make the kernel smaller. Recompiled and loaded 
emu10kx from loader.conf.  the Kernel crashed right after the acpi_hpet 
driver load.  But by loading emu10kx later, there was no crash and SB board 
worked fine.

A hunch told me to save kernel.old so I moved it to kernel.good which is:
FreeBSD lobo 7.0-STABLE FreeBSD 7.0-STABLE #1: Thu May 22 18:32:28 BRT 2008 
[EMAIL PROTECTED]:/usr/src/sys/i386/compile/LOBO  i386

After that I went on to make some DVD backups with k3b which ALWAYS worked 
fine and now, after this upgrade, k3b keeps crashing without finishing. 
Software and device buffers usage behaved erratically, and even if it doesn't 
crash, it stops in around 30% with a write error. I lost a few DVDs, since I 
suspected the DVD+RW may have had something to do with the problem. I 
recompiled k3b (and the other ports around it) but results were the same.

Anyway, after several unsuccessful attempts to correct the problem by 
removing/re-adding kernel drivers, recompiles and even removing the SB board, 
I decided to move /boot/kernel to kernel.new, and copied kernel.good to 
kernel and voilá ! Everything went back to normal and worked fine!

What I want to do is to make a copy of my current /src/sys, revert it back to 
what it was in may/22 (kernel.good) and compare it with the current /src/sys 
to see what changed that provoked this behavior. I suspect of ata and memory 
handling changes but it's just a guess. I'd have to have both sources to 
compare.

So my question is: How can I get my /src/sys back to what it was in may/22?
can this be done? 

sorry for the long post and thanks
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: downgrading /sys/src

2008-06-01 Thread Mario Lobo
On Saturday 31 May 2008 18:05:24 Dominique Goncalves wrote:
> Hi,
>
> On 5/31/08, Mario Lobo <[EMAIL PROTECTED]> wrote:
> > This may sound wierd but let me explain why.
> >
> > On last may/26,  I added a Sound Blaster Live to my machine and I wanted
> > to activate the midi interface of the emu10kx driver. I know there were
> > some memory and timming problems but I wanted to experiment. So I did a
> > csup to 7_CURRENT (which is the tag I always use) then edited emu10kx to
> > coment out the #if 0 that excludes the midi code. I took the oportunity
> > to coment the drivers I did not need to make the kernel smaller.
> > Recompiled and loaded emu10kx from loader.conf.  the Kernel crashed right
> > after the acpi_hpet driver load.  But by loading emu10kx later, there was
> > no crash and SB board worked fine.
> >
> > A hunch told me to save kernel.old so I moved it to kernel.good which is:
> > FreeBSD lobo 7.0-STABLE FreeBSD 7.0-STABLE #1: Thu May 22 18:32:28 BRT
> > 2008 [EMAIL PROTECTED]:/usr/src/sys/i386/compile/LOBO  i386
> >
> > After that I went on to make some DVD backups with k3b which ALWAYS
> > worked fine and now, after this upgrade, k3b keeps crashing without
> > finishing. Software and device buffers usage behaved erratically, and
> > even if it doesn't crash, it stops in around 30% with a write error. I
> > lost a few DVDs, since I suspected the DVD+RW may have had something to
> > do with the problem. I recompiled k3b (and the other ports around it) but
> > results were the same.
> >
> > Anyway, after several unsuccessful attempts to correct the problem by
> > removing/re-adding kernel drivers, recompiles and even removing the SB
> > board, I decided to move /boot/kernel to kernel.new, and copied
> > kernel.good to kernel and voilá ! Everything went back to normal and
> > worked fine!
> >
> > What I want to do is to make a copy of my current /src/sys, revert it
> > back to what it was in may/22 (kernel.good) and compare it with the
> > current /src/sys to see what changed that provoked this behavior. I
> > suspect of ata and memory handling changes but it's just a guess. I'd
> > have to have both sources to compare.
> >
> > So my question is: How can I get my /src/sys back to what it was in
> > may/22? can this be done?
>
> You could use the 'date=' option in your stable-supfile:
> *default release=cvs tag=RELENG_7 date=2008052200
>
> man 1 csup for more details
>
> Hope this helps
>

Thanks ! that did it !!

but the date format should so:

date=2008.05.22.00.00.00

I am going to dig in and see if I can find out what happened.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Suggestion

2012-03-09 Thread Mario Lobo
On Friday 09 March 2012 01:56:25 Bruno Comerci wrote:
> Hi guys.
> 
> 
> Instead of wasting your time and man power, why wont you join to the
> ReactOS project? It would be more beneficial to the internet community and
> to the users around the world who wants a free OS with similar looking and
> functions than Windows, if you just throw away your FreeBSD and join
> forces with the ReactOS team to accelerate their process.
> 
> Actually there isnt any single free OS that can be fully trusted, but
> ReactOS seems to be that one that we all are wating for.
> 
> 
> Sincerely,
> Common world's citizen who dont have money to pay Windows and dont trust
> Linux and any other Unix-based OS.

Hey Man (man ???) !

Your mom should be running after you all over the house, with your hot milk 
bottle and pacifier in hand, because you skipped your nap time.

Please, have mercy on her and go right up to bed.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: Music production on FreeBSD

2012-04-07 Thread Mario Lobo
On Saturday 07 April 2012 21:04:41 Tony wrote:
> Hello!
> 
> Is anybody aware of any talented producers who produce their music
> primarily on FreeBSD?
> 
> Thanks!
> 
> Tony


Man, that has been my dream for a good while!

Ardour is a fine multitrack but no MIDI, at least on FreeBSD. And FBSD itself 
has lots of issues with MIDI.

Besides that, there is the driver problem with most professional sound boards.

I am going to attempt something a quite bit out of my league which is try to 
port the alsa drivers for my echo Gina3G board to FBSD. If I can manage to do 
that, then I believe the rest will fall on my lap by gravity. 

I hope I don't blow up my desktop.

I'm eager to read the replies to the OP.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: kernel configuration file

2012-05-06 Thread Mario Lobo
On Sunday 06 May 2012 10:34:12 Carmel wrote:
> On Sun, 6 May 2012 08:08:31 -0500 (CDT)
> 
> Robert Bonomi articulated:
> >Carmel  wrote;
> >
> >> In the "Generic kernel configuration file for FreeBSD/amd64", if I do
> >> not have a floppy drive, is it safe to comment out this entry?
> >> 
> >> # Floppy drives
> >> device  fdc
> >
> >Definitely, "yes".
> >
> >> Are there any other entries that I could eliminate if I do not have a
> >> floppy drive?
> >> 
> >   device atapifd
> >
> >obviouly.  :)
> 
> Thanks, I had not noticed that one.
> 
> >> Also, according the the "webcamd" documentation, I need to have this
> >> in the loader.conf file.
> >> 
> >> webcamd requires the cuse4bsd(3) kernel module. To load the driver
> >> 
> >> as a module at boot time, place the following line in loader.conf(5):
> >> cuse4bsd_load="YES"
> >> 
> >> Is there a way that I can simply compile it into the kernel? Would a:
> >> 
> >> device   cuse4bsd# Required by webcamd
> >> 
> >> entry in the kernel file work? I cannot find any documentation on
> >> that.
> >
> >The simplest approach for this is 'try it and find out'.
> >
> >If you use the "traditional" kernel-huild 'Configure/make depend/make'
> >sequence, to rebuild the kernel -only-,  its a matter of one minute or
> >so on a _slow_ (486-class) machine.
> >
> >you'll either get a Configure error, a linker error, or it 'just
> >works'.
> 
> OK, now you lost me. I use the following basic sequence:
> 
> make buildworld
> make buildkernel KERNCONF=CARMEL
> make installkernel KERNCONF=CARMEL
> make installworld
> 
> I am sorry, but I am not fully comprehending what commands you want me
> to enter.

Carmel;

You don't need to build the whole world if you only need a kernel rebuild.

just edit your kernel file and issue:

cd /usr/src
make kernel KERNCONF=CARMEL

the 2nd line builds AND installs the new kernel.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: Dual Boot Windows 7 FreeBSd 8.3

2012-05-23 Thread Mario Lobo
On Wednesday 23 May 2012 18:49:06 Jerry McAllister wrote:
> Hi,
> 
> I have been searching through questions and forums for information
> on dual booting FreeBSD 8.3 on a machine with Windows 7 already on it.
> 
> My problem is that the posts seem to go around in circles and be
> contradictory.  I am not sure which to believe.
> 
> My new machine has two disk drives.  Windows 7 is on ad0 and I want
> to put FreeBSD 8.3 on ad1, leaving W7 as is.   So, I don't even have
> to shrink a primary slice to do this.
> 
> 
> Thank you,
> 
> jerry
> ___


Since each system is going to be on different physical drives, why don't you 
make things easy for you and just use the BIOS boot menu to choose which drive 
to boot from?

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: Dual Boot Windows 7 FreeBSd 8.3

2012-05-23 Thread Mario Lobo
On Wednesday 23 May 2012 19:41:22 Jerry McAllister wrote:
> > Since each system is going to be on different physical drives, why don't
> > you make things easy for you and just use the BIOS boot menu to choose
> > which drive to boot from?
> 
> That surely seems the hard way.Why interrupt the boot and go
> in to the BIOS every time when that is all provided for in the
> boot structure?
> 
> jerry

Because if you want to switch systems you're gonna have to reboot anyway!

The boot manager is nothing but an automatic interruption of the boot process 
to give you a chance to press a key for the system you want to boot from.

But you're right. Pressing 3 keys instead of one or none IS the hard way.

just my 0,02...

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: (no subject)

2012-06-01 Thread Mario Lobo
On Friday 01 June 2012 03:29:40 Thomas Mueller wrote:
> 
> I ddon't see any advantage in FreeBSD 8.x or earlier.

Well, I still see complains about a few quirks in 9 here in the list, 
specially after certain src updates.

Re:Use of C99 extra long double math functions after r236148
Re: kern/168190: [pf] panic when using pf and route-to (maybe: bad fragment 
handling?)
Re: ULE/sched issues on stable/9 - why isn't preemption occurring?
Etc ..

To me, something like pf (specially route-to!) is critical and for the moment, 
I wouldn't touch my rock-solid-down-to-the-micro-second perfect production 
firewall 8-STABLE server for nothing, if the aim is such a role.

I think that distribution set size is just not a very strong argument.

OTOH, if the aim is just experimenting, that's another story.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: (no subject)

2012-06-04 Thread Mario Lobo
On Monday 04 June 2012 11:12:01 Polytropon wrote:
> On Mon, 4 Jun 2012 06:54:37 +0200 (CEST), Wojciech Puchar wrote:
> > youtube is not a problem, use youtube-dl from ports and do download
> > videos to disk drive, then watch instead of having movies "in the
> > internet", where they can disappear everytime youtube decide that you
> > should's watch it.
> 
> Additionally, it allows the user to use his favourite media
> player (e. g. mplayer) with all its support (still, rew, ff,
> brightness/contrast adjust, keyboard support) except to have
> dealing with it in a web browser window with its very limited
> means of user friendlyness.

Flashblocker and downloadhelper plugins for FF. Work like a charm !!

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: Uptime [OT]

2012-06-15 Thread Mario Lobo
On Friday 15 June 2012 09:49:49 Robert Bonomi wrote:
> > From owner-freebsd-questi...@freebsd.org  Thu Jun 14 22:56:16 2012
> > To: freebsd-questions@freebsd.org
> > Date: Thu, 14 Jun 2012 22:51:45 -0500
> > From: Mark Felder 
> > Cc: Steve Bertrand 
> > Subject: Re: Uptime [OT]
> > 
> > FreeBSD REDACTED 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Wed Nov 15 16:29:10
> > CST 2006 root@REDACTED:/usr/src/sys/i386/compile/IPFW-POLING-ALTQ i386
> > 
> > Theres no way I'm giving out the organization name or hostname haha.
> > We're slowly moving customers away from this device, but not forcing
> > anyone.
> > 
> > I wonder if the technician who compiled that kernel considered how long
> > it would run
> 
> Heh. check out -this- one:
> 
>  % uname -a
>  **  ***  ** *** Kernel #0: Thu Mar 20
> 16:40:01 CST 1997 :/usr/src/sys/compile/LOCAL 
> i386
> 
> The build date _is_ accurate, the hardware it's running on is old enough to
> vote.   
> 
> It's publicly accessible on the Internet,
> 
> It's not quite as ridiculous as it looks, the (limited) apps running on it
> _are_ up-to-date.


Hi;

This is from a colleague Alex Moura at our brazilian bsd list.

> > > FreeBSD helm 4.1-RELEASE FreeBSD 4.1-RELEASE #0: Wed Dec 13 16:19:46
> > > BRST 2000
> > > 11:47AM  up 3532 days,  3:43, 1 user, load averages: 0.00, 0.00, 0.00
> > > 
> > > 3532 days before now Friday, July 13, 2001
> > > 
> > > 9 years, 8 months, 3 days, 16 hours

ref. http://www.mail-archive.com/freebsd-chat@freebsd.org/msg02477.html

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: qbittorrent freezes, ioctl sign-extension ioctl ffffffff8004667e

2012-07-09 Thread Mario Lobo
On Sat, 7 Jul 2012 20:52:50 +0200
Jens Schweikhardt  wrote:

> hello, world\n
> 
> is anybody else seeing this? On a fresh 9-STABLE/amd64 as of July 7,
> with all ports compiled from scratch. Qbittorrent (2.9.11) freezes
> after about 10 to 20 seconds, reacts to mouse clicks only after a
> minute or so; the window isn't redrawn when it was obscured by other
> windows and /var/log/messages has this to say:
> 
> Jul  7 11:09:56 hal9000 kernel: WARNING pid 89448 (qbittorrent):
> ioctl sign-extension ioctl 8004667e Jul  7 11:10:50 hal9000
> kernel: WARNING pid 89448 (qbittorrent): ioctl sign-extension ioctl
> 8004667e Jul  7 11:11:21 hal9000 last message repeated 38
> times
> 
> There's no way out other than sending two SIGINT (CTRL-C) to kill
> qbittorrent.
> 
> It looks like this is similar or even the same problem as in
> http://lists.freebsd.org/pipermail/freebsd-stable/2010-June/057360.html
> If it was ever fixed, then it looks like it reappeared.
> 
> Regards,
> 
>   Jens

Just upgrade to net-p2p/libtorrent-rasterbar-16 and
libtorrent-rasterbar-16-python.

This should fix it.
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
 
___
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"


Re: qbittorrent freezes, ioctl sign-extension ioctl ffffffff8004667e [SOLVED]

2012-07-09 Thread Mario Lobo
On Mon, 9 Jul 2012 00:00:20 +0200 (CEST)
Wojciech Puchar  wrote:

> 
> 
> On Sun, 8 Jul 2012, RW wrote:
> 
> > On Sat, 7 Jul 2012 20:52:50 +0200
> > Jens Schweikhardt wrote:
> >
> >> hello, world\n
> >>
> >> is anybody else seeing this? On a fresh 9-STABLE/amd64 as of July
> >> 7, with all ports compiled from scratch. Qbittorrent (2.9.11)
> >> freezes after about 10 to 20 seconds, reacts to mouse clicks only
> >> after a minute or so; the window isn't redrawn when it was
> >> obscured by other windows and ...
> >
> > I tried it a few weeks ago on 8.3. I found that it locks-up just
> > after the first torrent is added, or if it's started with a torrent
> > already loaded.
> mosy probably not FreeBSD related. just a buggy program
> ___
> 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"


Sorry for my last post. Spoke too soon. I found the problem!.

It lies inside devel/boost-libs.

After you issue make patch, apply this to
work/boost_1_48_0/boost/asio/detail/io_control.hpp. 
I couldn't manage to produce a proper diff file.

*** 46,52 
// Get the name of the IO control command.
ioctl_cmd_type name() const
{
- return static_cast(FIONBIO);
+ return static_cast(FIONBIO);


*** 96,102 
// Get the name of the IO control command.
ioctl_cmd_type name() const
{
- return static_cast(FIONREAD);
+ return static_cast(FIONREAD);
}

-Rebuild/reinstall devel/boost-libs
-Rebuild/reinstall net-p2p/libtorrent-rasterbar-16
-Rebuild/reinstall net-p2p/libtorrent-rasterbar-16-python
-Rebuild/reinstall net-p2p/qbittorrent

No more lockups and kernel messages!! :) after I did this, qbittorrent
has been up flawlessly for almost 2 hours.

I don't know how to get in touch with the boost-lib port mantainer so
he/she can fix the port file patch-boost_asio-ioctl to add these
changes.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
 
___
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"


Re: qbittorrent freezes, ioctl sign-extension ioctl ffffffff8004667e [SOLVED]

2012-07-09 Thread Mario Lobo
On Mon, 9 Jul 2012 15:35:01 -0700
Eitan Adler  wrote:

> On 9 July 2012 15:26, Mario Lobo  wrote:
> > I don't know how to get in touch with the boost-lib port mantainer
> > so he/she can fix the port file patch-boost_asio-ioctl to add these
> > changes.
> 
> The best way to contact a maintainer for something like this is to
> submit a PR: http://www.freebsd.org/send-pr.html
> 
> 

Done it! Thanks

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
 
___
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"


Status of 8-CURRENT

2011-04-12 Thread Mario Lobo
Forgive my lame question but where can I check which version 8-CURRENT is 
without updating my sources (i.e. 8.x-RC1, 8.x-RELEASE, etc)?

Thanks,
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: Status of 8-CURRENT

2011-04-12 Thread Mario Lobo
On Tuesday 12 April 2011 11:52:59 Peter Ulrich Kruppa wrote:
> On
>   http://www.freebsd.org/releng/index.html
> you will find a list of available versions and their state.
> 
> Hope that helps
> 
> Peter.

This is what I needed!

Thanks, Peter!

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: Status of 8-CURRENT

2011-04-12 Thread Mario Lobo
On Tuesday 12 April 2011 11:33:08 Paul B. Mahol wrote:
> On Tue, Apr 12, 2011 at 2:49 PM, Mario Lobo  wrote:
> > Forgive my lame question but where can I check which version 8-CURRENT is
> > without updating my sources (i.e. 8.x-RC1, 8.x-RELEASE, etc)?
> 
> There is no 8-CURRENT any more. Now it is 9-CURRENT.

Sorry! I meant RELENG_8.
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: Status of 8-CURRENT

2011-04-12 Thread Mario Lobo
On Tuesday 12 April 2011 12:15:27 Ruben de Groot wrote:
> Here's a nice oneliner ;)
> 
> > fetch -qo -
> > 'http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/conf/newvers.sh?rev=.;onl
> > y_with_tag=RELENG_8;content-type=text%2Fplain' | awk '/^REVISION=/ ||
> > /^BRANCH=/'
> 
> REVISION="8.2"
> BRANCH="STABLE"
> 
> Ruben
> 

Wow! this is exactly it !

Allright, Ruben ! Thanks.
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: (8.2) amd64 + linuxulator + nvidia driver is it stable ?

2011-05-10 Thread Mario Lobo
On Tuesday 10 May 2011 15:21:07 Pierre-Luc Drouin wrote:
> On Tue, May 10, 2011 at 2:00 PM, Ivan Klymenko  wrote:
> > В Tue, 10 May 2011 17:31:53 +0200
> > 
> > Patrick Lamaiziere  пишет:
> > > Hi,
> > > 
> > > I've got a new box running 8.2-stable with amd64 + linuxulator +
> > > nvidia driver. Quite often when watching video on youtube the box
> > > freeze (no panic).
> > > 
> > > Are there some known problems with this kind of configuration on
> > > amd64? (Works fine on my old laptop using 8.2/i386)
> > > 
> > > I don't know where is problem, but one time the machine crashed just
> > > after a pkill of npviewer.bin (they were in the futex state), so it
> > > could be the linuxulator?
> > 
> > I have encountered in the system exactly the same problem
> > 
> >uname -a
> >FreeBSD nonamehost 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r221598:
> >Sat May 7 17:28:18 EEST 2011
> >ivan@nonamehost:/usr/obj/usr/src/sys/mk9  amd64
> >
> >pciconf -lv|grep Ge
> >
> >device = 'Geforce 8400M GS (unknown)'
> >
> >pkg_info|grep nvidi
> >nvidia-driver-270.41.06 NVidia graphics card binary drivers for
> >hardware OpenGL ren
> >
> >dmesg|grep NVRM
> >NVRM: Xid (:01:00): 13, 000a  8297 19d0
> >003c 0100
> > 
> > they were observed for nearly all nvidia drivers for amd64...
> > I tried to change the different options:
> > setenv VDPAU_NVIDIA_NO_OVERLAY=1 -> ~/.cshrc
> > Option "Xinerama" "False" and Option "Xinerama" "0"
> > -> /etc/X11/xorg.conf
> > cat /etc/adobe/mms.cfg
> > OverrideGPUValidation=false
> > AutoUpdateDisable=true
> > EnableLinuxHWVideoDecode=0
> > FullScreenDisable=false
> > 
> > and it seems to me it helped for flashplayer...
> > 
> > but the situation as a whole wants the best, because these problems
> > continue with using VDPAU
> > 
> > so I'm leaning that cause these problems in drivers...
> > 
> > sorry for my english...
> > ___
> > 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"
> 
> I have had the same problem as well in the past when I tried killing
> npviewer.bin . Also using an NVidia card on amd64...
> 
> Thanks
> ___
> 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"

Are you guys using nspluginwrapper-devel?

Since I started using it I have no more freezes in firefox and no more 
dangling npviewer.bin processes. YouTube plays fine for as many videos as I 
want.

By the way, I never experienced system freezes even when I was using a non-
devel wrapper. Only firefox froze with watching flash videos. All I had to do 
was to kill it and kill the npviewer.bins.

My system:

FreeBSD Papi 8.2-STABLE Tue May  3 13:17:39 BRT 2011 amd64
NVIDIA Driver Version: 270.41.06
device = 'NVIDIA GeForce 9800 GT (G92)'

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: (8.2) amd64 + linuxulator + nvidia driver is it stable ?

2011-05-10 Thread Mario Lobo
On Tuesday 10 May 2011 20:09:37 Mark Felder wrote:
> On Tue, 10 May 2011 16:21:39 -0500, Mario Lobo  wrote:
> > Are you guys using nspluginwrapper-devel?
> 
> Hi Mario,
> 
> It happens to me with Opera, Chromium (from chromium.hybridsource.org),
> and with Firefox via regular nspluginwrapper.
> 
> 
> Regards,
> 
> 
> Mark
> ___
> 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"

You should try the devel version.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: Skyip? question

2011-05-12 Thread Mario Lobo
On Wednesday 11 May 2011 23:24:11 Polytropon wrote:
> And keep in mind the data "in the background": WHO communi-
> cates? WHERE does he communicate from, with WHOM, WHEN? Tech-
> nology allows answering questions even about WHAT has been
> spoken. Relations between individuals and there interests
> can be concluded from such communication profiles. They
> are of high value for advertising and industry propaganda
> mechanisms.

And a LOT of governments.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


pptpd problem

2011-05-14 Thread Mario Lobo
Hi;

I have a VPN server on FBSD 8.1. The vpn closes fine. But as soon as I start 
doing something with an inside LAN machine i.e. an RDP session, I get this:

May 14 12:46:06 suporte pptpd[1958]: GRE: xmit failed from decaps_hdlc: No 
buffer space available

and the VPN tunnel drops.

I googled a lot for it but I didn't find any thing that could help.
The system WAS working OK before. I tried everything I could think of.

Could anyone help?
Thanks,

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)


pptpd: 
poptop-1.3.4_2

System:
FreeBSD 8.1-STABLE #0: Mon Feb 28 20:47:00 BRT 2011 i386
last pid:  2145;  load averages:  0.00,  0.00,  0.00

28 processes:  1 running, 27 sleeping
CPU:  0.0% user,  0.0% nice,  0.0% system,  1.1% interrupt, 98.9% idle
Mem: 15M Active, 13M Inact, 58M Wired, 28K Cache, 44M Buf, 1892M Free
Swap: 4000M Total, 4000M Free

sysctl.conf:
security.bsd.see_other_uids=0
security.bsd.see_other_gids=0
debug.cpufreq.lowest=400
kern.maxfiles=65536
kern.maxfilesperproc=32768
kern.maxvnodes=60
kern.ipc.shmmax=67108864
kern.ipc.shmall=16384
kern.ipc.nmbclusters=32768
kern.ipc.somaxconn=32768
net.inet.tcp.rfc1323=1
net.inet.tcp.drop_synfin=1
net.inet.tcp.sendspace=65536
net.inet.tcp.recvspace=65536
net.inet.tcp.blackhole=2
net.inet.udp.blackhole=1
net.inet.icmp.drop_redirect=1
net.inet.icmp.icmplim_output=0
net.inet.icmp.icmplim=2000
net.inet.tcp.path_mtu_discovery=0
net.inet.tcp.recvbuf_auto=1
net.inet.tcp.recvbuf_inc=16384
net.inet.tcp.recvbuf_max=16777216
net.inet.tcp.sendbuf_auto=1
net.inet.tcp.sendbuf_inc=8192
net.inet.tcp.sendbuf_max=16777216

pf.conf(relevant rules):
#--- Allow vpns from anywhere to anywhere
pass log   quick on $ext_if inet proto gre all queue (ssh_bulk, ack)
pass log   quick on $ext_if inet proto tcp  from any to any port pptp flags 
S/SA queue (ssh_bulk, ack)
  
pass log   quick on $aln_if inet proto gre all queue (ssh_bulk, ack)
pass log   quick on $aln_if inet proto tcp  from any to any port pptp flags 
S/SA queue (ssh_bulk, ack)


options.pptpd:
proxyarp
lock
name 

ppp.conf:
default:
  set timeout 1200
  # set log Phase Chat LCP IPCP CCP TUN Command Connect
  set log Phase Chat TUN Connect
  set dial
  set login
  set ifaddr 172.16.3.200/24 172.16.3.201-172.16.3.239 255.255.255.0
  set server /tmp/tun%d "" 0177
  # set lqrperiod 20
  # set echoperiod 20
  # enable lqr echo

pptp:
  disable ipv6cp pap chap
  disable deflate pred1
  deny deflate pred1
  enable proxy
  accept dns
  set mtu max 1024
  set dns 172.16.3.133
  set nbns 172.16.3.133
  enable MSChapV2
  enable mppe
  set mppe * stateful
  set radius /etc/ppp/radius.conf
  set rad_alive 60
  allow mode direct


___
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"


pptpd problem (re-post)

2011-05-15 Thread Mario Lobo
Sorry for the re-post but I am really lost here.

Any hints, clues, pointers, opinions would be appreciated.



I have a VPN server on FBSD 8.1. The vpn closes fine. But as soon as I start 
doing something with an inside LAN machine i.e. an RDP session, I get this:



May 14 12:46:06 suporte pptpd[1958]: GRE: xmit failed from decaps_hdlc: No 
buffer space available



and the VPN tunnel drops.



I googled a lot for it but I didn't find any thing that could help.
The system WAS working OK before. I tried everything I could think of.



Could anyone help?
Thanks,



-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)






pptpd: 
poptop-1.3.4_2



System:
FreeBSD 8.1-STABLE #0: Mon Feb 28 20:47:00 BRT 2011 i386
last pid:  2145;  load averages:  0.00,  0.00,  0.00

28 processes:  1 running, 27 sleeping
CPU:  0.0% user,  0.0% nice,  0.0% system,  1.1% interrupt, 98.9% idle
Mem: 15M Active, 13M Inact, 58M Wired, 28K Cache, 44M Buf, 1892M Free
Swap: 4000M Total, 4000M Free



sysctl.conf:
security.bsd.see_other_uids=0
security.bsd.see_other_gids=0
debug.cpufreq.lowest=400
kern.maxfiles=65536
kern.maxfilesperproc=32768
kern.maxvnodes=60
kern.ipc.shmmax=67108864
kern.ipc.shmall=16384
kern.ipc.nmbclusters=32768
kern.ipc.somaxconn=32768
net.inet.tcp.rfc1323=1
net.inet.tcp.drop_synfin=1
net.inet.tcp.sendspace=65536
net.inet.tcp.recvspace=65536
net.inet.tcp.blackhole=2
net.inet.udp.blackhole=1
net.inet.icmp.drop_redirect=1
net.inet.icmp.icmplim_output=0
net.inet.icmp.icmplim=2000
net.inet.tcp.path_mtu_discovery=0
net.inet.tcp.recvbuf_auto=1
net.inet.tcp.recvbuf_inc=16384
net.inet.tcp.recvbuf_max=16777216
net.inet.tcp.sendbuf_auto=1
net.inet.tcp.sendbuf_inc=8192
net.inet.tcp.sendbuf_max=16777216



pf.conf(relevant rules):
#--- Allow vpns from anywhere to anywhere
pass log   quick on $ext_if inet proto gre all queue (ssh_bulk, ack)
pass log   quick on $ext_if inet proto tcp  from any to any port pptp flags 
S/SA queue (ssh_bulk, ack)
  
pass log   quick on $aln_if inet proto gre all queue (ssh_bulk, ack)
pass log   quick on $aln_if inet proto tcp  from any to any port pptp flags 
S/SA queue (ssh_bulk, ack)






options.pptpd:
proxyarp
lock
name 



ppp.conf:
default:
  set timeout 1200
  # set log Phase Chat LCP IPCP CCP TUN Command Connect
  set log Phase Chat TUN Connect
  set dial
  set login
  set ifaddr 172.16.3.200/24 172.16.3.201-172.16.3.239 255.255.255.0
  set server /tmp/tun%d "" 0177
  # set lqrperiod 20
  # set echoperiod 20
  # enable lqr echo



pptp:
  disable ipv6cp pap chap
  disable deflate pred1
  deny deflate pred1
  enable proxy
  accept dns
  set mtu max 1024
  set dns 172.16.3.133
  set nbns 172.16.3.133
  enable MSChapV2
  enable mppe
  set mppe * stateful
  set radius /etc/ppp/radius.conf
  set rad_alive 60
  allow mode direct








___
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"


Re: pptpd problem (re-post) [SOLVED]

2011-05-17 Thread Mario Lobo
On Tuesday 17 May 2011 19:14:05 Lokadamus wrote:
> Am 15.05.2011 20:03, schrieb Mario Lobo:
> > Sorry for the re-post but I am really lost here.
> > Any hints, clues, pointers, opinions would be appreciated.
> > 
> > I have a VPN server on FBSD 8.1. The vpn closes fine. But as soon as I
> > start doing something with an inside LAN machine i.e. an RDP session, I
> > get this:
> > 
> > May 14 12:46:06 suporte pptpd[1958]: GRE: xmit failed from decaps_hdlc:
> > No buffer space available
> > and the VPN tunnel drops.
> > 
> > I googled a lot for it but I didn't find any thing that could help.
> > The system WAS working OK before. I tried everything I could think of.
> > 
> > Could anyone help?
> > Thanks,
> 
> Help this? http://forums.freebsd.org/showthread.php?t=1528
> Your values are:
> 
> net.inet.tcp.recvbuf_inc=16384
> net.inet.tcp.recvbuf_max=16777216
> net.inet.tcp.sendbuf_inc=8192
> net.inet.tcp.sendbuf_max=16777216

I got those settings from 
http://fasterdata.es.net/fasterdata/host-tuning/freebsd/

> Is ping working?

Everything is working!. Even the VPN tunnels work. I just can't do much once 
in it.

> Have you upgrade to FreeBSD 8.2?

Nope. But I will soon. Production machine. Have to wait for a window.

> Sorry for my bad english :(

Your English is fine!

Anyway, I switched from poptop to mpd5 and the problem went away!
"magic"! I openned 3 RDP sessions through the tunnel and it hanged in there.

Thank you for replying!
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: Ekiga && FreeBSD (for a future without Skype)

2011-05-25 Thread Mario Lobo
On Sunday 22 May 2011 14:10:33 Matthias Apitz wrote:
> Hello,
> 
> Now, as M$ bought Skype, we should stop wining for a native Skype client
> for FreeBSD and should prepare us for the time when M$ will "integrate"
> Skype into its desktop and stop deliver binaries for Linux;
> 

Behold! The corpse is still warm and it's already starting !!

http://www.zdnet.com/blog/networking/microsoft-skype-breaks-open-source-
partnership/?tag=nl.e550

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Funny thing with portsclean

2011-05-29 Thread Mario Lobo
-PIM applications
kdepim-runtime-4.4.11.1 Libraries for KDE-PIM applications
kdepimlibs-4.6.2Libraries for KDE-PIM applications
kdeplasma-addons-4.6.2 Extra plasmoids for KDE4
kdesdk-4.6.2KDE Software Development Kit
kdetoys-4.6.2   Collection of entertaining programs for KDE
kdeutils-4.6.2  Utilities for the KDE4 integrated X11 Desktop


Is portsclean doing something wrong here or am I missing something? isn't it 
supposed to cross info with the installed packeges database before deleting 
the distfiles, even if you "csuped" the ports tree?

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: Funny thing with portsclean

2011-05-30 Thread Mario Lobo
On Monday 30 May 2011 01:20:42 Robert Simmons wrote:
> Sorry, I didn't mention why.  You need use -DD if you don't want that
> to happen, and you want it to follow installed packages as well.
> ___
> 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"

A !! It was my bad then.

Thanks for the previous explanation also, Robert.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: editors/openoffice.org-3

2011-05-30 Thread Mario Lobo
On Monday 30 May 2011 12:29:13 Jamie Paul Griffin wrote:
> Hello
> 
> the build of this port fails due to a problem with the 'moz' module:
> 
>   ERROR: error 65280 occurred while making
>   /usr/ports/editors/openoffice.org-3/work/000330_m20/moz
> 
>   [ ... ]
> 
> I found a thread sent to freebsd-openoffice@ earlier this month where
> several people said they had experienced this problem, the last message
> in it was dated 15 May 2011. No update after and no indication when the
> problem might be fixed.
> 
> I wondered if anyone here has any more information about this?
> 
> best wishes,
> 
>   jamie
> ___
> 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"

I just went ahead and compiled WITHOUT_MOZILLA. The error didn't show and OO 
compiled, installed and runs fine.

I must say that I don't know precisely what functionality I am loosing with 
this though.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: Virtualbox on 8.2 64-bit

2011-06-06 Thread Mario Lobo
On Monday 06 June 2011 17:56:53 Rob wrote:
> I was attempting to install virtualbox on my 8.2-p2 64-bit system this
> weekend, and hit a rather curious situation.  The pre-packaged version
> of virtualbox retrievable by pkg_add is 3.2.12 (which looks in
> ports/amd64/packages-8.2-release).  Poking around on the ftp server, I
> see that packages-8.1-release also has a 3.x version, but
> packages-8-stable has the latest 4.0.8.
> 
> I went to look in ports, which contains 4.0.8, and build it myself but I
> got an error saying I need to have the 32-bit libraries installed in
> order to build virtualbox.
> 
> So, my question is 2-fold:
> 1) What is the reason the 64-bit pre-packaged version of virtualbox is
> still at the 3.x version?  Would there be a problem with installing the
> packages (virtualbox and kernel module) from packages-8-stable?
> 
> 2) How do I build virtualbox 4.0.8 on a 64-bit system w/o the 32-bit
> libs.  Is that possible?  Searching around has produced old e-mail
> threads indicating this was a problem as of 2 or so years ago with the
> 3.x release.  If it's not possible to build w/o the 32-bit libs, what do
> I need to install?
> 
> Rob

You need to rebuild your kernel with

options     COMPAT_FREEBSD32# Compatible with i386 binaries

included.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: Virtualbox on 8.2 64-bit (cont)

2011-06-06 Thread Mario Lobo
On Monday 06 June 2011 17:56:53 Rob wrote:
> I was attempting to install virtualbox on my 8.2-p2 64-bit system this
> weekend, and hit a rather curious situation.  The pre-packaged version
> of virtualbox retrievable by pkg_add is 3.2.12 (which looks in
> ports/amd64/packages-8.2-release).  Poking around on the ftp server, I
> see that packages-8.1-release also has a 3.x version, but
> packages-8-stable has the latest 4.0.8.
> 
> I went to look in ports, which contains 4.0.8, and build it myself but I
> got an error saying I need to have the 32-bit libraries installed in
> order to build virtualbox.
> 
> So, my question is 2-fold:
> 1) What is the reason the 64-bit pre-packaged version of virtualbox is
> still at the 3.x version?  Would there be a problem with installing the
> packages (virtualbox and kernel module) from packages-8-stable?
> 
> 2) How do I build virtualbox 4.0.8 on a 64-bit system w/o the 32-bit
> libs.  Is that possible?  Searching around has produced old e-mail
> threads indicating this was a problem as of 2 or so years ago with the
> 3.x release.  If it's not possible to build w/o the 32-bit libs, what do
> I need to install?
> 
> Rob



You need to rebuild your kernel with



options COMPAT_FREEBSD32# Compatible with i386 binaries



included.

And as per the port's error message:

cd /usr/src; make build32 install32; /etc/rc.d/ldconfig restart

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: Virtualbox on 8.2 64-bit

2011-06-06 Thread Mario Lobo
On Monday 06 June 2011 22:31:30 Rob wrote:
> On 6/6/11 8:13 PM, Mario Lobo wrote:
> > On Monday 06 June 2011 17:56:53 Rob wrote:
> >> I was attempting to install virtualbox on my 8.2-p2 64-bit system this
> >> weekend, and hit a rather curious situation.  The pre-packaged version
> >> of virtualbox retrievable by pkg_add is 3.2.12 (which looks in
> >> ports/amd64/packages-8.2-release).  Poking around on the ftp server, I
> >> see that packages-8.1-release also has a 3.x version, but
> >> packages-8-stable has the latest 4.0.8.
> >> 
> >> I went to look in ports, which contains 4.0.8, and build it myself but I
> >> got an error saying I need to have the 32-bit libraries installed in
> >> order to build virtualbox.
> >> 
> >> So, my question is 2-fold:
> >> 1) What is the reason the 64-bit pre-packaged version of virtualbox is
> >> still at the 3.x version?  Would there be a problem with installing the
> >> packages (virtualbox and kernel module) from packages-8-stable?
> >> 
> >> 2) How do I build virtualbox 4.0.8 on a 64-bit system w/o the 32-bit
> >> libs.  Is that possible?  Searching around has produced old e-mail
> >> threads indicating this was a problem as of 2 or so years ago with the
> >> 3.x release.  If it's not possible to build w/o the 32-bit libs, what do
> >> I need to install?
> >> 
> >> Rob
> > 
> > You need to rebuild your kernel with
> > 
> > options COMPAT_FREEBSD32# Compatible with i386 binaries
> > 
> > included.
> 
> I'm running the stock 8.2 kernel.  Is that option compiled into the
> kernel?  Where do I find the options that are enabled in the stock kernel?

I believe the stock kernel follows the GENERIC conf file which DOES include 
the COMPAT_FREEBSD32 option but I'm not 100% sure. Maybe someone on the list 
could confirm that.
 
> Also, does COMPAT_FREEBSD32 mean I don't need the 32-bit libs for
> compilation, or that the kernel will run binaries compiled for 32-bit
> systems?  If the later, then I'll still need to install the 32-bit
> version of the libraries in order to build, right?
> 
> Rob

You do need to compile the libraries as per my follow up post.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: Virtualbox on 8.2 64-bit (cont)

2011-06-09 Thread Mario Lobo
On Thursday 09 June 2011 10:49:37 Rob wrote:
> On 6/6/11 8:39 PM, Mario Lobo wrote:
> > On Monday 06 June 2011 17:56:53 Rob wrote:
> >> I was attempting to install virtualbox on my 8.2-p2 64-bit system this
> >> weekend, and hit a rather curious situation.  The pre-packaged version
> >> of virtualbox retrievable by pkg_add is 3.2.12 (which looks in
> >> ports/amd64/packages-8.2-release).  Poking around on the ftp server, I
> >> see that packages-8.1-release also has a 3.x version, but
> >> packages-8-stable has the latest 4.0.8.
> >> 
> >> I went to look in ports, which contains 4.0.8, and build it myself but I
> >> got an error saying I need to have the 32-bit libraries installed in
> >> order to build virtualbox.
> >> 
> >> So, my question is 2-fold:
> >> 1) What is the reason the 64-bit pre-packaged version of virtualbox is
> >> still at the 3.x version?  Would there be a problem with installing the
> >> packages (virtualbox and kernel module) from packages-8-stable?
> >> 
> >> 2) How do I build virtualbox 4.0.8 on a 64-bit system w/o the 32-bit
> >> libs.  Is that possible?  Searching around has produced old e-mail
> >> threads indicating this was a problem as of 2 or so years ago with the
> >> 3.x release.  If it's not possible to build w/o the 32-bit libs, what do
> >> I need to install?
> >> 
> >> Rob
> > 
> > You need to rebuild your kernel with
> > 
> > 
> > 
> > options COMPAT_FREEBSD32# Compatible with i386 binaries
> > 
> > 
> > 
> > included.
> > 
> > And as per the port's error message:
> > 
> > cd /usr/src; make build32 install32; /etc/rc.d/ldconfig restart
> 
> I noticed that when I tried to build the ports, but I don't have
> anything in /usr/src and no information was given as to what
> packages/src I needed to install.  I'd like to avoid diverging from the
> stock release kernel for upgrade simplicity.  What exactly does that do?
>   Will it introduce upgrade complexity (ie will I have to upgrade these
> libs before I upgrade the kernel or some such)?
> 
> Rob

To remain with the same kernel you installed, you must install the source tree 
from the same CD/DVD you used for installation.

You will have to run sysinstal and go to 

Configure  Do post-install configuration of FreeBSD

then

Distributions   Install additional distribution sets

then mark

[ ]  src   Sources for everything

Choose the CDROM as installation media. After that you'll have all the sources 
on your HD and can proceed to the compilation of the 32 libs.

If the sources are from the same CD you installed the system, they will be in 
sync with your kernel. No upgrade issues.
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: Virtualbox on 8.2 64-bit (cont)

2011-06-14 Thread Mario Lobo
On Monday 13 June 2011 21:14:05 Rob wrote:
> On 6/9/11 4:55 PM, Mario Lobo wrote:
> > On Thursday 09 June 2011 10:49:37 Rob wrote:
> >> On 6/6/11 8:39 PM, Mario Lobo wrote:
> >>> On Monday 06 June 2011 17:56:53 Rob wrote:
> >>>> I was attempting to install virtualbox on my 8.2-p2 64-bit system this
> >>>> weekend, and hit a rather curious situation.  The pre-packaged version
> >>>> of virtualbox retrievable by pkg_add is 3.2.12 (which looks in
> >>>> ports/amd64/packages-8.2-release).  Poking around on the ftp server, I
> >>>> see that packages-8.1-release also has a 3.x version, but
> >>>> packages-8-stable has the latest 4.0.8.
> >>>> 
> >>>> I went to look in ports, which contains 4.0.8, and build it myself but
> >>>> I got an error saying I need to have the 32-bit libraries installed
> >>>> in order to build virtualbox.
> >>>> 
> >>>> So, my question is 2-fold:
> >>>> 1) What is the reason the 64-bit pre-packaged version of virtualbox is
> >>>> still at the 3.x version?  Would there be a problem with installing
> >>>> the packages (virtualbox and kernel module) from packages-8-stable?
> >>>> 
> >>>> 2) How do I build virtualbox 4.0.8 on a 64-bit system w/o the 32-bit
> >>>> libs.  Is that possible?  Searching around has produced old e-mail
> >>>> threads indicating this was a problem as of 2 or so years ago with the
> >>>> 3.x release.  If it's not possible to build w/o the 32-bit libs, what
> >>>> do I need to install?
> >>>> 
> >>>> Rob
> >>> 
> >>> You need to rebuild your kernel with
> >>> 
> >>> 
> >>> 
> >>> options   COMPAT_FREEBSD32# Compatible with i386 binaries
> >>> 
> >>> 
> >>> 
> >>> included.
> >>> 
> >>> And as per the port's error message:
> >>> 
> >>> cd /usr/src; make build32 install32; /etc/rc.d/ldconfig restart
> >> 
> >> I noticed that when I tried to build the ports, but I don't have
> >> anything in /usr/src and no information was given as to what
> >> packages/src I needed to install.  I'd like to avoid diverging from the
> >> stock release kernel for upgrade simplicity.  What exactly does that do?
> >> 
> >>Will it introduce upgrade complexity (ie will I have to upgrade these
> >> 
> >> libs before I upgrade the kernel or some such)?
> >> 
> >> Rob
> > 
> > To remain with the same kernel you installed, you must install the source
> > tree from the same CD/DVD you used for installation.
> > 
> > You will have to run sysinstal and go to
> > 
> > Configure  Do post-install configuration of FreeBSD
> > 
> > then
> > 
> > Distributions   Install additional distribution sets
> > 
> > then mark
> > 
> > [ ]  src   Sources for everything
> > 
> > Choose the CDROM as installation media. After that you'll have all the
> > sources on your HD and can proceed to the compilation of the 32 libs.
> > 
> > If the sources are from the same CD you installed the system, they will
> > be in sync with your kernel. No upgrade issues.
> 
> What is that command doing though?  It's building what from src?  What
> is the output of build32?  I assume it's not a kernel.
> 

No. Its JUST the 32 bit libraries.

make build32 builds the 32bit libraries. It simply outputs the compilation 
process.

make install32 installs the 32bit libraries. Same thing but for the install 
process.



> Also, do you know the difference between pre-built packages on the
> freebsd ftp server in packages-8.2-release vs packages-8-stable?
> 

Well, IF you installed the source tree from the SAME cd  which you installed 
the FreeBSD you have now, there won't be any problems. You said you want to 
keep the stock kernel you installed so I assume that you haven't updated 
anything from the internet. You MUST install the source tree from the same 
DVD/CD from where you installed your running kernel!

The diference is that the packages are meant to run on their respective 
version. I believe that packages that don't rely on a specific thing of one 
version should run without problems on both. But this is not normal or even 
needed at all, specially because it is so easy to bring everything uptodate to 
the same version.


-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Problem with PF reply-to

2011-07-13 Thread Mario Lobo
Hi;

I have the following scenario.

FreeBSD 8.2-STABLE FreeBSD 8.2-STABLE #0: Thu May 19 19:53:59 BRT 2011 
i386

I want to be able to connect to any of the 2 external IPs this machine has.

### pf.conf excerpt

ext_if1 = sis0 (1M link. default gateway)
ext_if2 = rl0  (2M link)
aln_if  = dc0  (Internal LAN)

ext_gw1 = A.A.A.A 
ext_gw2 = B.B.B.B

my_ext_ip1 = a.a.a.a
my_ext_ip2 = b.b.b.b


  nat on $ext_if1 from any to any -> $my_ext_ip1 port 1024:65535
  nat on $ext_if2 from any to any -> $my_ext_ip2 port 1024:65535

1) - # balance the load

  pass in log quick on $aln_if route-to ($ext_if2 $ext_gw2) from \
  $aln_if:network to any flags S/SA keep state tag to_out probability 70%
 
  pass in log quick on $aln_if route-to ($ext_if1 $ext_gw1) from \
  $aln_if:network to any flags S/SA keep state tag to_out 

2) - # allow ssh on ext_ifs

a)pass in log quick on $ext_if1 inet proto tcp from any to any port $SshPort \
  flags S/SA modulate state (max 30, source-track rule, max-src-nodes 10,\
  max-src-states 2, max-src-conn 2, max-src-conn-rate 2/60, overload )

b)pass in log quick on $ext_if2 reply-to ($ext_if2 $ext_gw2) inet proto tcp \
  from any to any port $SshPort flags S/SA keep state (max 30, source-track \
  rule, max-src-nodes 10, max-src-states 2, max-src-conn 2, max-src-conn-rate\
  2/60, overload ) ( RULE 8 )


[snip][snip]..


3) -

  pass out quick on $ext_if1 route-to ($ext_if2 $ext_gw2) from $ext_if2 to any
  pass out quick on $ext_if2 route-to ($ext_if1 $ext_gw1) from $ext_if1 to any

  Also tried:

  pass out quick on $ext_if1 route-to ($ext_if1 $ext_gw1) from $ext_if1 to any
  pass out quick on $ext_if2 route-to ($ext_if2 $ext_gw2) from $ext_if2 to any

  block log all ( RULE 163 )


### end of pf.conf excerpt


Everything under 1) works fine.

Under 2), a) works, b) not working.

When I try to connect to $SshPort through the 2M link (b.b.b.b). I connect to 
the server, but the return packet neither obeys the reply-to on rule b), nor 
matches any of the pass outs under 3), and goes straight to the block rule.
as you can see bellow.


[$]> tcpdump -n -e -ttt -i pflog0 host 187.113.99.63 (my home IP) 


Packet arrives and matches rule b)/8 and should create a state;

00:00:00.00 rule 8/0(match): pass in on rl0: 187.113.99.63.25806 > 
b.b.b.b.22: [|tcp]

but...

00:00:00.000108 rule 163/0(match): block out on sis0: a.a.a.a.8947 > 
187.113.99.63.25806: [|tcp]
00:00:03.57 rule 163/0(match): block out on sis0: a.a.a.a.65060 > 
187.113.99.63.25806: [|tcp]
00:00:03.199931 rule 163/0(match): block out on sis0: a.a.a.a..20213 > 
187.113.99.63.25806: [|tcp]
00:00:03.199618 rule 163/0(match): block out on sis0: a.a.a.a..19748 > 
187.113.99.63.25806: [|tcp]
00:00:03.200044 rule 163/0(match): block out on sis0: a.a.a.a..1600 > 
187.113.99.63.25806: [|tcp]
00:00:03.199767 rule 163/0(match): block out on sis0: a.a.a.a..45513 > 
187.113.99.63.25806: [|tcp]
00:00:06.205048 rule 163/0(match): block out on sis0: a.a.a.a..17925 > 
187.113.99.63.25806: [|tcp]

it tries to go back to me on the wrong interface (sis0 and NOT rl0), 
wrong ip (a.a.a.a and NOT b.b.b.b), and from several wrong port numbers, not 
port 22.

Questions:

1) sshd is listening on *.22. I know that the default gateway is not on rl0 
but isn't that what reply-to is supposed to beat? If I understood correctly, 
wasn't the reply-to supposed to make the packet go back throught the specified 
($ext_if2 $ext_gw2)?

2) Wasn't a state created when the pass rule b)/8 matched? if so, where is it?

Where am I doing wrong here?

Thanks for any hints.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: Problem with PF reply-to [SOLVED]

2011-07-13 Thread Mario Lobo
On Wednesday 13 July 2011 10:26:59 Mario Lobo wrote:
> Hi;
> 
> I have the following scenario.
> 
> FreeBSD 8.2-STABLE FreeBSD 8.2-STABLE #0: Thu May 19 19:53:59 BRT 2011
> i386
> 
> I want to be able to connect to any of the 2 external IPs this machine has.
> 
> ### pf.conf excerpt
> 
> ext_if1 = sis0 (1M link. default gateway)
> ext_if2 = rl0  (2M link)
> aln_if  = dc0  (Internal LAN)
> 
> ext_gw1 = A.A.A.A
> ext_gw2 = B.B.B.B
> 
> my_ext_ip1 = a.a.a.a
> my_ext_ip2 = b.b.b.b
> 
> 
>   nat on $ext_if1 from any to any -> $my_ext_ip1 port 1024:65535
>   nat on $ext_if2 from any to any -> $my_ext_ip2 port 1024:65535
> 
> 1) - # balance the load
> 
>   pass in log quick on $aln_if route-to ($ext_if2 $ext_gw2) from \
>   $aln_if:network to any flags S/SA keep state tag to_out probability 70%
> 
>   pass in log quick on $aln_if route-to ($ext_if1 $ext_gw1) from \
>   $aln_if:network to any flags S/SA keep state tag to_out
> 
> 2) - # allow ssh on ext_ifs
> 
> a)pass in log quick on $ext_if1 inet proto tcp from any to any port
> $SshPort \ flags S/SA modulate state (max 30, source-track rule,
> max-src-nodes 10,\ max-src-states 2, max-src-conn 2, max-src-conn-rate
> 2/60, overload )
> 
> b)pass in log quick on $ext_if2 reply-to ($ext_if2 $ext_gw2) inet proto tcp
> \ from any to any port $SshPort flags S/SA keep state (max 30,
> source-track \ rule, max-src-nodes 10, max-src-states 2, max-src-conn 2,
> max-src-conn-rate\ 2/60, overload ) ( RULE 8 )
> 
> 
> [snip][snip]..
> 
> 
> 3) -
> 
>   pass out quick on $ext_if1 route-to ($ext_if2 $ext_gw2) from $ext_if2 to
> any pass out quick on $ext_if2 route-to ($ext_if1 $ext_gw1) from $ext_if1
> to any
> 
>   Also tried:
> 
>   pass out quick on $ext_if1 route-to ($ext_if1 $ext_gw1) from $ext_if1 to
> any pass out quick on $ext_if2 route-to ($ext_if2 $ext_gw2) from $ext_if2
> to any
> 
>   block log all ( RULE 163 )
> 
> 
> ### end of pf.conf excerpt
> 
> 
> Everything under 1) works fine.
> 
> Under 2), a) works, b) not working.
> 
> When I try to connect to $SshPort through the 2M link (b.b.b.b). I connect
> to the server, but the return packet neither obeys the reply-to on rule
> b), nor matches any of the pass outs under 3), and goes straight to the
> block rule. as you can see bellow.
> 
> 
> [$]> tcpdump -n -e -ttt -i pflog0 host 187.113.99.63 (my home IP)
> 
> 
> Packet arrives and matches rule b)/8 and should create a state;
> 
> 00:00:00.00 rule 8/0(match): pass in on rl0: 187.113.99.63.25806 >
> b.b.b.b.22: [|tcp]
> 
> but...
> 
> 00:00:00.000108 rule 163/0(match): block out on sis0: a.a.a.a.8947 >
> 187.113.99.63.25806: [|tcp]
> 00:00:03.57 rule 163/0(match): block out on sis0: a.a.a.a.65060 >
> 187.113.99.63.25806: [|tcp]
> 00:00:03.199931 rule 163/0(match): block out on sis0: a.a.a.a..20213 >
> 187.113.99.63.25806: [|tcp]
> 00:00:03.199618 rule 163/0(match): block out on sis0: a.a.a.a..19748 >
> 187.113.99.63.25806: [|tcp]
> 00:00:03.200044 rule 163/0(match): block out on sis0: a.a.a.a..1600 >
> 187.113.99.63.25806: [|tcp]
> 00:00:03.199767 rule 163/0(match): block out on sis0: a.a.a.a..45513 >
> 187.113.99.63.25806: [|tcp]
> 00:00:06.205048 rule 163/0(match): block out on sis0: a.a.a.a..17925 >
> 187.113.99.63.25806: [|tcp]
> 
> it tries to go back to me on the wrong interface (sis0 and NOT rl0),
> wrong ip (a.a.a.a and NOT b.b.b.b), and from several wrong port numbers,
> not port 22.
> 
> Questions:
> 
> 1) sshd is listening on *.22. I know that the default gateway is not on rl0
> but isn't that what reply-to is supposed to beat? If I understood
> correctly, wasn't the reply-to supposed to make the packet go back
> throught the specified ($ext_if2 $ext_gw2)?
> 
> 2) Wasn't a state created when the pass rule b)/8 matched? if so, where is
> it?
> 
> Where am I doing wrong here?
> 
> Thanks for any hints.


Never mind !

I solved the problem after finding this very enlightening document:

http://www.mmacleod.ca/blog/2011/06/source-based-routing-with-freebsd-using-
multiple-routing-table/

I followed it and it all works beautifully now.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: help

2011-07-14 Thread Mario Lobo
On Thursday 14 July 2011 20:06:06 Erman Zülfükaroğlu wrote:
> Hi , I try to mount free bsd to Windows sharing folder.
> mount_smbs -I 10.0.0.x  /10.0.0.x/share folder name /mnt/mount folder
> 
> but i can't.
> mount_smbfs=unable open to connection syserr=connection refused
> 
> samba installed.
> 
> Please help ,
> 
> Thanks
> ___
> 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"

Which windows version? 
Is the folder shared properly? Win 7 is pretty rough on sharing folders.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: Lennart Poettering: BSD Isn't Relevant Anymore

2011-07-17 Thread Mario Lobo
On Sunday 17 July 2011 10:13:13 C. Bergström wrote:
> In the specific case about Gnome - really if you care so much then you
> can submit patches and contribute.  If nobody is willing to do the work
> (scratch the itch) then ultimately it really doesn't matter.
> 
> I hope gnome does do this..   Maybe then more
> people would forget about it and focus on making KDE better ;)
> 

YES !! I hope so too.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: BSD: Relevant , Lennart Poettering Isn't Anymore

2011-07-18 Thread Mario Lobo
On Monday 18 July 2011 19:04:55 Outback Dingo wrote:
> 
> Sorry Guys.. I just had to nail down the Subject Topic and correct
> it
> 


YEAH    Thanks!

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: Lennart Poettering: BSD Isn't Relevant Anymore

2011-07-18 Thread Mario Lobo
Hi;


First of all, forgive me for top posting but I don't want to "disturb" the 
debate between Jerry and Polytropon. In fact, I enjoyed it so much that I 
saved it in separate folder. It is just plain good reading, not only because 
of the issue at hand, but also because of the elegance and intelligence of the 
arguments presented by each of them, and because it was delightful to notice 
how their cultural backgrounds influence their presentations, to the point 
where even when using "harsh words" didn't carry offense.

I firmly believe that this is why FreeBSD exists. Because it is backed up by 
people of this caliber, whether as users or developers. Even the trolls and 
flame wars here (not in NO way implying that this thread was one!) make more 
intelligent and enjoyable reading than in any other forum I go.

In my humble user opinion, that is why FreeBSD is more than relevant. To me, 
at least, is indispensable, both as a tool and as a reference for every other 
OS in existence. I am not arguing here that my preference is "better" than 
anybody else's. FreeBSD itself is wide enough to fit a huge number of them. 
This universe expands even more if you add the other BSDs.

This is just a thank-you note and for sharing a simple permanent feeling of 
relief for having made a good choice.


The only offense that keeps coming back is the post's subject.   

Best regards,
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)



On Monday 18 July 2011 17:31:41 Polytropon wrote:
> On Mon, 18 Jul 2011 15:48:46 -0400, Jerry wrote:
> > On Mon, 18 Jul 2011 16:58:08 +0200
> > 
> > Polytropon articulated:
> > > Here the circle closes: Without STANDARDS, you wouldn't
> > > be able to view the digital pictures you took with a
> > > camera 10 years ago because the manufacturer decided
> > > to use a proprietary image format without any documentation,
> > > as you should only use the software supplied by the
> > > manufacturer. Dropping program version X and advertising
> > > version Y with the new models of the digital camera,
> > > and everything you'll have is a bunch of files nobody
> > > can read anymore. You can also see this in computer
> > > media, although with a lower half-life period.
> > > 
> > > If you want to get into the future, rely on established,
> > > open and free standards.
> > > 
> > > In my opinion, there is no alternative. Everything else
> > > would just increase costs (e. g. migration costs). But
> > > there are fields of use where costs simply doesn't matter
> > > (as it seems).
> > 
> > I apologize for cherry picking this; however, your analysis is so
> > faulty that I was force to. You camera analogy is simply absurd.
> 
> I wanted it to be understood as an analogy.
> 
> > You were aware that Kodak dropped the C22 development process decades
> > ago which effectively make all films designed for that process useless.
> > It also spelled then end of GAF, but that is another story. KODACHROME
> > Film was discontinues after a 74 year run. Actually, it was created due
> > to Kodak's inability to properly stabilize the layers in the color film
> > it was trying to create; but that is another story. I still have
> > several collector's grade cameras that used films such as the 116 and
> > 616 designations. These films were discontinued in 1984.
> 
> You're talking hardware (film material) here, not software.
> 
> Your analogy illustrates how technology does disappear. It
> gets more and more complicated working with film material,
> as digital cameras allow you to do all the things that you
> could do with expensive cameras only in the past. Even
> professionals have switched (of course to expensive and
> therefor professional camera models), both for photographing
> and for movies.
> 
> In software, see "planned obsolescense" and "digital medieval
> times" ("digital middleage") and movements that want to keep
> witnesses of our today's culture.
> 
> This means you will _always_ have to judge: Need a short-term
> solution that is "the best" for a short term, or need a long-
> term solution that is "good" (or even just "good enough") for
> a longer period of time.
> 
> Sloppily engineered and halfway done solutions can - by means
> of marketing - be sold for the first kind of products quite
> easily, and "constantness" is not an important topic for the
> main markets (home consumers).
> 
> > Should I sue
> > Kodak, or any other manufacturer for their

Re: Lennart Poettering: BSD Isn't Relevant Anymore

2011-07-18 Thread Mario Lobo
Hi;

First of all, forgive me for top posting but I don't want to "disturb" the 
debate between Jerry and Polytropon. In fact, I enjoyed it so much that I 
saved it in separate folder. It is just plain good reading, not only because 
of the issue at hand, but also because of the elegance and intelligence of the 
arguments presented by each of them, and because it was delightful to notice 
how their cultural backgrounds influence their presentations, to the point 
where even when using "harsh words" didn't carry offense.

I firmly believe that this is why FreeBSD exists. Because it is backed up by 
people of this caliber, whether as users or developers. Even the trolls and 
flame wars here (not in NO way implying that this thread was one!) make more 
intelligent and enjoyable reading than in any other forum I go.

In my humble user opinion, that is why FreeBSD is more than relevant. To me, 
at least, is indispensable, both as a tool and as a reference for every other 
OS in existence. I am not arguing here that my preference is "better" than 
anybody else's. FreeBSD itself is wide enough to fit a huge number of them. 
This universe expands even more if you add the other BSDs.

This is just a thank-you note and for sharing a simple permanent feeling of 
relief for having made a good choice.

The only offense that keeps coming back is the post's subject.   

Best regards,

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)

On Monday 18 July 2011 17:31:41 Polytropon wrote:
> On Mon, 18 Jul 2011 15:48:46 -0400, Jerry wrote:
> > On Mon, 18 Jul 2011 16:58:08 +0200
> > 
> > Polytropon articulated:
> > > Here the circle closes: Without STANDARDS, you wouldn't
> > > be able to view the digital pictures you took with a
> > > camera 10 years ago because the manufacturer decided
> > > to use a proprietary image format without any documentation,
> > > as you should only use the software supplied by the
> > > manufacturer. Dropping program version X and advertising
> > > version Y with the new models of the digital camera,
> > > and everything you'll have is a bunch of files nobody
> > > can read anymore. You can also see this in computer
> > > media, although with a lower half-life period.
> > > 
> > > If you want to get into the future, rely on established,
> > > open and free standards.
> > > 
> > > In my opinion, there is no alternative. Everything else
> > > would just increase costs (e. g. migration costs). But
> > > there are fields of use where costs simply doesn't matter
> > > (as it seems).
> > 
> > I apologize for cherry picking this; however, your analysis is so
> > faulty that I was force to. You camera analogy is simply absurd.
> 
> I wanted it to be understood as an analogy.
> 
> > You were aware that Kodak dropped the C22 development process decades
> > ago which effectively make all films designed for that process useless.
> > It also spelled then end of GAF, but that is another story. KODACHROME
> > Film was discontinues after a 74 year run. Actually, it was created due
> > to Kodak's inability to properly stabilize the layers in the color film
> > it was trying to create; but that is another story. I still have
> > several collector's grade cameras that used films such as the 116 and
> > 616 designations. These films were discontinued in 1984.
> 
> You're talking hardware (film material) here, not software.
> 
> Your analogy illustrates how technology does disappear. It
> gets more and more complicated working with film material,
> as digital cameras allow you to do all the things that you
> could do with expensive cameras only in the past. Even
> professionals have switched (of course to expensive and
> therefor professional camera models), both for photographing
> and for movies.
> 
> In software, see "planned obsolescense" and "digital medieval
> times" ("digital middleage") and movements that want to keep
> witnesses of our today's culture.
> 
> This means you will _always_ have to judge: Need a short-term
> solution that is "the best" for a short term, or need a long-
> term solution that is "good" (or even just "good enough") for
> a longer period of time.
> 
> Sloppily engineered and halfway done solutions can - by means
> of marketing - be sold for the first kind of products quite
> easily, and "constantness" is not an important topic for the
> main markets (home consumers).
> 
> > Should I sue
> > Kodak, or any other manufacturer for their

Re: 2020: Will BSD and Linux be relevant anymore?

2011-07-19 Thread Mario Lobo
On Tuesday 19 July 2011 03:18:41 Konrad Heuer wrote:
> 
> But: Neither BSD nor Linux will ever have chance to conquere the desktop,
> despite of KDE, Gnome or anything else. In business environments there is
> no alternative to Windows. Microsoft successfully created Active Directory
> from DNS, LDAP and Kerberos with an easy-to-manage interface 
> 
> Konrad Heuer

Err ... just a little correction here.

Microsoft copied its AD deck from Novell Directory Services - NDS, shuffled 
the cards, added a few bits and pieces here and there and called it its own, 
having "some similarities" with NDS, as MS has ALWAYS been doing since DOS 
1.0.

I remember very well when the ease of management with NDS was well 
estabilished by NETWARE 6.xx (it showed up first in 5.xx) and delighting 
network admins who managed Novell environments (as I was doing at the time), 
when MS announced its, ahaam, "revolutionary" active directory services. 

NDS -> ADS. Like I said, just card shuffling.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: Lennart Poettering: BSD Isn't Relevant Anymore

2011-07-19 Thread Mario Lobo
On Tuesday 19 July 2011 10:06:22 Jerry wrote:
> On Mon, 18 Jul 2011 20:33:01 -0300
> 
> Mario Lobo articulated:
> > First of all, forgive me for top posting but I don't want to
> > "disturb" the debate between Jerry and Polytropon. In fact, I enjoyed
> > it so much that I saved it in separate folder. It is just plain good
> > reading, not only because of the issue at hand, but also because of
> > the elegance and intelligence of the arguments presented by each of
> > them, and because it was delightful to notice how their cultural
> > backgrounds influence their presentations, to the point where even
> > when using "harsh words" didn't carry offense.
> 
> Ah, how sweet. You have just made my Christmas Card list. I apologize
> if you are a non-Christian.
> 
> Let me clarify that statement. I am not apologizing because you might
> not be a Christian, but rather for offering to place you on my
> Christmas Card list if you aren't. 

Well, no apologies needed!. I am truly honored to be in your Christmas card 
list, even if I was not a Christian, though that doesn't necessarily means 
that I am a Christian, at least in the pagan sense of the word (i.e. - what 
non-believers/atheists/whatever think a Christian is), or even in the 
non-pagan sense.

Anyway, consider your offer mutual.

> I thought I had better make that
> clear less someone with an IQ of a cockroach claims I was attacking
> non-Christians.

Gook thinking! So, "apologies accepted", just in case a non-Christian moron 
shows up. 

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Phenom II 975 BE shows 0 celsius

2011-07-31 Thread Mario Lobo
Hi to all

In my desktop machine, I had an AM2+ ASROCK mobo with Phenom II 955 BE that 
showed each core temperature perfectly under FBSD 8-STABLE, via 
dev.cpu.x.temp. amdtemp.ko loaded.

Unfortunately this Mobo died and only found AM3 boards for which my phenom 955 
doesn't fit. So I got an ASUS M4A88T-V EVO with a Phenom II 975 BE. 

Funny thing. An AM3 phenom II fits on an AM2 board but an AM3 board doesn't 
accept an AM2/AM2+ phenom II :(.

Anyway, now, under the very same system, it shows 0 degrees on dev.cpu.x.temp 
for all cores.

I've been looking through k8temp and amdtemp src code. I am definitely not 
sure of this but I believe something might have happened to those:

From k8temp.h

K10_THERM_REG  0xa4 
K10_THERMTRIP_REG  0xe4
K10_CURTMP(val)(((val) >> 21) & 0xfff)
K10_THERMTRIP(val) ((val >> 1) & 1)

From amdtemp.c

/*
 * Register control (K8 family)
 */
#define AMDTEMP_REG0F   0xe4
#define AMDTEMP_REG_SELSENSOR   0x40
#define AMDTEMP_REG_SELCORE 0x04

/*
 * Register control (K10 & K11) family
 */
#define AMDTEMP_REG 0xa4


Output of k8temp -dn:

CPUID: Vendor: AuthenticAMD, 0x100f43: Model=04 Family=f+1 Stepping=3
Advanced Power Management=0x1f9
   Temperature sensor: Yes
 Frequency ID control: No
   Voltage ID control: No
THERMTRIP support: Yes
   HW Thermal control: Yes
   SW Thermal control: Yes
   100MHz multipliers: Yes
   HW P-State control: Yes
TSC Invariant: Yes
Temp=c0fef
ThermTrip=1fc00c30
0

I keep a small win7 partition to test little things like this and see if the 
same thing happens there, and it doesn't, so I concluded that the sensors are 
there and are working.

One thing is worth noting though. I have used a free gadget that shows 
activity/temp for each core. It worked fine with the previous MB/CPU.That ALSO 
stopped working with this new MB. Like FBSD, it shows 0 degrees for any core 
too, although it correctly displays each core load.

The only windows tool that correctly shows the temperature are the ASUS tools 
that came with the mobo.

Other than that, everything is working fine! The only thing I had to fix was 
the fstab ada location.

I know this is not a big thing but I got accustomed to keeping an eye on those 
temperatures.

I have googled for a few days now searching for Thermal register address or 
offsets for the Phenom II 975 BE, or anything related to this problem and 
found nothing. Every search on AMD site was fruitless. I could not find a 
single bit of tech info on this processor there, or any other tech info for 
that matter.


Would any one have any pointers/clues/suggestions on this?

Thanks,
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: Phenom II 975 BE shows 0 celsius

2011-08-01 Thread Mario Lobo
On Monday 01 August 2011 15:52:30 Matthew D. Fuller wrote:
> On Sun, Jul 31, 2011 at 09:28:29PM -0300 I heard the voice of
> 
> Mario Lobo, and lo! it spake thus:
> > Unfortunately this Mobo died and only found AM3 boards for which my
> > phenom 955 doesn't fit.
> 
> Not that it helps you now, but the 955 _is_ perfectly compatible with
> AM3.  It's only the initial 920 and 940 that were AM2-only.

I was just following this:

http://support.amd.com/us/kbarticles/Pages/CPU-6-socket-am2-plus-phenom-ii-
compatibility-alert.aspx
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: more information

2011-08-05 Thread Mario Lobo
On Friday 05 August 2011 19:47:17 Chad Perrin wrote:
> On Fri, Aug 05, 2011 at 12:37:30PM -0500, Gary Gatten wrote:
> > If I find someone with an IQ of 160+ and they ask everyone to play
> > nice, will you?  Mine is only 140 something so I don't feel qualified
> > to take this task on myself.  It would be nice though if someone took
> > such offense to a post they would simply ignore it or contact OP
> > offline.  Seem 50% of the content here is b!itching.  Now sometimes,
> > and perhaps most times, it serves as a source of entertainment for me.
> > Others it's just annoying  - such as now.  With all this brain power
> > and apparently spare time, can anyone tell me how to get back all the
> > money I've lost in the market over the last 3 years?  Or, perhaps in
> > the last 3 days?  I would like some "help" with that!
> 
> Regarding IQ tests . . . there's not much point in comparing
> measurements.  I've taken half a dozen or so IQ tests over the years.
> Among them, all but two have landed between 135 and 168, depending on the
> specific test, the scale used, what I had for breakfast that morning, my
> mood, the sort of uses to which I've put my brain in the year or two
> immediately preceding the test, my age, and numerous other factors.
> Those other two tests -- one of them came in under 100, and the other was
> off the charts to the tune of "+30 or more, probably a lot more"
> according to the guy scoring it.  Add to that an SAT score from way back
> when the SATs actually measured aptitude and were considered suitable
> measures of IQ to qualify people for Mensa membership, with every single
> score I've gotten differing notably from all the rest, and the result
> seems obvious: Whatever each of you has for an IQ score from some test
> years ago, chances are good that if you took a test again you would get a
> wildly different result.
> 
> . . . and let's not forget that deficiencies in some areas can drag your
> score down, while particular aptitudes can in others can drag it up,
> skewing the overall results in a way that might set unrealistic
> expectations one way or the other for judging general intelligence.  Good
> at spacial relations, but bad at abstract logic?  Maybe you'll end up
> confusing the hell out of people who think you're brilliant half the time
> and rock stupid the other half.
> 
> As for your money lost to the market, you're going to have a tough time
> getting someone to tell you a foolproof way to get it back that does not
> involve time travel.  If I had a pretty clear view of your investment
> patterns over the years that led to these losses, though, I could
> probably give you some halfway decent advice to avoid taking similar
> losses in the future.  Unfortunately, it's much more difficult to predict
> future (safe) money-makers than to point out where someone is just
> gambling with market trends that represent aberrations rather than the
> consistent positive growth that they think it really represents, with a
> basic grasp of some driving economic principles.
> 
> In general, my first piece of advice would be that you should never
> invest in something whose success you do not actually understand at the
> level of microeconomic principles.  Next, consider the political
> landscape that might skew the effect of those principles.
> 
> . . . and if you can do that, you should also be able to develop a pretty
> good intuition for dealing with security threats for your FreeBSD
> systems, because a lot of those threats are essentially the result of
> economic and political circumstances inspiring people to act according to
> their natures.
> 
> Voila.  By a long and circuitous route, I brought it back to the subject
> of FreeBSD.  Do I get a cookie?

Yeah, Chad! and crispy one indeed.

This IQ thing is really boring. Luckily, I never had to take an IQ test but I 
know that some people who took them didn't have an option. It was either it or 
the job. But actually, I'm not even curious about it. It is much more 
appealing to me to spend time studying and learning new things about FreeBSD 
for instance, than to spend time, as short as it may be, trying to find out 
how big my brain d**k is. A lazy bum with an IQ of 2000 is worthless while an 
energetic jack ass with an IQ of -100 at least can be used to pull a chariot 
or something.

IQ tests can't point out character and diligence. Psychological profiles may 
do that but that's for another troll.


-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


High interrupt rate

2011-08-06 Thread Mario Lobo
Hi there;

My system is a FreeBSD 8.2-STABLE #0: Wed Jul 13 17:32:44 BRT 2011 i386

I have 4 nics. sis0, rl0, vr0 and dc0. The last three are in polling mode 
(which I did to see if it would decrease the int amount).

The int rate for sis0 is low.

vmstat -i reports:

interrupt  total   rate
irq6: fdc0 1  0
irq14: ata0   163039  6
irq15: ata1   29  0
irq19: sis0 vr0   688525 29
irq20: ohci0  27  0
irq23: ehci0   2  0
cpu0: timer 46922025   2000
cpu1: timer 46918117   1999
Total   94691765   4036


But top reports:

last pid:  5163;  load averages:  0.04,  0.09,  0.08

   
up 0+06:30:13  20:13:59
144 processes: 3 running, 121 sleeping, 20 waiting
CPU:  0.0% user,  0.0% nice,  1.2% system, 24.0% interrupt, 74.8% idle
Mem: 42M Active, 154M Inact, 116M Wired, 96K Cache, 112M Buf, 1667M Free
Swap: 4000M Total, 4000M Free

  PID USERNAMETHR PRI NICE   SIZERES STATE   C   TIME   WCPU COMMAND
   11 root  2 171 ki31 0K16K CPU00 706:33 103.37% idle
   12 root 20 -32- 0K   160K WAIT1  67:16 97.46% intr
0 root 10 -680 0K72K -   1   1:34  2.98% kernel

Systat reports:

1 usersLoad  0.12  0.11  0.08  Aug  6 20:15

Mem:KBREALVIRTUAL   VN PAGER   SWAP PAGER
Tot   Share  TotShareFree   in   out in   out
Act   560965076   194524 9784 1706152  count
All  1139006624  234149213732  pages
Proc:Interrupts
  r   p   d   s   w   Csw  Trp  Sys  Int  Sof  Fltcow4042 total
 73  6150   10  405   44  30k zfodfdc0 
irq6
  ozfod   ata0 
irq14
 1.5%Sys  25.0%Intr  0.0%User  0.0%Nice 73.5%Idle%ozfod   ata1 
irq15
|||||||||||   daefr44 sis0 vr0 
1
= prcfr   ohci0 20
 5 dtbuf  totfr   ehci0 23
Namei Name-cache   Dir-cache60 desvn  react  1999 cpu0: 
time
   Callshits   %hits   % 27121 numvn  pdwak  1999 cpu1: 
time
   943 frevn  pdpgs
  intrn
Disks   ad0   ad1   cd0 pass0  118476 wire
KB/t   0.00  0.00  0.00  0.00   43796 act
tps   0 0 0 0  157764 inact
MB/s   0.00  0.00  0.00  0.00  96 cache
%busy 0 0 0 0 1706056 free
   114880 buf 


I know 75% idle is not bad but this machine, when not under load on a saturday 
night like today, used to be at around 98% idle 99% of the time. Now its is at 
72% idle 99.9% of the time. It has been like this all day.

The only things with a high interrupt rate are

cpu0: timer 46922025   2000
cpu1: timer 46918117   1999

What could be causing this?

thanks,
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: High interrupt rate

2011-08-07 Thread Mario Lobo
On Sunday 07 August 2011 18:34:27 b. f. wrote:
> > I know 75% idle is not bad but this machine, when not under load on a
> > saturday night like today, used to be at around 98% idle 99% of the
> > time. Now its is at 72% idle 99.9% of the time. It has been like this
> > all day.
> > 
> > The only things with a high interrupt rate are
> > 
> > cpu0: timer 46922025   2000
> > cpu1: timer 46918117   1999
> > 
> > What could be causing this?
> 
> I don't know that 2 timer interrupts per-cpu, per kern.hz, is
> altogether unexpected for some configurations, under some conditions.
> What happens if you boot with kern.hz="100" in /boot/loader.conf, or
> set via the loader command line?  What happens if you remove the
> DEVICE_POLLING option from your kernel (and _not_ just disable polling
> per-device)?  What is the output from "sysctl kern.timecounter
> kern.eventtimer"?
> 
> b.

Thanks b. !

[~]>sysctl kern.timecounter
kern.timecounter.tick: 1
kern.timecounter.choice: TSC(-100) ACPI-safe(850) i8254(0) dummy(-100)
kern.timecounter.hardware: ACPI-safe
kern.timecounter.stepwarnings: 0
kern.timecounter.tc.i8254.mask: 65535
kern.timecounter.tc.i8254.counter: 39201
kern.timecounter.tc.i8254.frequency: 1193182
kern.timecounter.tc.i8254.quality: 0
kern.timecounter.tc.ACPI-safe.mask: 16777215

   
kern.timecounter.tc.ACPI-safe.counter: 1055460  

   
kern.timecounter.tc.ACPI-safe.frequency: 3579545

   
kern.timecounter.tc.ACPI-safe.quality: 850  

   
kern.timecounter.tc.TSC.mask: 4294967295

   
kern.timecounter.tc.TSC.counter: 1200011080 

   
kern.timecounter.tc.TSC.frequency: 1995401152   

   
kern.timecounter.tc.TSC.quality: -100   

   
kern.timecounter.smp_tsc: 0 

   
kern.timecounter.invariant_tsc: 1  

[~]>sysctl kern.hz
kern.hz: 1000

[~]>sysctl kern.eventtimer
sysctl: unknown oid 'kern.eventtimer'

I'll wait for your views on those before disabling polling on the kernel and 
hz=100.


Thanks again.
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: High interrupt rate

2011-08-10 Thread Mario Lobo
On Monday 08 August 2011 21:30:41 b. f. wrote:

>> I'll wait for your views on those before disabling polling on the kernel
>> and hz=100.

> It looks like your interrupt rate, while probably higher than needed,
> is not unexpectedly high for your configuration.  But you can lower it
> if you want to do so.
> 
> You are using a system before the introduction of the new eventtimer
> code.  If you use 9.x, that has the new code and some other
> timer-related improvements, and you are not performing polling, then
> you can achieve a large reduction in the number of timer interrupts
> when the system isn't busy. You can still achieve a reduction on 8.x,
> but the reduction usually won't be as large as on 9.x under similar
> conditions.
> 
> To reduce timer interrupts on an idle system running 8.x or 9.x, if
> you do not need to poll (most systems do not), remove  DEVICE_POLLING
> from your kernel, and lower kern.hz to a suitable value -- 100 or 250,
> for example. For many workloads, a lower value is not only adequate,
> but may also be better in some ways.
> 
> Also, you may want to consider using your TSC as the system
> timecounter, because it is usually more efficient to do so.  This may
> not work for SMP, because if there are multiple TSCs on your system,
> they may not be synchronized.  In 9.x, there is a test for
> synchronization, and the TSCs are preferred to the ACPI-safe timer if
> they satisfy this test and meet some other requirements.  In 8.x, the
> user has to tell the system that it is safe to use the TSCs by adding:
> 
> kern.timecounter.smp_tsc="1"
> 
> to /boot/loader.conf.  If you are not putting your cores into the C3
> state, then you could try setting this via the loader command line,
> booting, and then seeing if the kern.timecounter.tc.TSC.quality is
> positive, kern.timecounter.hardware is TSC, and everything is working
> as expected.  If the results are satisfactory, then you could add the
> above entry to /boot/loader.conf.  But it would be better to do this
> on 9.x, where there are some added safeguards.
> 
> b.

b.;

Something really odd happened. After I sent you the data, while waiting for 
your reply, I changed Lusca cache to use 64M ram instead of the 256M it had. 
It was 1/8th of ram so I just decided to give it less.

Well, I swear to you this was the ONLY thing I did!. Since then, the system 
has been running at around 97% idle 98% of the time! During load hours, there 
are only short(1s) spikes of 75%ish idle, far from each other. And web 
performance is actually a little better! And the overall response of the 
system improved. That's why I waited a couple of days to reply so I could 
confirm this behavior.

I don't know. Maybe with more ram, lusca was spawning to many threads and thus 
loading the CPU but this is just a guess. I will take lusca memory back to 256 
for the sake of checking but I want to find out if this new found estability 
is there to stay so I'll wait a little longer to do that.

Your suggestions will be kept handy just in case.

Thanks for everything.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: A quality operating system

2011-08-20 Thread Mario Lobo
On Saturday 20 August 2011 19:47:07 Fish Kungfu wrote:
> Meanwhile, the OP has run away giggling like a juvenile who just threw a
> rock at a hornets nest.
> 

You bet! The OP (and Rob) were probably just bored, but Vadim Goncharov was 
definetly NOT! (Thanks Test Rat!)

<http://lists.freebsd.org/pipermail/freebsd-arch/2011-August/011412.html>.

That got me worried. It does provide a global picture as to why some of OP's 
"bad" feelings about the future of FreeBSD can pop up.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: to come from Linux to FreeBSD

2011-08-24 Thread Mario Lobo
On Wednesday 24 August 2011 08:48:30 Julian H. Stacey wrote:
> Hi,
> 
> Reference:
> > From:   Dick Hoogendijk 
> > Date:   Wed, 24 Aug 2011 12:24:37 +0200
> > Message-id: <4e54d165.7090...@nagual.nl>
> 
> Dick Hoogendijk wrote:
> > Op 24-8-2011 10:41, Matthew Seaman schreef:
> > > Virtualization is actually a bit of a tricky thing with FreeBSD.
> > > There's Jail, which is excellent -- very light weight, but it only
> > > works with FreeBSD guests. There's VirtualBox, but that runs the guest
> > > OSes as a standard client application and it tends to be slow
> > 
> > VirtualBox is absolutely not slow. At least not on Solaris nor on
> > windows7 boxes. The VB support from FreeBSD is not that good imho. It is
> > a lot easier to get it going under linux, windows or solaris. I know,
> > fbsd packages do not exist. I wonder why...
> > 

I don't know how you guys have been installing Virtualbox on FreeBSD but I 
have been using it since 3.x.x, Always compiling it from ports (using 4.1.2 
now), almost without glitch. The "almost" is on account of a long gone bug 
with nvidia driver versions 1.7.something. Nothing to do with VB. After that, 
no glitches anymore.

As how it runs on my 8-STABLE amd64, I've been able to compare it to vmware 
and hiper-v and as far as running the same things on the 3 of them, to me, 
VBox outperformed both in terms of speed and responsiveness. All 3 are pretty 
stable and hiper-v needs a monster machine to run, contrary to VB and VW. 

I have linux (fedora, centos and ubuntu), OS-x (hackintosh and SL), Os/2, 
Android, Xp (32/64),Win 2003 and win7 (32/64) vms, all jumping from VB version 
to VB version, all without a single glitch, and all performing better with 
each new version. I went as far as installing a background VB Xp vm on my 
firewall (which is a small FBSD 8-STABLE i386 ) for application testing 
purposes.

I can't say how VB runs on huge environments because I don't have access to 
any.

As for support for VB in general, just stay tunned to 

vbox-users-commun...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vbox-users-community

and

vbox-...@virtualbox.org
http://vbox.innotek.de/mailman/listinfo/vbox-dev

and

http://forums.virtualbox.org/

I'm sure anyone will find all questions answered.

and specific to FreeBSD. Bernhard Froehlich has been doing a wonderful job, 
constantly updating the VB ports. Check out

https://svn.bluelife.at/index.cgi/blueports 

under emulators.


-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: A quality operating system

2011-08-24 Thread Mario Lobo
Hi Evan;

Please allow me some comments.

On Wednesday 24 August 2011 23:02:18 Evan Busch wrote:
> I didn't expect this much response.

That's a bit naive and shows how much you don't know this list.
 
>  Some interesting stuff:

Here, this is mostly the case. Even the trolls are so.

> On Sat, Aug 20, 2011 at 1:49 AM, Test Rat  wrote:
> > There is an ongoing discussion on arch@ about this.
> > 
> >  http://lists.freebsd.org/pipermail/freebsd-arch/2011-August/011412.html
> 
> This is an excellent discussion. Thank you.
> 

You bet! Full of technical details and concrete arguments.


> On Sat, Aug 20, 2011 at 12:12 PM, Dave Pooser
> 
>  wrote:
> > My own take:
> > 
> > 1) I really don't see the Handbook as all that great. It's
> 
> Every professional documentarian I've encountered agrees with you.
> It's inconsistent, wordy, and has no concept of the order of
> introduction of its concepts. No professional software package would
> ship with documentation this bad. The multiple grammatical errors only
> enhance the sense of its fundamentally confused nature as a document.
> 

Well, I think the handbook has got its name wrong. To me, it should have been 
called handybook. What you're saying sounds more like you wanted the handbook 
to be a usage tutorial, which it's NOT what it is supposed to be. If you put 
micro$oft's docs into this picture, prepare you wallet for tons of books. And 
in microsoft's case, it has an obligation to take you by the hand, and IT 
DOESN'T !.


I've been using FBSD since 2.2.8. When I first heard of it, I first did my 
homework: Googled for its history, its architecture, its inner workings, 
compatibility, etc.. (all of these are IN the handbook, by the way!) and 
opinions/usage by others. When I went to the handbook for the first time (not 
straight to it but by chance while googling for some "solution"), I was 
already a user for a good while. I already knew what FreeBSD was about, so 
whatever I found on the handbook was already familiar to me!.

The only time I resort straight to the handbook is to the hardware 
compatibility list whenever I'm thinking of buying something new for the 
server/desktop, but BEFORE I actually buy it.

For everything else, man pages and the lists are my lord and my shepard.

I think Polytropon put it very well:

"In most cases, documentation requires you to have a minimal
clue of what you're doing. There's terminology you simply
have to know, and concepts to understand in order to use
the documentation."


> 
> As far as people proving my point about the BSD community being
> reactionary:
> 
> (1)

[snip..]

Let's ponder over this in a rational and cold way.

First: You never mentioned in your post for how long you have been using 
FreeBSD or if you have even used it at all, which its obvious simply by lack 
of specific details, so your critique looses the "by experience" tag from the 
start. That's a no-no for this list, which will not measure distances to help 
people that already tried to help themselves.

Second, throughout your post, it sounds like your thoughts sprung up, not from 
your own quest and research, but from somebody (Ron) who "is completely pro-
Linux and pro-Windows, and against FreeBSD" (hummm...) and that is "the 
biggest UNIX fanatic I know"(100x hummm...). And Ron's millage with FreeBSD is 
never mentioned also, so that kinda drops the critique's "credibility" tag to 
the floor. 

Last, suppose you issue a general invitation for people to go over to your 
house for a free dinner, with food that you know (because you helped in 
preparing it!) in your heart and taste to be excellent, well prepared  and 
nutritious. And all of a sudden I storm at your door and yell for all the 
guests that already know what you know about the food, without even tasting 
anything, that a "very good and knowledgeable" friend of mine told me that the 
kitchen is as dirty as hell, the food tastes terrible and that all the guests 
will get diarrhea and probably die if they eat anything.

What would you do?

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: A quality operating system

2011-08-27 Thread Mario Lobo
On Thursday 25 August 2011 01:39:54 Polytropon wrote:
> > Last, suppose you issue a general invitation for people to go over to
> > your house for a free dinner, with food that you know (because you
> > helped in preparing it!) in your heart and taste to be excellent, well
> > prepared  and nutritious. And all of a sudden I storm at your door and
> > yell for all the guests that already know what you know about the food,
> > without even tasting anything, that a "very good and knowledgeable"
> > friend of mine told me that the kitchen is as dirty as hell, the food
> > tastes terrible and that all the guests will get diarrhea and probably
> > die if they eat anything.
> > 
> > What would you do?
> 
> Wow, what a nice analogy! =^_^=

Thanks Man. :)

I can almost feel sorry for "poor" Evan. I think he doesn't know what he's 
missing here.


-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: A quality operating system

2011-08-27 Thread Mario Lobo
On Saturday 27 August 2011 16:58:06 Frank Shute wrote:
> On Sat, Aug 27, 2011 at 01:56:16PM -0500, Evan Busch wrote:

[Snip..]

> > 
> > If so, it's just them trying to cover up the inherently defensive and
> > reactionary nature of their comments.
> 
> They're inherently defensive and reactionary because you're trolling.
> 
> > Would they send such an email on a business list?
> 
> Who cares? It's not a business list.
> 
> > > You can "predict" that everywhere. Just go to any halfway
> > > specialized setting and make claims about something not
> > > meeting your requirements
> > 
> > I've never had this problem when the claims have been stated
> > professionally -- only here.
> 
> OK, so you'll be able to provide links then?
> 
> Thought not.


Well, I don't know about everybody else but I don't believe that the aim of 
this gentleman's OP was about being constructive, at all.

Like somebody had already said here, he was just a kid that threw a rock on a 
wasp's nest, didn't have legs to run fast enough, and now he is crying all 
over the place because he got stung.

So, to exhaust everything I have to say on this subject, I will try to 
translate the best I can, two popular sayings here in my country. 
I hope I can make their meaning get through.

To his criticism on documentation:

"To a good 'understander', a half-word is enough."

To his deliriously vague critique on FreeBSD in general:

"The dogs always bark. But the caravan steadily moves on."

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


VPN problem

2011-09-09 Thread Mario Lobo
Hi;

I've been having this problem establishing a VPN behind a FreeBSD 8-STABLE 
with pf.

I have this scenario:


home LAN  FBSD+pf home  INTERNET --- FBSD+pf work --- work LAN
 MPD VPN server

nat rules on FBSD+pf home:


 nat on $ext_if from $int_if:network to any -> ($ext_if) port 1024:65535
 # nat on $ext_if from any to any -> ($ext_if) port 1024:65535


obs- it makes no difference which nat rule I use. The problem persists.


These are the first 5 pf rules on FBSD+pf home:

  # pass quick all
  pass quick on lo0 all

  # my whole home lan is free
  pass in quick on $int_if from $int_if:network to any
  
  #--- Allow networks to see themselves and dns
  pass quick from $int_if:network to $int_if:network
  
  #--- Allow vpns from anywhere to anywhere
  pass in quick log on $int_if proto gre from any to any keep state
  pass in quick log on $int_if proto tcp from any to any port pptp flags S/SA 
keep state



On any attempt to connect to the FBSD+pf work VPN Server from home LAN, 
I get this (even if I uncomment  pass quick all):

#>mpd5
Multi-link PPP daemon for FreeBSD
 
process 98799 started, version 5.5 (root@Papi 16:55  3-Sep-2011)
CONSOLE: listening on 127.0.0.1 5005
web: listening on 127.0.0.1 5006
[B1] Bundle: Interface ng0 created
[L1] [L1] Link: OPEN event
[L1] LCP: Open event
[L1] LCP: state change Initial --> Starting
[L1] LCP: LayerStart
[L1] PPTP call successful
[L1] Link: UP event
[L1] LCP: Up event
[L1] LCP: state change Starting --> Req-Sent
[L1] LCP: SendConfigReq #1
[L1]   ACFCOMP
[L1]   PROTOCOMP
[L1]   ACCMAP 0x000a
[L1]   MRU 1486
[L1]   MAGICNUM 2d08ae01

[snip..]

[L1] LCP: SendConfigReq #10
[L1]   ACFCOMP
[L1]   PROTOCOMP
[L1]   ACCMAP 0x000a
[L1]   MRU 1486
[L1]   MAGICNUM 2d08ae01
[L1] LCP: parameter negotiation failed
[L1] LCP: state change Req-Sent --> Stopped
[L1] LCP: LayerFinish
[L1] PPTP call terminated
[L1] Link: DOWN event
[L1] LCP: Close event
[L1] LCP: state change Stopped --> Closed
[L1] LCP: Down event
[L1] LCP: state change Closed --> Initial


BUT, on the 9th or 10th attempt, without touching any setting anywhere, the 
VPN MAY BE established. out of nothing ! Machines (Windows, Unix, whatever) 
behind both FBSD+pfs ALSO have the same problem when trying to close VPN 
tunnels to outside sites.

Sometimes, opening an ssh session from my workstation to FBSD+pf work may 
"help" in establishing the VPN.

The FBSD+pf work VPN Server is working fine. My colleagues can connect to it 
from their homes (NATted cable modems or 3G modems) without problems. I am the 
only one behind a FBSD+pf router. 


I installed MPD5 on FBSD+pf home, and copied mpd.conf from my home workstation 
to it. 


Without touching a single setting on mpd.conf, the VPN is established 
from FBSD+pf home (as a client) to FBSD+pf work WITHOUT any hiccups on EVERY 
SINGLE attempt! even I bring it up/down 200 times!

And yet, if the FBSD+pf combo is out of the way, (i.e. no NAT!, as is the case 
of FBSD+pf home as a client) or if I let my cable modem do the NAT/routing, 
the problem is GONE!.


FreeBSD work 
FreeBSD 8.2-STABLE #0: Mon Aug 22 14:50:42 BRT 2011 amd64

FreeBSD Home
FreeBSD FreeBSD 8.2-STABLE #0: Wed May 18 16:53:26 BRT 2011 i386

Any suggestions?

Thanks,

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio.... YET!!] (99% winblows FREE)
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio.... YET!!] (99% winblows FREE)
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


VPN problem

2011-09-09 Thread Mario Lobo
Hi;

I've been having this problem closing a VPN behind a FreeBSD 8-STABLE with pf.

I have this scenario:

home LAN  FBSD+pf home  INTERNET --- FBSD+pf work --- work LAN
 MPD VPN server

 nat on $ext_if from $int_if:network to any -> ($ext_if) port 1024:65535
 # nat on $ext_if from any to any -> ($ext_if) port 1024:65535

obs- it makes no difference which nat rule I use. The problem persists.

These are the first 5 pf rules on FBSD+pf home:

  # pass quick all
  pass quick on lo0 all

  # my whole home lan is free
  pass in quick on $int_if from $int_if:network to any
  
  #--- Allow networks to see themselves and dns
  pass quick from $int_if:network to $int_if:network
  
  #--- Allow vpns from anywhere to anywhere
  pass in quick log on $int_if proto gre from any to any keep state
  pass in quick log on $int_if proto tcp from any to any port pptp flags S/SA 
keep state



On any attempt to conect to the FBSD+pf work VPN Server from home LAN, 
I get this (even if I uncomment  pass quick all):

#>mpd5
Multi-link PPP daemon for FreeBSD
 
process 98799 started, version 5.5 (root@Papi 16:55  3-Sep-2011)
CONSOLE: listening on 127.0.0.1 5005
web: listening on 127.0.0.1 5006
[B1] Bundle: Interface ng0 created
[L1] [L1] Link: OPEN event
[L1] LCP: Open event
[L1] LCP: state change Initial --> Starting
[L1] LCP: LayerStart
[L1] PPTP call successful
[L1] Link: UP event
[L1] LCP: Up event
[L1] LCP: state change Starting --> Req-Sent
[L1] LCP: SendConfigReq #1
[L1]   ACFCOMP
[L1]   PROTOCOMP
[L1]   ACCMAP 0x000a
[L1]   MRU 1486
[L1]   MAGICNUM 2d08ae01

[snip..]

[L1] LCP: SendConfigReq #10
[L1]   ACFCOMP
[L1]   PROTOCOMP
[L1]   ACCMAP 0x000a
[L1]   MRU 1486
[L1]   MAGICNUM 2d08ae01
[L1] LCP: parameter negotiation failed
[L1] LCP: state change Req-Sent --> Stopped
[L1] LCP: LayerFinish
[L1] PPTP call terminated
[L1] Link: DOWN event
[L1] LCP: Close event
[L1] LCP: state change Stopped --> Closed
[L1] LCP: Down event
[L1] LCP: state change Closed --> Initial

BUT, on the 9th or 10th attempt, without touching any setting anywhere, the 
VPN MAY BE established. out of nothing ! Machines (Windows, unix, whatever) 
behind both FBSD+pfs ALSO have the same problem when trying to close VPN 
tunnels to outside sites.

The FBSD+pf work VPN Server is working fine. My coleagues can conect to it 
from their homes (NATted cable modems or 3G modems) without problems. I am the 
only one behind a FBSD+pf router. 

I installed MPD5 on FBSD+pf home, and copied mpd.conf from my home workstation 
to it. 

Without touching a single setting on mpd.conf, the VPN is established 
from FBSD+pf home (as a client) to FBSD+pf work WITHOUT any hickups on EVERY 
SINGLE attempt! even I bring it up/down 200 times!


And yet, if the FBSD+pf combo is out of the way, (i.e. no NAT!, as is the case 
of FBSD+pf home as a client) or if I let my cable modem do the NAT/routing, 
the problem is GONE!.

FreeBSD work 
FreeBSD 8.2-STABLE #0: Mon Aug 22 14:50:42 BRT 2011 amd64

FreeBSD Home
FreeBSD FreeBSD 8.2-STABLE #0: Wed May 18 16:53:26 BRT 2011 i386

Any suggestions?

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Re: VPN problem

2011-09-09 Thread Mario Lobo
On Friday 09 September 2011 18:11:47 Torsten Kersandt wrote:
> HI Mario
> I don't know what the experts are suggesting but I use a table for the VPN
> addresses
> To allow nat but block them frm using the server as gateway ("use as
> default gateway" disabled in windows)
> I add the rules dynamically using mpd if-up and if-down scripts
> 
> All I have in my rules is GRE pass anywhere and nat  to and from
> where ever
> 
> Regards
> Torsten
> 

Thanks for replying, Torsten but the problem is way before all these things 
that you mentioned. I'm wildly guessing here but the problem seems to be 
inside the NAT mechanism of PF. At least the working/not working situations 
point to that direction.

If I don't find a solution to that soon I am gonna have no choice but to 
switch to IPFW, which I would not like to do because the queuing mechanisms of 
pf are extremely useful and handy to my networks.

By the way, I also do each item that you mentioned in your post.

The funny thing is that there was a time (maybe a couple csups ago) that this 
problem didn't occur, and I am totally unable to say which csup brought this 
issue in. Remeber there are 3 FBSDs involved here.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)

> 
> -Original Message-
> From: owner-freebsd...@freebsd.org [mailto:owner-freebsd...@freebsd.org] On
> Behalf Of Mario Lobo
> Sent: 09 September 2011 20:46
> To: freebsd...@freebsd.org
> Cc: freebsd-questions@freebsd.org
> Subject: VPN problem
> 
> Hi;
> 
> I've been having this problem establishing a VPN behind a FreeBSD 8-STABLE
> with pf.
> 
> I have this scenario:
> 
> 
> home LAN  FBSD+pf home  INTERNET --- FBSD+pf work --- work LAN
>  MPD VPN server
> 
> nat rules on FBSD+pf home:
> 
> 
>  nat on $ext_if from $int_if:network to any -> ($ext_if) port 1024:65535
>  # nat on $ext_if from any to any -> ($ext_if) port 1024:65535
> 
> 
> obs- it makes no difference which nat rule I use. The problem persists.
> 
> 
> These are the first 5 pf rules on FBSD+pf home:
> 
>   # pass quick all
>   pass quick on lo0 all
> 
>   # my whole home lan is free
>   pass in quick on $int_if from $int_if:network to any
> 
>   #--- Allow networks to see themselves and dns
>   pass quick from $int_if:network to $int_if:network
> 
>   #--- Allow vpns from anywhere to anywhere
>   pass in quick log on $int_if proto gre from any to any keep state
>   pass in quick log on $int_if proto tcp from any to any port pptp flags
> S/SA
> keep state
> 
> 
> 
> On any attempt to connect to the FBSD+pf work VPN Server from home LAN,
> I get this (even if I uncomment  pass quick all):
> 
> #>mpd5
> Multi-link PPP daemon for FreeBSD
> 
> process 98799 started, version 5.5 (root@Papi 16:55  3-Sep-2011)
> CONSOLE: listening on 127.0.0.1 5005
> web: listening on 127.0.0.1 5006
> [B1] Bundle: Interface ng0 created
> [L1] [L1] Link: OPEN event
> [L1] LCP: Open event
> [L1] LCP: state change Initial --> Starting
> [L1] LCP: LayerStart
> [L1] PPTP call successful
> [L1] Link: UP event
> [L1] LCP: Up event
> [L1] LCP: state change Starting --> Req-Sent
> [L1] LCP: SendConfigReq #1
> [L1]   ACFCOMP
> [L1]   PROTOCOMP
> [L1]   ACCMAP 0x000a
> [L1]   MRU 1486
> [L1]   MAGICNUM 2d08ae01
> 
> [snip..]
> 
> [L1] LCP: SendConfigReq #10
> [L1]   ACFCOMP
> [L1]   PROTOCOMP
> [L1]   ACCMAP 0x000a
> [L1]   MRU 1486
> [L1]   MAGICNUM 2d08ae01
> [L1] LCP: parameter negotiation failed
> [L1] LCP: state change Req-Sent --> Stopped
> [L1] LCP: LayerFinish
> [L1] PPTP call terminated
> [L1] Link: DOWN event
> [L1] LCP: Close event
> [L1] LCP: state change Stopped --> Closed
> [L1] LCP: Down event
> [L1] LCP: state change Closed --> Initial
> 
> 
> BUT, on the 9th or 10th attempt, without touching any setting anywhere, the
> VPN MAY BE established. out of nothing ! Machines (Windows, Unix, whatever)
> behind both FBSD+pfs ALSO have the same problem when trying to close VPN
> tunnels to outside sites.
> 
> Sometimes, opening an ssh session from my workstation to FBSD+pf work may
> "help" in establishing the VPN.
> 
> The FBSD+pf work VPN Server is working fine. My colleagues can connect to
> it
> 
> from their homes (NATted cable modems or 3G modems) without problems. I am
> the
> only one behind a FBSD+pf router.
> 
> 
> I installed MPD5 on FBSD+pf home, and copied mpd.conf from my home
> workstation
> to it.
> 
> 
> Without touching a single setting on mpd.conf, the VPN is established

Re: VPN problem

2011-09-09 Thread Mario Lobo
On Friday 09 September 2011 19:03:27 Torsten Kersandt wrote:
> Hi
> TUN and NG connections are not present at the time you start your server
> and rules for such interfaces are not applicable to PF

You're right, but on the client end that is trying to conect to that server 
behind a pf firewall, nat rules DO apply, and on my tests I can see for sure 
that when I take NAT out of the picture, the VPN tunnel is established.


> 
> The is there the if up and if down functions of MPD come into place unless
> you use IP Address/network specific rules.
> One server I have in the if-up script:
> 
> /etc/rc.d/pf resync
> /sbin/pfctl -t if_pptp -T add ${4}

I do all that! in fact even go beyond and use the linkup/down scripts to 
create a log on the server of which user(s) is(are) conected to the VPN, from 
which public IP, with which ng interface, at what time/date they logged in and
and logged out.

> 
> And it works perfectly fine including on the secondary MPD instance (bound
> to IP address) allowing usage as default gateway functions.
> 

Like I said before:

"The FBSD+pf work VPN Server is working fine. My colleagues can connect to
it from their homes (NATted cable modems or 3G modems) without problems."



> Other than that I think you will have to go down the bridging line.
> I may be corrected bu others :-)
> 
> Regards
> Torsten
> 

Thanks again, Torsten. I think this issue seems to lie deeper that just pf 
rules and link scripts

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)





> 
> -Original Message-
> From: owner-freebsd...@freebsd.org [mailto:owner-freebsd...@freebsd.org] On
> Behalf Of Mario Lobo
> Sent: 09 September 2011 22:53
> To: freebsd...@freebsd.org
> Cc: freebsd-questions@freebsd.org
> Subject: Re: VPN problem
> 
> On Friday 09 September 2011 18:11:47 Torsten Kersandt wrote:
> > HI Mario
> > I don't know what the experts are suggesting but I use a table for the
> > VPN addresses
> > To allow nat but block them frm using the server as gateway ("use as
> > default gateway" disabled in windows)
> > I add the rules dynamically using mpd if-up and if-down scripts
> > 
> > All I have in my rules is GRE pass anywhere and nat  to and from
> > where ever
> > 
> > Regards
> > Torsten
> 
> Thanks for replying, Torsten but the problem is way before all these things
> that you mentioned. I'm wildly guessing here but the problem seems to be
> inside the NAT mechanism of PF. At least the working/not working situations
> point to that direction.
> 
> If I don't find a solution to that soon I am gonna have no choice but to
> switch to IPFW, which I would not like to do because the queuing mechanisms
> of
> pf are extremely useful and handy to my networks.
> 
> By the way, I also do each item that you mentioned in your post.
> 
> The funny thing is that there was a time (maybe a couple csups ago) that
> this
> problem didn't occur, and I am totally unable to say which csup brought
> this
> 
> issue in. Remeber there are 3 FBSDs involved here.
> 
> > -Original Message-
> > From: owner-freebsd...@freebsd.org [mailto:owner-freebsd...@freebsd.org]
> 
> On
> 
> > Behalf Of Mario Lobo
> > Sent: 09 September 2011 20:46
> > To: freebsd...@freebsd.org
> > Cc: freebsd-questions@freebsd.org
> > Subject: VPN problem
> > 
> > Hi;
> > 
> > I've been having this problem establishing a VPN behind a FreeBSD
> > 8-STABLE with pf.
> > 
> > I have this scenario:
> > 
> > 
> > home LAN  FBSD+pf home  INTERNET --- FBSD+pf work --- work LAN
> > 
> >  MPD VPN server
> > 
> > nat rules on FBSD+pf home:
> >  nat on $ext_if from $int_if:network to any -> ($ext_if) port 1024:65535
> >  # nat on $ext_if from any to any -> ($ext_if) port 1024:65535
> > 
> > obs- it makes no difference which nat rule I use. The problem persists.
> > 
> > These are the first 5 pf rules on FBSD+pf home:
> >   # pass quick all
> >   pass quick on lo0 all
> >   
> >   # my whole home lan is free
> >   pass in quick on $int_if from $int_if:network to any
> >   
> >   #--- Allow networks to see themselves and dns
> >   pass quick from $int_if:network to $int_if:network
> >   
> >   #--- Allow vpns from anywhere to anywhere
> >   pass in quick log on $int_if proto gre from any to any keep state
> >   pass in quick log on $int_if proto tcp from any to any port pptp flags
> > 
> > S/SA
> > keep stat

  1   2   3   >