IPNAT API

2002-10-08 Thread Fabio Yasusi Yamamoto

I'm trying to develop a simple network load-balance program using 
ipnat/ipf API's.
But i did'nt find a way to put an 'address source'  on ipnat tables.

Can you tell me if there is a way to put a RDR/MAP based on source address?

ex.
Source from: 1.1.1.1:1 TO: 2.2.2.2:2 REDIR: 3.3.3.3:3
__

-- 
Fabio Yasusi Yamamoto
[EMAIL PROTECTED]
ICQ: 80



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Should I worry about having many X11 symlinks

2002-10-08 Thread Adam Weinberger

 (10.07.2002 @ 2122 PST): Peter Leftwich said, in 1.4K: 
 # find /usr/X11R6/lib/X11/ -type l | xargs ls -al | grep -v \/doc\/html\/

don't need to escape those forward slashes, fwiw.

 `pkg_add -r wrapper` failed the first try because of an error about
 /etc/X11/xserver/ServerPolicy or something like that.

i hope that wasn't a request for help on that...

 A pkg_deinstall then
 a `pkg_add -rf` fixed wrapper fine

uhm. if that worked, are you sure the original error wasn't this
package is already installed?

 but should these symlinks be migrated
 one way (/usr/X11R6/...) or the other (/etc/X11/..)?  ln -s thanks help\!

i have no idea what that question means. all the links you provided
linked from /usr/X11R6/lib/something to /etc/X11/something. how does one
migrate a symlink? and what does this have to do with the wrapper
package?

-Adam


--
Oh good, my dog found the chainsaw.
-Lilo, Lilo  Stitch
Adam Weinberger
[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



lsof port refers to file that does not exist in the _world_

2002-10-08 Thread Firsto Lasto


Hi,

I am running 4.6.2, and I am trying to install `lsof` from the ports tree.  
The port attempts to download:

lsof_4.64G.freebsd.tar.gz

If you go to the lsof ftp site and the mirrors, this file does not exist.  
Further, if you go to ftp.freebsd.org and go to ports/distfiles, it also 
does not exist.  In fact I searched for that filename on google and some 
other search engines and it does not _exist in the world_.

So what do I do if I want to install lsof from the ports tree ?  Obviously I 
cannot just rename one of the existing ones, since md5 checksum will fail - 
and even if I use NO_CHECKSUM command line option, it still fails because of 
some missing patch.

So what the heck ?  Why refer to a non-existent file ?



_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: /etc/make.conf and AMD Athlon 600

2002-10-08 Thread Adam Weinberger


 (10.07.2002 @ 2143 PST): Peter Leftwich said, in 0.8K: 
 I didn't have .../share/mk/ so I went out with google and downloaded
 bsd.cpu.mk -- Wouldn't it be nice if mv had a flag to create directories
 if they don't exist?  Same with the command touch.

put this in your shell's rcfile:
mvm() {mkdir -p `dirname $2`  mv $1 $2;}

seriously, peter, get a book on UNIX utilities. the o'reilly unix power
tools book is great.

-Adam


--
Oh good, my dog found the chainsaw.
-Lilo, Lilo  Stitch
Adam Weinberger
[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: help with ln linking Please! [attn manpage authors!]

2002-10-08 Thread Adam Weinberger

 (10.07.2002 @ 2216 PST): Peter Leftwich said, in 1.5K: 
 On Mon, 7 Oct 2002, SweeTLeaF wrote:
  I am in the /usr/root dir
  ln -s desktop /root/Desktop/tmp
 
 You should be using `ln -s /root/Desktop/tmp /usr/root/desktop`

no, he shouldn't be. when he looks at /root/Desktop/tmp he wants to see
the contents of /usr/root/desktop. remember it this way, peter: the file
that doesn't exist yet comes last.

the problem with your command, sweetleaf, is that ln -s desktop ...
doesn't make a link to desktop in your current directory. it makes it
relative to the link. your command makes a link from /root/Desktop/tmp
to /root/Desktop/desktop.

unless you have a specific reason for making links relative, qualifying
all links with full path names is your safest bet.

-Adam


--
Oh good, my dog found the chainsaw.
-Lilo, Lilo  Stitch
Adam Weinberger
[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: lsof port refers to file that does not exist in the _world_

2002-10-08 Thread Adam Weinberger

update your ports tree and try again. you should be fetching
lsof-4.6.4.tar.gz.

-Adam


 (10.07.2002 @ 2347 PST): Firsto Lasto said, in 1.0K: 
 
 Hi,
 
 I am running 4.6.2, and I am trying to install `lsof` from the ports tree.  
 The port attempts to download:
 
 lsof_4.64G.freebsd.tar.gz
 
 If you go to the lsof ftp site and the mirrors, this file does not exist.  
 Further, if you go to ftp.freebsd.org and go to ports/distfiles, it also 
 does not exist.  In fact I searched for that filename on google and some 
 other search engines and it does not _exist in the world_.
 
 So what do I do if I want to install lsof from the ports tree ?  Obviously 
 I cannot just rename one of the existing ones, since md5 checksum will fail 
 - and even if I use NO_CHECKSUM command line option, it still fails because 
 of some missing patch.
 
 So what the heck ?  Why refer to a non-existent file ?
 end of lsof port refers to file that does not exist in the _world_ from Firsto 
Lasto 


--
Oh good, my dog found the chainsaw.
-Lilo, Lilo  Stitch
Adam Weinberger
[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: FreeBSD status report

2002-10-08 Thread Kris Kennaway

On Mon, Oct 07, 2002 at 10:20:46PM -0700, Mark Miller wrote:
 Hi,
 
 Who do I contact about contributing to the the FreeBSD Status Reports?
 What are the deadlines for submitting a report?

Submissions are solicited bimonthly on hackers - just respond with
your project details when the next one is announced.

Kris



msg04273/pgp0.pgp
Description: PGP signature


Re: lsof port refers to file that does not exist in the _world_

2002-10-08 Thread Edwin Groothuis

On Mon, Oct 07, 2002 at 11:47:01PM -0700, Firsto Lasto wrote:
 I am running 4.6.2, and I am trying to install `lsof` from the ports tree.  
 The port attempts to download:
 
 lsof_4.64G.freebsd.tar.gz

You should have a look for

[/usr/ports/sysutils/lsof] edwin@k7make -V DISTFILES
lsof_4.65D.freebsd.tar.gz

That's the one!

Edwin

-- 
Edwin Groothuis  |Personal website: http://www.MavEtJu.org
[EMAIL PROTECTED]|Weblog: http://www.mavetju.org/weblog/weblog.php 
bash$ :(){ :|:};:   | Interested in MUDs? http://www.FatalDimensions.org/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: is mysql working well with FreeBSD 4.5 ?

2002-10-08 Thread Matthew Seaman

On Tue, Oct 08, 2002 at 12:55:57AM -0700, dodi agusri wrote:
 I plan to use MYSQL database server on FreeBSD 4.5. On
 This server I intend to Setup my web based helpdesk 
 application using PHP/MYSQL. Is there any known bug
 with this OS ?.I heard that there is thread problem
 with previos FreeBSD version .

mysql can have issues with threads under load on FreeBSD 4.x, that is
true.  However, it generally works fine on single processor FreeBSD
boxes, and usually works fine on multiprocessor machines.  If you're
not maxing out your database machine, mysql will serve you well.  If
you are running a very busy (hundreds of hits per minute) database
based web site, then you should put some serious thought into exactly
what combination of database and server OS you use --- mysql on
FreeBSD would not be a brilliant choice in that case.

Of course, all this is true for FreeBSD 4.x.  Threads have been
completely reworked in 5-CURRENT and indications are that it will be a
rather stellar performer.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
  Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: is mysql working well with FreeBSD 4.5 ?

2002-10-08 Thread John Rosanbalm

Can anyone tell me why I am getting the following error?

Failed to apply changes : Syntax error on line 237 of
/usr/local/etc/apache/httpd.conf: Cannot load
/usr/local/libexec/apache/libphp3.so into server:
/usr/local/lib/mysql/libmysqlclient.so.10: Undefined symbol strtoll
I am trying to get mysql-php3 and 4 working with apache-1.3.27
I have 4.2 freebsd but have install the ports upgrade to stable at
freebsd.org

Any hints would be appreciated,
John

- Original Message -
From: Matthew Seaman [EMAIL PROTECTED]
To: dodi agusri [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, October 08, 2002 1:17 AM
Subject: Re: is mysql working well with FreeBSD 4.5 ?


 On Tue, Oct 08, 2002 at 12:55:57AM -0700, dodi agusri wrote:
  I plan to use MYSQL database server on FreeBSD 4.5. On
  This server I intend to Setup my web based helpdesk
  application using PHP/MYSQL. Is there any known bug
  with this OS ?.I heard that there is thread problem
  with previos FreeBSD version .

 mysql can have issues with threads under load on FreeBSD 4.x, that is
 true.  However, it generally works fine on single processor FreeBSD
 boxes, and usually works fine on multiprocessor machines.  If you're
 not maxing out your database machine, mysql will serve you well.  If
 you are running a very busy (hundreds of hits per minute) database
 based web site, then you should put some serious thought into exactly
 what combination of database and server OS you use --- mysql on
 FreeBSD would not be a brilliant choice in that case.

 Of course, all this is true for FreeBSD 4.x.  Threads have been
 completely reworked in 5-CURRENT and indications are that it will be a
 rather stellar performer.

 Cheers,

 Matthew

 --
 Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
   Savill Way
   Marlow
 Tel: +44 1628 476614  Bucks., SL7 1TH UK

 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Linux emulation: acd0a is not a cooked ioctl CDROM

2002-10-08 Thread Oliver Fromme

Lucky Green [EMAIL PROTECTED] wrote:
  I am in the process of ripping a large CD collection. Fidelity is
  paramount. By all accounts, the ripper of choice for audiophiles is
  cdparanoia.

dagrab has worked fine for me for IDE drives.  It's in the
ports collection.  (For SCSI drives I prefer tosha.)

Regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH  Co KG, Oettingenstr. 2, 80538 München
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

All that we see or seem is just a dream within a dream (E. A. Poe)

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: /dev/urandom is randomly cool

2002-10-08 Thread Ceri Davies

On Tue, Oct 08, 2002 at 12:30:27AM -0400, Peter Leftwich wrote:
 On Mon, 7 Oct 2002, Oliver Fromme wrote:
  Peter Leftwich [EMAIL PROTECTED] wrote:
On Sun, 6 Oct 2002, Fernando Gleiser wrote:
 On Sun, 6 Oct 2002, Mikko Ty?l?j?rvi wrote:
   tr -cd a-zA-Z0-9  /dev/urandom | dd bs=$len count=1 2/dev/null
It didn't work.  My shell is tcsh so I tried:
tr -cd a-zA-Z0-9  /dev/urandom | dd bs=8 count=1  /dev/null
And all I got was the next prompt.
 
  Yep, csh and tcsh suck pretty much.  Not being able to separately
  redirect stderr easily is one of the reasons.
 
 Bizarre.  From now on I'll have to insert `bash ; ` before commands :)

Umm, that won't work, but I really can't tell if you're joking or not.

Ceri
-- 
you can't see when light's so strong
you can't see when light is gone

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: is mysql working well with FreeBSD 4.5 ?

2002-10-08 Thread Matthew Seaman

On Tue, Oct 08, 2002 at 01:46:51AM -0700, John Rosanbalm wrote:
 Can anyone tell me why I am getting the following error?
 
 Failed to apply changes : Syntax error on line 237 of
 /usr/local/etc/apache/httpd.conf: Cannot load
 /usr/local/libexec/apache/libphp3.so into server:
 /usr/local/lib/mysql/libmysqlclient.so.10: Undefined symbol strtoll
 I am trying to get mysql-php3 and 4 working with apache-1.3.27
 I have 4.2 freebsd but have install the ports upgrade to stable at
 freebsd.org

FreeBSD 4.2 predates the introduction of strtoll(3) which is part of
the ISO-C99 standard.  Prior to that there was an almost identical
strtoq(3) function, now deprecated, which was FreeBSD specific.  In
fact, the strtoll.c source code file was created by a repo copy of the
old strtoq.c file:
http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/stdlib/strtoll.c

Upgrade to a more recent FreeBSD version.  4.7-RELEASE will be out
within days.

Cheers,

Matthew

PS.  ports doesn't have any concept of 'stable' or 'current'.  There is
just the main branch.

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
  Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Proper way to upgrade packaes from ports

2002-10-08 Thread Roger Merritt

At 03:39 PM 10/7/02 -0700, you wrote:
 From: Andrew Knapp [EMAIL PROTECTED]
 Date: Mon, 7 Oct 2002 18:18:22 -0400
 
 AFAIK, doesn't portupgrade come with another utility called portversion?
 I use portversion -r (for recursive) to figure out what packages I do
 need to upgrade. It gives a nice read-out of what to upgrade.

Yes, portversion is a part of portupgrade. It should do almost
anything pkg_version does except -c.

Excuse me? I've been using portversion -c since I installed the damned
thing and it does for portupdate exactly what pkg_version -c did for
pre-portupdate updating. I would regard it as a boon if the script didn't
sometimes do things (at least when run remotely) that cause my machine to
reboot spontaneously (fatal trap 12).

 I use portversion -vL= to check
on what needs updating. But I then usually do portupgrade -Rra which
will upgrade all ports that are out of date and do so in the correct
bottom-up order.


sigh wish I had that much disk space. I can only afford to install a few
ports.

snip
The biggest down-side is the requirement that I run portsdb -Uu to
update the databases after a cvsup of the ports tree. This is a pretty
CPU intensive operation and can take a while on an older system.


Yeah, it takes around 16 hours on my system, and usually causes a
spontaneous reboot if I do it remotely (fatal trap 12). I haven't figured
out a way to find out what it's doing to cause the reboots, since there
seems to be no particular reason for fatal trap 12 (what I mean is the
error message fatal trap 12 does not indicate one particular type of
failure; I usually get the further message Page fault in kernel mode,
which also doesn't seem to identify any particular type of problem).

R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: [EMAIL PROTECTED] Phone: +1 510 486-8634

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message

-- 
Roger


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Belkin F5D5020 10/100 Base-TX NE2000 clone Asante'FriendlyNET AeroLAN 802.11b WiFi WLAN PCMCIA card?

2002-10-08 Thread Brad Knowles

Folks,

I just submitted PRs for /etc/pccard.conf entries for these two 
devices (conf/43800 and conf/43805), but I'm having trouble getting 
them to play nice together.  I'm also having problems getting the 
Belkin to play nice with a cisco AiroNet 350 802.11b WiFi WLAN card.

In all cases, the problem is the same.  They all want IRQ 3 and 
refuse to work if they don't get it.  Can you give me some 
suggestions as to alternative configurations I can try that would get 
them to still prefer IRQ 3, but accept other IRQs if available?


A copy of all responses via private e-mail would be appreciated, 
as I am subscribed to the freebsd-chat mailing list, but not 
freebsd-questions.


Thanks!

-- 
Brad Knowles, [EMAIL PROTECTED]

They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety.
 -Benjamin Franklin, Historical Review of Pennsylvania.

GCS/IT d+(-) s:+(++): a C++(+++)$ UMBSHI$ P+++ L+ !E W+++(--) N+ !w---
O- M++ V PS++(+++) PE- Y+(++) PGP+++ t+(+++) 5++(+++) X++(+++) R+(+++)
tv+(+++) b+() DI+() D+(++) G+() e++ h--- r---(+++)* z(+++)

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



IPFW and IpFilter

2002-10-08 Thread ksrgyn -


Hi,

  I have a problem where the ipfw and ipfilter can not work together.
  I need the packages matching first in the rules of ipfw and after in the 
rules of ipfiter.
  I configure my kernel with ipfw options before ipfilter options and i 
compile but don't work, then i try to compile my kernel with the ipfw 
options and without ipfilter options that was loaded as a module,  and don't 
work too.
  The packages must be checked first in IPFW and then they need to be 
checked in ipfilter. They are not being checked in IPFW, what's the problem 
?

This is what i find in IPFILTER FAQ:

IPF and IPFW both have features I want to use, must I choose between them?
No. You can run them both on a single machine. However, you must take care 
to ensure that one package's rules do not interfere with the other's. Note 
that the packages get access to rules in the order in which they were 
loaded, e.g. if IPFW is compiled in the kernel and IPF is loaded as a 
module, IPFW sees packets before IPF.



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



IPFW and IpFilter

2002-10-08 Thread ksrgyn -


Hi,

  I have a problem where the ipfw and ipfilter can not work together.
  I need the packages matching first in the rules of ipfw and after in the 
rules of ipfiter.
  I configure my kernel with ipfw options before ipfilter options and i 
compile but don't work, then i try to compile my kernel with the ipfw 
options and without ipfilter options that was loaded as a module,  and don't 
work too.
  The packages must be checked first in IPFW and then they need to be 
checked in ipfilter. They are not being checked in IPFW, what's the problem 
?

This is what i find in IPFILTER FAQ:

IPF and IPFW both have features I want to use, must I choose between them?
No. You can run them both on a single machine. However, you must take care 
to ensure that one package's rules do not interfere with the other's. Note 
that the packages get access to rules in the order in which they were 
loaded, e.g. if IPFW is compiled in the kernel and IPF is loaded as a 
module, IPFW sees packets before IPF.

_
Tenha você também um MSN Hotmail, o maior webmail do mundo: 
http://www.hotmail.com/br


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Compiling nm in a make buildworld.

2002-10-08 Thread Giorgos Keramidas

On 2002-10-07 21:35, Peter Losher [EMAIL PROTECTED] wrote:
 -=-
 === gnu/usr.bin/binutils/nm
 cc -O -pipe  -D_GNU_SOURCE -I- -I. -I/usr/src/gnu/usr.bin/binutils/nm 
 -I/usr/src/gnu/usr.bin/binutils/nm/../libbfd/i386 
 -I/usr/src/gnu/usr.bin/binutils/nm/../../../../contrib/binutils/include 
 -I/usr/src/gnu/usr.bin/binutils/nm/../libbinutils 
 -I/usr/src/gnu/usr.bin/binutils/nm/../../../../contrib/binutils/binutils
 -c 
 /usr/src/gnu/usr.bin/binutils/nm/../../../../contrib/binutils/binutils/nm.c
 /usr/src/gnu/usr.bin/binutils/nm/../../../../contrib/binutils/binutils/nm.c: 
 In function `main':
 /usr/src/gnu/usr.bin/binutils/nm/../../../../contrib/binutils/binutils/nm.c:467: 
 syntax error at null character
 *** Error code 1

Do the following commands print anything strange?

# cd /usr/src/contrib/binutils/binutils
# vis nm.c | grep '\^[^L]'

If yes, try CVSup'ing again and see if those strange characters that
cause gcc to complain go away.

Giorgos.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: portupgrade problem

2002-10-08 Thread Tom Carrick

That worked great, thanks. Can you give me some explanation on why (and
how) this happens, and in what way it messes up?

On Tue, 2002-10-08 at 07:35, Adam Weinberger wrote:
 try portsdb -fu. the switches are easy enough to remember ::P.
 portupgrade dies from time to time, and that command can often get you
 back in business.
 
 -Adam
 
 
  (10.07.2002 @ 2115 PST): Tom Carrick said, in 2.0K: 
  I was using portupgrade happily upgrading my ports, when it barfed in
  the middle of something. I don't remember exactly what, I think it could
  have been links or libslang. I don't remember the exact error, only that
  it had something to do with memory. So I assumed there just wasn't
  enough available. I checked with top, and I still had a good 50MB of RAM
  available, and most of my swap space (500MB orso) free.
  
  Fair enough. So I try to continue. It fails on the package upgrade.
  Trying to find out what fails, I tried pkgdb -u. Failed. Same error. I
  tried deleting portupgrade and installing it again, to no effect.
  
  It invariably, depending on the phase of the moon, I suppose, gives one
  of two errors, either:
  
  root@knyghtmare:/root# pkgdb -u
  [Updating the pkgdb format:bdb1_btree in /var/db/pkg ... - 325
  packages found (-3 +2)
  (...)/usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:435: [BUG] Segmentation
  fault
  ruby 1.6.7 (2002-09-12) [i386-freebsd4]
  Abort (core dumped)
  
  or...
  
  root@knyghtmare:/root# pkgdb -u
  [Updating the pkgdb format:bdb1_btree in /var/db/pkg ... - 325
  packages found (-3 +2) (...)Cannot allocate memory: Cannot update the
  pkgdb!]
  
  I've tried rebooting. Doesn't seem to help, and it was working fine
  until it barfed on me.
  
  I've tried deleting links and libslang, too, in case it messed the
  database somehow. That's still my best theory, though deleting them
  didn't help.
  
  Anyone have any ideas?
 
 
  end of portupgrade problem from Tom Carrick 
 
 
 --
 Oh good, my dog found the chainsaw.
 -Lilo, Lilo  Stitch
 Adam Weinberger
 [EMAIL PROTECTED]
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
 




signature.asc
Description: This is a digitally signed message part


Re: SSH asks strange questions...

2002-10-08 Thread Martin Moeller

Thanks alot, guys!

ChallengeResponseAuthentication=no did it.

--
Martin Moeller
mm at bsdsi.com || mmoeller at users.sourceforge.net
http://bsdsi.homeunix.com/
ICQ # 82221572




msg04291/pgp0.pgp
Description: PGP signature


Puzzling NATD problem - revisited

2002-10-08 Thread Kim Helenius

The setting:

Network topology:
Internet---Campus Network---(xl0)FreeBSD NATD machine(xl1)---Internal host

A custom kernel build including the following options:
options IPFIREWALL
options IPDIVERT
Used the command:
sysctl net.inet.ip.forwarding=1
And started natd with natd -interface xl0

Then did, straight from the manpage, the following firewall rules:
/sbin/ipfw -f flush
/sbin/ipfw add divert natd all from any to any via xl0
/sbin/ipfw add pass all from any to any

Now NAT works perfectly for the internal host, but (almost) all TCP connections cease 
to work to/from the NATD machine. AFAIK UDP and ICMP work perfectly. I've tried this 
on two different FreeBSD machines in the same network with identical results. If I 
remove the divert rule, everything works perfectly, except of course for the NAT. 
There have been no similar, puzzling effects on any Linux hosts I know of in the same 
network. Therefore I'm sure there's some knob I haven't pushed yet :)

I'm aware this doesn't make much of a firewall but I'd like to get natd working before 
I run the firewall script.

--
Kim Helenius
[EMAIL PROTECTED]



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: IPFW and IpFilter

2002-10-08 Thread sonam singh

use any one of the ipfw or ipfilter   both of donot
work together.prefer ipfilter 
regards
Sonam Singh
 

--- ksrgyn - [EMAIL PROTECTED] wrote:
   I want configure my firewall with ipfilter and
 configure source routing 
 with ipfw.
   And i want that the packages match first in the
 ipfw rules and after in 
 the ipfilter rules. But this no work.
 
 2002 07:16:27 -0500
 
 Why would you want to do that?  I can think of no
 reason to use both other
 than some of the supplemental features of ipfw like
 bandwidth shaping.
 
 Tom Veldhouse
 
 - Original Message -
 From: ksrgyn - [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, October 07, 2002 3:58 PM
 Subject: IPFW and IpFilter
 
 
  
   Hi,
  
 I have a problem where the ipfw and ipfilter
 can not work together.
 I need the packages matching first in the
 rules of ipfw and after in 
 the
   rules of ipfiter.
 I configure my kernel with ipfw options before
 ipfilter options and i
   compile but don't work, then i try to compile my
 kernel with the ipfw
   options and without ipfilter options that was
 loaded as a module,  and
 don't
   work too.
 The packages must be checked first in IPFW and
 then they need to be
   checked in ipfilter. They are not being checked
 in IPFW, what's the
 problem
   ?
  
   This is what i find in IPFILTER FAQ:
  
   IPF and IPFW both have features I want to use,
 must I choose between 
 them?
   No. You can run them both on a single machine.
 However, you must take 
 care
   to ensure that one package's rules do not
 interfere with the other's. 
 Note
   that the packages get access to rules in the
 order in which they were
   loaded, e.g. if IPFW is compiled in the kernel
 and IPF is loaded as a
   module, IPFW sees packets before IPF.
  
  
  

_
   Tenha você também um MSN Hotmail, o maior
 webmail do mundo:
   http://www.hotmail.com/br
  
  
   To Unsubscribe: send mail to
 [EMAIL PROTECTED]
   with unsubscribe freebsd-questions in the body
 of the message
  
 
 
 
 

_
 Tenha você também um MSN Hotmail, o maior webmail do
 mundo: 
 http://www.hotmail.com/br
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of
 the message


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: IPNAT API

2002-10-08 Thread sonam singh

look at the docs of ipfilter www.ipfilter.org
regards
Sonam 


--- Fabio Yasusi Yamamoto [EMAIL PROTECTED] wrote:
 I'm trying to develop a simple network load-balance
 program using 
 ipnat/ipf API's.
 But i did'nt find a way to put an 'address source' 
 on ipnat tables.
 
 Can you tell me if there is a way to put a RDR/MAP
 based on source address?
 
 ex.
 Source from: 1.1.1.1:1 TO: 2.2.2.2:2 REDIR:
 3.3.3.3:3
 __
 
 -- 
 Fabio Yasusi Yamamoto
 [EMAIL PROTECTED]
 ICQ: 80
 
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of
 the message


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



pkdb -F

2002-10-08 Thread James Green

Hi all,

I keep cvsup'ing ports, then running pkgdb -F, and getting lines like:

Checking the origin of kdebase-2.2.2_2
Stale origin: 'x11/kdebase2': perhaps moved or obsoleted.
Skip this for now? [yes]
To skip it without asking in future, please list it in HOLD_PKGS.
Checking the origin of kdelibs-2.2.2_3
Stale origin: 'x11/kdelibs2': perhaps moved or obsoleted.
Skip this for now? [yes]
To skip it without asking in future, please list it in HOLD_PKGS.


Just precisely what magic am I assumed to know in this respect?

Cheers

James



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



floppy disk

2002-10-08 Thread xxavi


# mount /dev/fd0c /drives/fd
grep: /etc/vfstab: No such file or directory
grep: /etc/vfstab: No such file or directory
mount: /dev/fd0c: Device not configured


*** mount: /dev/fd0c: Device not configured ***


hi, if the order mount means that the device is not
configured,it has to be configured, isn't it?? so, how it has
to be done?

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: floppy disk

2002-10-08 Thread Roman Neuhauser

# [EMAIL PROTECTED] / 2002-10-07 21:09:58 +0200:
 
 # mount /dev/fd0c /drives/fd
 grep: /etc/vfstab: No such file or directory
 grep: /etc/vfstab: No such file or directory
 mount: /dev/fd0c: Device not configured
 
 
 *** mount: /dev/fd0c: Device not configured ***
 
 
 hi, if the order mount means that the device is not
 configured,it has to be configured, isn't it?? so, how it has
 to be done?

no. it means that something's not quite right with it, but the
system is not sure what it is.

you have a problem much deeper than the inability to mount
a floppy, as has been said in a previous thread you started
looking for help with this. looks like you're not interested
in fixing it. 

-- 
begin 666 nonexistent.vbs
FreeBSD 4.7-RC
3:39PM up 20 days, 22:54, 12 users, load averages: 0.37, 0.36, 0.32
end

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Screen Saver (almost off topic)

2002-10-08 Thread Roman Neuhauser

# [EMAIL PROTECTED] / 2002-10-08 15:27:53 +0300:
 Hello!
 I have a problem who's driving me crazy!
 I want to make it not appear on my screen but i didn't succeed it.
 Do you have any idea?
 I have to mention that my server runs Sinix/Reliant Unix.

First, this is a FreeBSD mailing list.
Second, I think you should read this:
http://www.tuxedo.org/~esr/faqs/smart-questions.html#intro

-- 
begin 666 nonexistent.vbs
FreeBSD 4.7-RC
3:52PM up 20 days, 23:07, 12 users, load averages: 0.21, 0.31, 0.33
end

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Fibre channel HBAs and FreeBSD

2002-10-08 Thread Hartmann, O.

Hello.

We plan to expand our storage and due to the high demand on
storage we would like to install a SAN solution based on
Mylex products.

We wish to utilize a 2Gb HBA for PCI-X bus, like LSI/Logic
LSI7202XP-LC (two channel solution) or LSI7402XP-LC (quad
channel solution) or those from QLogic, e.g. SANBlade 2300
series PCI-X HBA.

Does either FreeBSD 4.6.2-pl2 or FreeBSD 4.7 support Fibre
Channel controllers of that brands?

Thanks in advance for your answer,

Oliver

--
MfG
O. Hartmann

[EMAIL PROTECTED]
--
IT-Administration des Institutes fuer Physik der Atmosphaere (IPA)
--
Johannes Gutenberg Universitaet Mainz
Becherweg 21
55099 Mainz

Tel: +496131/3924662 (Maschinenraum)
Tel: +496131/3924144 (Buero)
FAX: +496131/3923532


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: floppy disk

2002-10-08 Thread Jerry McAllister


  # mount /dev/fd0c /drives/fd
 grep: /etc/vfstab: No such file or directory
 grep: /etc/vfstab: No such file or directory
 mount: /dev/fd0c: Device not configured
 
 
 *** mount: /dev/fd0c: Device not configured ***
 
 
 hi, if the order mount means that the device is not
 configured,it has to be configured, isn't it?? so, how it has
 to be done?

Often the 'Device not configured' message appears to mean that
you do not have a floppy disk in the drive (or a tape in a tape drive).

It can also mean that you have to go in to the /dev
directory and do a './MAKEDEV xxx'  for it where xxx is the device.

Normally you would not actually do a mount for a floppy unless you
have a disk that has a file system built on it.   A lot of times
people just copy things directly to or from the device using 'dd' and 
in this case you don't actually do a mount.  But, if you write a floppy
don't make a file system on the disk and mount it, things like grep 
and ls won't work on it.  There are no files for them to look at, just
a glob of data.

(Actually, I have been having trouble with many machines writing to
 DAT tape drives (DDS-3 and DDS-4) using dd (or cp) when tar and dump
 work just fine.  But, that is another story and I should post some
 questions on that separately.)

jerry

 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
 


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Source Routing

2002-10-08 Thread Fernando Gleiser

On Tue, 8 Oct 2002, ksrgyn - wrote:


 Please help-me, i need solution for source routing that work together with
 ipfilter. I need first match packages in the rules source routing for
 after match in the ipfilter rules.

Please read the ipfilter HOWTO, the FAQ and the ipf(5) man page. It is
explained there. (hint: look for the 'quick' keyword).


Fer


 Kleyson Rios.

 _
 Converse com seus amigos online, faça o download grátis do MSN Messenger:
 http://messenger.msn.com.br


 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



fm radio tuner

2002-10-08 Thread Jeff MacDonald

Hi,

What brand of fm radio tune would you folks recommend for FreeBSD?
my radio died :) I have no need for a tv tuner, and the machine i'm putting
it in does not run X.

Also some software suggestions to run it.

Thanks.

  ---
Jeff MacDonald
Interchange Technologies
[EMAIL PROTECTED]
  ---

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



php4 apache 2

2002-10-08 Thread Jeff MacDonald

I installed apache2 and php4 from ports, when i try to start apache iget
this

Syntax error on line 193 of /usr/local/etc/apache2/httpd.conf:
Cannot load /usr/local/libexec/apache2/libphp4.so into server:
/usr/local/libexec/apache2/libphp4.so: Undefined symbol ssl_onceonlyinit
bash-2.05a# vi /usr/local/etc/apache2/httpd.conf

Line 193 is this

LoadModule php4_module  libexec/apache2/libphp4.so

php4 compiled without errors.

  ---
Jeff MacDonald
Interchange Technologies
[EMAIL PROTECTED]
  ---


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Routing Problem- interface to alias

2002-10-08 Thread Jon-Erik Lido

I'm trying to something a little bizarre with routing, so I suppose it
bears some explanation.  I recently purchased one of those all-in-one
firewall/NAT/ethernet switch/801.11b access point boxes for my home use.
802.11b security being what it is (useless), I'm planning on setting up
IPSec for my WLAN for authentication and encryption.  However, I
haven't gotten that far yet.

I've set up two subnets behind my firewall.  One is 10.10.10.0/24 and is
for the wired LAN.  The other is 10.0.0.0/24 and is for the wireless
LAN.  I've got a FreeBSD box with a single NIC ethernetted to one of
the ports on the firewall's switch.  I'm planning to use it as my
10.0.0.0/24 to 10.10.10.0/24 gateway.  Two subnets on one segment.

So I have:
ifconfig ed0 inet 10.10.10.1 netmask 0xff00
ifconfig ed0 inet 10.10.10.10 netmask 0x alias
ifconfig ed0 inet 10.0.0.1 netmask 0xff00 alias

The 10.10.10.10 is simply an alias I'm using since I'm running dnscache
on 10.10.10.1 and tinydns on 10.10.10.10.

I have IP forwarding compiled into the kernel and enabled.

With my wireless laptop set to 10.0.0.50 using the 10.0.0.1 gateway
as its default route I am able to ping 10.0.0.1, 10.10.10.1, but no
other hosts on or off the LAN.  traceroute from the laptop reveals a hop
to 10.0.0.1 and then the packets are simply lost.  

10.10.10.1's routing table looks like this (with 10.0.0.50 not connected):

DestinationGatewayFlagsRefs  Use  Netif Expire
default10.10.10.254   UGSc   12   30ed0
10/24  link#1 UC  00ed0
10.10.10/24link#1 UC  30ed0
10.10.10.1 00:4f:49:0a:1e:85  UHLW1  753lo0
10.10.10.1000:4f:49:0a:1e:85  UHLW1   52lo0 =
10.10.10.10/32 link#1 UC  10ed0
10.10.10.254   00:30:f1:18:84:3c  UHLW   13   25ed0   1175
127.0.0.1  127.0.0.1  UH  00lo0

Notice that the 10/24 subnet is listed, but not the 10.0.0.1 IP number.

I'm sure what I'm trying to do is possible;  the FreeBSD handbook
section on routing even alludes to it.  I just can't seem to get it
to work.

Any ideas?

-Jon

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



DivX Video streaming server

2002-10-08 Thread Martin Tsanov

Hello,

Does anybody is aware of such a software
that runs on FreeBSD?

Thanks


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



w: /dev/:0: No such file or directory

2002-10-08 Thread David Kelly

What have I failed to do correctly in my update/upgrade? w and
uptime work but complian about no /dev/:0:

Glancing thru /usr/src/usr.bin/w/ and /dev/MAKE* I find no reference to
the :0:. But know better than to claim my search was perfect.

This is -stable from October 6.

On a running system as myself I:
% rm -rf /usr/obj/usr
% cd /usr/src
% make buildworld
% su
# make installworld
# mergemasert
# make KERNCONF=GRUMPY kernel
# shutdown -r now

% w
w: /dev/:0: No such file or directory
10:21AM  up 21:43, 1 user, load averages: 0.00, 0.00, 0.01
USER TTY  FROM  LOGIN@  IDLE WHAT
dkelly   p3   frisket   8:57AM - w


-- 
David Kelly N4HHE, [EMAIL PROTECTED]
=
The human mind ordinarily operates at only ten percent of its
capacity -- the rest is overhead for the operating system.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Netscape-7.0 errors

2002-10-08 Thread Bill Schoolcraft

Hello Family,

I installed the new Netscape-7.0 from a new ports tree
downloaded this morning and the install went fine but when I
went to execute netscape7english I got the following error(s).

[root@yoga ~]- netscape7english
MOZILLA_FIVE_HOME=.
  LD_LIBRARY_PATH=.:./Cool
  LIBPATH=.:./Cool
   SHLIB_PATH=.:./Cool
  XPCS_HOME=./Cool
  MOZ_PROGRAM=./netscape-bin
  MOZ_TOOLKIT=
moz_debug=0
 moz_debugger=
./netscape-bin: /lib/libc.so.6: version `GLIBC_2.1.3' not found
(required by /usr/lib/libgtk-1.2.so.0)
./netscape-bin: /lib/libc.so.6: version `GLIBC_2.2' not found
(required by /usr/lib/libgtk-1.2.so.0)./netscape-bin:
/lib/libc.so.6: version `GLIBC_2.1.3' not found (required by
/usr/lib/libgdk-1.2.so.0)
./netscape-bin: /lib/libc.so.6: version `GLIBC_2.2' not found
(required by /usr/lib/libgdk-1.2.so.0)

I went to /usr/ports/devel/ and saw only glib12  glib20 and
intalled both and still have the errors, anyone else install
Netscape-7.0 yet?

This is on FreeBSD-4.5 from the official CD pack.

TIA

-- 
|72--|
Bill Schoolcraft
PO Box 210076 
San Francisco CA 94121   
UNIX, A Way Of Life.  
http://forwardslashunix.com/raw



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



ssh write failed

2002-10-08 Thread Michelle Weeks

i am having problems using ssh to login remotely to our freebsd 4.6.2 
server.  whenever i remain inactive for more than a few minutes, i get 
kicked out.  when i log back in, i get the following error:

Oct  8 10:35:16 louie sshd[18801]: fatal: Write failed: Permission denied
Oct  8 10:35:16 louie sshd[18801]: fatal: Write failed: Permission denied

i'm not sure what could be causing this?


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: php4 apache 2

2002-10-08 Thread Wesley Morgan

Make sure you include SSL support in php. I believe this is your problem.

On Tue, 8 Oct 2002, Jeff MacDonald wrote:

 I installed apache2 and php4 from ports, when i try to start apache iget
 this

 Syntax error on line 193 of /usr/local/etc/apache2/httpd.conf:
 Cannot load /usr/local/libexec/apache2/libphp4.so into server:
 /usr/local/libexec/apache2/libphp4.so: Undefined symbol ssl_onceonlyinit
 bash-2.05a# vi /usr/local/etc/apache2/httpd.conf

 Line 193 is this

 LoadModule php4_module  libexec/apache2/libphp4.so

 php4 compiled without errors.

   ---
 Jeff MacDonald
 Interchange Technologies
 [EMAIL PROTECTED]
   ---


 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message


-- 
   _ __ ___   ___ ___ ___
  Wesley N Morgan   _ __ ___ | _ ) __|   \
  [EMAIL PROTECTED] _ __ | _ \._ \ |) |
  FreeBSD: The Power To Serve  _ |___/___/___/
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: portupgrade problem

2002-10-08 Thread Kevin Oberman

 From: Tom Carrick [EMAIL PROTECTED]
 Date: 08 Oct 2002 12:56:36 +0100
 Sender: [EMAIL PROTECTED]
 
 That worked great, thanks. Can you give me some explanation on why (and
 how) this happens, and in what way it messes up?

When portupgrade is editing/modifying the ports database (not the
package database), it is subject to leaving the DB in a corrupt
condition if it is interrupted during the update. This includes a
crash.

portsdb -u is smart in that it check timestamps to see if a port has
changed since the db was last updated and, after corruption of this
sort, it thinks that the DB is current and does nothing. -f says to
force a update of the DB regardless of the timestamp, so that fixes
this sort of thing.

R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: [EMAIL PROTECTED]  Phone: +1 510 486-8634

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: php4 apache 2

2002-10-08 Thread Thomas T. Veldhouse

Don't chose the IMAP-SSL option.  It has been broken for years and years

Tom Veldhouse

- Original Message -
From: Jeff MacDonald [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 08, 2002 10:22 AM
Subject: php4 apache 2


 I installed apache2 and php4 from ports, when i try to start apache iget
 this

 Syntax error on line 193 of /usr/local/etc/apache2/httpd.conf:
 Cannot load /usr/local/libexec/apache2/libphp4.so into server:
 /usr/local/libexec/apache2/libphp4.so: Undefined symbol ssl_onceonlyinit
 bash-2.05a# vi /usr/local/etc/apache2/httpd.conf

 Line 193 is this

 LoadModule php4_module  libexec/apache2/libphp4.so

 php4 compiled without errors.

   ---
 Jeff MacDonald
 Interchange Technologies
 [EMAIL PROTECTED]
   ---


 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



RE: php4 apache 2

2002-10-08 Thread Jeff MacDonald

Thanks for the suggestion, i just tried that, didn't make any difference.

jeff.



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Wesley Morgan
 Sent: Tuesday, October 08, 2002 12:46 PM
 To: Jeff MacDonald
 Cc: [EMAIL PROTECTED]
 Subject: Re: php4 apache 2


 Make sure you include SSL support in php. I believe this is your problem.

 On Tue, 8 Oct 2002, Jeff MacDonald wrote:

  I installed apache2 and php4 from ports, when i try to start apache iget
  this
 
  Syntax error on line 193 of /usr/local/etc/apache2/httpd.conf:
  Cannot load /usr/local/libexec/apache2/libphp4.so into server:
  /usr/local/libexec/apache2/libphp4.so: Undefined symbol
 ssl_onceonlyinit
  bash-2.05a# vi /usr/local/etc/apache2/httpd.conf
 
  Line 193 is this
 
  LoadModule php4_module  libexec/apache2/libphp4.so
 
  php4 compiled without errors.
 
---
  Jeff MacDonald
  Interchange Technologies
  [EMAIL PROTECTED]
---
 
 
  To Unsubscribe: send mail to [EMAIL PROTECTED]
  with unsubscribe freebsd-questions in the body of the message
 

 --
_ __ ___   ___ ___ ___
   Wesley N Morgan   _ __ ___ | _ ) __|   \
   [EMAIL PROTECTED] _ __ | _ \._ \ |) |
   FreeBSD: The Power To Serve  _ |___/___/___/
 Hi! I'm a .signature virus! Copy me into your ~/.signature to
 help me spread!


 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: php4 apache 2

2002-10-08 Thread Thomas T. Veldhouse

Actually, the problem occurs when you build in IMAP-SSL.  It has not worked
for a very long time.  I am not entirely sure why, as I have not had a large
enough need to look into it.

Tom Veldhouse

- Original Message -
From: Wesley Morgan [EMAIL PROTECTED]
To: Jeff MacDonald [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, October 08, 2002 11:45 AM
Subject: Re: php4 apache 2


 Make sure you include SSL support in php. I believe this is your problem.

 On Tue, 8 Oct 2002, Jeff MacDonald wrote:

  I installed apache2 and php4 from ports, when i try to start apache iget
  this
 
  Syntax error on line 193 of /usr/local/etc/apache2/httpd.conf:
  Cannot load /usr/local/libexec/apache2/libphp4.so into server:
  /usr/local/libexec/apache2/libphp4.so: Undefined symbol
ssl_onceonlyinit
  bash-2.05a# vi /usr/local/etc/apache2/httpd.conf
 
  Line 193 is this
 
  LoadModule php4_module  libexec/apache2/libphp4.so
 
  php4 compiled without errors.
 
---
  Jeff MacDonald
  Interchange Technologies
  [EMAIL PROTECTED]
---
 
 
  To Unsubscribe: send mail to [EMAIL PROTECTED]
  with unsubscribe freebsd-questions in the body of the message
 

 --
_ __ ___   ___ ___ ___
   Wesley N Morgan   _ __ ___ | _ ) __|   \
   [EMAIL PROTECTED] _ __ | _ \._ \ |) |
   FreeBSD: The Power To Serve  _ |___/___/___/
 Hi! I'm a .signature virus! Copy me into your ~/.signature to help me
spread!


 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: php4 apache 2

2002-10-08 Thread Wesley Morgan

On Tue, 8 Oct 2002, Thomas T. Veldhouse wrote:

 Actually, the problem occurs when you build in IMAP-SSL.  It has not worked
 for a very long time.  I am not entirely sure why, as I have not had a large
 enough need to look into it.


Yeah I just realized that when Jeff said it didnt work :... But if you
build your IMAP library with SSL support everything works fine.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Getting the Mouse's Scroll to work

2002-10-08 Thread MET

Does anyone know how to get KDE to recognize the mouse's wheel, so that
I can use it to quickly scroll up and down documents.  I'm posting this
here because I'm guessing that mostly it's a setting in FreeBSD first,
and KDE second.

Ideas?

~ Matthew


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: php4 apache 2

2002-10-08 Thread Thomas T. Veldhouse

If you build mod_php4 and choose imap-ssl and you have not yet built the
imap client library (cclient), it will build it as a dependency, but it will
not build it with ssl support and thus it will fail.  Solution is to build
cclient with SSL support first.

# (cd /usr/ports/mail/cclient  make -DWITH_SSL all install clean)
# (cd /usr/ports/www/mod_php4  make all install clean)

Tom Veldhouse

- Original Message -
From: Wesley Morgan [EMAIL PROTECTED]
To: Thomas T. Veldhouse [EMAIL PROTECTED]
Cc: Jeff MacDonald [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, October 08, 2002 12:14 PM
Subject: Re: php4 apache 2


 On Tue, 8 Oct 2002, Thomas T. Veldhouse wrote:

  Actually, the problem occurs when you build in IMAP-SSL.  It has not
worked
  for a very long time.  I am not entirely sure why, as I have not had a
large
  enough need to look into it.
 

 Yeah I just realized that when Jeff said it didnt work :... But if you
 build your IMAP library with SSL support everything works fine.


 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: /dev/urandom is randomly cool

2002-10-08 Thread Kevin Oberman

 Date: Tue, 8 Oct 2002 00:30:27 -0400 (EDT)
 From: Peter Leftwich [EMAIL PROTECTED]
 Sender: [EMAIL PROTECTED]
 
 On Mon, 7 Oct 2002, Oliver Fromme wrote:
  Peter Leftwich [EMAIL PROTECTED] wrote:
On Sun, 6 Oct 2002, Fernando Gleiser wrote:
 On Sun, 6 Oct 2002, Mikko Ty=F6l=E4j=E4rvi wrote:
 
  In this particular case, you can use head instead of dd:
  tr -cd a-zA-Z0-9  /dev/urandom | head -c 8
 
 Thanks for that!  I was trying `cut -c` and didn't realize head had that
 flag.  Now I can generate 8 characters:
 
 # tr -cd a-zA-Z0-9  /dev/urandom | head -c 8 ; echo 
 0tXx3p3m
 
   ..and random phone numbers :)
 
 # tr -cd 0-9  /dev/urandom | head -c 10 ; echo 
 5031594488
 
 Why is this an entropy pool and not an entropy ocean?  Is there a way to
 cat /dev/dsp or analyze my soundcard's mic-in and sample randomness?

Just how random is your sound card input? That is very dependent on
details of the A-D conversion and it may be FAR from really
random. The system is, justifiably paranoid!

If you add some devices to the entropy generator, you will get an
entropy ocean! I recommend the keyboard and mouse for a
workstation. The network interface is USUALLY a good one. The disk
interface is possible, but can to be less random than is ideal. Clocks
are a bad idea. :-)

Use vmstat -i to get a list of interrupt sources on your system and
use rndcontrol to add them to the entropy engine.

# vmstat -i
interrupt   total   rate
ata0 irq143240348 10
ata1 irq15  4  0
mux irq11 1342389  4
pcm0 irq10   3401  0
fdc0 irq6   2  0
atkbd0 irq1 58469  0
psm0 irq12 872780  2
sio0 irq4  441098  1
clk irq0 31225225 99
rtc irq8 39970907128
Total77154623247

# rndcontrol -s 11 -s 1 -s 12
rndcontrol: setting irq 1
rndcontrol: setting irq 11
rndcontrol: setting irq 12
rndcontrol: interrupts in use: 1 11 12

This is a pretty good way to get some significant data into the
system. the mouse/keyboard are always the best choices. The network is
normally pretty good, although some activity is pretty regular, but
not to the degree that should impact entropy.

R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: [EMAIL PROTECTED]  Phone: +1 510 486-8634


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



ncsd

2002-10-08 Thread Steven Garrett

Hi,

I know this is a really basic questions.  Does ncsd, or something similar,
exist for freebsd?

Thanks,

Steve

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: ncsd

2002-10-08 Thread Kris Kennaway

On Tue, Oct 08, 2002 at 01:35:46PM -0400, Steven Garrett wrote:
 Hi,
 
 I know this is a really basic questions.  Does ncsd, or something similar,
 exist for freebsd?

It would help enormously if you explained what ncsd is/does.

Kris



msg04320/pgp0.pgp
Description: PGP signature


file desc bug

2002-10-08 Thread [EMAIL PROTECTED]

When the problem arised for the file descripters bug a while back
(iosmash), i patched my box accordingly.  (freebsd 4.4-release)
Recently, the problem has re-arised and an exploit was released
(iosmash2).  I was wondering if there was a patch for this available,
and if so, what do i need to do in order to patch it?  Any
information would be much appreciated.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: floppy disk

2002-10-08 Thread xxavi


On 08-Oct-2002 Jerry McAllister wrote:
 
  # mount /dev/fd0c /drives/fd
 grep: /etc/vfstab: No such file or directory
 grep: /etc/vfstab: No such file or directory
 mount: /dev/fd0c: Device not configured
 
 
 *** mount: /dev/fd0c: Device not configured ***
 
 
 hi, if the order mount means that the device is not
 configured,it has to be configured, isn't it?? so, how it has
 to be done?
 
 Often the 'Device not configured' message appears to mean that
 you do not have a floppy disk in the drive (or a tape in a tape drive).
 
 It can also mean that you have to go in to the /dev
 directory and do a './MAKEDEV xxx'  for it where xxx is the device.
 
 Normally you would not actually do a mount for a floppy unless you
 have a disk that has a file system built on it.   A lot of times
 people just copy things directly to or from the device using 'dd' and 
 in this case you don't actually do a mount.  But, if you write a floppy
 don't make a file system on the disk and mount it, things like grep 
 and ls won't work on it.  There are no files for them to look at, just
 a glob of data.
 
 (Actually, I have been having trouble with many machines writing to
  DAT tape drives (DDS-3 and DDS-4) using dd (or cp) when tar and dump
  work just fine.  But, that is another story and I should post some
  questions on that separately.)
 
 jerry
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
 
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message

Hi, my problem is that I'm trying to install the floppy disk
but it seems it's not working, so I can't copy anything and do
anything with it. What I would like to sort out is how do I
install the flopy disk in the computer system. does anybody
know how to do it, having attention to the error it says? Thanx



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: floppy disk

2002-10-08 Thread Kevin Oberman

 Date: Mon, 07 Oct 2002 21:09:58 +0200 (CEST)
 From: [EMAIL PROTECTED]
 Sender: [EMAIL PROTECTED]
 
 
 # mount /dev/fd0c /drives/fd
 grep: /etc/vfstab: No such file or directory
 grep: /etc/vfstab: No such file or directory
 mount: /dev/fd0c: Device not configured
 
 
 *** mount: /dev/fd0c: Device not configured ***
 
 
 hi, if the order mount means that the device is not
 configured,it has to be configured, isn't it?? so, how it has
 to be done?

FreeBSD does not have /etc/vfstab. It is a System V UNIX thing. If
mount is looking for it, something is badly awry.

The use of grep is also disturbing. mount(8) should not call grep.

Try alias mount and which mount. I suspect mount is executing some
shell script written for some other Unix system that tries to do
something clever by pre-parsing the vfstab file. Of course, this is
useless on FreeBSD. The alias command should return nothing and the
which command should return /sbin/mount.

The other very real possibility is that your system has been hacked
and the mount command has been subverted.

R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: [EMAIL PROTECTED]  Phone: +1 510 486-8634

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



RE: php4 apache 2

2002-10-08 Thread Jeff MacDonald

Thanks to all that replied,

I removed the IMAP - SSL [didn't need anyway]

and now it installs just dandy.

Thanks again.

Jeff.

 -Original Message-
 From: Thomas T. Veldhouse [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 08, 2002 1:21 PM
 To: Wesley Morgan
 Cc: Jeff MacDonald; [EMAIL PROTECTED]
 Subject: Re: php4 apache 2


 If you build mod_php4 and choose imap-ssl and you have not yet built the
 imap client library (cclient), it will build it as a dependency,
 but it will
 not build it with ssl support and thus it will fail.  Solution is to build
 cclient with SSL support first.

 # (cd /usr/ports/mail/cclient  make -DWITH_SSL all install clean)
 # (cd /usr/ports/www/mod_php4  make all install clean)

 Tom Veldhouse

 - Original Message -
 From: Wesley Morgan [EMAIL PROTECTED]
 To: Thomas T. Veldhouse [EMAIL PROTECTED]
 Cc: Jeff MacDonald [EMAIL PROTECTED];
 [EMAIL PROTECTED]
 Sent: Tuesday, October 08, 2002 12:14 PM
 Subject: Re: php4 apache 2


  On Tue, 8 Oct 2002, Thomas T. Veldhouse wrote:
 
   Actually, the problem occurs when you build in IMAP-SSL.  It has not
 worked
   for a very long time.  I am not entirely sure why, as I have not had a
 large
   enough need to look into it.
  
 
  Yeah I just realized that when Jeff said it didnt work :... But if you
  build your IMAP library with SSL support everything works fine.
 
 
  To Unsubscribe: send mail to [EMAIL PROTECTED]
  with unsubscribe freebsd-questions in the body of the message
 



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: ncsd

2002-10-08 Thread Thomas T. Veldhouse

It is for name caching.  It is supplied as part of the GNU C library.
isc-bind fills the role nicely.

Tom Veldhouse

- Original Message -
From: Kris Kennaway [EMAIL PROTECTED]
To: Steven Garrett [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, October 08, 2002 12:40 PM
Subject: Re: ncsd



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



openssh

2002-10-08 Thread master

hi, anyone has experience trouble concerning the openssh ? on my computer it
take 2 mn to connect (same for openssh 3.4 and 3.4p1) if anyone has already
see this and know how to fix thx to help :)



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: openssh

2002-10-08 Thread Scott Carmichael

Once you connect do you see your IP when doing a 'who' or a 'w'. It could
be that the IP you're connecting from doesn't resolve properly and thus
it's waiting to timeout?

On Tue, 8 Oct 2002, master wrote:

 hi, anyone has experience trouble concerning the openssh ? on my computer it
 take 2 mn to connect (same for openssh 3.4 and 3.4p1) if anyone has already
 see this and know how to fix thx to help :)



 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: openssh

2002-10-08 Thread John Bleichert

 On Tue, 8 Oct 2002, master wrote:
 
  hi, anyone has experience trouble concerning the openssh ? on my computer it
  take 2 mn to connect (same for openssh 3.4 and 3.4p1) if anyone has already
  see this and know how to fix thx to help :)
 
 
 

Try running the sshd server manually, and with the '-v' switch so you can 
see the chain of events when you try to login. Perhaps sshd is failing one 
authentication mechanism before trying the one you're using. Use the '-v' 
switch multiple times on both ends to get lots of debug output (e.g. 
./sshd -v -v -v ).

HTH - JB

#  John Bleichert 
#  http://vonbek.dhs.org/latest.jpg


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



[no subject]

2002-10-08 Thread Octavian Hornoiu

I had the same problem... This is how to fix it.  First, go back into
ports and do a makde deinstall and then a make clean to get rid of
your previous make configuration stuff.  Then run make in the mod_php4
dir and go through the little configuration program for PHP module.
Make sure that you do not check both imap and imap ssl since they are
exclusive.  Also, do not get the normal and ssl versions of any of the
options given.  Then, after you finish the make, do a make install and
it will load.

Octavian Hornoiu


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



RE: php4 apache 2

2002-10-08 Thread Octavian Hornoiu

Bah... Sorry, forgot to post topic on last message Here is what to do:

I had the same problem... This is how to fix it.  First, go back into
ports and do a make deinstall and then a make clean to get rid of
your previous make configuration stuff.  Then run make in the mod_php4
dir and go through the little configuration program for PHP module.
Make sure that you do not check both imap and imap ssl since they are
exclusive.  Also, do not get the normal and ssl versions of any of the
options given.  Then, after you finish the make, do a make install and
it will load.

Octavian Hornoiu


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



RE: Getting the Mouse's Scroll to work

2002-10-08 Thread MET

No.but I will now

Thanks...

~ Matthew

-Original Message-
From: Adam Weinberger [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, October 08, 2002 2:28 PM
To: MET
Cc: [EMAIL PROTECTED]
Subject: Re: Getting the Mouse's Scroll to work


read the faq on it yet?

http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/x.html#X-AND-WHEEL

-Adam


 (10.08.2002 @ 1021 PST): MET said, in 0.4K: 
 Does anyone know how to get KDE to recognize the mouse's wheel, so 
 that I can use it to quickly scroll up and down documents.  I'm 
 posting this here because I'm guessing that mostly it's a setting in 
 FreeBSD first, and KDE second.
 end of Getting the Mouse's Scroll to work from MET 


--
Oh good, my dog found the chainsaw.
-Lilo, Lilo  Stitch
Adam Weinberger
[EMAIL PROTECTED]



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: help with ln linking Please! [attn manpage authors!]

2002-10-08 Thread Gary W. Swearingen

Peter Leftwich [EMAIL PROTECTED] writes:

 The manpage is super unclear about sourcefile and targetfile, I have said
 this for years.  Think of this paragraph:
 
 SYNOPSIS
  ln [-fhinsv] source_file [target_file]
...
 ... as this instead `ln -s actualfile linkfile`

That's not the best way to think of it, since actualfile need not be
an actual file!  Nor existing, as the manual has.  The source
concept is actually pretty good, since the source file is used as the
source of data when target file is accessed.

Confusion comes about mostly because the ls command shows an arrow
pointing from the target (AKA destination) to the source, backwards from
what most people would expect when thinking of source and
destination/target.  The arrow points away from the target!  It also
shows them in reverse order from how they are given to ln.

How about this:  ln [-fhinsv] source_filename [link_filename]

I just TRY to remember them as being bassackwards from the more natural
order of ls:  link - source

Anybody else have terms they'd prefer the manual use in both the
SYNOPSIS and DESCRIPTION?


Peter, who have you said this for years TO?  Have you filed a Problem
Report which I could send a patch for?  If so, what's the number?

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: What is the best IDE for C++programming in FreeBSD4.4?

2002-10-08 Thread Thomas T. Veldhouse

KDevelop is the one I tend to use.  You could try Eclipse as well.  I
believe there is a C++ plugin for it.

Tom Veldhouse

- Original Message -
From: alireza mahini [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 08, 2002 1:49 PM
Subject: What is the best IDE for C++programming in FreeBSD4.4?


 I am Alireza and i am a young c++ developer in
 freebsd.
 I am working with freebsd4.4 and i need an IDE for
 programming in C or C++ languages such as KDvelop.
 Please guide me about this .
 [EMAIL PROTECTED]

 __
 Do you Yahoo!?
 Faith Hill - Exclusive Performances, Videos  More
 http://faith.yahoo.com

 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: help with ln linking Please! [attn manpage authors!]

2002-10-08 Thread Adam Weinberger

 (10.08.2002 @ 1151 PST): Gary W. Swearingen said, in 1.4K: 
 How about this:  ln [-fhinsv] source_filename [link_filename]
 
 I just TRY to remember them as being bassackwards from the more natural
 order of ls:  link - source

i still stand by my method: the file you want the command to create
comes last.

 Anybody else have terms they'd prefer the manual use in both the
 SYNOPSIS and DESCRIPTION?

how about ln [-fhinsv] link_to [link_from]

-Adam


--
Oh good, my dog found the chainsaw.
-Lilo, Lilo  Stitch
Adam Weinberger
[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: w: /dev/:0: No such file or directory

2002-10-08 Thread Jonathan Chen

On Tue, Oct 08, 2002 at 10:30:04AM -0500, David Kelly wrote:

[...]
 % w
 w: /dev/:0: No such file or directory
 10:21AM  up 21:43, 1 user, load averages: 0.00, 0.00, 0.01
 USER TTY  FROM  LOGIN@  IDLE WHAT
 dkelly   p3   frisket   8:57AM - w

This is caused by a disagreement between X11's sessreg program and
FreeBSD w/uptime. If you're using kdm, you can change this by tweaking
sessreg's invocation in /usr/local/share/config/kdm/Xstartup to something
like:

exec sessreg -a -l console -h $DISPLAY -x /usr/local/share/config/kdm/Xservers -u 
/var/run/utmp $USER

You'll also have to tweak /usr/local/share/config/kdm/Xreset to
remove the sessreg utmp entry:

exec sessreg -d -l console -h $DISPLAY -x /usr/local/share/config/kdm/Xservers -u 
/var/run/utmp $USER

Alternatively you can remove the sessreg invocation in both files, or
perhaps fix w/uptime to not display errors (since Linux  Solaris
handles sessreg's utmp entries just fine).

Cheers.
-- 
Jonathan Chen [EMAIL PROTECTED]
--
  Jesus saves.
   Allah forgives.
 Cthulu thinks you'd make a nice sandwich.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Safe Use of cvsup

2002-10-08 Thread Martin McCormick

If one uses an incorrect tag in cvsup, it tends to
destroy the /usr/src tree, a sort of make zapworld.  Would there
be anything wrong with backing up the /usr/src directory to a tar
file before running cvsup so that if the worst happens, one can
restore the directory to what it was before the mishap?

I am building a new FreeBSD system from a CDROM that is a
bit out of date so I need to upgrade it after installation.

The only thing I was thinking of was that there might be
links or something else not obvious that would make the restored
/usr/src useless.

Martin McCormick WB5AGZ  Stillwater, OK 
OSU Center for Computing and Information Services Network Operations Group

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



RE: Puzzling NATD problem - revisited

2002-10-08 Thread JoeB

You state Network topology:
Internet---Campus Network---(xl0)FreeBSD NATD machine(xl1)---Internal host

Internet is public ip address,  if Campus Network private ip address then
you
can not nat them again, if Campus Network  is public ip address then  you
should
nat  x11 for the private ip address on the lan behind the FBSD box.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Kim Helenius
Sent: Tuesday, October 08, 2002 9:13 AM
To: [EMAIL PROTECTED]
Subject: Puzzling NATD problem - revisited

The setting:

Network topology:
Internet---Campus Network---(xl0)FreeBSD NATD machine(xl1)---Internal host

A custom kernel build including the following options:
options IPFIREWALL
options IPDIVERT
Used the command:
sysctl net.inet.ip.forwarding=1
And started natd with natd -interface xl0

Then did, straight from the manpage, the following firewall rules:
/sbin/ipfw -f flush
/sbin/ipfw add divert natd all from any to any via xl0
/sbin/ipfw add pass all from any to any

Now NAT works perfectly for the internal host, but (almost) all TCP
connections cease to work to/from the NATD machine. AFAIK UDP and ICMP work
perfectly. I've tried this on two different FreeBSD machines in the same
network with identical results. If I remove the divert rule, everything
works perfectly, except of course for the NAT. There have been no similar,
puzzling effects on any Linux hosts I know of in the same network. Therefore
I'm sure there's some knob I haven't pushed yet :)

I'm aware this doesn't make much of a firewall but I'd like to get natd
working before I run the firewall script.

--
Kim Helenius
[EMAIL PROTECTED]



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Safe Use of cvsup

2002-10-08 Thread Adam Weinberger

 (10.08.2002 @ 1220 PST): Martin McCormick said, in 0.8K: 
   If one uses an incorrect tag in cvsup, it tends to
 destroy the /usr/src tree, a sort of make zapworld.  Would there
 be anything wrong with backing up the /usr/src directory to a tar
 file before running cvsup so that if the worst happens, one can
 restore the directory to what it was before the mishap?

if you toast the /usr/src directory by a bad tag in the cvsup file,
putting in the correct tag and rerunning cvsup will correct the problem.
i don't see much use in backing up something that is available from any
number of readily available sites.

-Adam


--
Oh good, my dog found the chainsaw.
-Lilo, Lilo  Stitch
Adam Weinberger
[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: ssh write failed

2002-10-08 Thread Matthew Seaman

On Tue, Oct 08, 2002 at 09:39:48AM -0700, Michelle Weeks wrote:
 i am having problems using ssh to login remotely to our freebsd 4.6.2 
 server.  whenever i remain inactive for more than a few minutes, i get 
 kicked out.  when i log back in, i get the following error:
 
 Oct  8 10:35:16 louie sshd[18801]: fatal: Write failed: Permission denied
 Oct  8 10:35:16 louie sshd[18801]: fatal: Write failed: Permission denied
 
 i'm not sure what could be causing this?

ipfw, probably.  Sounds like a dynamic rule is timing out in the
middle of your ssh session.  You'll either have to switch to using
static rules for ssh, of tweak the dynamic ruleset timing sysctls to
something that suits you better.

If you were running a recent version of -STABLE, you could have tried
the IPFW2 stuff --- it has a keepalive feature that prevents this
sort of annoyance.  Add:

options IPFW2

to your kernel config, and

IPFW2=yes

to /etc/make.conf, and go through the usual {build,install}procedure.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
  Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Safe Use of cvsup

2002-10-08 Thread Martin McCormick

My thanks to the person who informed me that running
cvsup with the correct tag would repair the damage.

Martin McCormick

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Messages in the dmesg

2002-10-08 Thread ksrgyn -

xl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 
options=3rxcsum,txcsum
inet 200.x.x.72 netmask 0xffc0 broadcast 200.x.x.127
inet 200.x.x.90 netmask 0xffc0 broadcast 200.x.x.127
inet 200.x.x.91 netmask 0xffc0 broadcast 200.x.x.127
ether 00:10:4b:c5:2e:1c
media: Ethernet autoselect (100baseTX full-duplex)

xl1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
inet 200.y.y.132 netmask 0xfc0 broadcast 200.y.y.191
ether 00:60:97:dd:f0:b8
media: Ethernet autoselect (10baseT/UTP full-duplex)

arp: 200.y.y.130 is on xl1 but got reply from 00:b0:64:08:36:60 on xl0
arp: 200.x.x.72 is on lo0 but got reply from 00:10:4b:c5:2e:1c on xl1

What's the problem ??

_
Converse com seus amigos online, faça o download grátis do MSN Messenger: 
http://messenger.msn.com.br


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Puzzling Simple NATD and IPFW Problem

2002-10-08 Thread 2005 - Chill, Samuel Thomas

I have ipfirewall, ipdivert, and dummynet all compiled into my kernel. I am able to 
run run natd and to specify rules with ipfw, i can also ping my external interface. My 
internal network card (rl1) is 10.0.0.1 and my lan clients are running on 10.0.0.x. I 
can ping everything, the network is setup properly. Im using the default rules 
supplied in the man page and apperently natd is not passing them on. I cant ping or go 
to any website at all. The lan clients have 10.0.0.1 set as there default gateway. rl0 
is connected to the cable modem and gets it ip via dhcp. The freebsd box can ping any 
thing but apparently nothing is forwarded to the external interface. I have double 
checked and reinstalled multiple times and it seems that it is bound to never work!

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Messages in the dmesg

2002-10-08 Thread Fernando Gleiser

On Tue, 8 Oct 2002, ksrgyn - wrote:

 xl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
 options=3rxcsum,txcsum
 inet 200.x.x.72 netmask 0xffc0 broadcast 200.x.x.127
 inet 200.x.x.90 netmask 0xffc0 broadcast 200.x.x.127
 inet 200.x.x.91 netmask 0xffc0 broadcast 200.x.x.127
 ether 00:10:4b:c5:2e:1c
 media: Ethernet autoselect (100baseTX full-duplex)

 xl1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
 inet 200.y.y.132 netmask 0xfc0 broadcast 200.y.y.191
 ether 00:60:97:dd:f0:b8
 media: Ethernet autoselect (10baseT/UTP full-duplex)

 arp: 200.y.y.130 is on xl1 but got reply from 00:b0:64:08:36:60 on xl0
 arp: 200.x.x.72 is on lo0 but got reply from 00:10:4b:c5:2e:1c on xl1

 What's the problem ??

It means just that: and arp reply for some address in the 200.y.y.0 subnet
(xl1 subnet) arrived on xl1 and vice-versa.

Are both NICs connected to the same physical LAN, by chance?



Fer

 _
 Converse com seus amigos online, faça o download grátis do MSN Messenger:
 http://messenger.msn.com.br


 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



RE: ncsd

2002-10-08 Thread Eric Six

Run Bind as a caching only server. Ncsd is a sun program if I am correct.. I
don't ever recall seeing it anywhere else (aix, *bsd).


Cheers,
Eric

-Original Message-
From: Steven Garrett [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 08, 2002 2:40 PM
To: [EMAIL PROTECTED]
Subject: RE: ncsd


yes, but we already have dns servers.  we do alot of name resolution at my
site and would like to have some type of caching on the web servers
themselves so as to reduce the load on our dns servers.  I haven't been able
to determine if ncsd is part of the freebsd build, as I didn't see it
anywhere on our servers or source cds.  

Thanks,

Steve

-Original Message-
From: Thomas T. Veldhouse [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 08, 2002 1:53 PM
To: Kris Kennaway; Steven Garrett
Cc: [EMAIL PROTECTED]
Subject: Re: ncsd


It is for name caching.  It is supplied as part of the GNU C library.
isc-bind fills the role nicely.

Tom Veldhouse

- Original Message -
From: Kris Kennaway [EMAIL PROTECTED]
To: Steven Garrett [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, October 08, 2002 12:40 PM
Subject: Re: ncsd


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Linux emulation: acd0a is not a cooked ioctl CDROM

2002-10-08 Thread joe

On October 8, 2002 02:11 am, Oliver Fromme wrote:
 Lucky Green [EMAIL PROTECTED] wrote:
   I am in the process of ripping a large CD collection. Fidelity is
   paramount. By all accounts, the ripper of choice for audiophiles
   is cdparanoia.

 dagrab has worked fine for me for IDE drives.  It's in the
 ports collection.  (For SCSI drives I prefer tosha.)

 Regards
Oliver

Whereas my experience has been that cdparanoia is vastly superior to any 
of the other tools!  I should have checked before migrating from 
Mandrake to freeBSD.  Oh well!
 

Joe
-
We have been silent witnesses of evil deeds...
Will our inward power of resistance 
be strong enough for us to find our way back?
   - Dietrich Bonhoeffer

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: /dev/urandom is randomly cool

2002-10-08 Thread Petri Riihikallio

Use vmstat -i to get a list of interrupt sources on your system and
use rndcontrol to add them to the entropy engine.

This is very interesting. I have just guessed my entropy interrupts.
Thanks for the tip!

# vmstat -i
interrupt   total   rate
ata0 irq143240348 10
ata1 irq15  4  0
mux irq11 1342389  4
pcm0 irq10   3401  0
fdc0 irq6   2  0
atkbd0 irq1 58469  0
psm0 irq12 872780  2
sio0 irq4  441098  1
clk irq0 31225225 99
rtc irq8 39970907128
Total77154623247

... but what does the 'mux' stand for? My laptop shows it, too. From 
the context I guess it is network activity, but there is no such 
device or kernel option. The NICs don't show up as themselves. man 
vmstat didn't tell.
-- 
Cheers,
Petri

Metis / Petri Riihikallio
GSM: +358 400 505 939

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Strange tar problem

2002-10-08 Thread Chad Morland


I am trying to backup some files to tape using tar -cpf /dev/nsa0
/backup. Once everything is done, I use tar -tv to show me the
details of the files on the tape. Here is what I get:

drwxr-xr-x root/wheel0 Sep 29 11:27 2002 vnt/vnt21.nj2/
-rw-r--r-- root/wheel -747272192 Sep 29 15:59 2002
vnt/vnt21.nj2/vnt20.nj2-08282002_Full.tar.gz
drwxr-xr-x root/wheel  0 Sep 29 16:27 2002 vnt/vnt22.nj2/
-rw-r--r-- root/wheel  692824064 Sep 29 21:23 2002
vnt/vnt22.nj2/vnt22.nj2-09252002_Full.tar.gz

Now, if I do an ls -la
/backup/vnt/vnt22.nj2/vnt22.nj2-09252002_Full.tar.gz I get this:
-rw-r--r--  1 root  wheel  4987791360 Sep 29 21:23
/backup/vnt/vnt22.nj2/vnt22.nj2-09252002_Full.tar.gz

As you can see I am getting some pretty strange results from tar. Can
someone please explain why tar is showing a negitive number for one file
and only 690M for the other? These are only two examples of many files
that this is happening to.

-CM


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: /dev/urandom is randomly cool

2002-10-08 Thread Kevin Oberman

 Date: Tue, 8 Oct 2002 23:22:19 +0300
 From: Petri Riihikallio [EMAIL PROTECTED]
 
 Use vmstat -i to get a list of interrupt sources on your system and
 use rndcontrol to add them to the entropy engine.
 
 This is very interesting. I have just guessed my entropy interrupts.
 Thanks for the tip!
 
 # vmstat -i
 interrupt   total   rate
 ata0 irq143240348 10
 ata1 irq15  4  0
 mux irq11 1342389  4
 pcm0 irq10   3401  0
 fdc0 irq6   2  0
 atkbd0 irq1 58469  0
 psm0 irq12 872780  2
 sio0 irq4  441098  1
 clk irq0 31225225 99
 rtc irq8 39970907128
 Total77154623247
 
 ... but what does the 'mux' stand for? My laptop shows it, too. From 
 the context I guess it is network activity, but there is no such 
 device or kernel option. The NICs don't show up as themselves. man 
 vmstat didn't tell.

mux is the device name given to all devices using the shared PCI
interrupt. On most laptops all PCMCIA cards as well as the PCMCIA
controller(s) and USB controllers use a single interrupt (unless this
is disabled by sysctl). So this device covers anything you plug into a
PCMCIA slot and anything in a mini-PCI slot on most laptops or the PCI
on most desktops. You can usually track down what uses it by scanning
the dmesg output.

On my Dell desktop I see the graphics card, the Ethernet, and one USB
all use IRQ 11 and are included in the mux device.

R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: [EMAIL PROTECTED]  Phone: +1 510 486-8634



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: What is the best IDE for C++programming in FreeBSD4.4?

2002-10-08 Thread Kirk Strauser


At 2002-10-08T18:49:17Z, alireza mahini [EMAIL PROTECTED] writes:

 I am Alireza and i am a young c++ developer in freebsd.  I am working with
 freebsd4.4 and i need an IDE for programming in C or C++ languages such as
 KDvelop.  Please guide me about this .

I love Emacs.  Edit, compile, build, test, and debug in one application.
You can also read your mail, prioritize your to-do list, manager your
calendar, and be psychoanalyzed without swapping programs.  :)
-- 
Kirk Strauser
In Googlis non est, ergo non est.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Strange tar problem

2002-10-08 Thread Dan Nelson

In the last episode (Oct 08), Chad Morland said:
 I am trying to backup some files to tape using tar -cpf /dev/nsa0
 /backup. Once everything is done, I use tar -tv to show me the
 details of the files on the tape. Here is what I get:
 
 drwxr-xr-x root/wheel0 Sep 29 11:27 2002 vnt/vnt21.nj2/
 -rw-r--r-- root/wheel -747272192 Sep 29 15:59 2002 
vnt/vnt21.nj2/vnt20.nj2-08282002_Full.tar.gz
 drwxr-xr-x root/wheel  0 Sep 29 16:27 2002 vnt/vnt22.nj2/
 -rw-r--r-- root/wheel  692824064 Sep 29 21:23 2002 
vnt/vnt22.nj2/vnt22.nj2-09252002_Full.tar.gz

Older versions of GNU tar could not handle file sizes over 2 (or 4, I
forget) gig.  You didn't tell us what version of FreeBSD you are
running, but I'll assume 4.*.  The tar shipped with FreeBSD  4.7 has
this problem.  Either wait a bit and upgrade to 4.7, or install
ports/archivers/gtar and use that.

-- 
Dan Nelson
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



The FreeBSD gallery

2002-10-08 Thread Stephen Hoover

I was wondering who maintains the FreeBSD gallery.

I was surfing around the commercial page today and I am finding a lot of
dead links, and pages that no longer use FreeBSD according to Netcraft.
I would be willing to check/verify the list and submit my results to the
page maintainers for review - if that would be of any help.

Stephen Hoover
Dallas, Texas



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Puzzling Simple NATD and IPFW Problem

2002-10-08 Thread Nick Rogness

On Tue, 8 Oct 2002, 2005 - Chill, Samuel Thomas wrote:

 I have ipfirewall, ipdivert, and dummynet all compiled into my kernel. I
 am able to run run natd and to specify rules with ipfw, i can also ping
 my external interface. My internal network card (rl1) is 10.0.0.1 and my
 lan clients are running on 10.0.0.x. I can ping everything, the network
 is setup properly. Im using the default rules supplied in the man page
 and apperently natd is not passing them on. I cant ping or go to any
 website at all. The lan clients have 10.0.0.1 set as there default
 gateway. rl0 is connected to the cable modem and gets it ip via dhcp.
 The freebsd box can ping any thing but apparently nothing is forwarded
 to the external interface. I have double checked and reinstalled
 multiple times and it seems that it is bound to never work!

Do you have gateway_enable=YES in /etc/rc.conf?

What do the following show when you run them (just paste them in a
reply):

# ifconfig -a
# netstat -rn
# ipfw -a l
# sysctl net.inet.ip.forwarding
# ps -aux |grep nat
# cat /etc/rc.conf

Nick Rogness [EMAIL PROTECTED]
- WARNING TO ALL PERSONNEL:
   Firings will continue until morale improves.




To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: The FreeBSD gallery

2002-10-08 Thread Kris Kennaway

On Tue, Oct 08, 2002 at 04:34:08PM -0500, Stephen Hoover wrote:
 I was wondering who maintains the FreeBSD gallery.
 
 I was surfing around the commercial page today and I am finding a lot of
 dead links, and pages that no longer use FreeBSD according to Netcraft.
 I would be willing to check/verify the list and submit my results to the
 page maintainers for review - if that would be of any help.

Talk to www

Kris



msg04360/pgp0.pgp
Description: PGP signature


RE: ncsd

2002-10-08 Thread Kevin Stevens



On Tue, 8 Oct 2002, Eric Six wrote:

 Run Bind as a caching only server. Ncsd is a sun program if I am correct.. I
 don't ever recall seeing it anywhere else (aix, *bsd).

 Cheers,
 Eric

Dyslexics untie!  It's nscd (name service cache daemon).  It provides
caching for multiple name services running on the same machine (dns,
files, nis, etc.).  I'm not aware of implementations outside of Solaris,
and it's frequently cursed within Solaris, too.

KeS


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Îò Ñåðãåÿ CTGMDXRWMI

2002-10-08 Thread Ñåðãåé

Ðàçîøëåì âàøå ïðåäëîæåíèå ýëåêòðîííîé ïî÷òîé
ïî îðãàíèçàöèÿì Ìîñêâû, Ðîññèè, ÑÍÃ
à òàêæå ÷àñòíûì ëèöàì Ìîñêâû ~2.000.000
èëè ÷àñòíûì ëèöàì Ìîñêâû+Ðîññèè

Äëÿ ñâÿçè: ICQ:162586665
e-mail: [EMAIL PROTECTED]
pager: (095)961-33-33 àá 83656

Ïðèíîñèì èçâèíåíèÿ çà îòíÿòîå âðåìÿ è ïðè÷èíåííûå íåóäîáñòâà.
 
CTGMDXRWMIQDHDZEWZ

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Linux emulation: acd0a is not a cooked ioctl CDROM

2002-10-08 Thread Oliver Fromme

joe [EMAIL PROTECTED] wrote:
  On October 8, 2002 02:11 am, Oliver Fromme wrote:
   Lucky Green [EMAIL PROTECTED] wrote:
 I am in the process of ripping a large CD collection. Fidelity is
 paramount. By all accounts, the ripper of choice for audiophiles
 is cdparanoia.
  
   dagrab has worked fine for me for IDE drives.  It's in the
   ports collection.  (For SCSI drives I prefer tosha.)
  
  Whereas my experience has been that cdparanoia is vastly superior to any 
  of the other tools!

In what way superior?

dagrab just works.  I use it a lot with my notebook's
DVD-ROM drive.  It makes 100% exact copies of audio CDs.
That is, when I read a CD multiple times, the MD5 values
of the tracks are the same (and they're also the same
when read with the Plextor SCSI drive in my server box),
so they're certainly exact digital copies.
What else could I ask for?  :-)

Regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH  Co KG, Oettingenstr. 2, 80538 München
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

All that we see or seem is just a dream within a dream (E. A. Poe)

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Safe Use of cvsup

2002-10-08 Thread Giorgos Keramidas

On 2002-10-08 12:39, Adam Weinberger [EMAIL PROTECTED] wrote:
  (10.08.2002 @ 1220 PST): Martin McCormick said, in 0.8K: 
  If one uses an incorrect tag in cvsup, it tends to
  destroy the /usr/src tree, a sort of make zapworld.  Would there
  be anything wrong with backing up the /usr/src directory to a tar
  file before running cvsup so that if the worst happens, one can
  restore the directory to what it was before the mishap?
 
 if you toast the /usr/src directory by a bad tag in the cvsup file,
 putting in the correct tag and rerunning cvsup will correct the problem.
 i don't see much use in backing up something that is available from any
 number of readily available sites.

It might be a little faster to simply extract a tarball, if one has
enough space to keep a backup copy locally :)

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: What is the best IDE for C++programming in FreeBSD4.4?

2002-10-08 Thread Giorgos Keramidas

On 2002-10-08 16:14, Kirk Strauser [EMAIL PROTECTED] wrote:
 At 2002-10-08T18:49:17Z, alireza mahini [EMAIL PROTECTED] writes:
  I am Alireza and i am a young c++ developer in freebsd.  I am working with
  freebsd4.4 and i need an IDE for programming in C or C++ languages such as
  KDvelop.  Please guide me about this .

 I love Emacs.  Edit, compile, build, test, and debug in one application.
 You can also read your mail, prioritize your to-do list, manager your
 calendar, and be psychoanalyzed without swapping programs.  :)

Some will argue that this last part is a result of too many straight
hours of typing fatalities on a terminal :P


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: help with ln linking Please! [attn manpage authors!]

2002-10-08 Thread Oliver Fromme

Gary W. Swearingen [EMAIL PROTECTED] wrote:
  
  How about this:  ln [-fhinsv] source_filename [link_filename]

FWIW, the source doesn't have to be a file at all, in the
case of symbolic links.  I think the correct term is link
target in that case -- that's how it is called in the
standards (POSIX, SUSvX etc.).

Maybe the manpage should differentiate those two cases,
like this:

   ln [-fhinv] existing_filename [another_filename]
   ln -s [-fhinv] symlink_target [symlink_name]

That would be completely clear, IMO.  Although maybe a bit
too verbose.

Personally, I memorize it like this:  The order of arguments
to ln is the same as that of mv or cp -- the existing file
comes first (OK, in the case of symlinks it doesn't really
have to exist), and the new thing comes last.

Regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH  Co KG, Oettingenstr. 2, 80538 München
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

All that we see or seem is just a dream within a dream (E. A. Poe)

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: help with ln linking Please! [attn manpage authors!]

2002-10-08 Thread Adam Weinberger

 (10.08.2002 @ 1514 PST): Oliver Fromme said, in 1.2K: 
ln [-fhinv] existing_filename [another_filename]
ln -s [-fhinv] symlink_target [symlink_name]
 
 That would be completely clear, IMO.  Although maybe a bit
 too verbose.

too verbose? i disagree.

 (OK, in the case of symlinks it doesn't really
 have to exist), and the new thing comes last.

most people who would benefit from having ln spelled out for them
probably won't be doing terribly difficult things with it ::)

-Adam


--
Oh good, my dog found the chainsaw.
-Lilo, Lilo  Stitch
Adam Weinberger
[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: help with ln linking Please! [attn manpage authors!]

2002-10-08 Thread Giorgos Keramidas

On 2002-10-09 00:14, Oliver Fromme [EMAIL PROTECTED] wrote:
 Gary W. Swearingen [EMAIL PROTECTED] wrote:
   
   How about this:  ln [-fhinsv] source_filename [link_filename]
 
 FWIW, the source doesn't have to be a file at all, in the
 case of symbolic links.  I think the correct term is link
 target in that case -- that's how it is called in the
 standards (POSIX, SUSvX etc.).

True.  /etc/malloc.conf is a nice example of cases that this holds
true, and the 'source' doesn't have to be a real file, or exist at all
for that matter.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Dual-Homed

2002-10-08 Thread James Earl

I'm not sure if I totally understand... I'm trying.  Perhaps you want your FreeBSD 
machine to be a bridge, not a gateway?

On Tue, 08 Oct 2002 17:02:37 -0400
Steven King [EMAIL PROTECTED] wrote:

 I need help trying to get my FreeBSD machine dual-homed. I will try to 
 explain the situation as best as possible..
 
 Interface1 - hub1 - Cable Modem (DHCP) - Internet
 Interface2 - hub2 - Router - Frame Relay - Internet
 
 I am trying to use Interface1 for cvsup's and things like that (frame is 
 only 56k) . I have to use Interface2 for web server, mail and dns..
 
 When I set up /etc/rc.conf this way it loads up the interfaces no 
 problem and the cable modem interface works fine but on the interface2 
 side I cannot get to the internet nor can anyone get to it from that 
 side. I can ping the boxes on the local subnet but thats it.
 
 from rc.conf:
 
 network_interfaces=rl0 de0 lo0
 defaultrouter=NO
 ifconfig_rl0=DHCP
 ifconfig_de0=inet interface2 IP netmask 255.255.255.0
 
 I cannot figure out what else is needed to fix this.. I have tried 
 static_routes, gateway_enable, forward_sourceroute in rc.conf and 
 net.inet.ip.forwarding=1 in sysctl.conf.. I have tried several different 
 netmasks for interface2 thinking that was the problem but that dont do 
 anything.. messed with defaultrouter and everything I can think of.. All 
 of the examples I have seen on the web and searching through the mailing 
 list are of using the FBSD box as a gateway for an internal network to 
 go out through the FBSD box onto the internet.
 
 Any help would be appreciated..
 
 Thank you
 
 
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Linux emulation: acd0a is not a cooked ioctl CDROM

2002-10-08 Thread Nick Slager

Thus spake Lucky Green ([EMAIL PROTECTED]):

 Checking /dev/cdrom for cdrom...
 Testing /dev/cdrom for cooked ioctl() interface
 /dev/acd0a is not a cooked ioctl CDROM.
 Testing /dev/cdrom for SCSI interface
 /dev/cdrom is not a SCSI device

That doesn't look quite right; CDROM devices are usually accessed as
/dev/acd0c in FreeBSD.

Perhaps double check to see where the /dev/cdroma symlink points to.


Nick

-- 
We demand rigidly defined areas of doubt and uncertainty.
  -- Douglas Adams


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Dual-Homed

2002-10-08 Thread Steven King

Well I want to treat interface1 as my primary route for most things 
(cvsup, lynx, etc, etc..).. and treat  interface2 as if it was an 
alias'ed IP.. But for some reason when I boot up with rc.conf like the 
way I have it below, you can not reach interface2 from the internet nor 
can you reach the internet from interface2.. I can only get to other 
machines that are on the same subnet as interface2..


James Earl wrote:

I'm not sure if I totally understand... I'm trying.  Perhaps you want your FreeBSD 
machine to be a bridge, not a gateway?

On Tue, 08 Oct 2002 17:02:37 -0400
Steven King [EMAIL PROTECTED] wrote:

  

I need help trying to get my FreeBSD machine dual-homed. I will try to 
explain the situation as best as possible..

Interface1 - hub1 - Cable Modem (DHCP) - Internet
Interface2 - hub2 - Router - Frame Relay - Internet

I am trying to use Interface1 for cvsup's and things like that (frame is 
only 56k) . I have to use Interface2 for web server, mail and dns..

When I set up /etc/rc.conf this way it loads up the interfaces no 
problem and the cable modem interface works fine but on the interface2 
side I cannot get to the internet nor can anyone get to it from that 
side. I can ping the boxes on the local subnet but thats it.

from rc.conf:

network_interfaces=rl0 de0 lo0
defaultrouter=NO
ifconfig_rl0=DHCP
ifconfig_de0=inet interface2 IP netmask 255.255.255.0

I cannot figure out what else is needed to fix this.. I have tried 
static_routes, gateway_enable, forward_sourceroute in rc.conf and 
net.inet.ip.forwarding=1 in sysctl.conf.. I have tried several different 
netmasks for interface2 thinking that was the problem but that dont do 
anything.. messed with defaultrouter and everything I can think of.. All 
of the examples I have seen on the web and searching through the mailing 
list are of using the FBSD box as a gateway for an internal network to 
go out through the FBSD box onto the internet.

Any help would be appreciated..

Thank you




To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


  





To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Safe Use of cvsup

2002-10-08 Thread DaleCo, S.P.---'the solutions people'

Can't think of anything offhand.  However, using an incorrect tag
is not a great problem, IMO, because generally there's nothing
under /usr/src that can't be replaced by fixing the supfile and
running
cvsup again.  I have on several occasions just done this:

$cd /usr
$rm -rf src
$cvsup /stable-supfile

The quid pro quo here, I guess, is that I keep my kernconfs
and my supfiles copied to /

Kevin Kinsey,
DaleCo, S.P.

- Original Message -
From: Martin McCormick [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 08, 2002 2:20 PM
Subject: Safe Use of cvsup


 If one uses an incorrect tag in cvsup, it tends to
 destroy the /usr/src tree, a sort of make zapworld.  Would there
 be anything wrong with backing up the /usr/src directory to a tar
 file before running cvsup so that if the worst happens, one can
 restore the directory to what it was before the mishap?

 I am building a new FreeBSD system from a CDROM that is a
 bit out of date so I need to upgrade it after installation.

 The only thing I was thinking of was that there might be
 links or something else not obvious that would make the restored
 /usr/src useless.

 Martin McCormick WB5AGZ  Stillwater, OK
 OSU Center for Computing and Information Services Network
Operations Group

 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Safe Use of cvsup

2002-10-08 Thread Warren Block

On Tue, 8 Oct 2002, Martin McCormick wrote:

   If one uses an incorrect tag in cvsup, it tends to
 destroy the /usr/src tree, a sort of make zapworld.  Would there
 be anything wrong with backing up the /usr/src directory to a tar
 file before running cvsup so that if the worst happens, one can
 restore the directory to what it was before the mishap?
 
   I am building a new FreeBSD system from a CDROM that is a
 bit out of date so I need to upgrade it after installation.

You have a CDROM, so you don't need the tar file.  /stand/sysinstall can
install source any time you like, then run cvsup on it again.  But this
is better avoided by not using bad cvsup tags. 8-)
 
-Warren Block * Rapid City, South Dakota USA


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: What is the best IDE for C++programming in FreeBSD4.4?

2002-10-08 Thread John Bleichert

On Wed, 9 Oct 2002, Giorgos Keramidas wrote:

 Date: Wed, 9 Oct 2002 01:12:57 +0300
 On 2002-10-08 16:14, Kirk Strauser [EMAIL PROTECTED] wrote:
  At 2002-10-08T18:49:17Z, alireza mahini [EMAIL PROTECTED] writes:
   I am Alireza and i am a young c++ developer in freebsd.  I am working with
   freebsd4.4 and i need an IDE for programming in C or C++ languages such as
   KDvelop.  Please guide me about this .
 
  I love Emacs.  Edit, compile, build, test, and debug in one application.
  You can also read your mail, prioritize your to-do list, manager your
  calendar, and be psychoanalyzed without swapping programs.  :)
 
 Some will argue that this last part is a result of too many straight
 hours of typing fatalities on a terminal :P
 
 

Editor questions in Unix mailing lists. Ha!

To the original poster - if you're just looking for a simple editor for 
C/C++ with syntax highlighting, try 'nedit' in the ports tree. Try code 
crusader (jcc, also in the ports tree) if you want simple 
function-surfing and class-tree layout abilities. 

Emacs isnt an editor, it's a window manager and an applicatoin suite.

nedit + make = IDE

;-)

#  John Bleichert 
#  http://vonbek.dhs.org/latest.jpg


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Puzzling NATD problem - revisited

2002-10-08 Thread Josh Paetzel

On Tue, Oct 08, 2002 at 03:28:28PM -0400, JoeB wrote:
 You state Network topology:
 Internet---Campus Network---(xl0)FreeBSD NATD machine(xl1)---Internal host
 
 Internet is public ip address,  if Campus Network private ip address then
 you
 can not nat them again, if Campus Network  is public ip address then  you
 should
 nat  x11 for the private ip address on the lan behind the FBSD box.

That's not correct.  I've seen two layers of NATD work just fine in an office 
building environment where the gateway to the office was natting ips to the 
individual clients, and then clients were natting again to hang multiple 
machines off the one ip they got from the office gateway.

Josh 


 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Kim Helenius
 Sent: Tuesday, October 08, 2002 9:13 AM
 To: [EMAIL PROTECTED]
 Subject: Puzzling NATD problem - revisited
 
 The setting:
 
 Network topology:
 Internet---Campus Network---(xl0)FreeBSD NATD machine(xl1)---Internal host
 
 A custom kernel build including the following options:
 options IPFIREWALL
 options IPDIVERT
 Used the command:
 sysctl net.inet.ip.forwarding=1
 And started natd with natd -interface xl0
 
 Then did, straight from the manpage, the following firewall rules:
 /sbin/ipfw -f flush
 /sbin/ipfw add divert natd all from any to any via xl0
 /sbin/ipfw add pass all from any to any
 
 Now NAT works perfectly for the internal host, but (almost) all TCP
 connections cease to work to/from the NATD machine. AFAIK UDP and ICMP work
 perfectly. I've tried this on two different FreeBSD machines in the same
 network with identical results. If I remove the divert rule, everything
 works perfectly, except of course for the NAT. There have been no similar,
 puzzling effects on any Linux hosts I know of in the same network. Therefore
 I'm sure there's some knob I haven't pushed yet :)
 
 I'm aware this doesn't make much of a firewall but I'd like to get natd
 working before I run the firewall script.
 
 --
 Kim Helenius
 [EMAIL PROTECTED]
 
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: directory structuer for a web server

2002-10-08 Thread Matt Smith

I have always like the DNS style layout:
/www   -- dedicated file system
/www/com/
/www/com/mycomdomain  -- website for mycomdomain.com
/www/org/
/www/org/myorgdomain  -- website for myorgdomain.org
...
etc
...

this filesystem matches DNS, and LDAP (for authentication and other
info), which makes for some neat scripting possibilities

-Matt


On Tue, 2002-10-08 at 00:00, Kirk Bailey wrote:
 I can indeed imagine the aspirin bill. With my approach, it is systematic, each
 domain has it's own cgi-bin directly  under it's web dir, and the server will
 not permit access to anything other than the root directory for that domain, and
 it's cgi-bin.
 
 However, now I am writing a application for other people's web servers, it
 behooves me to learn of the fetishes of other people.
 
 oh- the item in question:
   http://www.tinylist.org/
 
 Jerry McAllister wrote:
  
  
   where should one properly place the directory for the web pages in a web
   server,
   and is there a standard name for it? I have a box with several domains
   in it, so
   I created /www off of root, ant /www/www.foo.foo for each domain
   under /www but
   I suspect this is not a standard solution. Any advice?
  
  Not bad.   Really, the only thing that matters is keeping them
  in a way that makes sense and makes it easy to keep them apart
  and easy to address.
  
  Mayn of our servers host several domains and almost al of these have
  a virtual host web page.  We create an account for most of our virtual
  hosts (because there is a different person working on the web page
  for each) and then the home page for each virtual host then gets put
  in the directory 'web' in each of those home directories.
  
  eg   ~accoutn_homedir/web/index.html  or whatever
  
  For the servers themselves we follow a convention of installing
  Apache in'/usr/local/web/...'
  Everything, from binaries to config files to logs all fall under that.
  The only thing outside of that is the apache.sh in /usr/local/rc.d
  The servers own web pages start in  /usr/local/web/documents
  
  I have seen some really convoluted setups with bits an pieces
  strung out in /usr/sbin/... and /etc/... and other places.
  I can only imagine the annoyance of managing those.
  
  jerry
  
  
   --
  
   end
  
   Respectfully,
Kirk D Bailey
  
  
   +-Thou Art Free. -Eris---+
   | http://www.howlermonkey.net  mailto:[EMAIL PROTECTED] |
   | KILL spam dead!  http://www.scambusters.org/stopspam/#Pledge |
   | http://www.tinylist.org  ++   mailto:[EMAIL PROTECTED] |
   +--Thinking| NORMAL |Thinking--+
  ++
   ---
   Introducing NetZero Long Distance
   Unlimited Long Distance only $29.95/ month!
   Sign Up Today! www.netzerolongdistance.com
  
   To Unsubscribe: send mail to [EMAIL PROTECTED]
   with unsubscribe freebsd-questions in the body of the message
  
 
 -- 
 
 end
 
 Respectfully,
  Kirk D Bailey
 
 
 +-Thou Art Free. -Eris---+
 | http://www.howlermonkey.net  mailto:[EMAIL PROTECTED] |
 | KILL spam dead!  http://www.scambusters.org/stopspam/#Pledge |
 | http://www.tinylist.org  ++   mailto:[EMAIL PROTECTED] |
 +--Thinking| NORMAL |Thinking--+
++
 ---
 Introducing NetZero Long Distance
 Unlimited Long Distance only $29.95/ month!
 Sign Up Today! www.netzerolongdistance.com
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
 



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



RE: Linux emulation: acd0a is not a cooked ioctl CDROM

2002-10-08 Thread Lucky Green

Nick wrote:
  Checking /dev/cdrom for cdrom...
  Testing /dev/cdrom for cooked ioctl() interface
  /dev/acd0a is not a cooked ioctl CDROM.
  Testing /dev/cdrom for SCSI interface
  /dev/cdrom is not a SCSI device
 
 That doesn't look quite right; CDROM devices are usually 
 accessed as /dev/acd0c in FreeBSD.
 
 Perhaps double check to see where the /dev/cdroma symlink points to.

I have been able to rip from /dev/cdrom linking to /dev/acd0a using
cdda2wav without a problem. I just changed /dev/cdrom to link to
/dev/acd0c and am getting the same error.

I suspect that somehow cdparanoia/Linux binaries are expecting the cdrom
device to be of a different form than what that device looks like under
FreeBSD. Which gets us back to the question of what a cooked ioctl is
and how one could perhaps create a device entry for a CDROM under
FreeBSD that would meet the cooked ioctl test.

Thanks in advance,
--Lucky Green


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



FreeBSD File System Comparison

2002-10-08 Thread David Lloyd



Is there any comparison that is easy for a non-kernel (Linux/Kernel)
hacker to understand between other file systems? I've discovered that:

* it's derived from something called the Fast File System
* that I need to add a -o ufstype=44bsd when mounting it under linux
* that it's not a journaling filesystem


..?


DSL
-- 
You'll be lost, so sorry when I'm gone!
  (Jesus Christ, in Lloyd Webber's
   Superstar)

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-newbies in the body of the message

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Scouts Learn Chess from the Best.

2002-10-08 Thread GamesParlor Chess Services

ScoutChess is a program developed to teach kids and young adults the game and 
history of Chess. Held on US Chess Live, the official online service of the US 
Chess Federation, ScoutChess is a series of workshops taught by International 
Masters and available only to scouts. With a world-class instructor list and 
a program that's second to none, this is a chance that a chess-playing scout 
can't afford to miss.
***
ScoutChess is expanding its schedule! Many scouts weren't able to make the 
October 
workshop registration dates; we're creating a November workshop to help them 
catch up. Please see the ScoutChess website, at http://www.scoutchess.org/ , 
for details.
***
Do you want to learn chess from a Grand Master? Would you like to polish your 
game against an International Master? Your scout could be taking lessons from 
two Grand Masters; the current and former US Champions; the current US Women's 
Champion; a former US Women's Co-champion; a three-time Pan-American Championship 
title holder; even the winner of the 1992 US Open, World Open, National Open, 
and Novag Grand Prix. There isn't room for the full instructors' lists of accolades, 
so we've listed them in the instructors' bio section, at 
http://www.scoutchess.org/dojo/8/v.jsp?p=/bios. 
Chess benefits logic skills, visual and analytic memory, and many other mental 
skills; see the Information Center at http://www.scoutchess.org/ for print studies 
of the developmental effects of Chess on kids and younger adults.

If you need more information feel free to call or email our helpful staff.  

[EMAIL PROTECTED]

412-441-4565


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



  1   2   >