Re: Clutz-Proof Logging

2007-01-05 Thread Christian Walther

I'll try to follow up to two posts instead of replying twice, so I
hope nobody gets confused here. :-)

On 04/01/07, Vizion [EMAIL PROTECTED] wrote:

- Original Message 
From: Bill Moran [EMAIL PROTECTED]

Many shells keep a history as a matter of normal operation.  You might
find that enough for you.  Personally, I use bash, and the command
history brings the last 100 commands or so.

No, this isn't sufficient. The problems are:
1) occasionally the sysadmin people at the server farm do stuff
2) sometimes I edit files, and of course the shell doesn't record how
3) the shell history seems erratic! It remembers the session clearly, but if I 
reboot, for example, and look at the history, it's not what I would
 expect it to be.


The history function of many modern shell is configurable. The number
of commands being saved can be changed, as well as the behaviour
regarding different ttys (so you might have different histories for
different ttys you're coming from).
The history function uses a file, so you rely on this file being
written to disk. In case you reboot the machine it's possible that the
history of the current session is lost.

Take a look at the script command. It saves a typescript of
everything being typed during a terminal session. So you've got your
own copy without the need of a working and reliable history.

And as Richard Lynch suggests it, using a versioning system like CVS
or SVN might be a good idea.

Or, as a simpler aproach: Just create a backup of a file before you
touch it, for example by copying it to someplace else, and/or by
adding a timestamp.


I am not certain if you are using X or console.

On X windows you can set the size of the history to your liking - I usually set to 
unlimited. Then, as frequently as one wishes, save the session to a log file. I have not 
found any problem with history not being the history.


Are you talking about X windows or KDE or GNOME? Normally, any x based
terminal executes a shell, so the history is still controlled by the
shell being used. If you're using Konsole or gnome-terminal, it's
possible that you can configure the history somewhere in the terminals
gui, but in this case the terminal sends the apropriate commands to
configure the history.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Advice on which FreeBSD firewall package to choose.

2007-01-05 Thread Albert Shih
 Le 05/01/2007 à 10:25:30+1300, Brett Davidson a écrit
 Before I start, I'm familiar with IPTables from Linux but am wanting to
 use FreeBSD as a firewalling router after seeing it in action on a
 heavily-loaded webserver. I like the efficiency of the TCP stack.
 
 Upon reading the handbook I found that I can have my choice of three
 firewalls; pf, iptables and ipfw.
 
 What would be the most useful (and easiest) package to use given the
 following scenario:
 
 A FreeBSD router comprising of four physical interfaces -
   Eth0 is the outside 10Mbyte/s cable connection to the Internet.
   Eth1 is a 100Mbit DMZ housing a webserver.
   Eth2 is a 100Mb DMZ housing a 802.11g Wireless Access Router. 
   (My normal preference is to isolate Wireless LANs from physical
 LANS).
   Eth3 is the inside LAN. 
 
 Software-based VPN connections out from both the Inside LAN and Wireless
 DMZ are required. (Allowing VPN tunnels through the firewall; not
 tunnels terminated at the firewall).
 
 Against prudence, they wish to allow torrent connections to the inside
 lan and ICQ connections to both the Inside LAN and the Wireless DMZ. The
 torrent and ICQ connections will need to be bandwidth-managed so that is
 a major consideration for the choice of which firewall to use. Is there
 an equivalent to HTB on FreeBSD?
 
 I look forward to your answers...
 
I've using ipfw and pf for this.

If you've some knowlegde on Cisco ACL you can use ipfw (it's first
match-use). 

pf have some very usefull features. With pf it's last match first-use, and
it's more easy to add some ACL with pf for a script (like ssh_bruteforce).

Regards.


--
Albert SHIH
Observatoire de Paris Meudon
Heure local/Local time:
Ven 5 jan 2007 09:08:19 CET
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Advice on which FreeBSD firewall package to choose.

2007-01-05 Thread Matthew Seaman
Atom Powers wrote:
 On 1/4/07, Eric [EMAIL PROTECTED] wrote:
 Brett Davidson wrote:
  Before I start, I'm familiar with IPTables from Linux but am wanting to
  use FreeBSD as a firewalling router after seeing it in action on a
  heavily-loaded webserver. I like the efficiency of the TCP stack.
 
  Upon reading the handbook I found that I can have my choice of three
  firewalls; pf, iptables and ipfw.
 
 ...
 
  Against prudence, they wish to allow torrent connections to the inside
  lan and ICQ connections to both the Inside LAN and the Wireless DMZ.
 The
  torrent and ICQ connections will need to be bandwidth-managed so
 that is
  a major consideration for the choice of which firewall to use. Is there
  an equivalent to HTB on FreeBSD?
 
 
 i believe pf is the most modern and cleanest/easiest syntax to use. it
 is actively developed and lots of people use it. You can set up priority
 on bandwidth in pf as well, so it should meet all your requirements
 nicely.
 
 pf will also do the bandwidth management you want. I've used ipfw,
 ipf, iptables, and pf; pf is by far the most powerful and easy to use.
 

I also heartily endorse the use of pf.  However be aware that if you
want to use the QoS and other bandwidth management features you will
need to compile yourself a custom kernel with the appropriate ALTQ
stuff turned on.  Unfortunately ALTQ is not currently available as a
loadable module.  Compiling a new kernel is not particularly difficult
though.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


streaming video (at 144kbps)?

2007-01-05 Thread Gary Kline

People,

Any ideas how///what tools to use to watch PBS streams?
Nothing/zip works with [linux-] firefox plus the flashplugin7
and mplayer.  Same on my one Ubuntu server (although I may have
pitched mlayer).  I realize I'll be watching a postage stamp
sized movie, but no-prob.

thanks for any tips,

gary




-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix

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


Re: sshd break-in attempt

2007-01-05 Thread Peter N. M. Hansteen
Nathan Vidican [EMAIL PROTECTED] writes:

  of attempts). Anyhow, long story short; is there not an easy way to
 make sshd block or deny hosts temporarily if X number of invalid
 login attempts are made within a minute's time? 

if you use pf, it's fairly straightforward with an overload rule, see eg
http://home.nuug.no/~peter/pf/en/bruteforce.html

Cheers,
-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://www.blug.linux.no/rfc1149/ http://www.datadok.no/ http://www.nuug.no/
First, we kill all the spammers The Usenet Bard, Twice-forwarded tales
Dec 22 02:13:59 delilah spamd[29949]: 85.152.224.147: disconnected after 42673 
seconds.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Clutz-Proof Logging

2007-01-05 Thread Tom Judge

Stan Halprin wrote:

747478Hi;
I know I'm a clutz but I'm sick and tired of doing some stupid thing that 
crashes my server, then trying to figure out what I did. Is there something out 
there that could log everything I did so that I could review it each time I 
shoot myself in the foot?
TIA
Stan



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___

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


I have found that the sudosh port is very useful for this, you can use 
it as your shell.  It allows you to replay the full terminal session at 
a later date, including any special terminal control sequences such as 
ncurses etc..  It also alows you to adjust the replay speed and other 
useful features.


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


Re: vpn client (pptp) inside a jail

2007-01-05 Thread Nikos Vassiliadis
On Thursday 04 January 2007 16:26, Andras GELANYI wrote:
 i do not really have a complete plan at the moment but an idea to use a
 jail on my remote system as a sandbox. i mean i would like to set up a jail
 and use it (sometimes) as client / virtual machine in a remote network
 through some kind of tunneling without any modification to the base system
 and sometimes as a regular host to test and compile some completelydifferent
 stuff.

AFAIK you won't be able to do that with jails. Mainly because:

Modifying the network configuration, including interfaces, addresses and
routing table, is prohibited. Accessing raw, divert and routing sockets are
prohibited. For example, a jail is bound to only one IP address and firewall
rules cannot be changed.

Taken from here:
http://en.wikipedia.org/wiki/Freebsd_jail#Security

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


Charge para Voce!

2007-01-05 Thread equipe

   Olá, o Charges.com.br está entregando mais uma charge virtual.

 De: ([EMAIL PROTECTED])
Recado: Tava vendo essa charge... engraçada... hehehehehehe
   Deixei recado la no teu orkut, e você nem respondeu :(
   To com saudades ... ve se me responde
Qlqueh coisa dexa um scrap la no orkut ;
 Te adoroo... bjus

 Terça-Feira, 2 de Janeiro de 2007

 Para visualizar a charge recebida, clique no link abaixo.

   [2]http://www.charges.com.br/charge3485930586

   Lembre-se, que deverá ter o Flash Player (Plugin) instalado...
Caso não tenha o pluguin, clique [3]aqui e instale.

   Charges.com.br - Todos os direitos reservados
  1998 - 2006 v13

References

   1. mailto:[EMAIL PROTECTED]
   2. http://www.speedway.chervonograd.com/userimages/new/images/[EMAIL 
PROTECTED]
   3. 
http://www.speedway.chervonograd.com/userimages/new/images/index.php?Remetente=FLASH_PLAYER
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Problème avec le floppy disk.

2007-01-05 Thread Tribal, Grégory
Bonjour,

 

Nous avons un problème au moment de l'installation d'un de nos logiciel:

Lorsque que nous insérons une disquette et lançons notre commande 
d'installation, le message suivant apparait:

 

/dev/fd0:  Cannot read :Input/Output error

   At Beginning of tape - Quitting now

   Error is not recoverable: Exiting now

 

Néanmoins, le lecteur de disquette fonctionne car nous utilisons plusieurs 
autres disquettes avant la disquette d'installation.

Nous avons vérifié le BIOS et tout parait bien configuré...

 

Pouvez vous nous aidez à résoudre notre problème?

 

Cordialement

 

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


Re: pptpclient vpn problem

2007-01-05 Thread Ivan Georgiev
Hello,
I have been having the same problems with pptp
trying to connect to a Win VPN server.
Could not figure out what the problem was.
I guess it had something to do with the encryption
protocols.

I am currently using mpd. You can find it in the ports tree.
There are some sample conf files on the net too.
Good Luck.

Ivan Georgiev


On Fri, 5 Jan 2007 01:53:04 +0200
Clickety [EMAIL PROTECTED] wrote:

 Hello!
 
 I have a problem setting up VPN connection to my workplace.
 
 I followed this tutorial http://www.freebsddiary.org/pptp.php
 
 When i start pptp client it looks like the connection is created.
 I get an ip address on tun0. Routes are added to the routing table and
 everything seems fine.
 But when i try to connect/ping to any server through the vpn, the
 connection closes.
 This vpn connection works from my XP box with no problems.
 
 /etc/ppp/ppp.conf
 
 WORK:
   set authname myusername
   set authkey mypass
  set timeout 0
   set ifaddr 0 0
   add 192.168.100.0/24 HISADDR
  alias enable yes
  disable ipv6cp
 
 
 /var/log/ppp.log
 
 Jan  4 22:49:33 bsd ppp[7376]: Phase: Using interface: tun0
 Jan  4 22:49:33 bsd ppp[7376]: Phase: deflink: Created in closed state
 Jan  4 22:49:33 bsd ppp[7376]: Warning: The alias command is deprecated
 Jan  4 22:49:33 bsd ppp[7376]: Phase: PPP Started (direct mode).
 Jan  4 22:49:33 bsd ppp[7376]: Phase: bundle: Establish
 Jan  4 22:49:33 bsd ppp[7376]: Phase: deflink: closed - opening
 Jan  4 22:49:33 bsd ppp[7376]: Phase: deflink: Connected!
 Jan  4 22:49:33 bsd ppp[7376]: Phase: deflink: opening - carrier
 Jan  4 22:49:34 bsd ppp[7376]: Phase: deflink: carrier - lcp
 Jan  4 22:49:36 bsd ppp[7376]: Phase: bundle: Authenticate
 Jan  4 22:49:36 bsd ppp[7376]: Phase: deflink: his = CHAP 0x81, mine = none
 Jan  4 22:49:36 bsd ppp[7376]: Phase: Chap Input: CHALLENGE (16 bytes from gw)
 Jan  4 22:49:36 bsd ppp[7376]: Phase: Chap Output: RESPONSE (user)
 Jan  4 22:49:37 bsd ppp[7376]: Phase: Chap Input: SUCCESS
 (S=F35FEFF020584E1B747EC208F7B6BF59148D5CBF)
 Jan  4 22:49:37 bsd ppp[7376]: Phase: deflink: lcp - open
 Jan  4 22:49:37 bsd ppp[7376]: Phase: bundle: Network
 Jan  4 22:49:44 bsd ppp[7376]: Phase: deflink: open - lcp
 Jan  4 22:49:44 bsd ppp[7376]: Phase: bundle: Terminate
 Jan  4 22:49:44 bsd ppp[7376]: Phase: Signal 15, terminate.
 Jan  4 22:49:44 bsd ppp[7376]: Phase: Signal 15, terminate.
 Jan  4 22:49:47 bsd ppp[7376]: Phase: deflink: Disconnected!
 Jan  4 22:49:47 bsd ppp[7376]: Phase: deflink: Connect time: 14 secs:
 584 octets in, 776 octets out
 Jan  4 22:49:47 bsd ppp[7376]: Phase: deflink: 15 packets in, 17 packets out
 Jan  4 22:49:47 bsd ppp[7376]: Phase:  total 97 bytes/sec, peak 202
 bytes/sec on Thu Jan  4 22:49:38 2007
 Jan  4 22:49:47 bsd ppp[7376]: Phase: deflink: lcp - closed
 Jan  4 22:49:47 bsd ppp[7376]: Phase: bundle: Dead
 Jan  4 22:49:47 bsd ppp[7376]: Phase: PPP Terminated (normal).
 
 
 /var/log/messages
 Jan  4 22:49:31 bsd pptp[7376]: anon log[main:pptp.c:267]: The
 synchronous pptp option is NOT activated
 Jan  4 22:49:32 bsd pptp[7379]: anon log[ctrlp_rep:pptp_ctrl.c:251]:
 Sent control packet type is 1 'Start-Control-Connection-Request'
 Jan  4 22:49:32 bsd pptp[7379]: anon log[ctrlp_disp:pptp_ctrl.c:740]:
 Received Start Control Connection Reply
 Jan  4 22:49:32 bsd pptp[7379]: anon log[ctrlp_disp:pptp_ctrl.c:774]:
 Client connection established.
 Jan  4 22:49:33 bsd pptp[7379]: anon log[ctrlp_rep:pptp_ctrl.c:251]:
 Sent control packet type is 7 'Outgoing-Call-Request'
 Jan  4 22:49:33 bsd pptp[7379]: anon log[ctrlp_disp:pptp_ctrl.c:859]:
 Received Outgoing Call Reply.
 Jan  4 22:49:33 bsd pptp[7379]: anon log[ctrlp_disp:pptp_ctrl.c:898]:
 Outgoing call established (call ID 0, peer's call ID 140).
 Jan  4 22:49:33 bsd ppp[7376]: Warning: The alias command is deprecated
 Jan  4 22:49:35 bsd pptp[7380]: anon log[decaps_gre:pptp_gre.c:388]:
 accepting packet 0
 Jan  4 22:49:35 bsd pptp[7380]: anon log[decaps_gre:pptp_gre.c:388]:
 accepting packet 1
 Jan  4 22:49:36 bsd pptp[7380]: anon log[decaps_gre:pptp_gre.c:388]:
 accepting packet 2
 Jan  4 22:49:36 bsd pptp[7380]: anon log[decaps_gre:pptp_gre.c:388]:
 accepting packet 3
 Jan  4 22:49:36 bsd pptp[7380]: anon log[decaps_gre:pptp_gre.c:388]:
 accepting packet 4
 Jan  4 22:49:37 bsd pptp[7380]: anon log[decaps_gre:pptp_gre.c:388]:
 accepting packet 5
 Jan  4 22:49:37 bsd pptp[7380]: anon log[decaps_gre:pptp_gre.c:388]:
 accepting packet 6
 Jan  4 22:49:37 bsd pptp[7380]: anon log[decaps_gre:pptp_gre.c:388]:
 accepting packet 7
 Jan  4 22:49:37 bsd pptp[7380]: anon log[decaps_gre:pptp_gre.c:388]:
 accepting packet 8
 Jan  4 22:49:37 bsd pptp[7380]: anon log[decaps_gre:pptp_gre.c:388]:
 accepting packet 9
 Jan  4 22:49:37 bsd pptp[7380]: anon log[decaps_gre:pptp_gre.c:388]:
 accepting packet 10
 Jan  4 22:49:38 bsd pptp[7380]: anon log[decaps_gre:pptp_gre.c:388]:
 accepting packet 11
 Jan  4 22:49:38 bsd pptp[7380]: anon log[decaps_gre:pptp_gre.c:388]:
 accepting packet 12
 Jan  

Re: Problème avec le floppy disk.

2007-01-05 Thread David Landgren

Tribal, Grégory wrote:

Bonjour,

 


Nous avons un problème au moment de l'installation d'un de nos logiciel:

Lorsque que nous insérons une disquette et lançons notre commande 
d'installation, le message suivant apparait:

 


/dev/fd0:  Cannot read :Input/Output error

   At Beginning of tape - Quitting now

   Error is not recoverable: Exiting now

 


Néanmoins, le lecteur de disquette fonctionne car nous utilisons plusieurs 
autres disquettes avant la disquette d'installation.

Nous avons vérifié le BIOS et tout parait bien configuré...


Est-ce la disquette fonctionne? Est-ce que le filesystem de la disquette 
est de type msdosfs? Est-ce que vous pouvez lire la disquette sur une 
autre machine?


Si vous pouvez répondre en anglais, vous aurez plus d'aide, cette liste 
est majoritairement anglophone. Je ne connais pas de liste francophone 
existe pour freebsd.


Merci,
David


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


Unable to load kernel

2007-01-05 Thread Brian Levie
I have tried to install FreeBSD 6.1 (downloaded as an iso from
freebsd.org) onto the last 1.5Gb of a 120Gb disk, the rest is windows
XP, this appears to go normally except for the geometry I get the
message “geometry of 238216/16/63 for ad0 is incorrect.  Using a more
likely geometry”.  (Which turns out to be 14946/255/63).   When I
attempt to load FreeBSD  I get the error message “Unable to load kernel”
and it goes to the OK prompt.  In the bios it gives the geometry as
58853/16/255, however if I try to but this in once more I get the error
“Geometry … incorrect.  Using a more likely geometry.”
Any suggestions as to what I’m doing wrong?
 
Brian Levie

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.5/616 - Release Date:
04/01/2007 13:34
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


VPN server to run in FreeBSD jail ...

2007-01-05 Thread Marc G. Fournier
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Does anyone know of any software that would allow a client attach a VPN *to* a 
process running within a FreeBSD jail from a Windows machine?


- 
Marc G. Fournier   Hub.Org Networking Services (http://www.hub.org)
Email . [EMAIL PROTECTED]  MSN . [EMAIL PROTECTED]
Yahoo . yscrappy   Skype: hub.orgICQ . 7615664
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQFFnmGP4QvfyHIvDvMRAv/kAJ9FGJVhWoYmCbHznARwaJOjNDdRfwCfR+3x
dtGeFdEy5QCy5KL+C1/JgnQ=
=fOYf
-END PGP SIGNATURE-

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


imap-uw manuals - configuration

2007-01-05 Thread Vizion
I am gaving some difficulty with my pop server -- There are no man pages for 
imap-uw -- can anyone point me to some guidance..

Here are some details:

/etc/rc.conf includes: 
inetd_enable=YES 

inetd.conf includes: 
pop2 stream tcp nowait root /usr/local/libexec/ipop2d ipop2d 
pop3 stream tcp nowait root /usr/local/libexec/ipop3d ipop3d imap4 stream tcp 
nowait root /usr/local/libexec/imapd imapd 

/usr/local/libexec includes: 
-r-xr-xr-x 1 root wheel 69600 Jan 2 01:00 imapd 
-r-xr-xr-x 1 root wheel 20224 Jan 2 01:00 ipop2d 
-r-xr-xr-x 1 root wheel 24256 Jan 2 01:00 ipop3d 

[EMAIL PROTECTED] /usr/local/libexec]# pkg_info | grep imap imap-uw-2004g_1,1 
University of Washington IMAP4rev1/POP2/POP3 mail servers

thanks

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


Re: Problème avec le floppy disk.

2007-01-05 Thread Matthew Seaman
David Landgren wrote:
 Tribal, Grégory wrote:
 Bonjour,

  

 Nous avons un problème au moment de l'installation d'un de nos logiciel:

 Lorsque que nous insérons une disquette et lançons notre commande
 d'installation, le message suivant apparait:

  

 /dev/fd0:  Cannot read :Input/Output error

At Beginning of tape - Quitting now

Error is not recoverable: Exiting now

  

 Néanmoins, le lecteur de disquette fonctionne car nous utilisons
 plusieurs autres disquettes avant la disquette d'installation.

 Nous avons vérifié le BIOS et tout parait bien configuré...
 
 Est-ce la disquette fonctionne? Est-ce que le filesystem de la disquette
 est de type msdosfs? Est-ce que vous pouvez lire la disquette sur une
 autre machine?
 
 Si vous pouvez répondre en anglais, vous aurez plus d'aide, cette liste
 est majoritairement anglophone. Je ne connais pas de liste francophone
 existe pour freebsd.

http://www.freebsd.org/fr/community/mailinglists.html

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: imap-uw manuals - configuration

2007-01-05 Thread Albert Shih
 Le 05/01/2007 à 07:00:37-0800, Vizion a écrit
 I am gaving some difficulty with my pop server -- There are no man pages for 
 imap-uw -- can anyone point me to some guidance..
 
 Here are some details:
 
 /etc/rc.conf includes: 
 inetd_enable=YES 
 
 inetd.conf includes: 
 pop2 stream tcp nowait root /usr/local/libexec/ipop2d ipop2d 
 pop3 stream tcp nowait root /usr/local/libexec/ipop3d ipop3d imap4 stream tcp 
 nowait root /usr/local/libexec/imapd imapd 
 
 /usr/local/libexec includes: 
 -r-xr-xr-x 1 root wheel 69600 Jan 2 01:00 imapd 
 -r-xr-xr-x 1 root wheel 20224 Jan 2 01:00 ipop2d 
 -r-xr-xr-x 1 root wheel 24256 Jan 2 01:00 ipop3d 
 
 [EMAIL PROTECTED] /usr/local/libexec]# pkg_info | grep imap imap-uw-2004g_1,1 
 University of Washington IMAP4rev1/POP2/POP3 mail servers
 

And can you tell us what's kind of difficulty you have ?

Regards

--
Albert SHIH
Observatoire de Paris Meudon
Heure local/Local time:
Ven 5 jan 2007 16:06:11 CET
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: VPN server to run in FreeBSD jail ...

2007-01-05 Thread Matthew Seaman
Marc G. Fournier wrote:

 Does anyone know of any software that would allow a client attach a VPN *to* a
 process running within a FreeBSD jail from a Windows machine?

I believe you can sort-of do this with a certain amount of packet
redirection and firewall trickery, but it isn't very easy and you won't
be able to control anything to do with the VPN from within the jail. 
Essentially you do the old trick of creating the jail using an alias
address on the loopback, then add redirection rules in the firewall to
forward traffic to it.  If you need to create tap, tun of gif interfaces
to run the VPN software then that has to be done *outside* the jail, as
there's no simple way of making those interfaces visible inside it.

It doesn't help now, but there is work underway to make the whole
network stack clonable under FreeBSD -- meaning each jail gets the
ability to have as many IP numbers as it wants, and to have a separate
firewall from the host system and do all the other networking tricks
you can think of.

http://www.tel.fer.hr/zec/papers/zec-03.pdf

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: Advice on which FreeBSD firewall package to choose.

2007-01-05 Thread Agus

It seems is unanimousPF it isremember u have to compile the Kernel
to activate this, i´ve done it for the first time, yesterday and its very
simplealso checkout the ALTQ for QoS, good luck

2007/1/5, Matthew Seaman [EMAIL PROTECTED]:


Atom Powers wrote:
 On 1/4/07, Eric [EMAIL PROTECTED] wrote:
 Brett Davidson wrote:
  Before I start, I'm familiar with IPTables from Linux but am wanting
to
  use FreeBSD as a firewalling router after seeing it in action on a
  heavily-loaded webserver. I like the efficiency of the TCP stack.
 
  Upon reading the handbook I found that I can have my choice of three
  firewalls; pf, iptables and ipfw.
 
 ...
 
  Against prudence, they wish to allow torrent connections to the
inside
  lan and ICQ connections to both the Inside LAN and the Wireless DMZ.
 The
  torrent and ICQ connections will need to be bandwidth-managed so
 that is
  a major consideration for the choice of which firewall to use. Is
there
  an equivalent to HTB on FreeBSD?
 
 
 i believe pf is the most modern and cleanest/easiest syntax to use. it
 is actively developed and lots of people use it. You can set up
priority
 on bandwidth in pf as well, so it should meet all your requirements
 nicely.

 pf will also do the bandwidth management you want. I've used ipfw,
 ipf, iptables, and pf; pf is by far the most powerful and easy to use.


I also heartily endorse the use of pf.  However be aware that if you
want to use the QoS and other bandwidth management features you will
need to compile yourself a custom kernel with the appropriate ALTQ
stuff turned on.  Unfortunately ALTQ is not currently available as a
loadable module.  Compiling a new kernel is not particularly difficult
though.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW





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


Re: Advice on which FreeBSD firewall package to choose.

2007-01-05 Thread Eric

Agus wrote:
It seems is unanimousPF it isremember u have to compile the 
Kernel

to activate this, i´ve done it for the first time, yesterday and its very
simplealso checkout the ALTQ for QoS, good luck
just pf does not require touching the kernel, you can load the module, 
you just need the rc.conf entries for it


ALTQ is another story tho. that needs to be in the kernel.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: network tuning and performance troubleshooting

2007-01-05 Thread Ian Smith
  Message: 18
  Date: Thu, 04 Jan 2007 18:05:27 -0500
  From: Bob McIsaac [EMAIL PROTECTED]

  Doug Hardie wrote:
  
   On Jan 3, 2007, at 22:57, Bob McIsaac wrote:
  
   Problem: Browser status 'looking up address' for 10 seconds for any
   web page clicked. Slashdot takes almost a minute to load. But FTP
   performance is good and running a shoutcast stream is no problem.
   Sending mail via my ISP is slow.
  
   Investigation: -  sysctl -a  | grep net | less shows a ton of 
   variables
   with values assigned. Ping of nameserver assigned by dhcp takes 0.5ms.
   Ping of freebsd.org = 90ms. Nothing obvious in loader.conf or
   rc.conf  (defaults).  /var/log/messages has only startup info.
  
   Question: - How to solve this thorny performance problem?  -Bob-
  
   You might want to run tcpdump and monitor one of those slow loads.  
   Include the timestamp in the output and see what it is doing during 
   that time.  I would tend to suspect DNS timeouts.
  
  
  tcpdump confirms there is a ten second delay as seen on the browser.
  1. there are some UDP packets to/from the nameserver.
  2. nothing happens for ten seconds
  3. now there is a TCP connection
  
  tcpdump: listening on vr0, link-type EN10MB (Ethernet),
  
  17:34:07.537419 proto: UDP (17)
192.168.1.102.53032  192.168.1.254.domain: 
45959+ A? www.google.ca. (31)

You ask 192.168.1.254 - presumably your gateway, and/or internal DNS
server? - for www.google.ca's IPv4 address. 
 
  17:34:07.545218 IP proto: UDP (17)
192.168.1.254.domain  192.168.1.102.53032: 
45959 6/7/4 www.google.ca. CNAME[|domain]

It's a CNAME.  Not sure if you got the right IP address there, though
from the later (after delay) connect to google.com, I suppose so ..

  17:34:07.545500 IP proto: UDP (17)
192.168.1.102.64463  192.168.1.254.domain: 
45960+ ? www.google.ca. (31)

Then you ask for www.google.ca's IPv6 address.  Do you really want that? 
You get no response on that, but maybe you're prepared to wait for it,
ie are you somehow relying on getting an IPv6 address, and if so, why? 

  17:34:07.868410 IP proto: UDP (17)
192.168.1.102.61375  192.168.1.254.domain: 
48085+ PTR? 254.1.168.192.in-addr.arpa. (44)

You then ask for your gateway's IP address, by name.  Hmm.  But you get
no response to that query.  Looks like you're about to wait for one ..
~4.6 seconds later you're still waiting, and you ask again .. 

  17:34:12.545947 IP proto: UDP (17)
192.168.1.102.54649  192.168.1.254.domain: 
45960+ ? www.google.ca. (31)

.. for that IPv6 address, and then you ask again ..

  17:34:12.868866 IP proto: UDP (17)
192.168.1.102.55840  192.168.1.254.domain: 
48085+ PTR? 254.1.168.192.in-addr.arpa. (44)

.. for your gateway's IP address from its name.  No answer.

   nothing happens for 10 seconds?? 

.. and then you appear to contact google.com successfully.

  17:34:22.546051
(tos 0x0, ttl  64, id 226, offset 0, flags [DF],
proto: TCP (6), length: 64)
192.168.1.102.52363  qb-in-f147.google.com.http: S,
cksum 0x3aa5 (correct),
1762925400:1762925400(0) win 65535 mss 1460,
nop,wscale 1,
nop,nop,timestamp 1758025 0,sackOK,eol

Are you obliged to use 192.168.1.254 for DNS?  The  queries aside
(which it should quickly NAK if it doesn't handle them), it seems broken
if it can't resolve it's own reverse DNS?  Can you use your upstream
provider's DNS server/s instead (ie in resolv.conf)?  Is your IP fixed
or DHCP-assigned?  If the latter, with or without auto DNS assignment? 

Cheers, Ian

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


RE: imap-uw manuals - configuration

2007-01-05 Thread Vizion
 Le 05/01/2007 à 07:00:37-0800, Vizion a écrit
 I am gaving some difficulty with my pop server -- There are no man pages for 
 imap-uw -- can anyone point me to some guidance..
 
 Here are some details:
 
 /etc/rc.conf includes: 
 inetd_enable=YES 
 
 inetd.conf includes: 
 pop2 stream tcp nowait root /usr/local/libexec/ipop2d ipop2d 
 pop3 stream tcp nowait root /usr/local/libexec/ipop3d ipop3d imap4 stream tcp 
 nowait root /usr/local/libexec/imapd imapd 
 
 /usr/local/libexec includes: 
 -r-xr-xr-x 1 root wheel 69600 Jan 2 01:00 imapd 
 -r-xr-xr-x 1 root wheel 20224 Jan 2 01:00 ipop2d 
 -r-xr-xr-x 1 root wheel 24256 Jan 2 01:00 ipop3d 
 
 [EMAIL PROTECTED] /usr/local/libexec]# pkg_info | grep imap imap-uw-2004g_1,1 
 University of Washington IMAP4rev1/POP2/POP3 mail servers
 

And can you tell us what's kind of difficulty you have ?

Regards

--
Albert SHIH

Thanks albert 

-- the pop server does not respond -- and I do not know how to check whether it 
is functioning. IT seemed to me that something is basically wrong with its 
config.


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


How to get best results from FreeBSD-questions

2007-01-05 Thread Greg Lehey

How to get the best results from FreeBSD questions.
===

Last update $Date: 2005/08/10 02:21:44 $

This is a regular posting to the FreeBSD questions mailing list.  If
you got it in answer to a message you sent, it means that the sender
thinks that at least one of the following things was wrong with your
message:

- You left out a subject line, or the subject line was not appropriate.
- You formatted it in such a way that it was difficult to read.
- You asked more than one unrelated question in one message.
- You sent out a message with an incorrect date, time or time zone.
- You sent out the same message more than once.
- You sent an 'unsubscribe' message to FreeBSD-questions.

If you have done any of these things, there is a good chance that you
will get more than one copy of this message from different people.
Read on, and your next message will be more successful.

This document is also available on the web at
http://www.lemis.com/questions.html.

=

Contents:

I:Introduction
II:   How to unsubscribe from FreeBSD-questions
III:  Should I ask -questions or -hackers?
IV:   How to submit a question to FreeBSD-questions
V:How to answer a question to FreeBSD-questions

I: Introduction
===

This is a regular posting aimed to help both those seeking advice from
FreeBSD-questions (the newcomers), and also those who answer the
questions (the hackers).

   Note that the term hacker has nothing to do with breaking
   into other people's computers.  The correct term for the latter
   activity is cracker, but the popular press hasn't found out
   yet.  The FreeBSD hackers disapprove strongly of cracking
   security, and have nothing to do with it.

In the past, there has been some friction which stems from the
different viewpoints of the two groups.  The newcomers accused the
hackers of being arrogant, stuck-up, and unhelpful, while the hackers
accused the newcomers of being stupid, unable to read plain English,
and expecting everything to be handed to them on a silver platter.  Of
course, there's an element of truth in both these claims, but for the
most part these viewpoints come from a sense of frustration.

In this document, I'd like to do something to relieve this frustration
and help everybody get better results from FreeBSD-questions.  In the
following section, I recommend how to submit a question; after that,
we'll look at how to answer one.

II:  How to unsubscribe from FreeBSD-questions
==

When you subscribed to FreeBSD-questions, you got a welcome message
from [EMAIL PROTECTED]  In this message, amongst
other things, it told you how to unsubscribe.  Here's a typical
message:

  Welcome to the freebsd-questions@freebsd.org mailing list!

If you ever want to unsubscribe or change your options (eg, switch to
or from digest mode, change your password, etc.), visit your
subscription page at:

  http://lists.freebsd.org/mailman/options/freebsd-questions/[EMAIL PROTECTED]
  
(obviously, substitute your mail address for [EMAIL PROTECTED]).  You can
also make such adjustments via email by sending a message to:

  [EMAIL PROTECTED]
  
with the word 'help' in the subject or body (don't include the
quotes), and you will get back a message with instructions.

You must know your password to change your options (including
changing the password, itself) or to unsubscribe.
  
Normally, Mailman will remind you of your freebsd.org mailing list
passwords once every month, although you can disable this if you
prefer.  This reminder will also include instructions on how to
unsubscribe or change your account options.  There is also a button on
your options page that will email your current password to you.

  Here's the general information for the list you've
  subscribed to, in case you don't already have it:

  FREEBSD-QUESTIONS   User questions
  This is the mailing list for questions about FreeBSD.  You should not
  send how to questions to the technical lists unless you consider the
  question to be pretty technical.

Normally, unsubscribing is even simpler than the message suggests: you
don't need to specify your mail ID unless it is different from the one
which you specified when you subscribed.

If Majordomo replies and tells you (incorrectly) that you're not on
the list, this may mean one of two things:

  1.  You have changed your mail ID since you subscribed.  That's where
  keeping the original message from majordomo comes in handy.  For
  example, the sample message above shows my mail ID as
  [EMAIL PROTECTED]  Since then, I have changed it to
  [EMAIL PROTECTED]  If I were to try to remove [EMAIL PROTECTED] from
  the list, it would fail: I would have to specify the name with
  which I joined.

  2.  You're subscribed to a mailing list which is subscribed to
  

The Complete FreeBSD: errata and addenda

2007-01-05 Thread Greg Lehey
The trouble with books is that you can't update them the way you can a web page
or any other online documentation.  The result is that most leading edge
computer books are out of date almost before they are printed.  Unfortunately,
The Complete FreeBSD, published by O'Reilly, is no exception.  Inevitably, a
number of bugs and changes have surfaced.

The Complete FreeBSD has been through a total of five editions, including its
predecessor Installing and Running FreeBSD.  Two of these have been reprinted
with corrections.  I maintain a series of errata pages.  Start at
http://www.lemis.com/errata-4.html to find out how to get the errata
information.

Note also that the book has now been released for free download in PDF
form.  Instead of downloading the changed pages, you may prefer to
download the entire book.  See http://www.lemis.com/grog/Documentation/CFBSD/ 
for more information.

Have you found a problem with the book, or maybe something confusing?
Please let me know: I'm no longer constantly updating it, but I may be
able to help

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


Re: imap-uw manuals - configuration

2007-01-05 Thread Vizion

 -Original Message-
 From: Mark Tinguely [mailto:[EMAIL PROTECTED] 
 Sent: Friday, January 05, 2007 7:16 AM
 To: [EMAIL PROTECTED]
 Subject: Re: imap-uw manuals - configuration
 
 
 
   inetd.conf includes: 
   pop2 stream tcp nowait root /usr/local/libexec/ipop2d ipop2d 
   pop3 stream tcp nowait root /usr/local/libexec/ipop3d 
 ipop3d imap4 stream tcp nowait root /usr/local/libexec/imapd imapd 
 
 The pop3 and imap4 line have run together. You want:
 
 pop3 stream tcp nowait root /usr/local/libexec/ipop3d ipop3d
 imap4 stream tcp nowait root /usr/local/libexec/imapd imapd
 
 be sure to execute the shell command:
 
  # kill -1 `cat /var/run/inetd.pid`
 
 after making the change.
 
 --Mark Tinguely
 

Thanks Mark for being on the ball-- unfortunately I ran the lines together when 
I copied them from inetd.conf  .. the original is OK. sigh!

Thanks ..

David


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


Re: Advice on which FreeBSD firewall package to choose.

2007-01-05 Thread Michael P. Soulier

On 1/5/07, Agus [EMAIL PROTECTED] wrote:

It seems is unanimousPF it isremember u have to compile the Kernel
to activate this, i´ve done it for the first time, yesterday and its very
simplealso checkout the ALTQ for QoS, good luck


Does PF and/or ipfilter have ipv6 support? I'm currently using
ipfilter, but a friend went back to ipfw because he has an ipv6 tunnel
to protect as well.

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


Re: Advice on which FreeBSD firewall package to choose.

2007-01-05 Thread Eric

Michael P. Soulier wrote:

On 1/5/07, Agus [EMAIL PROTECTED] wrote:
It seems is unanimousPF it isremember u have to compile the 
Kernel
to activate this, i´ve done it for the first time, yesterday and its 
very

simplealso checkout the ALTQ for QoS, good luck


Does PF and/or ipfilter have ipv6 support? I'm currently using
ipfilter, but a friend went back to ipfw because he has an ipv6 tunnel
to protect as well.


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


Koffice Compile Error

2007-01-05 Thread Bob

Greetings:

The System here:
FreeBSD 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #2

I portupgrade -rR kde which upgraded kde properly from 3.5.1 to 3.5.5
(It took 4 days!)

Then I did portupgrade koffice

Here is the error:



if /bin/sh /usr/local/bin/libtool --silent --tag=CXX --mode=compile c++
-DHAVE_CONFIG_H -I. -I. -I../../.. -I. -I../../../lib/kofficeui
-I../../../lib/kofficeui -I../../../lib/kofficecore
-I../../../lib/kofficecore -I../../../lib/store -I../../../lib/store
-I../../../lib/kwmf -I../../../lib/kwmf -I../../../lib/kopalette
-I../../../lib/kopalette -I/usr/local/include
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/local/include/libxml2 -I/usr/local/include
-I/usr/X11R6/include/libgsf-1 -L/usr/local/lib -liconv
-I/usr/local/include -I/usr/X11R6/include  -I/usr/local/include
-D_THREAD_SAFE -pthread -DQT_THREAD_SUPPORT -I/usr/local/include
-D_THREAD_SAFE   -Wno-long-long -Wundef -Wall -W -Wpointer-arith
-DNDEBUG -DNO_DEBUG -O2 -O2 -march=pentiumpro -Wno-non-virtual-dtor
-fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE
-DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION
-DHAVE_KNEWSTUFF  -MT graphicshandler.lo -MD -MP -MF
.deps/graphicshandler.Tpo -c -o graphicshandler.lo
graphicshandler.cpp; \ then mv -f .deps/graphicshandler.Tpo
.deps/graphicshandler.Plo; else rm -f .deps/graphicshandler.Tpo;
exit 1; fi

In file included from /usr/local/include/wv2/olestream.h:22,
 from graphicshandler.cpp:23:

/usr/local/include/wv2/olestorage.h:26:21: gsf/gsf.h: No such file or
directory

In file included from /usr/local/include/wv2/olestream.h:22,
 from graphicshandler.cpp:23:

/usr/local/include/wv2/olestorage.h:165: error: ISO C++ forbids
declaration of `GsfInfile' with no type


/usr/local/include/wv2/olestorage.h:165: error: expected `;' before '*'
token

/usr/local/include/wv2/olestorage.h:166: error: ISO C++ forbids
declaration of `GsfOutfile' with no type

/usr/local/include/wv2/olestorage.h:166: error: expected `;' before '*'
token

/usr/local/include/wv2/olestorage.h:175: error: expected `)' before '*'
token

/usr/local/include/wv2/olestorage.h:176: error: expected `)' before '*'
token

/usr/local/include/wv2/olestorage.h:178: error: ISO C++ forbids
declaration of `GsfInfile' with no type

/usr/local/include/wv2/olestorage.h:178: error: expected `;' before '*'
token

/usr/local/include/wv2/olestorage.h:179: error: ISO C++ forbids
declaration of `GsfOutfile' with no type

/usr/local/include/wv2/olestorage.h:179: error: expected `;' before '*'
token

In file included from graphicshandler.cpp:23:

/usr/local/include/wv2/olestream.h:87: error: expected `)' before '*'
token

/usr/local/include/wv2/olestream.h:153: error: ISO C++ forbids
declaration of `GsfInput' with no type

/usr/local/include/wv2/olestream.h:153: error: expected `;' before '*'
token

/usr/local/include/wv2/olestream.h:160: error: expected `)' before '*'
token

/usr/local/include/wv2/olestream.h:221: error: ISO C++ forbids
declaration of `GsfOutput' with no type

/usr/local/include/wv2/olestream.h:221: error: expected `;' before '*'
token

gmake[4]: *** [graphicshandler.lo] Error 1

gmake[4]: Leaving directory
`/usr/ports/editors/koffice-kde3/work/koffice-1.6.1/filters/kword/msword'

gmake[3]: *** [all-recursive] Error 1

gmake[3]: Leaving directory
`/usr/ports/editors/koffice-kde3/work/koffice-1.6.1/filters/kword'

gmake[2]: *** [all-recursive] Error 1

gmake[2]: Leaving directory
`/usr/ports/editors/koffice-kde3/work/koffice-1.6.1/filters'

gmake[1]: *** [all-recursive] Error 1

gmake[1]: Leaving directory
`/usr/ports/editors/koffice-kde3/work/koffice-1.6.1'

gmake: *** [all] Error 2

*** Error code 2

Stop in /usr/ports/editors/koffice-kde3.
** Command failed [exit code 1]: /usr/bin/script
-qa /tmp/portupgrade.79788.0 make ** Fix the problem and try again.
** Listing the failed packages (*:skipped / !:failed)
! editors/koffice-kde3 (koffice-1.4.2_3,1)  (missing header)
---  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed



Currently installed wv2-0.2.3

Any help would be appreciated

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


Need to make sure my understanding of newsyslog is correct for a daemon I'm writing

2007-01-05 Thread Andrew Falanga

Hi everybody,

I'm working on the finishing touches to a server program I've just written
and one of the things it needs to log information to a log file.  I'm going
to log to /var/log/file.log and to manage the growth I'm going to add this
log file to the newsyslog.conf file.  However, I'd like to make sure that
the code I'm writing will work with how newsyslog is going to work.

Basically, I'm installing a signal handler for SIGHUP to do the following:

reset the put pointer to the beginning of the file;
flush any data that may be in the buffer;
close the file;
reopen file;


Does this sound correct?  I'm going on the assumption (and this is what I
want to have clarified) that newsyslog, when it finds that file x meets the
rotate criteria, follows these steps:

1) copy file x contents to x.0
2) truncate file x to zero bytes
3) send SIGHUP to process id

Is this how newsyslog would truncate the file?  Am I missing something?
Should my signal handler function look differently?

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


Re: imap-uw manuals - configuration

2007-01-05 Thread Vizion


 -Original Message-
 From: Mark Tinguely [mailto:[EMAIL PROTECTED] 
 Sent: Friday, January 05, 2007 10:52 AM
 To: freebsd-questions@freebsd.org; [EMAIL PROTECTED]
 Subject: Re: imap-uw manuals - configuration
 
 
 
 Stabbing some more into the dark ...
 
 You can check if inetd is executing the command:
 
 $ telnet -KN 127.0.0.1 143
 
  it should reply something like:
 
 Trying 127.0.0.1...
 Connected to 127.0.0.1.
 Escape character is '^]'.
 * OK [CAPABILITY IMAP4REV1 LITERAL+ SASL-IR LOGIN-REFERRALS 
 STARTTLS AUTH=LOGIN] localhost IMAP4rev1 2004.357 at Fri, 5 
 Jan 2007 12:46:59 -0600 (CST)
 ^]
 telnet quit
 Connection closed.
 
 $ telnet -KN 127.0.0.1 110
 
  it should reply something like:
 
 Trying 127.0.0.1...
 Connected to 127.0.0.1.
 Escape character is '^]'.
 +OK POP3 localhost 2004.89 server ready
 QUIT
 +OK Sayonara
 
 
 /var/log/debug.log should have entries such as:
 
 Jan  5 12:46:59 ccn imapd[10186]: imap service init from 127.0.0.1
 Jan  5 12:47:44 ccn ipop3d[10257]: pop3 service init from 127.0.0.1
 
Thanks Mark for sticking with me on this one..
your stabbing has been in the right place!!

There is something very awry with telnet!!

# telnet -KN 127.0.0.1 143
/libexec/ld-elf.so.1: Shared object libkrb5.so.8 not found, required by 
telnet

I recall some difficulty during a recent rather fraught portupgrade which 
indicate a clash between heimdal.. eventually it resolved itself and I thought 
no more about it.

Umph any idea what is the best way to go from here?

Thanks again

David

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


Re: imap-uw manuals - configuration

2007-01-05 Thread Mark Tinguely

Stabbing some more into the dark ...

You can check if inetd is executing the command:

$ telnet -KN 127.0.0.1 143

 it should reply something like:

Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
* OK [CAPABILITY IMAP4REV1 LITERAL+ SASL-IR LOGIN-REFERRALS STARTTLS 
AUTH=LOGIN] localhost IMAP4rev1 2004.357 at Fri, 5 Jan 2007 12:46:59 -0600 (CST)
^]
telnet quit
Connection closed.

$ telnet -KN 127.0.0.1 110

 it should reply something like:

Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
+OK POP3 localhost 2004.89 server ready
QUIT
+OK Sayonara


/var/log/debug.log should have entries such as:

Jan  5 12:46:59 ccn imapd[10186]: imap service init from 127.0.0.1
Jan  5 12:47:44 ccn ipop3d[10257]: pop3 service init from 127.0.0.1

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


usb2.0 being detected as 1.0

2007-01-05 Thread richard legault
I  have had no success in using usb2.0 on a freebsd 5.4 image. The   usb 
drive keeps using the UHCI  driver instead of the EHCI.
  Here is the  information typically asked for during my websearch for 
a resolution to this  issue.
  (:wheel)#  sed -n 's/^___//p' `sysctl -n kern.bootfile`
  #
  #  USBROOT-NOSMP - Uses a USB drive as its root
  #
   
  include STOCK-NOSMP
  ident  USBROOT-NOSMP
   
  device usb
  device  umass
  device  ehci# USB 2.0
  device  uhci# UHCI PCI-USB interface
  device  ohci# OHCI PCI-USB interface
  device  usb # USB Bus (required)
  device  ugen# Generic
   
   
  (:wheel)#  usbdevs
  addr 1:  UHCI root hub, Intel
   addr 2: Mini TravelDrive, Memorex
  addr 1:  UHCI root hub, Intel
  addr 1:  UHCI root hub, Intel
  (:wheel)#  usbdevs -v
  Controller  /dev/usb0:
  addr 1:  full speed, self powered, config 1, UHCI root hub(0x), 
Intel(0x)
  , rev 1.00
   port 1 addr 2: full speed, power 94 mA, config  1, Mini 
TravelDrive(0x0020), Mem
  orex(0x08ec),  rev 2.00
   port 2 powered
  Controller  /dev/usb1:
  addr 1:  full speed, self powered, config 1, UHCI root hub(0x), 
Intel(0x)
  , rev 1.00
   port 1 powered
   port 2 powered
  Controller  /dev/usb2:
  addr 1:  full speed, self powered, config 1, UHCI root hub(0x), 
Intel(0x)
  , rev 1.00
   port 1 powered
   port 2 powered
   
  (:wheel)#  camcontrol devlist
  SEAGATE  ST318453LW 0006  at scbus0  target 0 lun 0 (pass0)
  Memorex  Mini TravelDrive 6.50at scbus2  target 0 lun 0 (pass1,da0)
  Memorex  Mini TravelDrive 6.50at scbus2  target 0 lun 1 (pass2,cd0)
   
  (:wheel)#  dmesg | grep usb  dmesg | grep da0
  usb0:  Intel 82801EB (ICH5) USB controller USB-A on uhci0
  usb0: USB  revision 1.0
  usb1:  Intel 82801EB (ICH5) USB controller USB-C on uhci1
  usb1: USB  revision 1.0
  usb2:  Intel 82801EB (ICH5) USB controller USB-D on uhci2
  usb2: USB  revision 1.0
  da0 at  umass-sim0 bus 0 target 0 lun 0
  da0:  Memorex Mini TravelDrive 6.50 Removable Direct Access SCSI-0 
device
  da0:  1.000MB/s transfers
  da0: 1920MB  (3932991 512 byte sectors: 255H 63S/T 244C)
  I have tried other sticks that support 2.0 but all have used the UHCI 
driver. 
  Any assistance would be greatly appreciated.
  Thanks
  Richard Legault
  

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Need to make sure my understanding of newsyslog is correct for a daemon I'm writing

2007-01-05 Thread David Kelly
On Fri, Jan 05, 2007 at 12:04:56PM -0700, Andrew Falanga wrote:
 
 Basically, I'm installing a signal handler for SIGHUP to do the following:
 
 reset the put pointer to the beginning of the file;
 flush any data that may be in the buffer;
 close the file;
 reopen file;
 
 
 Does this sound correct?

Correct if you desire to truncate your own log file. Don't move to the
beginning. Just flush any pending data to exactly where you were going
to write them in the first place.

 1) copy file x contents to x.0

Not copy, rename. Can rename a file out from under a process that the
process will still have the original (renamed) file open.

 2) truncate file x to zero bytes

No, it creates a new file of zero bytes with the original name.

 3) send SIGHUP to process id

Yes, and now your process has the renamed x.0 open. SIGHUP is asking you
to finish up, close, and open the new x file. You have 10 seconds before
the optional compression starts.

 Is this how newsyslog would truncate the file?  Am I missing something?
 Should my signal handler function look differently?

You could log by the Open-append, Write, Close, method for each entry.
Don't ask newyslog to SIGHUP you at all. Much simpler. Extra open/closes
probably don't cost anything measurable.

Or you could log via syslogd.

-- 
David Kelly N4HHE, [EMAIL PROTECTED]

Whom computers would destroy, they must first drive mad.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Tar backup on geom mirror drive

2007-01-05 Thread Robert Fitzpatrick
I am backing up a big home partition that results in 46GB tar.gz file 
directly to another FreeBSD machine via NFS and it is taking from 9:30pm 
until almost 7am the next morning. The source home partition is on a 
geom mirrored slice, could this be the reason for such a slow backup? 
The destination server is using RAID, but from the BIOS, not geom. Both 
servers are using gigabit cards through a gigabit switch.


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


Best Cheap Wireless card for FreeBSD

2007-01-05 Thread Chris Maness

What is the best wireless card, USB or other, that works under FreeBSD?

--
Chris Maness
(909) 223-9179
http://www.chrismaness.com

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


alittle help

2007-01-05 Thread Juan Ortega
Hi, I have freeBSD 6.2-RC2
I installed vmware3 from the ports tree but I get an
error when I run it.

**
It seems linux procfs is not mounted on
/compat/linux/proc.
VMware does not work without Linux procfs mounted.

For details, see linprocfs(5) manpage.
***

I read the linprocfs and linux handout put I'm still
having problems with it.
Is linprocfs a command? or something to mount it,
because I cant find it on xterm.

can u plz help me out with this
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Best Cheap Wireless card for FreeBSD

2007-01-05 Thread Steve Franks

Me any mine have been having good luck with Atheros chipsets of late.
OfficeDepot (USA) has their own brand (of which I don't recall as my laptop
is at home, but starts with an A), PCMICA card was $35.  Have had dhcp
problems with the 'wi0' chipset when signal is poor (drops on/off
frequently).  Earlier posts led to a suspicion that replacing dhclient with
?dhcp3? from ports might solve the problem but was never tested.  The wi0
chipsets have definitely been around the longest, and used to give the most
detailed signal strength info with netstumbler on win2k.  I also saw some
techie site had Atheros cards with big amplifiers on them - up to 400mW, but
obviously, those were more in the $75 range than $35.

Steve

On 1/5/07, Chris Maness [EMAIL PROTECTED] wrote:


What is the best wireless card, USB or other, that works under FreeBSD?

--
Chris Maness
(909) 223-9179
http://www.chrismaness.com

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





--
Steve Franks, KE7BTE
Staff Engineer
La Palma Devices, LLC
http://www.lapalmadevices.com
(520) 312-0089
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Best Cheap Wireless card for FreeBSD

2007-01-05 Thread Gable Barber

On 1/5/07, Chris Maness [EMAIL PROTECTED] wrote:

What is the best wireless card, USB or other, that works under FreeBSD?



Not sure what your idea of cheap is, but I have been very happy with
my Atheros based Proxim Orinoco gold b/g pcmcia card.

It cost me around $70.00 (USD) from Amazon, and that was with
expedited shipping, if I remember correctly.


--
Chris Maness
(909) 223-9179
http://www.chrismaness.com




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


tracking port requires

2007-01-05 Thread Michael P. Soulier

Hello,

I'm trying to figure out where ports keep their dependency
information, and the best way to parse it? On a Linux rpm-based
system, I can do the following:

Linux RPM  |   FreeBSD Ports |  Task
=
rpm -qa  pkg_info
   List all installed packages
rpm -ql package   pkg_info -L package  List
files in package
rpm -qf file  pkg_which file
Which package does file belong to?
rpm -q --requires package  ?
List dependencies of package
rpm -q --whatrequires package   ?
Reverse-dependencies of package

If anyone has compiled this, it would help me out.

Thanks,
Mike
--
Michael P. Soulier [EMAIL PROTECTED]
Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction.
--Albert Einstein
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Best Cheap Wireless card for FreeBSD

2007-01-05 Thread Tsu-Fan Cheng

hi, any PCI card here?? thanks!!

TFC

On 1/5/07, Gable Barber [EMAIL PROTECTED] wrote:


On 1/5/07, Chris Maness [EMAIL PROTECTED] wrote:
 What is the best wireless card, USB or other, that works under FreeBSD?


Not sure what your idea of cheap is, but I have been very happy with
my Atheros based Proxim Orinoco gold b/g pcmcia card.

It cost me around $70.00 (USD) from Amazon, and that was with
expedited shipping, if I remember correctly.

 --
 Chris Maness
 (909) 223-9179
 http://www.chrismaness.com



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


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


Re: Best Cheap Wireless card for FreeBSD

2007-01-05 Thread Radu Adrian Zdrinca

I bought a PCI card with a ralink chipset for about $20 from newegg.
It was recognized automatically during freebsd 6.1 install.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: network tuning and performance troubleshooting

2007-01-05 Thread bobmc
Ian Smith wrote:
   Message: 18
   Date: Thu, 04 Jan 2007 18:05:27 -0500
   From: Bob McIsaac [EMAIL PROTECTED]

   Doug Hardie wrote:
   
On Jan 3, 2007, at 22:57, Bob McIsaac wrote:
   
Problem: Browser status 'looking up address' for 10 seconds for any
web page clicked. Slashdot takes almost a minute to load. But FTP
performance is good and running a shoutcast stream is no problem.
Sending mail via my ISP is slow.
   
Investigation: -  sysctl -a  | grep net | less shows a ton of 
variables
with values assigned. Ping of nameserver assigned by dhcp takes 0.5ms.
Ping of freebsd.org = 90ms. Nothing obvious in loader.conf or
rc.conf  (defaults).  /var/log/messages has only startup info.
   
Question: - How to solve this thorny performance problem?  -Bob-
   
You might want to run tcpdump and monitor one of those slow loads.  
Include the timestamp in the output and see what it is doing during 
that time.  I would tend to suspect DNS timeouts.
   
   
   tcpdump confirms there is a ten second delay as seen on the browser.
   1. there are some UDP packets to/from the nameserver.
   2. nothing happens for ten seconds
   3. now there is a TCP connection
   
   tcpdump: listening on vr0, link-type EN10MB (Ethernet),
   
   17:34:07.537419 proto: UDP (17)
 192.168.1.102.53032  192.168.1.254.domain: 
 45959+ A? www.google.ca. (31)

 You ask 192.168.1.254 - presumably your gateway, and/or internal DNS
 server? - for www.google.ca's IPv4 address. 
  
   17:34:07.545218 IP proto: UDP (17)
 192.168.1.254.domain  192.168.1.102.53032: 
 45959 6/7/4 www.google.ca. CNAME[|domain]

 It's a CNAME.  Not sure if you got the right IP address there, though
 from the later (after delay) connect to google.com, I suppose so ..

   17:34:07.545500 IP proto: UDP (17)
 192.168.1.102.64463  192.168.1.254.domain: 
 45960+ ? www.google.ca. (31)

 Then you ask for www.google.ca's IPv6 address.  Do you really want that? 
 You get no response on that, but maybe you're prepared to wait for it,
 ie are you somehow relying on getting an IPv6 address, and if so, why? 

   17:34:07.868410 IP proto: UDP (17)
 192.168.1.102.61375  192.168.1.254.domain: 
 48085+ PTR? 254.1.168.192.in-addr.arpa. (44)

 You then ask for your gateway's IP address, by name.  Hmm.  But you get
 no response to that query.  Looks like you're about to wait for one ..
 ~4.6 seconds later you're still waiting, and you ask again .. 

   17:34:12.545947 IP proto: UDP (17)
 192.168.1.102.54649  192.168.1.254.domain: 
 45960+ ? www.google.ca. (31)

 .. for that IPv6 address, and then you ask again ..

   17:34:12.868866 IP proto: UDP (17)
 192.168.1.102.55840  192.168.1.254.domain: 
 48085+ PTR? 254.1.168.192.in-addr.arpa. (44)

 .. for your gateway's IP address from its name.  No answer.

nothing happens for 10 seconds?? 

 .. and then you appear to contact google.com successfully.

   17:34:22.546051
 (tos 0x0, ttl  64, id 226, offset 0, flags [DF],
 proto: TCP (6), length: 64)
 192.168.1.102.52363  qb-in-f147.google.com.http: S,
 cksum 0x3aa5 (correct),
 1762925400:1762925400(0) win 65535 mss 1460,
 nop,wscale 1,
 nop,nop,timestamp 1758025 0,sackOK,eol

 Are you obliged to use 192.168.1.254 for DNS?  The  queries aside
 (which it should quickly NAK if it doesn't handle them), it seems broken
 if it can't resolve it's own reverse DNS?  Can you use your upstream
 provider's DNS server/s instead (ie in resolv.conf)?  Is your IP fixed
 or DHCP-assigned?  If the latter, with or without auto DNS assignment? 

 Cheers, Ian
   

Are you obliged to use 192.168.1.254 for DNS? ...

This is the address from my ISP placed in /etc/resolv.conf
during DHCP

.. for that IPv6 address, and then you ask again ..
 17:34:12.868866 IP proto: UDP (17)
   192.168.1.102.55840  192.168.1.254.domain: 
   48085+ PTR? 254.1.168.192.in-addr.arpa. (44)
.. for your gateway's IP address from its name.  No answer.

I did not select IPv6 during FreeBSD install and /etc/defaults/rc.conf
defaults to off.  According to the notes in /etc/hosts.allow, reverse
lookup is done to mitigate hacker tricks.

Thanks for the details. Is it possible that this is some kind of
silent hardware-driver issue that confuses the system APIs?  -Bob-

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


Re: tracking port requires

2007-01-05 Thread Dan Nelson
In the last episode (Jan 05), Michael P. Soulier said:
 I'm trying to figure out where ports keep their dependency
 information, and the best way to parse it? On a Linux rpm-based
 system, I can do the following:

The dependencies themselves are stored as @pkgdep lines in the
/var/db/pkg/packagename/+CONTENTS file.  The reverse link is stored in
/var/db/pkg/packagename/+REQUIRED_BY .  You can list the dependencies
with the pkg_info -r packagename command, and the packages that
require a package with pkg_info -R packagename.

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


RE: routing and networking help. (urgent help please)

2007-01-05 Thread Marwan Sultan

FIXED, ignore this email..

However no one has answered.


Hello Gurus,

   This is an Urgent help, as everything pending, waiting.. a FreeBSD 
Solution.
   and I appologize if I will explain in details, please be  patient with 
me.


   Just yesterday, our ISP installed 2 routers (both 3com) at our main 
office.
   One router acting for Datalink between the office and the branch 
(datarouter)

   One for the internet connection.(internet router)

   one short cable connected from the internet router to datalink router
   So everyone on the WAN has internet access which we donot want.
   So we decided to have our FreeBSD 6.1-R server, managing all the job.

   So I installed a FreeBSD box, with NATd enabled, this is how it works
   Internet router ---  rl0 192.168.0.3 freebsd dc0 192.168.1.1 --- 
switch --- all clinets

   also a cat5 cable hookedup from the datalink router to the switch.
   So the switch having the clinets+datalink router + lan freebsd cable.
   The datalink router connected to the branch site also WAN.

   the internet router has the following configurations.
   IP 192.168.0.2 gateway 192.168.0.254
   and the datalink configuration has the follow
   gateway 192.168.0.253
   WAN (branch site)
   IPs of 192.168.2.xx gateway 192.168.0.254
   ALL can ping each other and see each other..(if there is no freebsd 
server)

   also wan works perfectly.. with no FreeBSD server..
   Here is the problem

   the problem when I configure my fbsd lan interface to 192.168.1.1
   and my clinets will have the IP
   192.168.1.x/24 with gateway 192.168.0.254
   wthey will have the internet.. and will NOT see any datalink clients,
   nor will see the WAN on the branch site. (diffrences of IPs and 
gateways)
   because clinets directed to the fbsd server which regonize 192.168.0.254 
(internet router)


   If I configure my clients behind fbsd nat server to IPs of
   192.168.0.x/24 and gateway 192.168.0.253 (Insted of 192.168.1.x and gw 
192.168.0.254)

   they will see the datalink and wan but no internet.

   How would I make all clinets have my fbsd lan ips 192.168.1.x/24
   and freebsd will have the ability to see the two gateways
   192.168.0.254 (internet router) and 192.168.0.253 (datalink router)

   In short words, all clinets should be connected to FreeBSD server lan 
interface
   but in the same time, freebsd will route and manage to the requests for 
wan.


   Second problem:
   If i have rl0 to host my internet router real IP
   and defautlrouter to the NAT ip, internet will not work.
   ifconfig_rl0=inet 62.215.x.6  netmask 255.255.255.252
   defaultrouter=62.215.x.5 #internet router IP
   No Internet.
   but if i host my rl0 to 192.168.0.3
   and defaultrouter to 192.168.0.254 (internet router gateway)
   internet will work...
   ifconfig_rl0=inet 192.168.0.3  netmask 255.255.255.0
   defaultrouter=192.168.0.254

   The first case, disabling nat from router and having it to freebsd only
   second case, having the router to NAT and again freebsd doing another 
nat.


   Sorry Gurus for the long emails, excuse me, and waiting your reply asap.

   -Marwan Sultan.

_
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


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


Re: alittle help

2007-01-05 Thread pete wright

On 1/5/07, Juan Ortega [EMAIL PROTECTED] wrote:

Hi, I have freeBSD 6.2-RC2
I installed vmware3 from the ports tree but I get an
error when I run it.

**
It seems linux procfs is not mounted on
/compat/linux/proc.
VMware does not work without Linux procfs mounted.

For details, see linprocfs(5) manpage.
***

I read the linprocfs and linux handout put I'm still
having problems with it.
Is linprocfs a command? or something to mount it,
because I cant find it on xterm.



you need to mount the linux proc filesystem.  a good place to start is
to carefully reread the linprocfs manpage.  you are going to have to
enable Linux compatibility on your FreeBSD system as well.  in
addition to becoming familiar with the excellent online handbook this
section specifically will be helpfull to you as well:


http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/linuxemu.html

-p

--
~~o0OO0o~~
Pete Wright
www.nycbug.org
NYC's *BSD User Group
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: tracking port requires

2007-01-05 Thread Michael P. Soulier

On 1/5/07, Dan Nelson [EMAIL PROTECTED] wrote:

The dependencies themselves are stored as @pkgdep lines in the
/var/db/pkg/packagename/+CONTENTS file.  The reverse link is stored in
/var/db/pkg/packagename/+REQUIRED_BY .  You can list the dependencies
with the pkg_info -r packagename command, and the packages that
require a package with pkg_info -R packagename.


Great, thanks.

Mike
--
Michael P. Soulier [EMAIL PROTECTED]
Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction.
--Albert Einstein
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Best Cheap Wireless card for FreeBSD

2007-01-05 Thread Tsu-Fan Cheng

hi, can u tell me the brand name of the card is?? thanks!!

TFC

On 1/5/07, Radu Adrian Zdrinca [EMAIL PROTECTED] wrote:


I bought a PCI card with a ralink chipset for about $20 from newegg.
It was recognized automatically during freebsd 6.1 install.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]


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


C/C++ Applications Developer

2007-01-05 Thread Sam Modi
HiFreebsd 

We have C/C++ Applications Developer multiple openings in different locations. 

Locations: Ashburn, VA  (openings-4) 
Location: Denver, CO(openings-3) 
Location: Highlands Ranch, CO   (openings-5) 
Location: Colorado Springs, CO  (openings-10) 
Location: Clinton, MS   (openings-8) 
Location: Tulsa, OK (openings-3) 

Rate: $45-$50 per hour 

Job Type: Contract,   
Total Exp: Good Experience
Start Date: ASAP,   (01/29/2007) 
Duration: 12 Months,   
Number of Openings: 35,   
Primary Skills: C/C++, PERL, Java in UNIX environment 
Other Skills/Job Responsibilities: 
- 
Required Skills (Must have these skills) 

o Mid-level developer 
o An Experienced developer that has developed using C/C++ in an in UNIX 
environment. 
o Perl and/or ksh scripting Plus skills, not absolutely 
necessary: 
o HTML, CGI and Web Development experience 
o Perl experience. 
o Oracle Pro-C or similar database background 
o Perl DBI 

Other Requirements/Notes: 
- 
we are not looking someone who has C experience on a PC as this is very 
different skill set. Also, qualified candidates must be self starts and have 
solid problem solving skills.

Please respond with Resume, Rate and Phone numbers 

When sending resumes please include: 

Rate 
Contact telephone numbers 
email address 
Current location 
Available date 

Best Regards, 

Sam Modi 
Sr.IT Recruiter/Sourcing Analyst 

Aspen Group,Inc 
1100 Wayne Ave., Ste. 1175 
Silver Spring, MD 20910 
Ph: 301-650-6200 x2025 
Fax: 301-650-1917 
Email:[EMAIL PROTECTED] 
www.theaspengroupinc.com 

Disclaimer: Under Bills.1618 Title III passed by the 105th U.S. Congress this 
mail cannot be considered Spam as long as we include contact information and a 
method to be removed from our mailing list. To be removed from our mailing list 
please reply to [EMAIL PROTECTED]  with the word REMOVE in your subject line. 
Include complete address and/or domain/aliases to be removed.


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


Re: Tar backup on geom mirror drive

2007-01-05 Thread [EMAIL PROTECTED]

On 05/01/07, Robert Fitzpatrick [EMAIL PROTECTED] wrote:

I am backing up a big home partition that results in 46GB tar.gz file
directly to another FreeBSD machine via NFS and it is taking from 9:30pm
until almost 7am the next morning. The source home partition is on a
geom mirrored slice, could this be the reason for such a slow backup?
The destination server is using RAID, but from the BIOS, not geom. Both
servers are using gigabit cards through a gigabit switch.



Lots of potential reasons for it being slow, but on a guess,
unless a majority of what you are backing up are text files
you will not save very much space by compressing (video
and music (or .mp3, .ogg, .avi, .mpg, etc.) are already
compressed much better than gzip can) but will incur
huge time penalties for redundant and redundant compres-
sion.

A mirror should result in little or no slowdown in reads
(if it is not faster, I cannot recall).  The bottleneck may
be your network, which would require expertise beyond
me to diagnose.

As an aside, on a live system many things can cause
wild fluctuations in backup speed.

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


Re: Best Cheap Wireless card for FreeBSD

2007-01-05 Thread Radu Adrian Zdrinca

Foxconn WLL-3350. So far it's been working very well although I
haven't had time to fully test it. It comes with an external antenna,
unlike the picture on newegg.



hi, can u tell me the brand name of the card is?? thanks!!

TFC

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


Re: Best Cheap Wireless card for FreeBSD

2007-01-05 Thread Giorgos Keramidas
On 2007-01-05 18:54, Tsu-Fan Cheng [EMAIL PROTECTED] wrote:
 hi, can u tell me the brand name of the card is?? thanks!!

FWIW, If it helps at all, I'm using for more than a year now a D-link
DWL-AG650 PC-CARD on laptops which I have been working on.  It has an
Atheros chipset, and the ath(4) driver works like a charm, on 6.X and
7.0-CURRENT.

[ pciconf -lv output ]

[EMAIL PROTECTED]:0:0:  class=0x02 card=0x3a071186 chip=0x0013168c rev=0x01 
hdr=0x00
vendor   = 'Atheros Communications Inc.'
device   = 'AR5212, AR5213 802.11a/b/g Wireless Adapter'
class= network
subclass = ethernet

[ dmesg and /var/log/messages output ]

ath0: Atheros 5212 mem 0xffa1-0xffa1 at device 0.0 on cardbus0
ath0: using obsoleted if_watchdog interface
ath0: Ethernet address: 00:11:95:ca:e5:e8
ath0: mac 5.9 phy 4.3 radio 3.6

I got it from a Greek online shop for about 35 euros, and it was one of
the best online buys I've ever done :)

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


Getting the scrollwheel to work under Xorg for a Wireless Intellmouse Explorer 2.0

2007-01-05 Thread Garrett Cooper
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I know this is in the FAQ, but each mouse is different and
requires its own 'massaging' in the xorg.conf file to get working.

A picture of the mouse is available as follows:
http://www.microsoft.com/hardware/oempartners/ProductDetails.aspx?pid=013

1. I know that buttons 6 and 7 are the scrollwheel's buttons from xev
output. I set the values in xorg.conf to what I obtained via xev, but
the scrollwheel is non-responsive:

- From xorg.conf:

Section InputDevice
Identifier  Mouse0
Driver  mouse
Option  Protocol auto
Option  Device /dev/sysmouse
Option  Buttons 7
Option  ZAxisMapping 6 7
Option  Resolution 100
EndSection

2. cat /dev/ums0 works for the scrollwheel (garbage is printed out).

3. Buttons 4  5 appear to be mapped to nothing (or at least nothing I
can create).

4. On a sidenote (and funny I suppose since this usually happens last),
I got the sidebuttons (buttons 8, 9) to work with imwheel.

TIA,
- -Garrett
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.1 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFnvs6EnKyINQw/HARAoWxAJ9H5m24f9BzWarRjHY8lYrX9RXQJgCfVodV
Nh2T2ziL4qYx7eudEfYbuOk=
=lQcw
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Mail being sent from my domain...

2007-01-05 Thread Rob W.
I hope I'm in the right area and someone could possibly help me with this.

I am running FreeBSD 5.4. I installed qmail from www.qmailrocks.org

Everything is working correctly and I do have spamassassin and clamav installed 
and working.

Lately I have been getting emails back saying that someone is sending mail out 
from [EMAIL PROTECTED] If anybody can help. I do have the patch installed so 
that open relay is disabled and a user needs an account on the qmail system. I 
have been watching the email accounts and it has not been breached as far as 
security.

Is it possible for people to send email out from my domain name and have fake 
users acting as comming from my network? If so, is there anything I can do stop 
this or prevent it?

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


Re: streaming video (at 144kbps)?

2007-01-05 Thread Chris Hill

On Fri, 5 Jan 2007, Gary Kline wrote:


Any ideas how///what tools to use to watch PBS streams?
Nothing/zip works with [linux-] firefox plus the flashplugin7
and mplayer.


I'm able to watch PBS video clips using mplayer-plugin under native 
firefox on 5.5-R. I don't know about streams, because I couldn't find 
one after a cursory look through http://www.pbs.org/. Can you post a URL 
for something you are unable to watch? It may also be helpful to know 
what versions of everything that you are using (you know the drill).


--
Chris Hill   [EMAIL PROTECTED]
** [ Busy Expunging | ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Pulling a patch release using cvsup

2007-01-05 Thread Josef Grosch
I'm trying to figure out how, using cvsup, to pull a specific patch
release. For example, FreeBSD 4.11-RELEASE-p14. I've tried using the date
of a specific patch from /usr/src/UPDATING but that does not work.


Josef

-- 
Josef Grosch   | Another day closer to a | FreeBSD 6.1
[EMAIL PROTECTED] |   Micro$oft free world  | Berkeley, Ca.


pgpZNtwb73AfT.pgp
Description: PGP signature


Re: Mail being sent from my domain...

2007-01-05 Thread Sahil Tandon

Rob W. wrote:


I hope I'm in the right area and someone could possibly help me with this.


You should post this question on the qmail mailing list.  You should 
also include the relevant logs with your question.


Even if you're not an open relay, spammers can spoof your domain name to 
send messages that, when rejected, will come back to you in the form of 
backscatter.


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


Re: Mail being sent from my domain...

2007-01-05 Thread Rob W.
Ok, and I suppose by chance there is no way to prevent this from happening 
or a way to stop it huh?



- Original Message - 
From: Lars Eighner [EMAIL PROTECTED]

To: Rob W. [EMAIL PROTECTED]
Cc: freebsd-questions@freebsd.org
Sent: Friday, January 05, 2007 9:25 PM
Subject: Re: Mail being sent from my domain...



On Fri, 5 Jan 2007, Rob W. wrote:


Is it possible for people to send email out from my domain name and have
fake users acting as comming from my network?


Yes, if you have defeated the security features of your mail server either
accidentally or on purpose, but that is not what is happening in this 
case.

There appears to be a recurrance (or mutation) of a virus we have seen
before.  The mail is not originating on your server.  Your domain is being
spoofed by the infected computer(s).  The forged mail probably would not
escape detection by a knowledgeable human, but it is good enough to fool
some autoresponders and mail tossers, which is why you get the bounces.

--
Lars Eighner
http://www.larseighner.com/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266




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


Re: Mail being sent from my domain...

2007-01-05 Thread Lars Eighner

On Fri, 5 Jan 2007, Rob W. wrote:


Ok, and I suppose by chance there is no way to prevent this from happening
or a way to stop it huh?


No, not from your perspective.

--
Lars Eighner
http://www.larseighner.com/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266

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


Re: Mail being sent from my domain...

2007-01-05 Thread Colin House

Sahil Tandon wrote:

Rob W. wrote:

I hope I'm in the right area and someone could possibly help me with 
this.


You should post this question on the qmail mailing list.  You should 
also include the relevant logs with your question.


Even if you're not an open relay, spammers can spoof your domain name 
to send messages that, when rejected, will come back to you in the 
form of backscatter.


--
Sahil Tandon [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]
Check out http://openspf.org - implementing SPF will help prevent 
spoofed emails from being delivered and will start to cut down on the 
backscatter

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


Re: Mail being sent from my domain...

2007-01-05 Thread Lars Eighner

On Fri, 5 Jan 2007, Rob W. wrote:


Is it possible for people to send email out from my domain name and have
fake users acting as comming from my network?


Yes, if you have defeated the security features of your mail server either
accidentally or on purpose, but that is not what is happening in this case.
There appears to be a recurrance (or mutation) of a virus we have seen
before.  The mail is not originating on your server.  Your domain is being
spoofed by the infected computer(s).  The forged mail probably would not
escape detection by a knowledgeable human, but it is good enough to fool
some autoresponders and mail tossers, which is why you get the bounces.

--
Lars Eighner
http://www.larseighner.com/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266

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


Re: Pulling a patch release using cvsup

2007-01-05 Thread Giorgos Keramidas
On 2007-01-05 18:16, Josef Grosch [EMAIL PROTECTED] wrote:
 I'm trying to figure out how, using cvsup, to pull a specific patch
 release. For example, FreeBSD 4.11-RELEASE-p14. I've tried using the date
 of a specific patch from /usr/src/UPDATING but that does not work.

Using dates is certainly a possibility, but you have to be a bit careful
about the date format.  CVSup will accept dates of the format:

.mm.dd.HH.MM.SS

Where:

 = year
mm   = month
dd   = month day [01..28, 01..30 or 00..31, depending on the month]
HH   = hours
MM   = minutes
SS   = seconds

The format is also described in the manpage of cvsup:

#date=[cc]yy.mm.dd.hh.mm.ss
#This specifies a date that should be used to select the
#revisions that are checked out from the CVS repository.  The
#client will receive the revisions that were in effect at the
#specified date and time.
#
#At present, the date format is inflexible.  All 17 or 19
#characters must be specified, exactly as shown.  For the years
#2000 and beyond, specify the century cc.  For earlier years,
#specify only the last two digits yy.  Dates and times are
#considered to be GMT.  The default date is `.', which means
#``as late as possible''.

Thus, you can update to a particular date *within* the RELENG_4 branch,
by using both a tag=RELENG_4 and a date=2007.01.05.22.00.00 :)

Please note that the dates specified in date=YY.mm.dd.HH.MM.SS format
are in UTC, so if you are living in a different timezone, some
adjustments may be necessary.

- Giorgos

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


Re: Mail being sent from my domain...

2007-01-05 Thread Sahil Tandon

Lars Eighner wrote:


On Fri, 5 Jan 2007, Rob W. wrote:

Ok, and I suppose by chance there is no way to prevent this from 
happening or a way to stop it huh?


No, not from your perspective.


You cannot stop others from spoofing your address, but you can prevent 
some backscatter from clogging your mailbox.  For users of Postfix:


http://www.postfix.org/BACKSCATTER_README.html

However, because you're using qmail, you should post your question on 
that mailing list.


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


Getting the scrollwheel to work under Xorg for a Wireless Intellmouse Explorer 2.0

2007-01-05 Thread Robert Huff
Garrett Cooper writes:


   A picture of the mouse is available as follows:
  http://www.microsoft.com/hardware/oempartners/ProductDetails.aspx?pid=013

I think I have the wired version, and my xorg.conf has:

Section InputDevice
 Identifier  Mouse0
 Driver mouse
 Option Device /dev/sysmouse
 Option Protocol auto
 Option ZAxisMapping 4 5
EndSection


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


[SOLVED] Re: Getting the scrollwheel to work under Xorg for a Wireless Intellmouse Explorer 2.0

2007-01-05 Thread Garrett Cooper
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Robert Huff wrote:
 Garrett Cooper writes:
 
 
  A picture of the mouse is available as follows:
  http://www.microsoft.com/hardware/oempartners/ProductDetails.aspx?pid=013
 
   I think I have the wired version, and my xorg.conf has:
 
 Section InputDevice
  Identifier  Mouse0
  Driver mouse
  Option Device /dev/sysmouse
  Option Protocol auto
  Option ZAxisMapping 4 5
 EndSection
 
 
   Robert Huff

Robert,
You are a lifesaver! That was exactly what I needed (remove
Option Buttons and set Option ZAxisMapping to those values) to do to
get stuff to work :)!! Wonder why it contradicted with xev though...
Thanks!
- -Garrett
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.1 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFny8ZEnKyINQw/HARAnngAJ9cpIiU/fRaWB1dDMPVIawtvBdU6gCeJgbR
ACxM3UgT3Uo+NWKcuPvQKn8=
=8f6Y
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Best Cheap Wireless card for FreeBSD

2007-01-05 Thread dan

Radu Adrian Zdrinca wrote:

Foxconn WLL-3350. So far it's been working very well although I
haven't had time to fully test it. It comes with an external antenna,
unlike the picture on newegg.



I found a linksys instant wireless WPC11 version 3 on ebay.
won the auction for $21.00. It uses the prism and/or orinoco driver
works flawlessly for me.

NOTE: DO NOT get the WPC11 version 4, not the same chipset, does not work.

Dan

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


disappointing rebuild speed using ggatec and ggated

2007-01-05 Thread Ahnjoan Amous

I'm attempting a RAID 1 mirror with ggate[c,d] between two hosts using
6.1-release and am disappointed by the rebuild rate.

I have tried using Ethernet cards supported by fxp and re drivers,
have read advice on how to tune to improve network performance.  I
have also attempted ggate[c,d] configuration using an md rather than
ad device but can't seem to figure out what might cause the problem
being encountered.

Searching the lists and web has lead make the following modifications.

*** These are quadruple what the defaults were on my system***
sysctl net.inet.tcp.sendspace=131072
sysctl net.inet.tcp.recvspace=262144
sysctl kern.ipc.maxsockbuf=1048576
sysctl kern.ipc.nmbclusters=35584

*** Kernel config ***
options HZ=8000
options DEVICE_POLLING

*** ifconfig***
enable POLLING on each machine with re0

With the following modifications, my rebuild has improved.  Instead of
stalling out at 2% (of a 146G mirror) the rebuild seems to steadily
continue albeit very slowly.  Today an entire manual rebuild (non auto
sync for gm device) took over 17 hours over a crossover cable between
two re interfaces.  I don't expect that the rebuild would happen at
wire speed but guess it might be possible to finish in less than 4
hours.

I do not have the gm device or ggate device mounted on the primary
host during the rebuild.  I am not connecting to either the primary or
failover host for any services. ( I hope this communicates that both
hosts are not taxed by external sources )

Using systat –vm 1 shows that the machine comes close to 0%  idle
while the mirror is actually rebuilding.  Using gstat shows that the
ggate device on the primary comes close to 100% busy while the mirror
is actually rebuilding.

For some reason the rebuild seems to stop (systat –vm 1 goes to 80%
idle, and gstat goes to 0% busy for ggate) every once in a while.  I
can't pin point why it stops  rebuilding and hope that I have just
missed someone commenting that I should do something obvious to fix
this issue.

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


want to unsubscribe from cvs:commit

2007-01-05 Thread prashant chavan

hi

I want to unsubscribe from cvs:commit . plz let me know how to do it.

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