Re: Getting Perl scripts to work as mail filters

2002-12-19 Thread Matthew Seaman
On Thu, Dec 19, 2002 at 01:13:17AM +0100, Mxsmanic wrote:
 What about appending directly to the mailbox file under /var/mail/$USER with
 the script?  It looks like the format of the file is very simple.  Why
 wouldn't that work?  I've tried writing to it, but I can't, at least not
 when the script runs from the aliases file (works fine when I run it myself,
 though).

mail.local(8) is probably what you want to use to do that.  However
your main problem will be getting sendmail to setuid() to the required
user before calling the mymail script.

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



natd not loading

2002-12-19 Thread Bob Hall
Natd has stopped loading on startup (Freebsd 4.4). After adding 
some new apps that load on start up (Squid and Dansguardian), 
natd fails to start and the ipfw rules aren't loaded. I can start 
natd manually and load the rules, but this is a bit of a pain. 
I also have to start Dansguardian manually, since it quits when 
the default ipfw deny prevents it from connecting to squid.

I get the following startup error messages after the kernal (dmesg)
messages:

Dec 19 01:40:54 sten nfsd:[185]: can't register with udp portmap
 rpc.statdCannot register service: RPC: Unable to send; errno = Permission denie
d
rpc.statd: unable to register (SM_PROG, SM_VERS, udp)
...
Dec 19 01:41:12 sten dansguardian: Error creating connection to test proxy

Aside from the dansguardian error, I don't know if they have anything to 
do with the problem.

This happens whether the firewall type is OPEN or SIMPLE in rc.conf. I 
have to have the firewall because I'm using NAT (obviously). The nat flag 
is -dynamic and the interface is ppp0. The problem still occurs if I 
restore rc.conf and rc.firewall back to their settings before the problem 
occured. The only changes were the switch from OPEN to SIMPLE and the 
addition of a couple of lines in rc.firewall to allow transparent caching.
Once I've manually started and loaded everything, it works fine.

If anyone can offer some diagnostic help, I'd be grateful. I'd also like 
to figure out what's going on with rpc.statd, even if it has nothing to do 
with my network problem.

Bob Hall 

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



OpenOffice.org1.0 and much death

2002-12-19 Thread Matthew E. Boyce
I feel a bit silly not trying to work this out for a day before I ask for
help, but I am a bit despirate (Windows98 TCP/IP died completely so I am
left with ONLY FreeBSD for awhile... which is no big deal, I just need to
get stuff working).  Well here is the problem: I downloaded the
OpenOffice1.0 for FreeBSD (it might be 1.0.1 but it doesn't seem to think
so) and ran the installer... so far so good... it installs with a pretty
installer ( a so very windows like) and I go to run ./soffice and
I get nothing more than Abort (core dumped).  I tried looking for anyone
with a similar error online, but no such luck.  If I could get some help
on this thing (and mind you I am fairly new using FreeBSD for anything
more than a NAT box) that would be great.
~Matthew E. Boyce


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



Re: Slow network - ed driver, Realtek 8029

2002-12-19 Thread Layder
You should probably manually point your nic to use 10baseT:
ifconfig ed0 xxx.xxx.xxx netmask xxx.xxx.xxx.xxx media 10baseT/UTP up



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



Re: MD5 Mismatch in 4.7

2002-12-19 Thread Kris Kennaway
On Tue, Dec 17, 2002 at 02:18:34PM -0500, Carl J wrote:

 [If it was only one file, I would not have inquired.
 But it appears to affect all compat*, info*,
 manpages*, etc.] It almost appears as if there
 are two different FreeBSD 4.7.
 
 Could someone enlighten me please?

The archives probably contain different timestamps since they were
built at different times.  The binary contents should be identical
though (again, except for things like timestamps in lib*.a files and
embedded in some binaries).

Kris



msg12581/pgp0.pgp
Description: PGP signature


Is LDAP broken?

2002-12-19 Thread Josef Grosch
On 4.7-STABLE, cvsup as of 4 Dec 02, with the ports updated, I build
openldap2 and try and start it. Nothing happens. Couple of hours of poking
around, checking man pages and the OpenLDAP project web site and still
nothing. Then I cd to /usr/ports/net/openldap2/work/openldap-2.0.25/tests
and make test. I get this;

bash-2.05a# make test
ln: ./data: File exists
*** Error code 1 (ignored)
Initiating LDAP tests for LDBM...
 Executing all LDAP tests...
 Test Directory: .
 Backend: ldbm
 Starting test000-rootdse ...
running defines.sh . ldbm
Datadir is ./data
Cleaning up in ./test-db...
Starting slapd on TCP/IP port 9009...
Using ldapsearch to retrieve all the entries...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
kill: 49520: No such process
ldap_bind: Can't contact LDAP server
 Test failed
 ./scripts/test000-rootdse failed (exit 1)
*** Error code 1

Josef

-- 
Josef Grosch   | Another day closer to a | FreeBSD 4.7
[EMAIL PROTECTED] |   Micro$oft free world  | www.bafug.org

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



Problems with a C application that changes users and run 'screen -x'

2002-12-19 Thread Aaron Burke
Hello list

I have an application that simply logs in as another user
and runs screen -x. The problem I am having with the
followin code is that the results of execution is a message
from (I am guessing the shell) saying that I dont have access
to the /dev/ttyp? where ? is the current virtual terminal 
that I am running on.


Here is my application:


#include stdlib.h
int main(int argc, char* pszArgs[])
{
int result;
result= system(/usr/bin/su ppp -m --login -c  
 /usr/local/bin/screen -x);
return result;
}

And here is the output:
bash-2.05$ ./a.out
To see the output from when your computer started, run dmesg(8).  If it has
been replaced with other messages, look at /var/run/dmesg.boot.
-- Francisco Reyes [EMAIL PROTECTED]
Cannot open your terminal '/dev/ttyp0' - please check.

Thank you all for your time.

Aaron Burke
[EMAIL PROTECTED]

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



Re: OpenOffice.org1.0 and much death

2002-12-19 Thread Scott Robbins
jn Thu, Dec 19, 2002 at 12:43:13AM -0800, Matthew E. Boyce wrote:


Well here is the problem: I downloaded the
 OpenOffice1.0 for FreeBSD (it might be 1.0.1 but it doesn't seem to think
 so) and ran the installer... so far so good... it installs with a pretty
 installer ( a so very windows like) and I go to run ./soffice and
 I get nothing more than Abort (core dumped).  I tried looking for anyone
 with a similar error online, but no such luck.  If I could get some help
 on this thing (and mind you I am fairly new using FreeBSD for anything
 more than a NAT box) that would be great.

If, by any chance, you're using version 5.x, those binaries won't work.
If you are using 5.x, I cover some pitfalls about it at
http://home.nyc.rr.com/computertaijutsu/jpninpt.html
The page is about inputting Japanese in Linux and FreeBSD, but in the
bottom section about printing, I cover OpenOffice in 5.x

Assuming you ran setup as a user, and are running 4.x, you might try,
from your home directory, running the full path to the command, that is,
OpenOffice/(I've forgotten now if it's 
OpenOffice-version/openoffice-version/soffice or just
OpenOffice-version.org/soffice, but just run the full path from your
home directory without ./ and see what happens.  I have had a few cases
where simply reinstalling it fixed the problem (if you do that though,
be sure to remove the OpenOffice directory and the .svsomethingrc from
your home directory before running the reinstall.

Good luck with it--when it works it's great, but OpenOffice can
sometimes be a pain to get working.  My hope is that you're running
FreeBSD 5.x, in which case my page ~should~ solve your problem.

-- 

Scott Robbins

PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 D575 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6



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



Re: ipfw and rule 65535

2002-12-19 Thread Ronan Lucio
There are some kind of packets that isn´t IP packets.
I don´t known exactly whichs, but a good read in

man tcpdump
man ipfw
man bridge

will make you make you undestand it better

Ronan


 Here is the end of the output from 'ipfw show':

 04000   0 0 deny log ip from any to any
 65535  91  8227 deny ip from any to any

 Can anyone explain why the last rule is getting hit?  I was under the
 impression that the rules are traversed in order, so 4000 should catch
 anything that -1 would.

 This is FreeBSD 4.7-STABLE: Sun Nov 10 10:42:32 PST 2002

 Thanks!

 -James

 --
 James Pace [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: Getting Perl scripts to work as mail filters

2002-12-19 Thread Mxsmanic
I finally got it to work by piping to sendmail.  Seems to be adequate for
what I want to do.

Now all I have to do is design my patented, foolproof methodology for
distinguishing spam from real mail so that I can encode the rules in the
script.  There must be a way!  Also, this may allow me to do something about
getting rid of HTML in mail, which I can't stand.

- Original Message -
From: Matthew Seaman [EMAIL PROTECTED]
To: FreeBSD Questions [EMAIL PROTECTED]
Sent: Thursday, December 19, 2002 09:14
Subject: Re: Getting Perl scripts to work as mail filters


 On Thu, Dec 19, 2002 at 01:13:17AM +0100, Mxsmanic wrote:
  What about appending directly to the mailbox file under /var/mail/$USER
with
  the script?  It looks like the format of the file is very simple.  Why
  wouldn't that work?  I've tried writing to it, but I can't, at least not
  when the script runs from the aliases file (works fine when I run it
myself,
  though).

 mail.local(8) is probably what you want to use to do that.  However
 your main problem will be getting sendmail to setuid() to the required
 user before calling the mymail script.

 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: ipfw and rule 65535

2002-12-19 Thread Jens Rehsack
Ronan Lucio wrote:

There are some kind of packets that isn´t IP packets.
I don´t known exactly whichs, but a good read in

man tcpdump
man ipfw
man bridge

will make you make you undestand it better

Ronan



I don't know how it's in ipfw, but ipf uses the last matching rule if no 
quick keyword is used.

less /etc/ipf.rules
--- BEGIN
block in all
block out all

pass in on xl0 from 10.0.0.0/24 to any

pass in quick on lo0 from 127.0.0.0/8 to 127.0.0.0/8
pass out quick on lo0 from 127.0.0.0/8 to 127.0.0.0/8
--- END

means: anything get's blocked except what's coming in on xl0 with ip 
10.0.0.0/24 and what's going over the lo0 device using loopback addresses.

less /etc/ipf.rules
--- BEGIN
block in quick all

pass in on xl0 from 10.0.0.0/24 to any
--- END

will match anything at start and nothing gets in - never!

Jens

Here is the end of the output from 'ipfw show':

04000   0 0 deny log ip from any to any
65535  91  8227 deny ip from any to any

Can anyone explain why the last rule is getting hit?  I was under the
impression that the rules are traversed in order, so 4000 should catch
anything that -1 would.

This is FreeBSD 4.7-STABLE: Sun Nov 10 10:42:32 PST 2002

Thanks!

-James

--
James Pace [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






--
L i  W W W  i Jens Rehsack
LW W W
L i   W   W W   W   i  nnnLiWing IT-Services
L iW W   W Wi  n  n  g   g
  i W W i  n  n  g   gFriesenstraße 2
  06112 Halle
 g
 g   g
Tel.:  +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED]
Fax:   +49 - 3 45 - 5 17 05 92http://www.liwing.de/



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



Re: ipfw and rule 65535

2002-12-19 Thread ay
In article [EMAIL PROTECTED] 
you wrote:

 Here is the end of the output from 'ipfw show':

 04000   0 0 deny log ip from any to any
 65535  91  8227 deny ip from any to any

 Can anyone explain why the last rule is getting hit?  I was under the
 impression that the rules are traversed in order, so 4000 should catch
 anything that -1 would.

Rule 65535 is added automatically due to kernel config 
option IPFILTER_DEFAULT_TO_???
default is to deny any connections, that are not permitted in rc.firewall.

-- 
AY7-UANIC || AY15-RIPE

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



Re: Are these IPF - IPFW protocols equivalent?

2002-12-19 Thread Rob
# Inside Interface (ipfw)
[IPFW] add 200 allow tcp from any to any out xmit via dc0 keep-state
[IPFW] add 200 allow icmp from any to any out xmit via dc0 keep-state
[IPFW] add deny ip from any to any out xmit via dc0   

[IPFW] add 200 allow tcp from any to any in recv via dc0 keep-state
[IPFW] add 200 allow icmp from any to any in recv via dc0 keep-state
[IPFW] add deny ip from any to any in recv via dc0   

# Loopback Interface
[IPFW] add allow ip from 127.0.0.1 to 127.0.0.1 in recv via lo0
[IPFW] add allow ip from 127.0.0.1 to 127.0.0.1 out xmit via lo0

I've only used ipfw for a little while, but there's a few things I can 
suggest here.

* A good diagnostic for your rules is

	ipfw list

  Run this after adding a list of rules, and it shows you how they were
  translated by ipfw. It also shows the default rule (number 65535)
  which will be allow any or deny any, depending on your kernel options.

* You don't need to supply a number after 'add' - the ipfw command will
  number them for you. I'm not sure what happens if you give different
  rules the same number, but it probably isn't useful.

* Since you're allowing all out #1 and all in #4, you can combine these
  rules as

	add allow tcp from any to any via dc0 keep-state

  with the same effect.

* Likewise with #2 and #5, they can be combined as

	add allow icmp from any to any via dc0 keep-state

* Likewise with #7 and #8.

* The keep-state option allows you set up two-way traffic based on a
  one-way rule. I think it's mainly designed for UDP (where there's no
  established connection to allow) but it should work for ICMP as well.

  However, since you're already allowing traffic both ways (in  out) it
  isn't necessary in this case.

* If your default rule is deny all, you don't need #3 and #6, because it
  will be denied anyway.

* If you give a hostname to ipfw, it will resolve the address when
  adding the rule.

* So you should be able to do the same thing with

	add allow tcp from any to any via dc0
	add allow icmp from any to any via dc0
	add allow ip from localhost to localhost via lo0

As I said, I've only been using ipfw for a little while so wiser heads 
may contradict some of this

Best of luck :-)



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


Re: Best way to scale SMTP auth?

2002-12-19 Thread Ronan Lucio
Steven,

I suggest you Postfix + SMTP AUTH
You will find the howto´s in Postfix homepage at http://www.postfix.org

Ronan

 Hi.  Got a slight problem.  I'd like to do an SMTP system that
 allows up to 100 users a second to authenticate to the system using the
 simplest means possible.  I'd like to use the Pop before SMTP method over
 authentication before SMTP.  However from my understanding, it doesn't
 scale very well.  So I'm trying to find a way to make this be able to
 handle as much traffic as possible without overloading the existing
 system.  Thanks.


 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: ipfw and rule 65535

2002-12-19 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2002-12-17 18:37:34 -0800:
 
 Here is the end of the output from 'ipfw show':
 
 04000   0 0 deny log ip from any to any
 65535  91  8227 deny ip from any to any
 
 Can anyone explain why the last rule is getting hit?  I was under the
 impression that the rules are traversed in order, so 4000 should catch
 anything that -1 would.
 
 This is FreeBSD 4.7-STABLE: Sun Nov 10 10:42:32 PST 2002

Isn't that packets that hit the interface after it came up, but
before the ruleset was loaded?

kernel loads - ipfw add 65535 deny all from any to any
/etc/rc.network - ifconfig ...
/etc/rc.network - load the ipfw ruleset

-- 
If you cc me or remove the list(s) completely I'll most likely ignore
your message.see http://www.eyrie.org./~eagle/faqs/questions.html

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



problem with pcm driver with AudioPCI ES1373-B

2002-12-19 Thread Juha Erkkilä
hello there,

just installed FreeBSD 4.7, and i appear to have a problem with my
sound card.  playing CDs through it with cdcontrol works fine, and
i can use a mixer progran (`mixer'), but if i try to use /dev/dsp
in any way, i get this:

aot% play one_hand_clapping.wav
pcm0:play:0: play interrupt timeout, channel dead

ogg123, madplay and mpg123 similarly just get stuck with no sound,
looking like this:

aot% madplay superhero.mp3
MPEG Audio Decoder 0.14.2 (beta) - Copyright (C) 2000-2001 Robert Leslie
 Title: SUPERHERO
Artist: the ALLSORTS
 Album: the ALLSORTS  -  MP3 . EP
 Track: 3
 Genre: Alternative
Alternative General
   Encoder: mp3.com
pcm0:play:0: play interrupt timeout, channel dead
output: write: Invalid argument
aot%

i haven't compiled my own kernel, but use the GENERIC one.
here's some info on my configuration:

aot% dmesg | grep pcm
Preloaded elf module snd_pcm.ko at 0xc052e190.
pcm0: AudioPCI ES1373-B port 0xb000-0xb03f irq 10 at device 9.0 on pci0
pcm0:play:0: play interrupt timeout, channel dead
pcm0:play:0: play interrupt timeout, channel dead

aot% cat /boot/loader.conf
snd_es137x_load=YES
# -- sysinstall generated deltas -- #
userconfig_script_load=YES

aot% kldstat
Id Refs AddressSize Name
 15 0xc010 40ddc4   kernel
 21 0xc050e000 5710 snd_es137x.ko
 31 0xc0514000 1887csnd_pcm.ko
 41 0xc10c 3000 daemon_saver.ko
 51 0xc10c3000 14000linux.ko

aot% sysctl -a | grep snd
hw.snd.targetirqrate: 32
hw.snd.report_soft_formats: 1
hw.snd.verbose: 1
hw.snd.maxautovchans: 0
hw.snd.pcm0.buffersize: 4096
hw.snd.pcm0.vchans: 0

aot% ls -l /dev/audio* /dev/dsp* /dev/midi* /dev/mixer* /dev/music* \
 /dev/sequencer* /dev/pss*
lrwxrwxrwx  1 root  wheel 6 Dec 18 14:37 /dev/audio - audio0
lrwxrwxrwx  1 root  wheel 8 Dec 18 14:37 /dev/audio0 - audio0.0
crw-rw-rw-  1 root  wheel   30,   4 Dec 18 14:37 /dev/audio0.0
crw-rw-rw-  1 root  wheel   30, 0x00010004 Dec 18 14:37 /dev/audio0.1
crw-rw-rw-  1 root  wheel   30, 0x00020004 Dec 18 14:37 /dev/audio0.2
crw-rw-rw-  1 root  wheel   30, 0x00030004 Dec 18 14:37 /dev/audio0.3
lrwxrwxrwx  1 root  wheel 4 Dec 18 14:37 /dev/dsp - dsp0
lrwxrwxrwx  1 root  wheel 6 Dec 18 14:37 /dev/dsp0 - dsp0.0
crw-rw-rw-  1 root  wheel   30,   3 Dec 19 12:46 /dev/dsp0.0
crw-rw-rw-  1 root  wheel   30, 0x00010003 Dec 18 14:37 /dev/dsp0.1
crw-rw-rw-  1 root  wheel   30, 0x00020003 Dec 18 14:37 /dev/dsp0.2
crw-rw-rw-  1 root  wheel   30, 0x00030003 Dec 18 14:37 /dev/dsp0.3
lrwxrwxrwx  1 root  wheel 5 Dec 18 14:37 /dev/dspW - dspW0
lrwxrwxrwx  1 root  wheel 7 Dec 18 14:37 /dev/dspW0 - dspW0.0
crw-rw-rw-  1 root  wheel   30,   5 Dec 18 14:37 /dev/dspW0.0
crw-rw-rw-  1 root  wheel   30, 0x00010005 Dec 18 14:37 /dev/dspW0.1
crw-rw-rw-  1 root  wheel   30, 0x00020005 Dec 18 14:37 /dev/dspW0.2
crw-rw-rw-  1 root  wheel   30, 0x00030005 Dec 18 14:37 /dev/dspW0.3
crw-rw-rw-  1 root  wheel   30,   2 Dec 18 14:37 /dev/midi0
lrwxrwxrwx  1 root  wheel 6 Dec 18 14:37 /dev/mixer - mixer0
crw-rw-rw-  1 root  wheel   30,   0 Dec 18 14:37 /dev/mixer0
lrwxrwxrwx  1 root  wheel 6 Dec 18 14:37 /dev/music - music0
crw-rw-rw-  1 root  wheel   30,   8 Dec 18 14:37 /dev/music0
lrwxrwxrwx  1 root  wheel 4 Dec 18 14:37 /dev/pss - pss0
crw-rw-rw-  1 root  wheel   30,   9 Dec 18 14:37 /dev/pss0
lrwxrwxrwx  1 root  wheel10 Dec 18 14:37 /dev/sequencer - sequencer0
crw-rw-rw-  1 root  wheel   30,   1 Dec 18 14:37 /dev/sequencer0
aot%

this soundcard works okay with linux 2.2.20, so this shouldn't be
a hardware problem.  i didn't have problems with FreeBSD 4.3
either.  here's the whole dmesg output in case it might be
`interesting':

aot% dmesg
Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 4.7-RELEASE #0: Wed Oct  9 15:08:34 GMT 2002
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
Timecounter i8254  frequency 1193182 Hz
CPU: Pentium II/Pentium II Xeon/Celeron (434.32-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0x665  Stepping = 5
  
Features=0x183f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
real memory  = 134205440 (131060K bytes)
config di sn0
config di lnc0
config di ie0
config di fe0
config di ed0
config di cs0
config di bt0
config di aic0
config di aha0
config di adv0
config q
avail memory = 125296640 (122360K bytes)
Preloaded elf kernel kernel at 0xc052e000.
Preloaded userconfig_script /boot/kernel.conf at 0xc052e09c.
Preloaded elf module snd_es137x.ko at 0xc052e0ec.
Preloaded elf module snd_pcm.ko at 0xc052e190.
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 6 entries at 0xc00f0b60
npx0: math processor on motherboard
npx0: INT 16 interface
pcib0: Host to PCI bridge on motherboard
pci0: PCI bus on pcib0
pcib1: VIA 82C598MVP (Apollo 

cannot connect to an ISP with ppp

2002-12-19 Thread Juha Erkkila
hello again,

i installed FreeBSD 4.7, and it seems i can't get a ppp connection
to my ISP to work.  i didn't have this problem with FreeBSD 4.3,
(and don't have in linux), so i guess i must have done something
differently this time :-/  here's some info on my configuration:

aot# hostname
aot

aot# cat /etc/hosts
127.0.0.1   localhost

aot# cat /etc/resolv.conf
cat: /etc/resolv.conf: No such file or directory

aot# ifconfig
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff00
ppp0: flags=8010POINTOPOINT,MULTICAST mtu 1500
sl0: flags=c010POINTOPOINT,LINK2,MULTICAST mtu 552
faith0: flags=8002BROADCAST,MULTICAST mtu 1500
tun0: flags=8010POINTOPOINT,MULTICAST mtu 1500

aot# cat /etc/ppp/ppp.conf
#
# PPP  Sample Configuration File
# Originally written by Toshiharu OHNO
# Simplified 5/14/1999 by [EMAIL PROTECTED]
#
# See /usr/share/examples/ppp/ for some examples
#
# $FreeBSD: src/etc/ppp/ppp.conf,v 1.2.2.5 2001/07/13 10:55:23 brian Exp $
#

default:
 #set log Phase Chat LCP IPCP CCP tun command
 set log All -debug -timer
 ident user-ppp VERSION (built COMPILATIONDATE)

 # Ensure that device references the correct serial port
 # for your modem. (cuaa0 = COM1, cuaa1 = COM2)
 #
 set device /dev/cuaa1

 set speed 115200
 set dial ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
   \\ AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT
 set timeout 180# 3 minute idle timer (the default)
 enable dns # request DNS info (for resolv.conf)

papchap:
 #
 # edit the next three lines and replace the items in caps with
 # the values which have been assigned by your ISP.
 #

 #set phone PHONE_NUM
 #set authname USERNAME
 #set authkey PASSWORD

 set phone 2609002
 set authname erkkila
 set authkey ***!
# authkey censored here, contains `!', shouldn't be relevant?
# (that is, sent as it is, not interpreted?)

 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 add default HISADDR# Add a (sticky) default route

install:
 set speed 115200
 set device /dev/cuaa1
 set ifaddr 0 0 255.255.255.0 0.0.0.0
 add! default HISADDR
 set timeout 0
 enable dns
 set log local phase
 set dial ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \\ AT OK-AT-OK ATE1Q0 OK \\
dATDT\\T TIMEOUT 40 CONNECT
 set login
 set authname erkkila
 set authkey ***!
 set phone 2609002

aot# cat /etc/ppp/ppp.linkup
MYADDR:
 delete ALL
 add 0 0 HISADDR

aot# cat /etc/ppp/ppp.secret
aot#

then some logs (from /var/log/ppp.log):

Dec 19 13:58:58 aot ppp[317]: Phase: Using interface: tun0 
Dec 19 13:58:58 aot ppp[317]: Phase: deflink: Created in closed state 
Dec 19 13:58:58 aot ppp[317]: tun0: Command: default: ident user-ppp VERSION (built 
COMPILATIONDATE) 
Dec 19 13:58:58 aot ppp[317]: tun0: Command: default: set device /dev/cuaa1 
Dec 19 13:58:58 aot ppp[317]: tun0: Command: default: set speed 115200 
Dec 19 13:58:58 aot ppp[317]: tun0: Command: default: set dial ABORT BUSY ABORT 
NO\sCARRIER TIMEOUT 5 AT OK-AT-OK ATE1Q0 OK \dATDT\T TIMEOUT 40 CONNECT 
Dec 19 13:58:58 aot ppp[317]: tun0: Command: default: set timeout 180 
Dec 19 13:58:58 aot ppp[317]: tun0: Command: default: enable dns 
Dec 19 13:58:58 aot ppp[317]: tun0: Phase: PPP Started (interactive mode). 
Dec 19 13:59:06 aot ppp[317]: tun0: Command: /dev/tty: dial papchap 
Dec 19 13:59:06 aot ppp[317]: tun0: ID0: 0x28253be0 = fopen(/etc/ppp/ppp.conf, r) 
Dec 19 13:59:06 aot last message repeated 2 times
Dec 19 13:59:06 aot ppp[317]: tun0: Command: papchap: set phone 2609002 
Dec 19 13:59:06 aot ppp[317]: tun0: Command: papchap: set authname erkkila 
Dec 19 13:59:06 aot ppp[317]: tun0: Command: papchap: set authkey  
Dec 19 13:59:06 aot ppp[317]: tun0: Command: papchap: set ifaddr 10.0.0.1/0 10.0.0.2/0 
255.255.255.0 0.0.0.0 
Dec 19 13:59:06 aot ppp[317]: tun0: Command: papchap: add default HISADDR 
Dec 19 13:59:06 aot ppp[317]: tun0: ID0: 3 = socket(17, 3, 0) 
Dec 19 13:59:06 aot ppp[317]: tun0: ID0: -1 = write(3, data, 140) 
Dec 19 13:59:06 aot ppp[317]: tun0: TCP/IP: rt_Set failure: 
Dec 19 13:59:06 aot ppp[317]: tun0: TCP/IP: rt_Set:  Cmd = Add 
Dec 19 13:59:06 aot ppp[317]: tun0: TCP/IP: rt_Set:  Dst = 0.0.0.0/0 
Dec 19 13:59:06 aot ppp[317]: tun0: TCP/IP: rt_Set:  Gateway = 10.0.0.2 
Dec 19 13:59:06 aot ppp[317]: tun0: Phase: bundle: Establish 
Dec 19 13:59:06 aot ppp[317]: tun0: Phase: deflink: closed - opening 
Dec 19 13:59:06 aot ppp[317]: tun0: ID0: 0 = uu_lock(cuaa1) 
Dec 19 13:59:06 aot ppp[317]: tun0: ID0: 2 = open(/dev/cuaa1, 6) 
Dec 19 13:59:06 aot ppp[317]: tun0: ID0: 0x28253be0 = fopen(/var/run/cuaa1.if, w) 
Dec 19 13:59:06 aot ppp[317]: tun0: Phase: deflink: Connected! 
Dec 19 13:59:06 aot ppp[317]: tun0: Phase: 

how to configure sendmail to send mail locally?

2002-12-19 Thread Juha Erkkila
it seems i can't send mail to anyone locally.  shouldn't
sendmail do this?

aot% date
Thu Dec 19 14:46:26 EET 2002
aot% mail -s test je@localhost
i think this should work, but it doesn't.  no mail for me!
EOT
aot% mail
No mail for je
aot% su
Password:
aot# mailq -Ac
/var/spool/clientmqueue (3 requests)
-Q-ID- --Size-- -Q-Time- Sender/Recipient---
gBJCkgen000436   59 Thu Dec 19 14:46 je
 (Deferred: Name server: [localhost]: host name lookup failure)
 je@localhost
gBJA1bKs84 1438 Thu Dec 19 12:01 MAILER-DAEMON
 (Deferred: Name server: [localhost]: host name lookup failure)
 root
gBIMULUH000260  108 Thu Dec 19 00:30 root
 (Deferred: Name server: [localhost]: host name lookup failure)
 elina
Total requests: 3
aot# exit
aot%

localhost should resolve somehow anyway, as i can ping it:

aot# ping localhost
PING localhost (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.104 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.078 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.072 ms
^C
--- localhost ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.072/0.085/0.104/0.014 ms

i haven't touched sendmail configuration in /etc/mail.  should i?
here's some general confuration info:

aot# cat /etc/host.conf
# $FreeBSD: src/etc/host.conf,v 1.6 1999/08/27 23:23:41 peter Exp $
# First try the /etc/hosts file
hosts
# Now try the nameserver next.
bind
# If you have YP/NIS configured, uncomment the next line
# nis

aot# cat /etc/hosts
127.0.0.1   localhost

aot# cat /etc/resolv.conf
cat: /etc/resolv.conf: No such file or directory

aot# grep sendmail /etc/rc.conf
sendmail_enable=YES

aot# top -b | grep sendmail
   79 root   2   0  2780K  2188K select   0:00  0.00%  0.00% sendmail
   82 smmsp 18   0  2660K  2180K pause0:00  0.00%  0.00% sendmail

aot# cat /var/spool/clientmqueue/sm-client.pid
82
/usr/sbin/sendmail -L sm-msp-queue -Ac -q30m

aot# netstat -a | grep tcp4
tcp4   0  0  *.submission   *.*LISTEN
tcp4   0  0  *.smtp *.*LISTEN

i don't run any DNS server, and don't want to run one (at least
not quite yet)

any pointers on how this could be resolved?  exim does this in
the default configuration, why not sendmail?

Juha

-- 
People must not do things for fun.  We are not here for fun.  There is
no reference to fun in any Act of Parliament.
 -- A P Herbert, Uncommon Law

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



RE: Installing apache+ssl / frontpage / php

2002-12-19 Thread John Straiton
Search the mailing list. It was just last week that I was running a
thread on this.

I couldn't find a way to get mod_frontpage hacked into my existing
setup. I tried several times. Even going so far as to deinstall
everything, then rm -r the directories, then reinstalling and only
copying over my virtualhost section of the httpd.conf

However, by doing a fresh install to 4.7, then compiling (in my case)
www/apache13-modssl (as opposed to -ssl), www/mod_php4,
www/mod_frontpage, and finally www/frontpage, then running
/usr/local/frontpage/version5.0/fp_install.sh I got this to work out of
box first try.

RTR hasn't felt the need to keep the mod_frontpage apache patch up to
date it would seem, but some adventurous folk have been kind enough to
put one together that doesn't use the old patch method.

Hope this helps,
John Straiton
[EMAIL PROTECTED]
Clickcom, Inc
704-365-9970x101 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]] On Behalf Of Andrew Nelson
 Sent: Thursday, December 19, 2002 2:10 AM
 To: [EMAIL PROTECTED]
 Subject: Installing apache+ssl / frontpage / php
 
 
 Hi,
 
 I wonder if anyone has this combination installed?
 I'm having a great deal of trouble getting SSL on
 with apache_fp..  I can install apache_fp, or
 apache_modssl, but can't put the missing mod on
 afterwards..  The only docs I can find are for much
 older version..
 
 Is there anyone who's done that and can tell me
 the secret?
 
 thanks,
 Andrew.
 
 _
 Tired of spam? Get advanced junk mail protection with MSN 8. 
 http://join.msn.com/?page=features/junkmail
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-isp in the body of the message
 
 



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



RE: Installing apache+ssl / frontpage / php

2002-12-19 Thread Jack L. Stone
At 09:28 AM 12.19.2002 -0500, John Straiton wrote:
Search the mailing list. It was just last week that I was running a
thread on this.

I couldn't find a way to get mod_frontpage hacked into my existing
setup. I tried several times. Even going so far as to deinstall
everything, then rm -r the directories, then reinstalling and only
copying over my virtualhost section of the httpd.conf

However, by doing a fresh install to 4.7, then compiling (in my case)
www/apache13-modssl (as opposed to -ssl), www/mod_php4,
www/mod_frontpage, and finally www/frontpage, then running
/usr/local/frontpage/version5.0/fp_install.sh I got this to work out of
box first try.

RTR hasn't felt the need to keep the mod_frontpage apache patch up to
date it would seem, but some adventurous folk have been kind enough to
put one together that doesn't use the old patch method.

Hope this helps,
John Straiton

Hello, John -- glad you got it going. Sounds like the procedure I
suggested, except perhaps php4, which I usually install last.

Best regards,
Jack L. Stone,
Administrator

SageOne Net
http://www.sage-one.net
[EMAIL PROTECTED]

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



Re: Exporting a variable on login

2002-12-19 Thread Patrick Holahan
Hey Barry,

  Hi guys  gals..
 
  I'm trying to get cvs to work on my BSD 4.6-RELEASE system.. and
  I'd like to
  make it easier to use for the clients loggin on.
  So what I'd like to do is set the CVSROOT variable to /usr/local/cvsroot
 
  However, when I try set this in .profile like so:
 
  CVSROOT=/usr/local/cvsroot; export CVSROOT
  It doesn't work
 

 Patrick:

 Try:

 /etc/profile  for sh-like shells (bash, sh, ksh)
 /etc/csh.login for csh-like shells (csh, tcsh)

Thanks very much.. This worked perfectly (:

-ph


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



Re: Exporting a variable on login

2002-12-19 Thread Matthew Seaman
On Thu, Dec 19, 2002 at 05:17:37PM +0200, Patrick Holahan wrote:
 Hey Barry,
 
   Hi guys  gals..
  
   I'm trying to get cvs to work on my BSD 4.6-RELEASE system.. and
   I'd like to
   make it easier to use for the clients loggin on.
   So what I'd like to do is set the CVSROOT variable to /usr/local/cvsroot
  
   However, when I try set this in .profile like so:
  
   CVSROOT=/usr/local/cvsroot; export CVSROOT
   It doesn't work
  
 
  Patrick:
 
  Try:
 
  /etc/profile  for sh-like shells (bash, sh, ksh)
  /etc/csh.login for csh-like shells (csh, tcsh)
 
 Thanks very much.. This worked perfectly (:

Alternatively try /etc/login.conf -- one change for all shells...

default:\
:passwd_format=md5:\
:copyright=/etc/COPYRIGHT:\
:welcome=/etc/motd:\

:setenv=MAIL=/var/mail/$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES,CVSROOT=/usr/local/cvs:\

and don't forget to 'cap_mkdb /etc/login.conf' after editing the file...

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: Drive Failure

2002-12-19 Thread Noah Garrett Wallach
  I dont know what this option means - does this matter?
 
   -B  Install the `boot0' boot manager.  This option causes MBR
  code to
   be replaced, without affecting the embedded slice table.

 Sounds like just what you said you wanted.



Hi Jerry,

What does without affecting the embedded slice table mean?  What si the
embedded slice table?  And should I make sure that I dont affect it - or
should I affect it?

also is there anyway to see that, after replacing the MBR on the new
drive with boot0cfg, that it is properly bootable?

- noah


 By the way, I notice that you have quit CC-ing the questions list.
 You should keep that in so it gets in archives and so I don't become
 the sole counselor - which you don't want, for sure!

 jerry

 
  - Noah
 
 
  
   jerry
  
*** Working on device /dev/ad2 ***
parameters extracted from in-core disklabel are:
cylinders=148945 heads=16 sectors/track=63 (1008 blks/cyl)
   
Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=148945 heads=16 sectors/track=63 (1008 blks/cyl)
   
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165,(FreeBSD/NetBSD/386BSD)
start 63, size 150136497 (73308 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 464/ head 15/ sector 63
The data for partition 2 is:
UNUSED
The data for partition 3 is:
UNUSED
The data for partition 4 is:
UNUSED
   
   
   
  
 
 


 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: Drive Failure

2002-12-19 Thread Jerry McAllister
 
   I dont know what this option means - does this matter?
  
-B  Install the `boot0' boot manager.  This option causes MBR
   code to
be replaced, without affecting the embedded slice table.
 
  Sounds like just what you said you wanted.
 
 
 
 Hi Jerry,
 
 What does without affecting the embedded slice table mean?  What si the
 embedded slice table?  And should I make sure that I dont affect it - or
 should I affect it?

It is the table that specifies the drives slices - 1-4,
what it thinks is in them and a flag which says which one is
active - to booted from.  It is what gets printed when you
dofdisk -s ad2 or whatever drive.

 also is there anyway to see that, after replacing the MBR on the new
 drive with boot0cfg, that it is properly bootable?

The above will tell you which slice is bootable, which in this case
would only be slice 1 since you are only making one slice.  The other
possible slice identifiers (2-4) are not being used.  But, it can't
tell you if it is proper.  Only trying to boot it will tell you that.
So, do a little smoke testing.   Jump.  Dive in.   

If you are doing all this without backing things up, you're
courting disaster anyway.

jerry

 
 - noah
 
 
  By the way, I notice that you have quit CC-ing the questions list.
  You should keep that in so it gets in archives and so I don't become
  the sole counselor - which you don't want, for sure!
 
  jerry
 
  
   - Noah
  
  
   
jerry
   
 *** Working on device /dev/ad2 ***
 parameters extracted from in-core disklabel are:
 cylinders=148945 heads=16 sectors/track=63 (1008 blks/cyl)

 Figures below won't work with BIOS for partitions not in cyl 1
 parameters to be used for BIOS calculations are:
 cylinders=148945 heads=16 sectors/track=63 (1008 blks/cyl)

 Media sector size is 512
 Warning: BIOS sector numbering starts with sector 1
 Information from DOS bootblock is:
 The data for partition 1 is:
 sysid 165,(FreeBSD/NetBSD/386BSD)
 start 63, size 150136497 (73308 Meg), flag 80 (active)
 beg: cyl 0/ head 1/ sector 1;
 end: cyl 464/ head 15/ sector 63
 The data for partition 2 is:
 UNUSED
 The data for partition 3 is:
 UNUSED
 The data for partition 4 is:
 UNUSED



   
  
  
 
 
  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



Problem with my startup script?

2002-12-19 Thread Adam Lofstedt
Hello wise ones,

I am trying to mount a windows share at boot with mount_smbfs.  Since I
have to use the noauto option in fstab (filesystems in fstab are mounted
before the network is initialized), I have created a startup script
(smbfsstartup.sh) and placed it in /usr/local/etc/rc.d:

case $1 in
start)
/sbin/mount /myshare
;;
stop)
#Maybe do something here...
;;
*)
;;
esac

This exact same script worked just fine on another machine.  When I
moved it to a different machine I get this message when my system boots
up:

Local Package Initialization : (skipping smbfsstartup.sh, not
executable).

I have modified my nsmb.conf files appropriately in both /etc and
/usr/local/etc.  Using mount at the command prompt works just fine.  I
am not sure why my startup script is not working on this machine, the
syntax looks fine to me.

As a clue, when I mount from the command line, I get the following
message:

netsmb_dev: loaded

Is this some kernel module that isn't getting loaded at boot time, and
causing the script to fail?  Any thoughts?

Thanks,
Adam Lofstedt






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



RE: Problem with my startup script?

2002-12-19 Thread Barry Byrne
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Adam Lofstedt

 I am trying to mount a windows share at boot with mount_smbfs.  Since I
 have to use the noauto option in fstab (filesystems in fstab are mounted
 before the network is initialized), I have created a startup script
 (smbfsstartup.sh) and placed it in /usr/local/etc/rc.d:

 Local Package Initialization : (skipping smbfsstartup.sh, not
 executable).

Is your script executable?

Try:

chown root:wheel /usr/local/etc/rc.d/smbfsstartup.sh
chmod 744 /usr/local/etc/rc.d/smbfsstartup.sh

 - Barry

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



Re: Problem with my startup script?

2002-12-19 Thread Matt Smith

On Thu, 2002-12-19 at 11:59, Adam Lofstedt wrote:
 Hello wise ones,
 
 I am trying to mount a windows share at boot with mount_smbfs.  Since I
 have to use the noauto option in fstab (filesystems in fstab are mounted
 before the network is initialized), I have created a startup script
 (smbfsstartup.sh) and placed it in /usr/local/etc/rc.d:
 
 case $1 in
 start)
 /sbin/mount /myshare
   ;;
 stop)
   #Maybe do something here...
   ;;
 *)
 ;;
 esac
 
 This exact same script worked just fine on another machine.  When I
 moved it to a different machine I get this message when my system boots
 up:
 
 Local Package Initialization : (skipping smbfsstartup.sh, not
 executable).
 
 I have modified my nsmb.conf files appropriately in both /etc and
 /usr/local/etc.  Using mount at the command prompt works just fine.  I
 am not sure why my startup script is not working on this machine, the
 syntax looks fine to me.
 
 As a clue, when I mount from the command line, I get the following
 message:
 
 netsmb_dev: loaded
 
 Is this some kernel module that isn't getting loaded at boot time, and
 causing the script to fail?  Any thoughts?
 
 Thanks,
 Adam Lofstedt
 
 
 
 
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message


Is your script executable?
chmod 755 /usr/local/etc/rc.d/smbfsstartup.sh


-matt

-- 
Matt Smith [EMAIL PROTECTED]


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



Re: DHCPD 3

2002-12-19 Thread Moti Levy
G D McKee wrote:


Hi

I have been running this for a while and I get the following error every
time I start dhcpd as below.  If I hit enter at the password if goes past
and dies.  If I kill it off at boot I can do a dhcpd and the server starts
up fine.  How can I resolve this - it is a pain when I reboot the box and
forget to manually start dhcpd!!!

greeneville# /usr/local/etc/rc.d/isc-dhcpd.sh start
ddns-update-style: not found
subnet: not found
option: not found
option: not found
option: not found
option: not found
option: not found
range: not found
Reminder - Do not use this program while logged in via telnet or rlogin.
Enter secret password:
ROOF LYE OF ARID SONG LEW
algorithm: not found
secret: not found
/usr/local/etc/rc.isc-dhcpd.conf: 39: Syntax error: } unexpected
greeneville#

Many thanks

Gordon



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


 

well
your dhcpd.conf had an error in it
probably you dont have a } on line 39 
post the file and we might have a more precise explantion



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



Re: Errors

2002-12-19 Thread mark nelson
I installed the last box the same way.
I selecte d preconfigured package even and I get the same error , my cd
works becasue I used it on the last machine too?
On Thu, 19 Dec 2002, Roman Neuhauser
wrote:

 Date: Thu, 19 Dec 2002 14:09:51 +0100
 From: Roman Neuhauser [EMAIL PROTECTED]
 To: mark nelson [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: Errors

 provide a better (more descriptive and specific) subject, please.
 you'll greatly improve your chances of getting a reply.

 # [EMAIL PROTECTED] / 2002-12-19 06:22:55 +:
  I am trying to install BSD 4.6(power pak retail version)
  I select the custom feature form the standard instalation menu  and select
  the options that I want and when it goes to load /bin it fails and says
  Unable to transfer the bin distribution from acd0c
  Do you want to try to retrieve it again?
  I say yes and it continues this error?

 Don't select an install procedure marked for experts if you can't
 handle it. :)

 If you chose the Standard installation, it'll walk you through the
 process.

 --
 If you cc me or remove the list(s) completely I'll most likely ignore
 your message.see http://www.eyrie.org./~eagle/faqs/questions.html


[EMAIL PROTECTED]


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



Re: Errors

2002-12-19 Thread Shane Kinney
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I think that I have seen problems like this before as well, unrelated to
the software.  Typiclly when something has not worked in the install, it
was due to faluty or broken hardware.  Is your system pretty old?  Maybe
the CDROM is flaky?

I have just tried different hardware then had sucess.  Hope that helps.

~Shane
pgp key: http://www.freebsdhackers.net/pgp

On Thu, 19 Dec 2002, mark nelson wrote:

 I installed the last box the same way.
 I selecte d preconfigured package even and I get the same error , my cd
 works becasue I used it on the last machine too?
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE+AgvptGSLUf7ussURAtpnAKCFRWbBmrv1tHUhjWnFk0UCCYBg0ACfWUEW
5BP07qfUSlQsyAB/u0tzKiI=
=Z1j/
-END PGP SIGNATURE-

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



Re: Errors

2002-12-19 Thread mark nelson
Thanks Shane I think you may be right, I am on a budget and am using the
original cd drive forma dell pentium 2, I will try a new drive and if
that doesnt fix it then I will try the secondary IDE channel then the
ide adapter if that still causes errors then I will just go buy th dual
pentium 3 board and cpus and start using scsi. Can you recomend a good
setup for me to build a nice server. I built a pretty good firewall
using a pentium 120, but I would like an internal server to hold win(x
files, and run NFS for my pentium233 that I use a s my burning station
and general use console.

Any help would be great!

thank you

mark
On Thu, 19 Dec 2002, Shane Kinney wrote:

 Date: Thu, 19 Dec 2002 12:11:50 -0600 (CST)
 From: Shane Kinney [EMAIL PROTECTED]
 To: mark nelson [EMAIL PROTECTED]
 Cc: Roman Neuhauser [EMAIL PROTECTED],
   [EMAIL PROTECTED]
 Subject: Re: Errors

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 I think that I have seen problems like this before as well, unrelated to
 the software.  Typiclly when something has not worked in the install, it
 was due to faluty or broken hardware.  Is your system pretty old?  Maybe
 the CDROM is flaky?

 I have just tried different hardware then had sucess.  Hope that helps.

 ~Shane
 pgp key: http://www.freebsdhackers.net/pgp

 On Thu, 19 Dec 2002, mark nelson wrote:

  I installed the last box the same way.
  I selecte d preconfigured package even and I get the same error , my cd
  works becasue I used it on the last machine too?
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.0.6 (FreeBSD)
 Comment: For info see http://www.gnupg.org

 iD8DBQE+AgvptGSLUf7ussURAtpnAKCFRWbBmrv1tHUhjWnFk0UCCYBg0ACfWUEW
 5BP07qfUSlQsyAB/u0tzKiI=
 =Z1j/
 -END PGP SIGNATURE-


[EMAIL PROTECTED]


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



Re: DHCPD 3

2002-12-19 Thread G D McKee
Hi

My dhcpd config file is as follows:

greeneville# vi /usr/local/etc/dhcpd.conf

# $FreeBSD: ports/net/isc-dhcp3/files/rc.isc-dhcpd.conf.sample,v 1.1
2001/10/15 13:33:15 roam Exp $
#
# isc-dhcpd startup configuration file.
#

dhcpd_options=;   # command option(s)
dhcpd_ifaces=dc0; # ethernet interface(s)

ddns-update-style interim;

#failover peer gdm {
#primary;
#address greeneville.gdmckee.local;
#port 519;
#peer address kursk.gdmckee.local;
#peer port 520;
#max-response-delay 60;
#max-unacked-updates 10;
#mclt 3600;
#split 128;
#load balance max seconds 3;
#}

subnet 192.168.0.0 netmask 255.255.255.0 {
option domain-name gdmckee.local;
option domain-name-servers 192.168.0.1, 192.168.0.2;
option broadcast-address 192.168.0.255;
option subnet-mask 255.255.255.0;
option routers 192.168.0.1;

#pool {
#failover peer gdm ;
#deny dynamic bootp clients ;
range 192.168.0.55 192.168.0.200;

key DHCP_UPDATER {
algorithm HMAC-MD5.SIG-ALG.REG.INT;
secret pRP5FapFoJ95JEL06sv4PQ==;
}


zone gdmckee.local. {
primary 192.168.0.1;
key DHCP_UPDATER;
}

zone 0.168.192.in-addr.arpa. {
primary 192.168.0.1;
key DHCP_UPDATER;
}

#host diskless {
#   hardware ethernet 00:B0:D0:23:4F:E8;
#   fixed-address 192.168.0.50;
#   filename /tftpboot/disklesskernel;
#   option root-path 192.168.0.2:/usr/diskless/rootfs;
#}
#}
}

subnet 62.30.209.0 netmask 255.255.255.0 {
}

Trust this helps!!

Many thanks once again.

Gordon
- Original Message -
From: Moti Levy [EMAIL PROTECTED]
To: G D McKee [EMAIL PROTECTED]
Cc: Freebsd-Questions@Freebsd. Org (E-mail)
[EMAIL PROTECTED]
Sent: Thursday, December 19, 2002 5:34 PM
Subject: Re: DHCPD 3


 G D McKee wrote:

 Hi
 
 I have been running this for a while and I get the following error every
 time I start dhcpd as below.  If I hit enter at the password if goes past
 and dies.  If I kill it off at boot I can do a dhcpd and the server
starts
 up fine.  How can I resolve this - it is a pain when I reboot the box and
 forget to manually start dhcpd!!!
 
 greeneville# /usr/local/etc/rc.d/isc-dhcpd.sh start
 ddns-update-style: not found
 subnet: not found
 option: not found
 option: not found
 option: not found
 option: not found
 option: not found
 range: not found
 Reminder - Do not use this program while logged in via telnet or rlogin.
 Enter secret password:
 ROOF LYE OF ARID SONG LEW
 algorithm: not found
 secret: not found
 /usr/local/etc/rc.isc-dhcpd.conf: 39: Syntax error: } unexpected
 greeneville#
 
 Many thanks
 
 Gordon
 
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
 
 
 
 
 well
 your dhcpd.conf had an error in it
 probably you dont have a } on line 39 
 post the file and we might have a more precise explantion






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



Re: DHCPD 3

2002-12-19 Thread Moti Levy
this should do it :
# $FreeBSD: ports/net/isc-dhcp3/files/rc.isc-dhcpd.conf.sample,v 1.1
2001/10/15 13:33:15 roam Exp $
#
# isc-dhcpd startup configuration file.
#

dhcpd_options=;   # command option(s)
dhcpd_ifaces=dc0; # ethernet interface(s)

ddns-update-style interim;

#failover peer gdm {
#primary;
#address greeneville.gdmckee.local;
#port 519;
#peer address kursk.gdmckee.local;
#peer port 520;
#max-response-delay 60;
#max-unacked-updates 10;
#mclt 3600;
#split 128;
#load balance max seconds 3;
#}

subnet 192.168.0.0 netmask 255.255.255.0 {
option domain-name gdmckee.local;
option domain-name-servers 192.168.0.1, 192.168.0.2;
option broadcast-address 192.168.0.255;
option subnet-mask 255.255.255.0;
option routers 192.168.0.1;
range 192.168.0.55 192.168.0.200;
  }

#pool {
#failover peer gdm ;
#deny dynamic bootp clients ;
 

key DHCP_UPDATER {
   algorithm HMAC-MD5.SIG-ALG.REG.INT;
secret pRP5FapFoJ95JEL06sv4PQ==;
}


zone gdmckee.local. {
primary 192.168.0.1;
key DHCP_UPDATER;
}

zone 0.168.192.in-addr.arpa. {
primary 192.168.0.1;
key DHCP_UPDATER;
}

#host diskless {
#   hardware ethernet 00:B0:D0:23:4F:E8;
#   fixed-address 192.168.0.50;
#   filename /tftpboot/disklesskernel;
#   option root-path 192.168.0.2:/usr/diskless/rootfs;
#}
#}






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



Re: Slow network - ed driver, Realtek 8029

2002-12-19 Thread BigBrother (BigB3)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



I'm having a problem with slow transfers to my FreeBSD 4.7-RELEASE box
using a D-Link 528CT
(Realtek 8029 chipset). When I try to upload files to this machine from a
windowsXP box, I only
get about 30KB/s on the 10BaseT cat 5 network. This identical machine
previously was able to
receive transfers of 1000KB/s when it was running under windows 98. I'm
only getting 3% of the
windows receive performance.

My best guess is that this is a driver issue. I had possibly similar
problem with the same card under
win98. The issue was if you set the driver to full duplex when the card
hardware was not setup for
full duplex (it is capable of full duplex, but you need to tell the
hardware in some way), the transfer
rate would be ridiculously slow. I'm guessing this is a similar problem,
however, ifconfig shows:


I also have the same problem with this network card. For some strange
reason when something is uploaded to the freebsd machine, the speed is
very ridiculous [4~5 KBytes/sec] but when I download from it I have 
500KBytes/sec

How can somebody change the SIMPLEX on the ifconfig? If I change to half
duplex the speed, will it be better for uploads to the box?

And by the way I think SIMPLEX is anotehr word for UNICAST

I am planning to buy another network card to achieve better performance...

Regards,

BigB


- ---
We are being monitored..but there is a solution...
Use PGP for signing and encrypting emails
Download my public key at http://www.us.pgp.net
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+AepAGe/V3CxAyHoRApZ8AJ9uhSfGNanBHjxcmJWaHGb5aokfhQCfYPKK
BREklo/y498pQsh0P0u/hlE=
=X4lS
-END PGP SIGNATURE-

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



Re: maxusers and random system freezes

2002-12-19 Thread Varshavchick Alexander
Hi,

Despite the increased KVA space (2G now) and the perfect patch of the
pthreads mechanism made by David, the server's lock-ups persist.
Comparing this server's vmstat output with some other's which doesn't have
the similar problem, I noticed that the FFS node value seems to be
abnormally high - 75113K from 102400K possible. What becomes with the
system if this value bumps even closer to the limit, and how it can be put
into place?

And more of it: which other parameters must be examined first? If I'll
send the output of vmstat -z and vmstat -m will you look at it please?

Thanks a lot, regards


Alexander Varshavchick, Metrocom Joint Stock Company
Phone: (812)118-3322, 118-3115(fax)

On Mon, 9 Dec 2002, Dmitry Morozovsky wrote:

 Date: Mon, 9 Dec 2002 22:32:04 +0300 (MSK)
 From: Dmitry Morozovsky [EMAIL PROTECTED]
 To: Varshavchick Alexander [EMAIL PROTECTED]
 Cc: David Schultz [EMAIL PROTECTED],
  Terry Lambert [EMAIL PROTECTED],
   [EMAIL PROTECTED],  [EMAIL PROTECTED]
 Subject: Re: maxusers and random system freezes

 On Mon, 9 Dec 2002, Varshavchick Alexander wrote:

 VA the server went to a swap, because it occurs practically instantly, and
 VA this state goes for hours. The system is lacking some resources, or may be
 VA a bug somewhere, can you give any hints to it?

 Hmm, what about logging vmstat/pstat/netstat -m/sysctl vm ? Possibly to remote
 machine via remote syslog?

 Sincerely,
 D.Marck   [DM5020, DM268-RIPE, DM3-RIPN]
 
 *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- [EMAIL PROTECTED] ***
 




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



Re: maxusers and random system freezes

2002-12-19 Thread Varshavchick Alexander
There seems to be archive posts already on the subject, the most
informative of them is here:
http://www.freebsd.org/cgi/getmsg.cgi?fetch=1093170+1102546+/usr/local/www/db/text/2001/freebsd-stable/20010923.freebsd-stable

Did this issue got solved somehow? More specifically, how the size of the
FFS node malloc area can be increased?


Alexander Varshavchick, Metrocom Joint Stock Company
Phone: (812)118-3322, 118-3115(fax)

On Thu, 19 Dec 2002, Varshavchick Alexander wrote:

 Date: Thu, 19 Dec 2002 13:29:18 +0300 (MSK)
 From: Varshavchick Alexander [EMAIL PROTECTED]
 To: Dmitry Morozovsky [EMAIL PROTECTED]
 Cc: David Schultz [EMAIL PROTECTED],
  Terry Lambert [EMAIL PROTECTED], [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 Subject: Re: maxusers and random system freezes

 Hi,

 Despite the increased KVA space (2G now) and the perfect patch of the
 pthreads mechanism made by David, the server's lock-ups persist.
 Comparing this server's vmstat output with some other's which doesn't have
 the similar problem, I noticed that the FFS node value seems to be
 abnormally high - 75113K from 102400K possible. What becomes with the
 system if this value bumps even closer to the limit, and how it can be put
 into place?

 And more of it: which other parameters must be examined first? If I'll
 send the output of vmstat -z and vmstat -m will you look at it please?

 Thanks a lot, regards

 
 Alexander Varshavchick, Metrocom Joint Stock Company
 Phone: (812)118-3322, 118-3115(fax)

 On Mon, 9 Dec 2002, Dmitry Morozovsky wrote:

  Date: Mon, 9 Dec 2002 22:32:04 +0300 (MSK)
  From: Dmitry Morozovsky [EMAIL PROTECTED]
  To: Varshavchick Alexander [EMAIL PROTECTED]
  Cc: David Schultz [EMAIL PROTECTED],
   Terry Lambert [EMAIL PROTECTED],
[EMAIL PROTECTED],  [EMAIL PROTECTED]
  Subject: Re: maxusers and random system freezes
 
  On Mon, 9 Dec 2002, Varshavchick Alexander wrote:
 
  VA the server went to a swap, because it occurs practically instantly, and
  VA this state goes for hours. The system is lacking some resources, or may be
  VA a bug somewhere, can you give any hints to it?
 
  Hmm, what about logging vmstat/pstat/netstat -m/sysctl vm ? Possibly to remote
  machine via remote syslog?
 
  Sincerely,
  D.Marck   [DM5020, DM268-RIPE, DM3-RIPN]
  
  *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- [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



NFS Privileged port?

2002-12-19 Thread Ryan Sommers
I'm attempting to mount an NFS share between a commputer and a virtual
machine running on another computer on the network (with vmware). The
trouble is the vm is running over briged networking with the NAT in
vmware. I think this is causing the problem where I am seeing 

Dec 19 12:14:02 lobo mountd[132]: mount request from  from
unprivileged port

in syslog on the server. 

I attempted adding nfs_reserved_port_only=NO and nfs_privport=NO to
rc.conf and I checked the vfs.nfs.nfs_privport sysctl to make sure it
was 0 but I still can't mount the NFS export. What else do I need to do
to make NFS allow this unprivileged port mount?

Ryan

-- 
Ryan leadZERO Sommers
[EMAIL PROTECTED]
ICQ: 1019590   AIM/MSN: leadZERO




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



Re: NFS Privileged port?

2002-12-19 Thread Ryan Sommers
I mean nfs_privport=YES and vfs.nfs.nfs_privport=1


On Thu, 2002-12-19 at 12:30, Ryan Sommers wrote:
 I'm attempting to mount an NFS share between a commputer and a virtual
 machine running on another computer on the network (with vmware). The
 trouble is the vm is running over briged networking with the NAT in
 vmware. I think this is causing the problem where I am seeing 
 
 Dec 19 12:14:02 lobo mountd[132]: mount request from  from
 unprivileged port
 
 in syslog on the server. 
 
 I attempted adding nfs_reserved_port_only=NO and nfs_privport=NO to
 rc.conf and I checked the vfs.nfs.nfs_privport sysctl to make sure it
 was 0 but I still can't mount the NFS export. What else do I need to do
 to make NFS allow this unprivileged port mount?
 
 Ryan
-- 
Ryan leadZERO Sommers
[EMAIL PROTECTED]
ICQ: 1019590   AIM/MSN: leadZERO




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



Re: Dedicated Mail Server

2002-12-19 Thread Fernando Gleiser
On Thu, 19 Dec 2002, Dennis Mathiasen wrote:

 I'm looking at setting up a dedicated mail server with lots
 of virtual domains and users.

 It's looking like qmail + vpopmail might work ok.  Does
 anyone have experience using these in a heavy load
 environment with good / bad results?

Define lots and heavy load. I had a good experience with sendmail+cyrus
in a +3000 account server.



Fer



 Dennis Mathiasen
 [EMAIL PROTECTED]
 -
 Deerfield Hosting - High volume hosting
 http://www.deerfieldhosting.com?ref=sig
 -



 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: Dedicated Mail Server

2002-12-19 Thread Robert Covell
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Fernando
 Gleiser
 Sent: Thursday, December 19, 2002 2:04 PM
 To: Dennis Mathiasen
 Cc: [EMAIL PROTECTED]
 Subject: Re: Dedicated Mail Server
 
 
 On Thu, 19 Dec 2002, Dennis Mathiasen wrote:
 
  I'm looking at setting up a dedicated mail server with lots
  of virtual domains and users.
 
  It's looking like qmail + vpopmail might work ok.  Does
  anyone have experience using these in a heavy load
  environment with good / bad results?
 
 Define lots and heavy load. I had a good experience with 
 sendmail+cyrus
 in a +3000 account server.
 
 
 
   Fer
 
 
 
  Dennis Mathiasen
  [EMAIL PROTECTED]
  -
  Deerfield Hosting - High volume hosting
  http://www.deerfieldhosting.com?ref=sig
  -
 
 
 
  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
 

I'll second the cyrus solutions...

-Bob

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



Re: Are these IPF - IPFW protocols equivalent?

2002-12-19 Thread Gary D Kline
On Thu, Dec 19, 2002 at 10:35:42PM +1030, Rob wrote:
 
 I've only used ipfw for a little while, but there's a few things I can 
 suggest here.
 
 * A good diagnostic for your rules is
 
   ipfw list
 
   Run this after adding a list of rules, and it shows you how they were
   translated by ipfw. It also shows the default rule (number 65535)
   which will be allow any or deny any, depending on your kernel options.
 
 * You don't need to supply a number after 'add' - the ipfw command will
   number them for you. I'm not sure what happens if you give different
   rules the same number, but it probably isn't useful.
 
 * Since you're allowing all out #1 and all in #4, you can combine these
   rules as
 
   add allow tcp from any to any via dc0 keep-state
 
   with the same effect.
 
 * Likewise with #2 and #5, they can be combined as
 
   add allow icmp from any to any via dc0 keep-state
 
 * Likewise with #7 and #8.


This is very helpful, thanks.  I didn't know 
if the in/out rules had to be specified, 
even if it were redundant... .  As a first-cut,
i'm testing everything on one of my internal 
servers...  So far, looks promising.  --Famous
last words:?)



 
 * The keep-state option allows you set up two-way traffic based on a
   one-way rule. I think it's mainly designed for UDP (where there's no
   established connection to allow) but it should work for ICMP as well.
 
   However, since you're already allowing traffic both ways (in  out) it
   isn't necessary in this case.
 
 * If your default rule is deny all, you don't need #3 and #6, because it
   will be denied anyway.


Makes sense.  This was what worked with ipf/ipf.rules;
I just ported it.


 
 * If you give a hostname to ipfw, it will resolve the address when
   adding the rule.
 
 * So you should be able to do the same thing with
 
   add allow tcp from any to any via dc0
   add allow icmp from any to any via dc0
   add allow ip from localhost to localhost via lo0
 
 As I said, I've only been using ipfw for a little while so wiser heads 
 may contradict some of this
 
 Best of luck :-)
 


The hostname brings up a question (involving sending mail
from outside using hidden/private servers).  I've been
wondering if ipfw will let me do the following:

sendmail is configured to send mail from outside to
   
   [EMAIL PROTECTED]

jqs is my test account on zen.thought.org.  Can I configure
ipfw on ns1.thought.org to recognize mail from outside to

   [EMAIL PROTECTED]

???  --Is there any way of testing this rule?  Anybody?

thanks muchly!

gary


 

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


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



Re: how to configure sendmail to send mail locally?

2002-12-19 Thread Gary D Kline
On Thu, Dec 19, 2002 at 03:50:15PM +0200, Juha Erkkila wrote:
 it seems i can't send mail to anyone locally.  shouldn't
 sendmail do this?
 



Do you have ^Cw localhost in sendmail.cf? If not, that may be
an issue.  (Remember to kill -HUP sendmail.pid before retrying.

gary


 aot% date
 Thu Dec 19 14:46:26 EET 2002
 aot% mail -s test je@localhost
 i think this should work, but it doesn't.  no mail for me!
 EOT
 aot% mail
 No mail for je
 aot% su
 Password:
 aot# mailq -Ac
 /var/spool/clientmqueue (3 requests)
 -Q-ID- --Size-- -Q-Time- Sender/Recipient---
 gBJCkgen000436   59 Thu Dec 19 14:46 je
  (Deferred: Name server: [localhost]: host name lookup failure)
  je@localhost
 gBJA1bKs84 1438 Thu Dec 19 12:01 MAILER-DAEMON
  (Deferred: Name server: [localhost]: host name lookup failure)
  root
 gBIMULUH000260  108 Thu Dec 19 00:30 root
  (Deferred: Name server: [localhost]: host name lookup failure)
  elina
 Total requests: 3
 aot# exit
 aot%
 
 localhost should resolve somehow anyway, as i can ping it:
 
 aot# ping localhost
 PING localhost (127.0.0.1): 56 data bytes
 64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.104 ms
 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.078 ms
 64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.072 ms
 ^C
 --- localhost ping statistics ---
 3 packets transmitted, 3 packets received, 0% packet loss
 round-trip min/avg/max/stddev = 0.072/0.085/0.104/0.014 ms
 
 i haven't touched sendmail configuration in /etc/mail.  should i?
 here's some general confuration info:
 
 aot# cat /etc/host.conf
 # $FreeBSD: src/etc/host.conf,v 1.6 1999/08/27 23:23:41 peter Exp $
 # First try the /etc/hosts file
 hosts
 # Now try the nameserver next.
 bind
 # If you have YP/NIS configured, uncomment the next line
 # nis
 
 aot# cat /etc/hosts
 127.0.0.1   localhost
 
 aot# cat /etc/resolv.conf
 cat: /etc/resolv.conf: No such file or directory
 
 aot# grep sendmail /etc/rc.conf
 sendmail_enable=YES
 
 aot# top -b | grep sendmail
79 root   2   0  2780K  2188K select   0:00  0.00%  0.00% sendmail
82 smmsp 18   0  2660K  2180K pause0:00  0.00%  0.00% sendmail
 
 aot# cat /var/spool/clientmqueue/sm-client.pid
 82
 /usr/sbin/sendmail -L sm-msp-queue -Ac -q30m
 
 aot# netstat -a | grep tcp4
 tcp4   0  0  *.submission   *.*LISTEN
 tcp4   0  0  *.smtp *.*LISTEN
 
 i don't run any DNS server, and don't want to run one (at least
 not quite yet)
 
 any pointers on how this could be resolved?  exim does this in
 the default configuration, why not sendmail?
 
 Juha
 
 -- 
 People must not do things for fun.  We are not here for fun.  There is
 no reference to fun in any Act of Parliament.
  -- A P Herbert, Uncommon Law
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message

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


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



Re: Problems with a C application that changes users and run 'screen -x'

2002-12-19 Thread Giorgos Keramidas
On 2002-12-19 02:50, Aaron Burke [EMAIL PROTECTED] wrote:
 I have an application that simply logs in as another user and runs
 screen -x. The problem I am having with the followin code is that
 the results of execution is a message from (I am guessing the shell)
 saying that I dont have access to the /dev/ttyp? where ? is the
 current virtual terminal that I am running on.

 Here is my application:

 #include stdlib.h
 int main(int argc, char* pszArgs[])
 {
 int result;
 result= system(/usr/bin/su ppp -m --login -c  
  /usr/local/bin/screen -x);
 return result;
 }

You are using the  operator in a very strange manner here.  It most
certainly doesn't work the way you might think it does.

You should also avoid using system, if possible.

 And here is the output:
 bash-2.05$ ./a.out

You're not running the executable as `root'.  Since you are not the
superuser, you do not have permissions to operate on the pseudo-tty
that login attempts to work with, and this is why you get the
following error message:

 Cannot open your terminal '/dev/ttyp0' - please check.

Three possibilities that you might wish to investigate further are:

1. Write a shell script that does the equivalent of the system() call
   you are using now.  This should be fairly easy and will work fine
   if you execute the script from a root shell.

2. Fix your program by removing the bad use of `'.

3. Avoid using system() which I vaguely recall being described with a
   lot of bad words in various places and use fork(), exec(), _exit(),
   waitpid() and exit() instead.

- Giorgos


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



Re: Problem with my startup script?

2002-12-19 Thread Giorgos Keramidas
On 2002-12-19 08:59, Adam Lofstedt [EMAIL PROTECTED] wrote:
 I am trying to mount a windows share at boot with mount_smbfs.  Since I
 have to use the noauto option in fstab (filesystems in fstab are mounted
 before the network is initialized), I have created a startup script
 (smbfsstartup.sh) and placed it in /usr/local/etc/rc.d:

 case $1 in
 start)
 /sbin/mount /myshare
   ;;
 stop)
   #Maybe do something here...
   ;;
 *)
 ;;
 esac

 This exact same script worked just fine on another machine.  When I
 moved it to a different machine I get this message when my system boots
 up:

 Local Package Initialization : (skipping smbfsstartup.sh, not
 executable).

Take a look at the permissions of the script file with ls(1).  The
message is very verbose already.  The file has a name that ends in
`.sh' but it is not executable, and this is why it's skipped.

Quick fix:

# chmod 0750 /usr/local/etc/rc.d/smbfsstartup.sh

- Giorgos



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



CVS process runaways

2002-12-19 Thread David Kelly
Using pserver in cvs for local software projects between multiple
FreeBSD machines. All of recent to most-recent -stable. Have noticed
the past 6 months a number of runaway CVS processes sucking 100% CPU
time if they could get it. Never knew how to create this situation
until recently.

cvs update on a remote machine with CVSROOT as something like
:pserver:[EMAIL PROTECTED]:/home/ncvs. Abort cvs with ^C before it
completes. The cvs process on 10.0.0.5 runs away. Altho it seems to
runaway sometimes when cvs update appears to run to completion
normally.

What, if anything, have we done wrong? If its not my screw up then
where is the right place to report this? Via send-pr to the FreeBSD
project, or to  CVS developers?


--
David Kelly N4HHE, [EMAIL PROTECTED]

Whom computers would destroy, they must first drive mad.

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



Re: Problem with my startup script?

2002-12-19 Thread Jack L. Stone
At 07:25 PM 12.19.2002 +0200, Giorgos Keramidas wrote:
On 2002-12-19 08:59, Adam Lofstedt [EMAIL PROTECTED] wrote:
 I am trying to mount a windows share at boot with mount_smbfs.  Since I
 have to use the noauto option in fstab (filesystems in fstab are mounted
 before the network is initialized), I have created a startup script
 (smbfsstartup.sh) and placed it in /usr/local/etc/rc.d:

 case $1 in
 start)
 /sbin/mount /myshare
  ;;
 stop)
  #Maybe do something here...
  ;;
 *)
 ;;
 esac

 This exact same script worked just fine on another machine.  When I
 moved it to a different machine I get this message when my system boots
 up:

 Local Package Initialization : (skipping smbfsstartup.sh, not
 executable).

Take a look at the permissions of the script file with ls(1).  The
message is very verbose already.  The file has a name that ends in
`.sh' but it is not executable, and this is why it's skipped.

Quick fix:

   # chmod 0750 /usr/local/etc/rc.d/smbfsstartup.sh

- Giorgos


Pardon moir for chiming in here, but I have noticed 3 different posts about
the proper chmod for the executable on this thread: 744, 755 and now 750
.I've typically used 755, but if there is some reason for the others as
a preference I would be interested in the reasons. or when one should be
used over the other...

Not second-guessing, just curious. Thanks  Merry Xmas!

Best regards,
Jack L. Stone,
Administrator

SageOne Net
http://www.sage-one.net
[EMAIL PROTECTED]

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



Re: Problem with my startup script?

2002-12-19 Thread Daniel Schrock
Jack L. Stone wrote:

At 07:25 PM 12.19.2002 +0200, Giorgos Keramidas wrote:


On 2002-12-19 08:59, Adam Lofstedt [EMAIL PROTECTED] wrote:


I am trying to mount a windows share at boot with mount_smbfs.  Since I
have to use the noauto option in fstab (filesystems in fstab are mounted
before the network is initialized), I have created a startup script
(smbfsstartup.sh) and placed it in /usr/local/etc/rc.d:

case $1 in
   start)
   /sbin/mount /myshare
	;;
   stop)
	#Maybe do something here...
	;;
   *)
   ;;
esac

This exact same script worked just fine on another machine.  When I
moved it to a different machine I get this message when my system boots
up:

Local Package Initialization : (skipping smbfsstartup.sh, not
executable).


Take a look at the permissions of the script file with ls(1).  The
message is very verbose already.  The file has a name that ends in
`.sh' but it is not executable, and this is why it's skipped.

Quick fix:

	# chmod 0750 /usr/local/etc/rc.d/smbfsstartup.sh

- Giorgos




Pardon moir for chiming in here, but I have noticed 3 different posts about
the proper chmod for the executable on this thread: 744, 755 and now 750
.I've typically used 755, but if there is some reason for the others as
a preference I would be interested in the reasons. or when one should be
used over the other...

Not second-guessing, just curious. Thanks  Merry Xmas!

Best regards,
Jack L. Stone,
Administrator

SageOne Net
http://www.sage-one.net
[EMAIL PROTECTED]

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


I actually prefer 700.
No one has any business in /usr/local/etc/rc.d unless they are root.

.daniel.schrock



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



subscribe freebsd-questions@FreeBSD.ORG andysohn@yahoo.com

2002-12-19 Thread Hyun Jong Sohn
 
 

=
Best regards 
Hyun J. Sohn

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



Re: Problem with my startup script?

2002-12-19 Thread Jack L. Stone
At 11:59 PM 12.19.2002 +0200, Giorgos Keramidas wrote:
On 2002-12-19 15:45, Jack L. Stone [EMAIL PROTECTED] wrote:
 At 07:25 PM 12.19.2002 +0200, Giorgos Keramidas wrote:
  Local Package Initialization : (skipping smbfsstartup.sh, not
  executable).
 
 Quick fix:
 
 # chmod 0750 /usr/local/etc/rc.d/smbfsstartup.sh

 Pardon moir for chiming in here, but I have noticed 3 different posts about
 the proper chmod for the executable on this thread: 744, 755 and now 750
 .I've typically used 755, but if there is some reason for the others as
 a preference I would be interested in the reasons. or when one should be
 used over the other...

The more conservative, the better, I guess.  The `correct' permission
set is the one that fits the local policies.  I arbitrarily chose to
give read, write  execute permission to the owner of the file, read 
execute to the group and nothing to everyone else.  It was just that,
an arbitrary choise.  There isn't an objectively `correct for
everyone' set of permissions.

Giorgos.


Then, wouldn't 0700 be the very strict and most conservative way if only
root is intended to only to use the script -- usually in the bootup
scenario?

Best regards,
Jack L. Stone,
Administrator

SageOne Net
http://www.sage-one.net
[EMAIL PROTECTED]

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



Re: delete /var/empty

2002-12-19 Thread Jerry McAllister
 
 Please help
 
 I want to move my /var dir on to another file system but when I try to
 remove the /var dir all other dirs are deleted but the /var/empty dir
 will not delete. I am new at this but have tried to use the chmod
 commands but can still not remove this dir please help

Probably you need to check out  chflags(1)

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: Problem with my startup script?

2002-12-19 Thread Giorgos Keramidas
On 2002-12-19 16:19, Jack L. Stone [EMAIL PROTECTED] wrote:
 At 11:59 PM 12.19.2002 +0200, Giorgos Keramidas wrote:
  Quick fix:
# chmod 0750 /usr/local/etc/rc.d/smbfsstartup.sh
 
  Pardon moir for chiming in here, but I have noticed 3 different posts about
  the proper chmod for the executable on this thread: 744, 755 and now 750 [...]
 
 The more conservative, the better, I guess.  The `correct' permission
 set is the one that fits the local policies.  [...]

 Then, wouldn't 0700 be the very strict and most conservative way if only
 root is intended to only to use the script -- usually in the bootup
 scenario?

I don't know.  It's up to you to choose.  That was the main thing I
tried to write in that previous post.  Sorry for being a bit vague...


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



Re: CVS process runaways

2002-12-19 Thread Matthew Seaman
On Thu, Dec 19, 2002 at 03:30:42PM -0600, David Kelly wrote:
 Using pserver in cvs for local software projects between multiple
 FreeBSD machines. All of recent to most-recent -stable. Have noticed
 the past 6 months a number of runaway CVS processes sucking 100% CPU
 time if they could get it. Never knew how to create this situation
 until recently.
 
 cvs update on a remote machine with CVSROOT as something like
 :pserver:[EMAIL PROTECTED]:/home/ncvs. Abort cvs with ^C before it
 completes. The cvs process on 10.0.0.5 runs away. Altho it seems to
 runaway sometimes when cvs update appears to run to completion
 normally.
 
 What, if anything, have we done wrong? If its not my screw up then
 where is the right place to report this? Via send-pr to the FreeBSD
 project, or to  CVS developers?

I believe this is a known problem --- search through the archives for
freebsd-hackers@ to see a discussion.  The problem is a bug in
cvs-1.11.2 as seen in RELENG_4 for about the last 2 months, since
fixed in cvs-1.11.2.1 by the cvs developers and imported into HEAD
about a fortnight ago.

Looking at
http://www.freebsd.org/cgi/cvsweb.cgi/src/contrib/cvs/Makefile.in it
seems that 1.11.2.1 was MFC'd to RELENG_4 about an hour and a half
ago, so if you cvsup and buildworld now (or maybe wait a few hours to
allow all the mirrors to catch up), then you should find your problem
has disappeared.

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



[Fwd: Re: NFS Reserved Port Only?]

2002-12-19 Thread Duncan Anker
Probably intended for the list

-Forwarded Message-

 
 For the purpose of answering my own question if someone is reading
 through the old posts the unprivileged port because of NAT was solved by
 adding the -n option to mountd.
 
 Although I find it kind of interesting that the documentation says this
 clears the nfs_privport sysctl flag but you can't allow it by clearing
 the flag yourself.

I didn't find that flag - however I Found that clearing the sysctl flag did work. Odd.

 
 Ryan
 
 On Thu, 2002-12-19 at 18:57, Duncan Anker wrote:
  On Fri, 2002-12-20 at 03:59, Ryan Sommers wrote:
   Does nfs_reserved_port_only really make NFS that much more secure? Or is
   this more of a depricated option.
  
  Doesn't really help. It's slightly more secure in an environment where
  you don't fully trust your users, but all it does is require the
  connection to come from a privileged port. Since any script kiddie can
  stick a Linux or *BSD box on the net with root access, it really doesn't
  help secure against the sort of attacks you'd want to secure against.
  
  I have found this option is nothing more than annoying (my NFS monitor
  won't use a privileged port, for example) so I leave it off.
  
  As far as the rest of your NFS privilege problems go, you may need to
  mount the filesystem with TCP. I'm not sure how NFS works with NAT, but
  I had some issues with this. Alternatively, if you have multiple IP
  addresses on one itnerface, you need to explicitly tell nfsd which ones
  to bind to, as wildcarding doesn't work with UDP.
  
  HTH
  Duncan Anker
  


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



Upgrading Bison to 1.75 on 4.6.2

2002-12-19 Thread Per olof Ljungmark
Is there a cure for the upgrade of Bison failing for some time now, at 
least on my 4.6.2 boxes?

Thanks,


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


Re: Running X-clients on remote hosts.

2002-12-19 Thread Matthew Seaman
On Thu, Dec 19, 2002 at 07:07:49PM +, William Palfreman wrote:
 How can I allow Xfree86 to listen for network connections again?  I
 certainly used to have no problem doing this, and I don't see anything
 about this specific and probably very simple problem in the handbook or
 googling.
 
 I'm running an X server on my workstation (Xfree86 4.1) on my
 workstation (FreeBSD 4.6.2-p3) and I wan to have X-clients connect from
 other machine, for example xload.
 
 So, on logged into the remote host (using bash) I enter
 export DISPLAY=wks:0 and on my workstation I enter xhost +.  Then on
 the remote host I enter xload  and all I get is Error: Can't
 open display: wks:0
 
 Then, if I go to a virtual terminal on my workstation (i.e. press
 ctrl-alt-F3) and enter export DISPLAY=wks:0 then xhost + I get
 'xhost:  unable to open display wks:0'.  If I replace the
 (DNS-valid) hostname with localhost exactly the same thing happens.
 
 I've tested this from a friend's Windows 98 box which has Hummingbird
 Exceed installed on it, and there is no problem running X-clients on
 it, by sshing in and doing export DISPLAY=ant:0.  So I know the
 problem is with my workstation's X server.
 
 So what should I do to make X network aware?  It currently only seems to
 work as export DISPLAY=:0

Seems you're running the X server with the '-nolisten tcp' flag.  If
you examine the output of 'netstat -na' do you see anything listening
at port 6000 ?  Lack of anything listening there confirms the
diagnosis.

How to make X listen on the network depends on how you start the X
server.  If you use startx(1), then you just need to invoke it as:

startx -listen_tcp

Otherwise, if you use xdm(1) then you need to edit
/usr/X11R6/lib/X11/xdm/Xservers and remove the '-nolisten tcp' flags:

--- Xservers.orig   Thu Dec 19 22:25:16 2002
+++ XserversThu Dec 19 22:25:30 2002
@@ -10,4 +10,4 @@
 # look like:
 #  XTerminalName:0 foreign
 #
-:0 local /usr/X11R6/bin/X -nolisten tcp
+:0 local /usr/X11R6/bin/X

and then hit Ctrl-Alt-Bksp to make xdm(1) restart.

However, be warned.  Sending X traffic across the network unencrypted
is at least as bad securitywise as using plain text protocols like
rsh(1) or telnet(1): maybe worse --- it's very easy to forget yourself
and type a root password into an xterm(1) session on a remote host.

The secure alternative is to use ssh's ability to tunnel X protocol
over an encrypted channel.  Simply add:

Host remote.server.name
ForwardX11 yes

to either $HOME/.ssh/config (your account only) or /etc/ssh/ssh_config
(system wide default), and make sure the remote system hasn't had X11
forwarding turned off in /etc/ssh/sshd_config (default is to allow it).

Now, when you log in you should find that you get a $DISPLAY variable
automatically set to something like:

localhost:10.0

where the sshd is listening on port 6010 pretending to be a local X
server, but in reality forwarding everything over an encrypted tunnel
to your desktop.  (Make sure that your .login / .cshrc or .profile or
.bashrc or whatever initialization files your shell uses don't set
$DISPLAY for themselves or this won't work.)  Fire up xterm or some
other X program, and it should display fine, even without enabling
your local workstation to listen for X connections on the network.

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: NFS Reserved Port Only?

2002-12-19 Thread Duncan Anker
On Fri, 2002-12-20 at 03:59, Ryan Sommers wrote:
 Does nfs_reserved_port_only really make NFS that much more secure? Or is
 this more of a depricated option.

Doesn't really help. It's slightly more secure in an environment where
you don't fully trust your users, but all it does is require the
connection to come from a privileged port. Since any script kiddie can
stick a Linux or *BSD box on the net with root access, it really doesn't
help secure against the sort of attacks you'd want to secure against.

I have found this option is nothing more than annoying (my NFS monitor
won't use a privileged port, for example) so I leave it off.

As far as the rest of your NFS privilege problems go, you may need to
mount the filesystem with TCP. I'm not sure how NFS works with NAT, but
I had some issues with this. Alternatively, if you have multiple IP
addresses on one itnerface, you need to explicitly tell nfsd which ones
to bind to, as wildcarding doesn't work with UDP.

HTH
Duncan Anker



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



denied packet, where?

2002-12-19 Thread Mark
How quaint! Today, one of the (standard) daily security scripts returned
this:

test-server denied packets:
test-server kernel log messages:
  1 READY ad6: 39205MB Maxtor 2F040J1 [79656/16/63] at ata3-master
UDMA133

I take it that had to go to /var/log/messages? Which would mean I am
inadvertently blocking a packet. Well, pardon my daftness, but what port
would that be blocked on then? I checked /var/log/security, but that is
empty. If it were an ipfw issue, I think it would have wound up in
/var/log/security, right?

I am kinda worried about this, because maybe my kernel is trying to tell me
one of the disks in my RAID 1 failed, and came back on line. If so, I would
like to know about this.

Any suggestion would be welcome!

Thanks!

- Mark


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



Re: denied packet, where?

2002-12-19 Thread Matthew Emmerton
 How quaint! Today, one of the (standard) daily security scripts returned
 this:

 test-server denied packets:
 test-server kernel log messages:
   1 READY ad6: 39205MB Maxtor 2F040J1 [79656/16/63] at ata3-master
 UDMA133

 I take it that had to go to /var/log/messages? Which would mean I am
 inadvertently blocking a packet. Well, pardon my daftness, but what port
 would that be blocked on then? I checked /var/log/security, but that is
 empty. If it were an ipfw issue, I think it would have wound up in
 /var/log/security, right?

Yes.  But you're not denying any packets.  The lack of any lines of data
between test-server denied packets: and test-server kernel log messages
indicates that no packets were denied.

 I am kinda worried about this, because maybe my kernel is trying to tell
me
 one of the disks in my RAID 1 failed, and came back on line. If so, I
would
 like to know about this.

The only thing it's telling you is that drive ad6: came back online
(probably due to a soft error or timeout of some sort.)  This message should
also be found in /var/log/messages.

--
Matt Emmerton


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



Re: denied packet, where?

2002-12-19 Thread Mark
- Original Message -
From: Matthew Emmerton [EMAIL PROTECTED]
To: Mark [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, December 20, 2002 2:28 AM
Subject: Re: denied packet, where?

Thanks for the quick reply!

  How quaint! Today, one of the (standard) daily security scripts
  returned this:
 
  test-server denied packets:
  test-server kernel log messages:
1 READY ad6: 39205MB Maxtor 2F040J1 [79656/16/63] at
  ata3-master UDMA133

 Yes.  But you're not denying any packets. The lack of any lines of data
 between test-server denied packets: and test-server kernel log
 messages indicates that no packets were denied.

Doh on me! :) You are right, of course; in my panic I kinda read it all as
one line.

  I am kinda worried about this, because maybe my kernel is trying to
  tell me one of the disks in my RAID 1 failed, and came back on line.
  If so, I would like to know about this.

 The only thing it's telling you is that drive ad6: came back online
 (probably due to a soft error or timeout of some sort.)

I don't think I like the sound of that. :( I cannot say that FreeBSD went
beserk or anything, for had it not been for me having read that message, I
would have never noticed it. Still, I hate errors. :) And I hope it does not
affect the mirror.

 This message should also be found in /var/log/messages.

Well, that's the weird part: the message cannot be found in
/var/log/messages (that is why I read the above as a denied packet).

- Mark


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



Re: Getting Perl scripts to work as mail filters

2002-12-19 Thread Warren Block
On Thu, 19 Dec 2002, Mxsmanic wrote:

 I finally got it to work by piping to sendmail.  Seems to be adequate for
 what I want to do.
 
 Now all I have to do is design my patented, foolproof methodology for
 distinguishing spam from real mail so that I can encode the rules in the
 script.  There must be a way!  Also, this may allow me to do something about
 getting rid of HTML in mail, which I can't stand.

There's nothing wrong with reinventing procmail like this, but I'm
curious why you consider it bloated--it's under 64K on my
system.

Anyway, here's a procmail recipe that catches a lot of spam.  Not all,
but it's a start, and the regular expression should be usable in your
Perl program with few changes:

# Mail not addressed to me.
:0
* $!^((Resent-|Apparently-)?(To|Cc|Bcc)):.*${LOGNAME}
$MAILDIR/Spam-folder

-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: FTP installation from the floppies through ADSL modem with PPPoEor PPTP protocol.

2002-12-19 Thread Darren Pilgrim
Andrew wrote:

On Fri, 20 Dec 2002, Asker wrote:

The modem can be configured to use PPPoE or PPTP protocol for making the
connection with my Internet Servise Provider.


Well if the modem does PPPoE itself (and preusmably NAT) then you need no
speical support from the OS. From its poitn of view you are just conencted
via ethernet.


If you need the machine to do PPPoE, ppp supports PPPoE.  For this to 
work, though, you need netgraph, which isn't in GENERIC.  You will need 
to make a custom kernel and build your own set of custom floppies.


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


Re: FTP installation from the floppies through ADSL modem with PPPoE or PPTP protocol.

2002-12-19 Thread Brian
tis a good reason to use one of the pppoe speaking routers/nat boxes.

Brian

- Original Message -
From: Darren Pilgrim [EMAIL PROTECTED]
To: Andrew [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, December 19, 2002 7:29 PM
Subject: Re: FTP installation from the floppies through ADSL modem with
PPPoE or PPTP protocol.


 Andrew wrote:
  On Fri, 20 Dec 2002, Asker wrote:
 The modem can be configured to use PPPoE or PPTP protocol for making the
 connection with my Internet Servise Provider.
 
  Well if the modem does PPPoE itself (and preusmably NAT) then you need
no
  speical support from the OS. From its poitn of view you are just
conencted
  via ethernet.

 If you need the machine to do PPPoE, ppp supports PPPoE.  For this to
 work, though, you need netgraph, which isn't in GENERIC.  You will need
 to make a custom kernel and build your own set of custom floppies.


 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: /etc/mail/access list to DENY spam?

2002-12-19 Thread Warren Block
On Thu, 19 Dec 2002, Gary D Kline wrote:

   Several weeks ago someone posted the location of a spam
   list for sendmail's /etc/mail/access file.  I understand 
   the file was large... but that makes no difference!  I'd
   just like to filter out most of the spam I've been getting.
 
   Does anybody know where that sample access lst was?

I posted a link to mine quite some time back.  Just now I updated it:

http://www.wonkity.com/~wblock/access

Beware, it's draconic.  But everything in there is a place from which
I've received spam.  Oh, and this is *in addition to* using the
relays.osirusoft.com DNSBL combination list, which includes SPEWS and
many others.  Please do not use this file without studying it and
probably modifying it first.

PS: thanks for giving me credit on that little Perl CIDR script on
daemonnews--but could you fix the text which says that 255.255.0.0 is
/8 (should be /16)?  I tried to send you email, but it bounced.

-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: Getting Perl scripts to work as mail filters

2002-12-19 Thread Warren Block
On Fri, 20 Dec 2002, Mxsmanic wrote:

 *** There's nothing wrong with reinventing procmail like this, but I'm
 curious why you consider it bloated--it's under 64K on my system. ***
 
 Bloated in the sense of complexity.  My script is one file; I install it by
 changing one line in /etc/mail/aliases.  Procmail cannot compete with that.

Um... install the port, create a .forward file, and set up .procmailrc?  
There are more complex ways to use it, but I haven't tried them.  I
looked at some packaged versions of procmail setups, and found them
too complex to mess with--scoring and weighting and stuff.  My setup
just filters things, and does a pretty good job of it.

The nice thing about procmail is that it has all the hard stuff already
handled--dealing with headers or the body of the message, locking, and
so on.

-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: GDM question - anyone got it to work?

2002-12-19 Thread Daniel Schrock
Dmitrii PapaGeorgio wrote:

Running FreeBSD 4.7 - I configured etc/ttys to point to GDM but the 
screen says it can't find the config file when it first boots. Am I 
missing something here?

Thanks-


yea, don't use /etc/ttys for this.

cd /usr/X11R6/etc/rc.d
cp gdm.sh.sample gdm.sh
ls -la  #verify perms for executable

then start it up:  ./gdm.sh start

it will start at boot after this.

.daniel.schrock


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



Re: GDM question - anyone got it to work?

2002-12-19 Thread Joe Marcus Clarke
On Thu, 2002-12-19 at 23:50, Daniel Schrock wrote:
 Dmitrii PapaGeorgio wrote:
  Running FreeBSD 4.7 - I configured etc/ttys to point to GDM but the 
  screen says it can't find the config file when it first boots. Am I 
  missing something here?
  
  Thanks-
  
 
 yea, don't use /etc/ttys for this.
 
 cd /usr/X11R6/etc/rc.d
 cp gdm.sh.sample gdm.sh
 ls -la  #verify perms for executable
 
 then start it up:  ./gdm.sh start
 
 it will start at boot after this.

This is only for gdm2.  For gdm, you should be able to launch it from
/etc/ttys with the line:

ttyv8   /usr/X11R6/bin/gdm -nodaemon  xterm   on secure

The config files are stored in /usr/X11R6/etc/gdm.  If this directory
doesn't exist for some reason, you should reinstall the gdm
port/package.

Joe

 
 .daniel.schrock
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
-- 
PGP Key : http://www.marcuscom.com/pgp.asc



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


Re: FTP installation from the floppies through ADSL modem with PPPoE or PPTP protocol.

2002-12-19 Thread Randy Pratt
Darren wrote:
Andrew wrote:
 On Fri, 20 Dec 2002, Asker wrote:
The modem can be configured to use PPPoE or PPTP protocol for making the
connection with my Internet Servise Provider.
 
 Well if the modem does PPPoE itself (and preusmably NAT) then you need no
 speical support from the OS. From its poitn of view you are just conencted
 via ethernet.

If you need the machine to do PPPoE, ppp supports PPPoE.  For this to 
work, though, you need netgraph, which isn't in GENERIC.  You will need 
to make a custom kernel and build your own set of custom floppies.

Happily, kernel configuration is no longer necessary for PPPoE. If the
necessary netgraph support is not built into the kernel, it will be
dynamically loaded by ppp (See handbook section on PPPoE).

I have Earthlink and their modems do not have integral PPPoE or NAT but it
is possible to connect with Sysinstall and install via FTP.  Granted, it
is not straightforward since the ethernet device and ppp have to be
configured prior to starting the installation.

I kept a few notes and dressed them up a little on how to do an FTP
install using PPPoE:

http://www.treefort.org/~rpratt/pppoe/article.html

They could probably use some more work, but they should be usable.

Hope this helps the original poster.

Randy



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



Re: Slow network - ed driver, Realtek 8029

2002-12-19 Thread Brian
these cards seem like piecesosheeyat, on linux the ne2000 driver works, but
I still wouldnt do it.

Bri

- Original Message -
From: BigBrother (BigB3) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 19, 2002 7:48 AM
Subject: Re: Slow network - ed driver, Realtek 8029


 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1



 I'm having a problem with slow transfers to my FreeBSD 4.7-RELEASE box
 using a D-Link 528CT
 (Realtek 8029 chipset). When I try to upload files to this machine from a
 windowsXP box, I only
 get about 30KB/s on the 10BaseT cat 5 network. This identical machine
 previously was able to
 receive transfers of 1000KB/s when it was running under windows 98. I'm
 only getting 3% of the
 windows receive performance.
 
 My best guess is that this is a driver issue. I had possibly similar
 problem with the same card under
 win98. The issue was if you set the driver to full duplex when the card
 hardware was not setup for
 full duplex (it is capable of full duplex, but you need to tell the
 hardware in some way), the transfer
 rate would be ridiculously slow. I'm guessing this is a similar problem,
 however, ifconfig shows:


 I also have the same problem with this network card. For some strange
 reason when something is uploaded to the freebsd machine, the speed is
 very ridiculous [4~5 KBytes/sec] but when I download from it I have 
 500KBytes/sec

 How can somebody change the SIMPLEX on the ifconfig? If I change to half
 duplex the speed, will it be better for uploads to the box?

 And by the way I think SIMPLEX is anotehr word for UNICAST

 I am planning to buy another network card to achieve better performance...

 Regards,

 BigB


 - ---
 We are being monitored..but there is a solution...
 Use PGP for signing and encrypting emails
 Download my public key at http://www.us.pgp.net
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.2.1 (FreeBSD)

 iD8DBQE+AepAGe/V3CxAyHoRApZ8AJ9uhSfGNanBHjxcmJWaHGb5aokfhQCfYPKK
 BREklo/y498pQsh0P0u/hlE=
 =X4lS
 -END PGP SIGNATURE-

 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



what is a pps file?

2002-12-19 Thread David Banning
Someone from the Netherlands sent me a pps file. Anyone know what
type of file that is? 

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



ifconfig_aue0, fatal trap 12

2002-12-19 Thread J. Scott Edwards

Hello,

I am having some difficulties moving FreeBSD to another machine.  I moved
the hard drive from a machine with a normal (NE2000) nic to a machine with
a D-Link USB to Ethernet adapter.  First I ran /stand/sysinstall to set up
the aue interface (and then had to remove the old interface from rc.conf).

But if I try to boot the machine with the D-Link plugged it it hangs on
the initial hostname setup.  If I leave the D-Link unplugged it will
boot and then I can plug in the D-Link and it will work just fine.  But
then when I try to shutdown it gets a aue0: usb error rx: IOERROR, Fatal
trap 12: page fault while in kernel.

I tried to just reinstall but the installer hangs if the interface is
plugged in.  Should I reinstall without the interface and then add it in
afterwards?

Thanks
  -Scott



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



starting ppp on boot up

2002-12-19 Thread P. U. Kruppa
Hi!

I have a well working user ppp configuration, which I run
manually by
# ppp -nat -ddial adsl
What is the simpliest way to start this automatically on boot up?

Thanks,

Uli.

*---*
*Peter Ulrich Kruppa*
*  -  Wuppertal -   *
*  Germany  *
*---*


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



Re: xdm fails at startup

2002-12-19 Thread malcolm kay
malcolm kay wrote:


Finarfin wrote:


I have a 'virgin' install of 4.7. When I boot, all the text mode stuff 
I want runs fine. I would like to show some stuff to others using X, 
but it won't start.

In my /etc/ttys file, I had the following line installed by the 
installation process:

ttyv8 /usr/X11R6/bin/xdm -nodaemon xterm off secure

I modified this by changing the off to on.

After a kill -HUP 1, I get the following message (repeated every 30 
seconds)

init: getty repeating too quickly on port /dev/ttyv8, sleeping 30 secs.



I experienced a problem which may be the same on FreeBSD4.7. xdm
won't work when the depth is set to 8 - a common setting and the
default if left unspecified. Everything seems fine when set for greater 
depths. I've experienced this problem on two quite different machines 
with different video systems. It seems that the xdm login crashes with 
depth 8. When used with startx it runs but with some considereable
problem with colors - it finds half a dozen or so but reports voluminous
errors about unable to allocate color such and such, even though only a 
negligable portion of the possible 256 pallette is used.

I eventually gave up and went back to FreeBSD 4.5 and XFree 4.1 though I 
suspect I need only have changed the XFree version.

I have applications which must have 8 bit pseudo-color so can't live 
with 16 or 24 bit depth.

Malcolm Kay



I received e-mail in response to this with the suggestion that I inform 
the ng.

That e-mail and my e-mail response follow:

dean linford wrote:

 Hi,

 you wrote:

   I experienced a problem which may be the same on FreeBSD4.7. xdm
   won't work when the depth is set to 8 - a common setting and the
   default if left unspecified. Everything seems fine when set for greater
   depths. I've experienced this problem on two quite different machines

 The problem is likely Xresource. Here's _part_ of my diff:

  #if PLANES = 8
  xlogin*logoFileName: /usr/X11R6/lib/X11/xdm/pixmaps/XFree86.xpm
  #else
 ---

!#if PLANES = 8
!xlogin*logoFileName: /usr/X11R6/lib/X11/xdm/pixmaps/XFree86.xpm
!#else


 The = likely should be taken out, instead
 but I just wanted the thing to be working.

 There are too many colours in the colour pixmap. I'd sent a
 comment off to xfree86 site, but am not so confident it was
 acted upon The pixmap doesn't have too many, but there
 are colors allocated by the server as well - oops!

 You may want to tell the group/list (comp.unix.bsd.freebsd.misc),
 as I don't usally post to public groups.



I'm not sure whether or not the = should be removed, but FreeBSD4.5
with XFree4.1 has the same (i.e. with the =) and that works.

In any case the colours are screwed up using startx which does not 
access the xlogin widget (at least I can't believe that it does).

I'll also post this to the ng as you suggest.

I have new suspicions w.r.t. the basis of the problem but this is
so subtle as to be almost unbelievable. I had forgotten a problem I 
experienced on another FreeBSD4.5 machine running XFree3.??. On that
machine while X-windows was running I changed the default lang: entry
in login.conf to en_AU.US_ASCII to get a sensible national date time
string instead of the crazy American version. Xdm started before the 
change was already displaying a login screen but now all attempts to
login via xdm failed. The login disappeared in the normal way on 
completion of the mname and password; but a moment later reappeared
instead of the windows manager display (ctwm in this case). Removing
the lang entry cleared the problem.

Now FreeBSD4.7 sets this parameter in login.conf when the time zone is 
set at installation. So based on somewhat slim evidence I'm of the 
opinion that X can't manage general national time/date strings.

Now I want to find a machine free on which I can re-install FreeBSD4.7
and XFree 4.2 and explore further.

Could the time/date string also be an issue with sendmail which was also
giving me grief with FreeBSD4.7?

Malcolm Kay


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


PCI parallel port

2002-12-19 Thread fb . h . ds
Hi, I'm trying to install an additional lpt using PCI parallel port card NetMos 
Nm9805CV.

The 4.7 kernel reports:
pci0: unknown card (vendor=0x9710, dev=0x9805) at 20.0 irq 11

How can I use it?
Thanks.




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



adaptec raid 2400a

2002-12-19 Thread Condor
Hello,
i am newbie in freebsd. I have adaptec 2400A pci raid.
My freebsd 4.7 sucessful find it. I have da0 and da1
but have partitions on OpenBSD because before i
install freebsd i have openbsd. I can mount 
da0s0c (first part of da0) and da1s0c (first part of
da1) but i unable to mount seconds parts. 
My question is, how i configure to mount da0 and da1
disk correctly without format or resize disk, because
my raid disks is full? Sorry for my stupped question,
but i am newbie in freebsd, i trying to find some
documentation about this, but i not found. Help me.

Regards,
Valdes

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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



Re: starting ppp on boot up

2002-12-19 Thread Jonathan Chen
On Fri, Dec 20, 2002 at 06:59:18AM +, P. U. Kruppa wrote:
 Hi!
 
 I have a well working user ppp configuration, which I run
 manually by
 # ppp -nat -ddial adsl
 What is the simpliest way to start this automatically on boot up?

By adding the following lines into your /etc/rc.conf:

ppp_enable=YES
ppp_mode=ddial
ppp_profiles=adsl

Cheers.
-- 
Jonathan Chen [EMAIL PROTECTED]
--
 Nyuck, nyuck, nyuck - Curly

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



Re: FTP installation from the floppies through ADSL modem with PPPoE or PPTP protocol.

2002-12-19 Thread Randy Pratt
On Thu, 19 Dec 2002 22:45:03 -0800
Darren Pilgrim [EMAIL PROTECTED] wrote:

 Randy Pratt wrote:
  Darren wrote:
 Andrew wrote:
 On Fri, 20 Dec 2002, Asker wrote:
 
 The modem can be configured to use PPPoE or PPTP protocol for making the
 connection with my Internet Servise Provider.
 
 Well if the modem does PPPoE itself (and preusmably NAT) then you need no
 speical support from the OS. From its poitn of view you are just conencted
 via ethernet.
 
 If you need the machine to do PPPoE, ppp supports PPPoE.  For this to 
 work, though, you need netgraph, which isn't in GENERIC.  You will need 
 to make a custom kernel and build your own set of custom floppies.
  
  Happily, kernel configuration is no longer necessary for PPPoE. If the
  necessary netgraph support is not built into the kernel, it will be
  dynamically loaded by ppp (See handbook section on PPPoE).
 
 Yes, but with floppies, the kernel modules aren't available, are they?
 Am I missing something?

Like you, I don't see any modules on the floppies but they do indeed
support PPPoE.  I'm not sure how the magic works but I'm assuming that
the support is built into the GENERIC kernel.  Perhaps one of our kernel
gurus could shed a bit more light on this.

I have installed both 4.7-R and 5.0-DP1 using the two floppies and 
PPPoE/FTP.  It would be nice if this were a menu option of Sysinstall
but very few people have a real need for this method.  Typically, those
with broadband will download and burn an installation cdrom.

My apologies for not being able to answer more definitively.

Randy


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