Re: Increase memory limit ?

2003-01-16 Thread Chuck Swiger
Frank Li wrote:
[ ... ]

Should I add more physical memory (if so should I reinstll OS)?


If you're actually doing something where the 512 MB datasize limit matters to 
you, adding more physical memory will almost certainly speed things up.

No, don't reinstall; even Windows doesn't make you reinstall the OS just 
because you added memory.  :-)

Can I just set some parameters(what?) and recompile kernel and increase 
these limits ?

32-bit systems implementing VM typically could increase user-mode address 
space up to 2 GB, although variants on that and other things (ie, where 
devices get mapped into memory) make that only an approximation.  For FreeBSD:

# Certain applications can grow to be larger than the 128M limit
# that FreeBSD initially imposes.  Below are some options to
# allow that limit to grow to 256MB, and can be increased further
# with changing the parameters.  MAXDSIZ is the maximum that the
# limit can be set to, and the DFLDSIZ is the default value for
# the limit.  MAXSSIZ is the maximum that the stack limit can be
# set to.  You might want to set the default lower than the max,
# and explicitly set the maximum with a shell command for processes
# that regularly exceed the limit like INND.
#
options MAXDSIZ=(256*1024*1024)
options MAXSSIZ=(256*1024*1024)
options DFLDSIZ=(256*1024*1024)

Depending on what you're doing, you might well find using a 64-bit platform 
(Alpha hardware?  Solaris on SPARC?) to be more appropriate...

-Chuck


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


Re: ipfw/natd questions

2003-01-16 Thread Axel Gruner
On Wed, 15 Jan 2003 19:08:08 -0600
Redmond Militante [EMAIL PROTECTED] wrote:
[...]
 at the moment, it's not working.
 on machine 2, i can't ping www.freebsd.org - i get 'hostname lookup
 failure', i can't ping xl0 - external nic on machine 1 - ping
 129.x.x.35 gives me a 'host is down message' machine 2 can ping it's
 own static ip successfully - ping 129.x.x.20 works machine 2 can ping
 its own hostname successfully - ping machine2.hostname.com works
 sorry if this is long, i've been messing with this all day and i think
 i'm doing it right. can you guys tell if i'm missing something
 obvious?

What about your /etc/resolv.conf? On both machines?
Did you insert the namserver of your ISP? 


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



Re: make installworld failed

2003-01-16 Thread Kent Stewart
On Wednesday 15 January 2003 11:50 pm, Selvam wrote:
 HI there,

 After cvsup i ran make buildkernel and installkernel but when i ran
 make installworld for the binaries I ran into
 some error like below :-

 --

  Installing everything..

 --
 cd /usr/src; make -f Makefile.inc1 install
 === share/info
 === include
 creating osreldate.h from newvers.sh
 setvar PARAMFILE /usr/src/include/../sys/sys/param.h;  .
 /usr/src/include/../sys/conf/newvers.sh; echo $COPYRIGHT 
 osreldate.h; echo #ifdef _KERNEL  osreldate.h; echo '#error
 osreldate.h must not be used in the kernel, use sys/param.h' 
 osreldate.h;  echo #else  osreldate.h;  
 echo \#'undef __FreeBSD_version'  osreldate.h;echo
 \#'define __FreeBSD_version' $RELDATE  osreldate.h;  echo #endif
  osreldate.h
 touch: not found
 *** Error code 127

 Stop in /usr/src/include.
 *** Error code 1

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

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

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

 Stop in /usr/src.

 What can be the problem? I remember reseting the date earlier; but I
 ran make installworld after setting to new date.
 Would this be athe problem? In that case what should I do?

You needed to do the buildworld again. It still has the old date on 
files that it created.

Kent


 Thanks in advance..

 Selvam


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

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html


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



RE: make installworld failed

2003-01-16 Thread Selvam
Hi Kent,

thanks for replying, I tried the way to tell my but still no avail..
I tried cvsup'ing again and i did the below :-

# cd /usr/src
# make buildkernel KERNCONF=MYKERNEL
# make installkernel KERNCONF=MYKERNEL

then i rebooted the server and ran
# cd /usr/src
# make installworld

and still i get the same error..like below

--
 Installing everything..
--
cd /usr/src; make -f Makefile.inc1 install
=== share/info
=== include
creating osreldate.h from newvers.sh
setvar PARAMFILE /usr/src/include/../sys/sys/param.h;  .
/usr/src/include/../sys/conf/newvers.sh; echo $COPYRIGHT  osreldate.h;
echo #ifdef _KERNEL  osreldate.h; echo '#error osreldate.h must not be
used in the kernel, use sys/param.h'  osreldate.h;  echo #else 
osreldate.h;   echo \#'undef __FreeBSD_version' 
osreldate.h;echo \#'define __FreeBSD_version' $RELDATE 
osreldate.h;  echo #endif  osreldate.h
touch: not found
*** Error code 127

Stop in /usr/src/include.
*** Error code 1

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

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

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

-Original Message-
From: Kent Stewart [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 4:37 PM
To: Selvam; Freebsd
Subject: Re: make installworld failed


On Wednesday 15 January 2003 11:50 pm, Selvam wrote:
 HI there,

 After cvsup i ran make buildkernel and installkernel but when i ran
 make installworld for the binaries I ran into
 some error like below :-

 --

  Installing everything..

 --
 cd /usr/src; make -f Makefile.inc1 install
 === share/info
 === include
 creating osreldate.h from newvers.sh
 setvar PARAMFILE /usr/src/include/../sys/sys/param.h;  .
 /usr/src/include/../sys/conf/newvers.sh; echo $COPYRIGHT 
 osreldate.h; echo #ifdef _KERNEL  osreldate.h; echo '#error
 osreldate.h must not be used in the kernel, use sys/param.h' 
 osreldate.h;  echo #else  osreldate.h;
 echo \#'undef __FreeBSD_version'  osreldate.h;echo
 \#'define __FreeBSD_version' $RELDATE  osreldate.h;  echo #endif
  osreldate.h
 touch: not found
 *** Error code 127

 Stop in /usr/src/include.
 *** Error code 1

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

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

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

 Stop in /usr/src.

 What can be the problem? I remember reseting the date earlier; but I
 ran make installworld after setting to new date.
 Would this be athe problem? In that case what should I do?

You needed to do the buildworld again. It still has the old date on
files that it created.

Kent


 Thanks in advance..

 Selvam


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

--
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html




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



Re: Problems w NIC

2003-01-16 Thread Brian Astill
Stacey Roberts wrote:


Here you go.., You have given the same IP Addr / netmasks information to
both rl0  rl1 - this is not right.

In your earlier message, you mentioned that rl0 is connected to a cable
modem and rl1 is connected to a lan. rl0 should have a different IP
address.., indeed a different network altogether as against rl1.

To make life easier, you should configure rl1 with another completely
different RFC1918 IP address. So if you're using 192.168.x.x for rl0,
use an IP addr from the 172.16.x.x or 10.x.x.x ranges for rl1.

Your set up appears to be that of a gateway. If so, google for dual
homed hosts and have a read of what is required to set it all up.


Thanks heaps!  Now I understand.   It didn't _seem_ right to have two 
identical IPs, but I didn't know what else to do :-[
It will all work, now.

--
Brian


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


Re: make installworld failed

2003-01-16 Thread Kent Stewart
On Thursday 16 January 2003 12:56 am, Selvam wrote:
 Hi Kent,

 thanks for replying, I tried the way to tell my but still no avail..
 I tried cvsup'ing again and i did the below :-

 # cd /usr/src
 # make buildkernel KERNCONF=MYKERNEL
 # make installkernel KERNCONF=MYKERNEL

 then i rebooted the server and ran
 # cd /usr/src
 # make installworld

 and still i get the same error..like below

You didn't change anything. Your build created a file called 
osreldate.h. The creation date of that file is bad. It is probably 
older then the files that it was created from. So, it tries to redo 
things and it can't because touch isn't one of the included files. 

You have to do make buildworld to recreate the files with the proper 
date.

Kent

 --

  Installing everything..

 --
 cd /usr/src; make -f Makefile.inc1 install
 === share/info
 === include
 creating osreldate.h from newvers.sh
 setvar PARAMFILE /usr/src/include/../sys/sys/param.h;  .
 /usr/src/include/../sys/conf/newvers.sh; echo $COPYRIGHT 
 osreldate.h; echo #ifdef _KERNEL  osreldate.h; echo '#error
 osreldate.h must not be used in the kernel, use sys/param.h' 
 osreldate.h;  echo #else  osreldate.h;  
 echo \#'undef __FreeBSD_version'  osreldate.h;echo
 \#'define __FreeBSD_version' $RELDATE  osreldate.h;  echo #endif
  osreldate.h
 touch: not found
 *** Error code 127

 Stop in /usr/src/include.
 *** Error code 1

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

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

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

 -Original Message-
 From: Kent Stewart [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 16, 2003 4:37 PM
 To: Selvam; Freebsd
 Subject: Re: make installworld failed

 On Wednesday 15 January 2003 11:50 pm, Selvam wrote:
  HI there,
 
  After cvsup i ran make buildkernel and installkernel but when i ran
  make installworld for the binaries I ran into
  some error like below :-
 
  --
 
   Installing everything..
 
  --
  cd /usr/src; make -f Makefile.inc1 install
  === share/info
  === include
  creating osreldate.h from newvers.sh
  setvar PARAMFILE /usr/src/include/../sys/sys/param.h;  .
  /usr/src/include/../sys/conf/newvers.sh; echo $COPYRIGHT 
  osreldate.h; echo #ifdef _KERNEL  osreldate.h; echo '#error
  osreldate.h must not be used in the kernel, use sys/param.h' 
  osreldate.h;  echo #else  osreldate.h;
  echo \#'undef __FreeBSD_version'  osreldate.h;echo
  \#'define __FreeBSD_version' $RELDATE  osreldate.h;  echo
  #endif
 
   osreldate.h
 
  touch: not found
  *** Error code 127
 
  Stop in /usr/src/include.
  *** Error code 1
 
  Stop in /usr/src.
  *** Error code 1
 
  Stop in /usr/src.
  *** Error code 1
 
  Stop in /usr/src.
  *** Error code 1
 
  Stop in /usr/src.
 
  What can be the problem? I remember reseting the date earlier; but
  I ran make installworld after setting to new date.
  Would this be athe problem? In that case what should I do?

 You needed to do the buildworld again. It still has the old date on
 files that it created.

 Kent

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

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html


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



Configuring FreeBSD 4.7 for IPFW2

2003-01-16 Thread Paul Hamilton
Hi All,

I have upgraded FreeBSD from 4.3 to 4.7 - no problems.

I now want to run with IPFW, so as the man file says, I compiled my new
kernel for 'options IPFW2' I then ran 'make -DIPFW2 ipfw2' in the
/usr/srs/sbin/ipfw dir.  This compiled ok, and I manually copied it to  the
/sbin dir.  I tried that same with /usr/lib/libalias and got the following:


root@fred[5:46pm]/usr/src/lib/libalias-107# make -DIPFW2 alias
cc -O -pipe  -Wall -Wmissing-prototypes -DIPFW2
/usr/src/lib/libalias/alias.c  -o alias
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x79): undefined reference to `main'
/var/tmp/cctpxMD2.o: In function `TcpMonitorIn':
/var/tmp/cctpxMD2.o(.text+0x1c): undefined reference to `GetStateIn'
/var/tmp/cctpxMD2.o(.text+0x4d): undefined reference to `SetStateIn'
/var/tmp/cctpxMD2.o(.text+0x61): undefined reference to `SetStateIn'

snip

/var/tmp/cctpxMD2.o: In function `PacketUnaliasOut':
/var/tmp/cctpxMD2.o(.text+0x1788): undefined reference to `FindUdpTcpIn'
/var/tmp/cctpxMD2.o(.text+0x17a8): undefined reference to `FindIcmpIn'
/var/tmp/cctpxMD2.o(.text+0x17d3): undefined reference to
`GetOriginalAddress'
/var/tmp/cctpxMD2.o(.text+0x17df): undefined reference to `GetOriginalPort'
/var/tmp/cctpxMD2.o(.text+0x18bf): undefined reference to
`DifferentialChecksum'
/var/tmp/cctpxMD2.o(.text+0x1917): undefined reference to
`GetOriginalAddress'
/var/tmp/cctpxMD2.o(.text+0x1923): undefined reference to `GetOriginalPort'
/var/tmp/cctpxMD2.o(.text+0x197f): undefined reference to
`DifferentialChecksum'
*** Error code 1

Stop in /usr/src/lib/libalias.

Any idea on what is going wrong?  Is there a way to compile all the files in
the libalias/ dir?

PS. I got it compiled in the end by doing a 'make buildworld', slow, but
IPFW2 runs.  I would like to know to get alias's compiled, so I don't have
to go around running buildworld.

Cheers,

Paul Hamilton



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



natd port forwarding acting wierd

2003-01-16 Thread WillyB
Hi

I finally got natd and ipforwading set up but have a slight problem I 
don't understand.

The IP forwarding works from the internet, through the cable modem and 
through the freeBSD router I set up for my internal network, to a www 
server on the private lan.

I can't connect to my server however from my local net using the ip of 
the external net.

I was asking some folks I know for help.. when they told me what the 
page had on it... so it was working for them on their systems from 
various places around the country.. but still gives me a connection 
refused when going from a local machine.

I gave them the ip my ISP gives me.. and it worked.. I try the same IP 
and it doesn't work from my 192.168.0.* box, which by the way is the 
same box with the www server on it I am trying to connect to.
( I can connect to it using the local ip and machine name, but that's 
not the point )  ;)

Does anyone have any ideas as to why this is happening?

Thanks in advance. :)

WillyB


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


Re: how do i log another device to syslog?

2003-01-16 Thread Stijn Hoop
On Wed, Jan 15, 2003 at 03:55:01PM -0800, Bsd Neophyte wrote:
 --- Stijn Hoop [EMAIL PROTECTED] wrote:
  syslogd_flags=-a 1.2.3.4/32 in /etc/rc.conf should work according to
  the manpage.
  
  Maybe even syslogd_flags= is enough, but by default syslogd_flags
  is -s which doesn't allow peer logging.
  
  See /etc/defaults/rc.conf and man syslogd.
 
 i've done this, now what file would the webramp messages log to?  also,
 how can i have the webramp logs in their own file?

See 'man syslog.conf'. You need to edit /etc/syslog.conf to tell syslogd
to route all messages from a host to separate files. They will appear
in /var/log, just like your 'regular' logs from syslog (ie /var/log/messages,
/var/log/security etc).

HTH,

--Stijn

-- 
The right half of the brain controls the left half of the body.  This means
that only left handed people are in their right mind.



msg15645/pgp0.pgp
Description: PGP signature


Re: how do i log another device to syslog?

2003-01-16 Thread Bsd Neophyte
--- Stijn Hoop [EMAIL PROTECTED] wrote:
 See 'man syslog.conf'. You need to edit /etc/syslog.conf to tell syslogd
 to route all messages from a host to separate files. They will appear
 in /var/log, just like your 'regular' logs from syslog (ie
 /var/log/messages,
 /var/log/security etc).

i have, and the explanation is extremely cryptic.

i gather that this has something to do with my problem:


  A hostname specification of the form `#+hostname' or
 `+hostname' and the following blocks will be applied to messages received
  from the specified hostname.  Alternatively, a hostname specification
  `#-hostname' or `-hostname' causes the following blocks to be applied to
  messages from any host but the one specified.  If the hostname is given
  as `@', the local hostname will be used.  A program or hostname specifi-
  cation may be reset by giving the program or hostname as `*'.


it doesn't make any sense to me, and there are no examples in the man page
that are useful to my sittuation.

it seems that i'm having other issues as well.

this is what i'm now running for syslogd:

syslogd -v -a x.x.x.x/11:syslog -a x.x.x.x/24:syslog

when i do netstat -a, i see the following for syslogd:


udp4   0  0  *.syslog   *.*


it's state is blank.

so right now, nothing is happening.  i constantly check /var/log/messages
to see if anything new appeared from either host, but the box doesn't seem
to be logging anything.

anyone else wanna help with this one?

-Sameer





__
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: how do i log another device to syslog?

2003-01-16 Thread Stijn Hoop
On Thu, Jan 16, 2003 at 03:07:05AM -0800, Bsd Neophyte wrote:
 --- Stijn Hoop [EMAIL PROTECTED] wrote:
  See 'man syslog.conf'. You need to edit /etc/syslog.conf to tell syslogd
  to route all messages from a host to separate files. They will appear
  in /var/log, just like your 'regular' logs from syslog (ie
  /var/log/messages,
  /var/log/security etc).
 
 i have, and the explanation is extremely cryptic.

I concur, it isn't simple.

The following is untested but it appears that it should work from
my reading of the manpage (unfortunately, although I do intend to
use this setup sometime, I don't have time right now to test it).

Append this to your /etc/syslog.conf and kill -HUP syslogd:

+remotehost
*.* /var/log/remotehost

And then see if /var/log/remotehost gets filled.

 it seems that i'm having other issues as well.
 
 this is what i'm now running for syslogd:
 
 syslogd -v -a x.x.x.x/11:syslog -a x.x.x.x/24:syslog

That looks good.

 when i do netstat -a, i see the following for syslogd:
 
 
 udp4   0  0  *.syslog   *.*
 
 
 it's state is blank.

So it is listening for other messages, that's also good.

 so right now, nothing is happening.  i constantly check /var/log/messages
 to see if anything new appeared from either host, but the box doesn't seem
 to be logging anything.

I guess it needs to be told specifically to log messages from the box.

Try the above and let me know, it will be helpful for me as well :)

BTW, for testing, check out logger(1) -- you can use it to send test
messages to syslogd (and thus across the network).

--Stijn

-- 
Help Wanted: Telepath. You know where to apply.



msg15647/pgp0.pgp
Description: PGP signature


mod_frontpage on FreeBSD 4.7p3

2003-01-16 Thread vikashb
Greetings,

I am trying to get frontpage working on my bsd box,
I installed mod_frontpage from the ports tree.

when the M$ clients try to connect, it fails 
and the only error i see is :

[Thu Jan 16 12:50:01 2003] [error] [client 198.54.253.91] web root owned by 
privileged user: /usr/local/www/data/_vti_bin/shtml.exe

I have googled and have had no success.

my http.conf is all follows :

#
# Use name-based virtual hosting.
#
NameVirtualHost *

VirtualHost *
DocumentRoot /usr/local/www/data
ServerName www.websrv.my.domain
Directory /usr/local/www/data
Options Indexes FollowSymLinks MultiViews
DirectoryIndex index.php index.php3 index.html
AllowOverride AuthConfig Limit Indexes Options
Order allow,deny
Allow from all
/Directory
ErrorLog /usr/local/www/vhosts/logs/websrv-error.log
TransferLog /usr/local/www/vhosts/logs/websrv-xfer.log
/VirtualHost

VirtualHost *
DocumentRoot /usr/local/www/vhost/vhost1
ServerName www.vhost1.my.domain
Directory /usr/local/www/vhosts/vhost1
Options Indexes FollowSymLinks MultiViews
DirectoryIndex index.php index.php3 index.html
AllowOverride AuthConfig Limit Indexes Options
Order allow,deny
Allow from all
/Directory
ErrorLog /usr/local/www/vhosts/logs/vhosts/vhost1-error.log
TransferLog /usr/local/www/vhosts/logs/vhosts/vhost1-xfer.log
/VirtualHost


I can connect to the virtual hosts fine,
but i cannot access websrv via frontpage

please advise

Vikash

-
This message was sent using M-Web Airmail.
JUST LIKE THAT
Are you ready for 10-digit dialling?
To find out how this will affect your Internet connection go to www.mweb.co.za/ten
http://airmail.mweb.co.za/



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



RE: MPD/VPN

2003-01-16 Thread Ivailo Tanusheff

Hi,

Long ago I had the same problem.
You should check the XP client and it connection settings. I can't
remember the exact trick and I have no XP machine here to test it right
now, but there is some problems with multilink. You should disable
multilink on XP machine or you should enable it on both sides. The
problem is that I can't remember which of these 2 solutions worked with
me.

Best regards,
Ivailo Tanusheff
 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Scott Pilz
Sent: Monday, January 13, 2003 7:16 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: MPD/VPN 


I'm open to suggestions on this one. I have tried everything :(
I'm hoping that someone else ran into this problem and knows how to fix
it.

MPD/FREEBSD as a VPN server.

Multiple clients (windows and unix).

Windows 98: Works great, connects, tiny performance drop in speed,
hardly
noticeable.

Windows 2000: Works just as well as Windows 98 if not better.

Windows XP: I can connect, ping through the VPN, even load tiny web
pages
and telnet out - but anything large stalls completely.

I've tried multiple XP machines, they all do the same thing.

It is my understanding that this is a MTU issue - but I find it very
hard
to believe that Microsoft products need configuration before they work,
such as a MTU change.

Heres mpd.conf for what it's worth (I've excluded the clients):

client_standard:
set iface disable on-demand
set iface enable proxy-arp
set iface idle 86400
set bundle disable multilink
set link yes acfcomp protocomp
set link disable pap
set link enable chap
set link keep-alive 10 60
set ipcp yes vjcomp
set ipcp dns 66.170.64.1 66.170.64.13
set bundle enable compression
set bundle enable crypt-reqd
set ccp yes mppc
set ccp yes mpp-e40
set ccp yes mpp-e128
set ccp yes mpp-stateless


One other thing - I notice that the two clients that do work
(any
Windows 98 or 2000 box) has a MTU of 1496 on the server:

ng0: flags=88d1UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST mtu 1496

The ones that don't vary but are NOT 1496.

Any input would be helpful at this point.

bangs head into desk

Scott



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: natd port forwarding acting wierd

2003-01-16 Thread Matthew Seaman
On Thu, Jan 16, 2003 at 01:49:08AM -0700, WillyB wrote:

 I finally got natd and ipforwading set up but have a slight problem I 
 don't understand.
 
 The IP forwarding works from the internet, through the cable modem and 
 through the freeBSD router I set up for my internal network, to a www 
 server on the private lan.
 
 I can't connect to my server however from my local net using the ip of 
 the external net.

If you're following the way natd is setup in /etc/rc.firewall, viz
this chunk of code:

case ${firewall_type} in
[Oo][Pp][Ee][Nn]|[Cc][Ll][Ii][Ee][Nn][Tt])
case ${natd_enable} in
[Yy][Ee][Ss])
if [ -n ${natd_interface} ]; then
${fwcmd} add 50 divert natd all from any to any via 
${natd_interface}
fi
;;
esac
esac

notice that the rule to divert packets into natd only selects packets
that traverse the external interface (${natd_interface} in
/etc/rc.conf) of your gateway machine.  Packets from your internal
(192.168.0.0/24) network will not pass through that interface even if
they are destined for your nat'ed address, so they won't hit the
divert rule and they won't get nat'ed.

Now, you might think that the obvious answer is just to drop the 'via
${natd_interface}' part of the divert rule, so that all packets
passing across your gateway machine pass through nat'ing.
Unfortunately, this will fail to work --- apart from the fact that it
will probably screw things up by trying to nat packets going via the
loopback interface and all sorts of other unintended consequences,
your original aim of being able to access your internal server as if
you were coming from outside your net still won't work.

What happens is this:

You send a packet to the NAT address on your gateway.

The modified firewall rules pass the packet through the divert socket
to natd, which rewrites the destination address to be that of your
internal server.  Nb.  the *source* address in the packet is left
untouched.

The packet is then sent across your internal network to your server.
The server deals with it as normal, and generates a response packet
back to the *original sender*, with it's own address as the source.
That happens to be to a machine on the local network, so the response
packet gets delivered straight there.  Normally, the response packet
would be to a remote network and the packet would have to pass through
your gateway to get there, thus giving the natd machinery the chance
to process it, and replace the sender address with the nat address.

Now, the original machine is expecting to have a tcp conversation with
a machine using your nat address.  Unfortunately the packets it
receives in response appear to come from some machine on your local
net.  In order to preserve sanity it ignores those packets and keeps
listening out for the expected response from the place it sent the
packets to.  Eventually it all times out and everybody gives up in
disgust.

There are two possible solutions to this problem.

i) Split Horizon.  Usually implemented in terms of DNS, but you
can fudge the issue using /etc/hosts on your internal machines if
that's easier for you.  All this does is arrange things so that a
lookup for www.mysite.com returns the address of the server on the
internal network when looked up from inside, and the address of
the nat gateway when looked up from outside.

ii) Reverse Proxy.  Instead of accessing your internal server via
a NAT gateway, set up a web proxy on your gateway machine.  Unlike
a normal web proxy, instead of grabbing web pages from out on the
net for the benefit of your internal systems, the reverse proxy
grabs web pages from your internal machine for the benefit of the
rest of the net.  The NAT gateway will rewrite one out of the
sender or recipient addresses of any packets addressed to it,
whereas the proxy will effectively rewrite both the sender and
recipient addresses, solving the problem detailed above.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey 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: Problems w NIC

2003-01-16 Thread Brian Astill
Stacey Roberts wrote:

Just one more question.
How do I list the second card in /etc/hosts?
atm I have
127.0.0.1   localhost.gihon.org.au 
localhost  
192.168.1.100   BAPhD.gihon.org.au  
BAPhD 
172.16.1.2  PhD_1.gihon.org.au  
PhD_1 
172.16.1.3  third.gihon.org.au  Third

Where do I put rl1 172.16.1.1?  I can make IT the default gateway for 
172.16.1.2 and 172.16.1.3, I guess, and perhaps make IT'S default 
gateway 192.168.1.100?

--
Brian 


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


Re: how do i log another device to syslog?

2003-01-16 Thread Bsd Neophyte
--- Stijn Hoop [EMAIL PROTECTED] wrote:
 Try the above and let me know, it will be helpful for me as well :)
 
 BTW, for testing, check out logger(1) -- you can use it to send test
 messages to syslogd (and thus across the network).
 
 --Stijn

okay... i tried it.

when i re-ran syslogd i was given this message:

-
syslogd: child pid 12908 exited with return code 1
-

i've been trying to see if anything would be recorded... but so far
nothing.  the 806 and the webramp both are showing activity, but nothing
is being logged.

-Sameer

__
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



Connecting to httpd and sshd from remote computer

2003-01-16 Thread Vegard Skjefstad
I'm unable to connect to my EPIA-800 box running FreeBSD 5.0 RC-3. 
Connecting to servers FROM the box (for instance browsing the web with 
lynx) and ping works just find.

I'm running 2.0.43 of Apache, not sure what version of sshd, I run the one 
that came with FreeBSD. Both daemons are up and running, and listening to 
their ports, at least according to sockstat. httpd is listening to port 80 
(using tcp6 only, of some reason), while sshd is listening on port 22 (both 
tcp4 and tcp6). I've also got inetd running, if I open for telnet in the 
/etc/inted.conf file, I'm able to telnet from another machine and connect 
to the box. A solution might be to add sshd and httpd in inetd, but from 
what I've heard, inetd is listening for connections to certain ports, then, 
if any connections are detected, opening the appropriate program and 
routing the connection to that program (am I right on this one?). This 
should not be necessary, since both sshd and httpd is already listening for 
connections on their own.

My first assumption was that the problem was caused by a firewall, but I 
don't think any firewall or firewall rules are set up, since 
firewall_enable=NO in the /etc/defaults/rc.conf.

Another fishy thing is that I'm also unable to connect to Apache from 
localhost using lynx. lynx 192.168.0.10:80 gives me an Alert!: Unable to 
connect to remote host.. The ServerName is set to 192.168.0.10:80 in the 
httpd.cond file. Connecting to the sshd using ssh works fine in the sense 
that I get a connection to sshd, but is unable to log in.

Pinging the FreeBSD system from another computer works fine.

So, do you guys have any ideas? Good or bad, it doesn't matter, because I'm 
totally out of ideas...

(and if you guessed I was pretty new at this, you guessed right )

[EMAIL PROTECTED]
http://www.vegard.net/
ICQ UIN: 11872166
MSN: [EMAIL PROTECTED]
Yahoo! ID: jebusde
AIM: vegardskjefstad

---
This mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 10.01.2003



stunnel + transparent proxying

2003-01-16 Thread Mark
Using ipfw and/or NAT, has anyone ever succeeded in getting stunnel to bind
transparently to a local address?

I have been experimenting with the alias function for the NIC, and used ipfw
and NAT to divert in all directions I could wiz. But stunnel always regards
the address as belonging to localhost, and fails to bind transparently. :(

What I want, is to allow a secure connection to read news over. But not so
that stunnel's failure to bind transparently breaks the access.db (as, from
the news server's point of view, all seems to come from localhost).

I know the Linux kernel allows transparent binding (locally). But I thought
maybe on FreeBSD I could fake a remote to bind to, which is really a local
address (on the same machine).

I am beginning to think this is not really possible; but one can always
hope. :)

- Mark


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



popa3d-before-sendmail

2003-01-16 Thread Antoine Jacoutot
Hello !

I'm using FreeBSD-4.7-STABLE.
I installed popa3d-before-sendmail from the ports (popa3d with
SMTP_AFTER_POP3 option; thanks to a people on this list).
The pop-before-smtp is working fine except that the IPs in
/etc/mail/popauth stay forever, meaning the relay stays open forever for
those IPs.
In pop-before-sendmail.patch, -DVALIDTIME=600, meaning the relaying for
those IPs should work for 10 minutes (600 seconds) before having to make
another pop authentication, but the relay stays open forever...

# makemap -u hash popauth
xxx.xxx.xxx.xxx 1042721098

Any idea ?

Thanks in advance.

Antoine



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



Re: FreeBSD and AMD power management

2003-01-16 Thread AELI
Am Thursday 09 January 2003 23:14 schrieb Brian Astill:
 Mark wrote:
 - Original Message -

 From: Matthew Seaman [EMAIL PROTECTED]

 To: [EMAIL PROTECTED]
 Sent: Thursday, January 09, 2003 9:54 AM
 Subject: Re: FreeBSD and AMD power management
 
 Try the ports/sysutils/fvcool port ---
 http://www.nt.phys.kyushu-u.ac.jp/shimizu/
 
 Using it has cut the average CPU temperature on my system from
 about 70C to about 50C.
 
 It looked interesting; so I checked it out. Then it turns out this
 power-safe mode on your AMD CPU is disabled by default for a good reason:
  it makes your system unstable, and/or causes it to hang. Then cool is
  suddenly not so cool anymore. :(

 You have somewhat misread the docs.
 To prove this, nobody using fvcool has reported instability on this or
 any other list.  All HAVE reported a drop in CPU temperature of around
 20C.  In my case that means dropping from 55C to 35C.

-- 
I'm sorry to be the first !! My system locks in about 2s. after starting 
Fvcool.
It's a Athlon TB 1.4c on an Msi K7T266pro-R !
Any one any idea! For exanple the Pciconf.values? 
 

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



Re: Connecting to httpd and sshd from remote computer

2003-01-16 Thread Vegard Skjefstad
At 14:21 16.01.2003 +0100, you wrote:


# [EMAIL PROTECTED] / 2003-01-16 14:06:56 +0100:
 Thank you for your quick answer.

 Changing the setting in the sshd_config file enabled sshd root login
 (naturally). Shhd-problem solved :)

actually, a sshd-problem created. why don't you log in with your
regular account, and su to root if/when needed?

and don't top-post, please.


A good point, indeed. My default user can now su and root-login through 
sshd closed.

Sorry about the top-posting, I blame it on my e-mail client.



[EMAIL PROTECTED]
http://www.vegard.net/
ICQ UIN: 11872166
MSN: [EMAIL PROTECTED]
Yahoo! ID: jebusde
Jabber: [EMAIL PROTECTED]

---
This mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 10.01.2003



Re: How can data be inserted into a MySQL DB using C code?

2003-01-16 Thread Bill Moran
Paul Hamilton wrote:

Hi All,

Step one was collecting the data, Step two is to somehow get the info into a
MySQL DB.

I am monitoring a serial port's CTS line, and need to get the fact that it's
changed state logged into the DB.

I can use C and/or PHP.  Perl is beyond me :-(  (I have trouble enough just
trying to add Perl modules).


This is OT for the FreeBSD lists.  MySQL has several list where you'll have
more people subscribed who can help you.

However, it sounds like you want to use the MySQL C API.  If you install the
MySQL client, the C API is included (if memory serves).  All you have to do
is write your code to use it, and be sure to give the proper options to cc
when you compile to link in the MySQL libraries.
This page starts the docs on the MySQL C API.
http://www.mysql.com/doc/en/C.html


The C program runs continuously, monitoring the CTS bit, so I thought it
would be nice to dump the info straight into the MySQL DB.

As a backup, I suppose, I could dump the 'date/time' and 'CTS-Open-Closed'
into a text file, then once a day, run a PHP script to import the files
contents into the MySQL DB.  However, that means I wouldn't get any live
data.


That sounds pretty clunky.


I know there is the MySQL++ project, but I had problems trying to get that
to function, and my C++ knowledge is negligible.

Any help, or tips would be grateful.

Cheers,

Paul Hamilton


--
Bill Moran
Potential Technologies
http://www.potentialtech.com


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



Shell history in FreeBSD ksh (or ksh93)

2003-01-16 Thread stan
I've been using ksh with the vi keybindings for several years now
(changed from csh). I've even been able to get this working on former
FreeBSD machines, by downloading the ksh from the ATTT site.

I've now got a 4.7 STABLE machine, and I'm trying to get this to work with
either it's ksh, or ksh93 (which I thought would be the same as the ATTT
version, since it's code is now free). But so far I've not been able to get
this to work.

To be specific, what I want is to be able to press [ESC} and be in the ex
(line mode) editor on the command history. I dragged over a set of . files
from a working FreeBSD machine, that has the ATTT version, but it's still
not working on this machine. It's been _way_ too long since I set this up
to remember how I got it working.

Where should I start looking? What environment variables control this, and
what should the be set to?

Thanks for help on this.

-- 
They that would give up essential liberty for temporary safety deserve
neither liberty nor safety.
-- Benjamin Franklin

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



Re: entropy

2003-01-16 Thread Fernando Gleiser
On 15 Jan 2003, Lowell Gilbert wrote:

 Wilkinson,Alex [EMAIL PROTECTED] writes:

  Can someone recommend to me where I can read up on
  entropy.
 
  ie what it is ? Why we have it ? etc etc

 The term entropy is often used (in rough analogy to its technical
 meaning in thermodynamics) in computer systems to describe the
 amount of randomness available to random-number functionality.

The entropy is the mean information per symbol. The higher the entropy,
the more random the language is.

It can be shown that the entropy is maximum when all the symbols in
the alphabet have the same probability 1/n, where n is the number of
symbols in the alphabet. In that case, the entropy has a value of
-n*log2(n). Also, in that case the alphabet is trully random.


 What to read depends on why you need to know about it, but you could
 always refer to some manual pages, particularly rndcontrol(8).

If you want a more solid background, get an introductory book in
information/coding theory. But don't try it if you don't know calculus,
probability and algebra.


Fer



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



Re: drivers.flp - How to use ???

2003-01-16 Thread Scott Mitchell
On Thu, Jan 16, 2003 at 03:00:45PM +0100, d m wrote:
 Hi,
 
 I did not find an answer in the docs or mailinglistarchive...
 
 I'm trying to install FreeBSD 5.0 RC3 an my Digital Alpha 1000 (AS1000).
 
 I can boot to the textmenu, but the hds can't be seen (RAID-Controller
 Mylex DAC960).
 
 The drivers.flp can't be used in this menu. I tried to load the
 kernelmodules before the textmenu pops up with the 'load' command.
 I can see the drivers e.g. mlx.ko, mlx.dsc on the disk with ls, but
 'load' tells me 'can't find xxx'.
 
 How does it work ?
 
 There is no menuentry in the textmenu where I can load drivers, at least
 I did not find it
 
 Daniel

Hi Daniel,

I'm doing this from memory, so I might not be 100% right...

There is a menu option to load a KLD in the 5.0 sysinstall -- I think right
at the end of the 'Configure' menu.  You have to scroll down to see it, but
it is there.

If you want to load them in the loader (before actually booting the kernel)
you have to give the full path, eg.

load /if_wi.ko

I guess either method will work.

HTH,

Scott


-- 
===
Scott Mitchell  | PGP Key ID | Eagles may soar, but weasels
Cambridge, England  | 0x54B171B9 |  don't get sucked into jet engines
[EMAIL PROTECTED] | 0xAA775B8B |  -- Anon

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



DNS problem

2003-01-16 Thread Hilmi Hilmiev
Hi all,

I have a veri bad situation with my DNS server. From the begining I don't know that 
this server is runing as well, cuz the DNS server is inherited for my. What is a my 
problem: reverse address resolving not work correct. What I mean: I use nslookup tool 
for checking the DNS server, and if I use as server my DNS server all type of 
resolving work. Still work. The problem is when I use server from the world: example 
ns1.versatel.net (situation is same with other server from the worl), this server 
can't find the reverse record for my machines. Here I past some outputs from nslookup.

My question is: what is wrong in my situation? Where is the problem: with my server or 
...

10x to all in advance!

-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=RESULT WHEN I USE EXTERNAL FOR MY DOMAIN 
DNS SERVER-=-=-=-=-=-=-=-=-=-=-=-=
 server ns1.versatel.net
;; res_nmkquery(QUERY, ns1.versatel.net, IN, A)

Got answer:
   HEADER:
   opcode = QUERY, id = 58683, rcode = NOERROR
   header flags:  response, auth. answer, want recursion, recursion avail.
   questions = 1,  answers = 1,  authority records = 2,  additional = 2

   QUESTIONS:
   ns1.versatel.net, type = A, class = IN
   ANSWERS:
   -  ns1.versatel.net
   internet address = 62.58.62.132
   ttl = 86400 (1D)
   AUTHORITY RECORDS:
   -  versatel.net
   nameserver = ns1.versatel.net
   ttl = 86400 (1D)
   -  versatel.net
   nameserver = ns2.versatel.net
   ttl = 86400 (1D)
   ADDITIONAL RECORDS:
   -  ns1.versatel.net
   internet address = 62.58.62.132
   ttl = 86400 (1D)
   -  ns2.versatel.net
   internet address = 62.58.94.130
   ttl = 86400 (1D)


;; res_nmkquery(QUERY, ns1.versatel.net, IN, )

Got answer:
   HEADER:
   opcode = QUERY, id = 58684, rcode = NOERROR
   header flags:  response, auth. answer, want recursion, recursion avail.
   questions = 1,  answers = 0,  authority records = 1,  additional = 0

   QUESTIONS:
   ns1.versatel.net, type = , class = IN
   AUTHORITY RECORDS:
   -  versatel.net
   ttl = 86400 (1D)
   origin = ns1.versatel.net
   mail addr = hostmaster.versatel.net
   serial = 2002121801
   refresh = 10800 (3H)
   retry   = 3600 (1H)
   expire  = 604800 (1W)
   minimum ttl = 86400 (1D)


;; res_nmkquery(QUERY, ns1.versatel.net.wizzbit.nl, IN, )

Got answer:
   HEADER:
   opcode = QUERY, id = 58685, rcode = NXDOMAIN
   header flags:  response, want recursion, recursion avail.
   questions = 1,  answers = 0,  authority records = 1,  additional = 0

   QUESTIONS:
   ns1.versatel.net.wizzbit.nl, type = , class = IN
   AUTHORITY RECORDS:
   -  wizzbit.nl
   ttl = 499 (8m19s)
   origin = ns.wizzbit.nl
   mail addr = postmaster.wizzbit.nl
   serial = 20020451
   refresh = 14400 (4H)
   retry   = 3600 (1H)
   expire  = 604800 (1W)
   minimum ttl = 86400 (1D)


Default Server:  ns1.versatel.net
Address:  62.58.62.132

 62.58.54.10
Server:  ns1.versatel.net
Address:  62.58.62.132

;; res_nmkquery(QUERY, 10.54.58.62.in-addr.arpa, IN, PTR)

Got answer:
   HEADER:
   opcode = QUERY, id = 58686, rcode = NXDOMAIN
   header flags:  response, auth. answer, want recursion, recursion avail.
   questions = 1,  answers = 0,  authority records = 1,  additional = 0

   QUESTIONS:
   10.54.58.62.in-addr.arpa, type = PTR, class = IN
   AUTHORITY RECORDS:
   -  62.in-addr.arpa
   ttl = 7200 (2H)
   origin = ns.ripe.net
   mail addr = ops-62.ripe.net
   serial = 2003011602
   refresh = 43200 (12H)
   retry   = 7200 (2H)
   expire  = 1209600 (2W)
   minimum ttl = 7200 (2H)


*** ns1.versatel.net can't find 62.58.54.10: Non-existent host/domain



-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=RESULT IF I 
USE MY DNS SERVER
 server 62.58.54.11
;; res_nmkquery(QUERY, 11.54.58.62.in-addr.arpa, IN, PTR)

Got answer:
   HEADER:
   opcode = QUERY, id = 58687, rcode = NXDOMAIN
   header flags:  response, auth. answer, want recursion, recursion avail.
   questions = 1,  answers = 0,  authority records = 1,  additional = 0

   QUESTIONS:
   11.54.58.62.in-addr.arpa, type = PTR, class = IN
   AUTHORITY RECORDS:
   -  62.in-addr.arpa
   ttl = 7200 (2H)
   origin = ns.ripe.net
   mail addr = ops-62.ripe.net
   serial = 2003011602
   refresh = 43200 (12H)
   retry   = 7200 (2H)
   expire  = 1209600 (2W)
   minimum ttl = 7200 (2H)


;; res_nmkquery(QUERY, 62.58.54.11, IN, )

Got answer:
   HEADER:
   opcode = QUERY, id = 58688, rcode = NXDOMAIN
   header flags:  response, auth. answer, want recursion, recursion avail.
   questions = 1,  answers = 0,  authority records = 1,  additional = 0

   QUESTIONS:
   62.58.54.11, type = , class 

Re: How do I monitor the serial CTS line via C programmatically?

2003-01-16 Thread Giorgos Keramidas
On 2003-01-16 15:44, Paul Hamilton [EMAIL PROTECTED] wrote:
 Thanks Giorgos!

 I needed to know the function used to access the Serial ports under FreeBSD.
 Your program compiles, but generates the following error msg when run:

 test_prog: ioctl: Inappropriate ioctl for device

 Thanks to the ioctl 'tip', I researched around, and found that the
 serial port needed opening, so this is the finished code (just in
 case someone else needs it):

Ah, of course.  When I tested it, I used:

% ./a.out  /dev/cuaa1

so the shell did the open() for me :)

You're right, of course...

 [snip C source]


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



Option to ls similar to the -H option for GNU ls?

2003-01-16 Thread stan
I find I've become very atached to the -H (human readble) flag in GNU's ls.
This in conjuction with the -l flag displays the size of files in M, G etc.
Is there a way to get FreeBSD's ls to do this? Nothing jumped out at me
from the man page, when I looked there.


-- 
They that would give up essential liberty for temporary safety deserve
neither liberty nor safety.
-- Benjamin Franklin

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



Re: Option to ls similar to the -H option for GNU ls?

2003-01-16 Thread Matthew Seaman
On Thu, Jan 16, 2003 at 09:54:54AM -0500, stan wrote:
 I find I've become very atached to the -H (human readble) flag in GNU's ls.
 This in conjuction with the -l flag displays the size of files in M, G etc.
 Is there a way to get FreeBSD's ls to do this? Nothing jumped out at me
 from the man page, when I looked there.

Look harder:

ls -lh

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey 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: drivers.flp - How to use ???

2003-01-16 Thread d m
Hi Scott,

thanks for your fast suggestions. The second one helped, 
as the  'Load KLD' tells me that he can't find my floppy (strange as I
booted from it..)
He says: 'No floppy devices found! Please check...' and 'Unable to set
media device to floppy'. :-(

The webinst over http-proxy seems to work now (still running) unlike the
4.6.2.

Regards,
Daniel


Am Don, 2003-01-16 um 15.40 schrieb Scott Mitchell:
 On Thu, Jan 16, 2003 at 03:00:45PM +0100, d m wrote:
  Hi,
 
  I did not find an answer in the docs or mailinglistarchive...
 
  I'm trying to install FreeBSD 5.0 RC3 an my Digital Alpha 1000 (AS1000).
 
  I can boot to the textmenu, but the hds can't be seen (RAID-Controller
  Mylex DAC960).
 
  The drivers.flp can't be used in this menu. I tried to load the
  kernelmodules before the textmenu pops up with the 'load' command.
  I can see the drivers e.g. mlx.ko, mlx.dsc on the disk with ls, but
  'load' tells me 'can't find xxx'.
 
  How does it work ?
 
  There is no menuentry in the textmenu where I can load drivers, at least
  I did not find it
 
  Daniel
 
 Hi Daniel,
 
 I'm doing this from memory, so I might not be 100% right...
 
 There is a menu option to load a KLD in the 5.0 sysinstall -- I think right
 at the end of the 'Configure' menu.  You have to scroll down to see it, but
 it is there.
 
 If you want to load them in the loader (before actually booting the kernel)
 you have to give the full path, eg.
 
 load /if_wi.ko
 
 I guess either method will work.
 
 HTH,
 
   Scott
 
 
 --
 ===
 Scott Mitchell  | PGP Key ID | Eagles may soar, but weasels
 Cambridge, England  | 0x54B171B9 |  don't get sucked into jet engines
 [EMAIL PROTECTED] | 0xAA775B8B |  -- Anon



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



64 bit support

2003-01-16 Thread shubha mr
Hi,
Does freeBSD support 64 bit?If so,which version of the
OS supports the same?I would appreciate if anyone can
let me know abt this soon.

Thanks and regards,
shubha

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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



Good C/C++ mailinglist for beginners

2003-01-16 Thread Martin Moeller

Could someone point me to a good mailinglist on (learning) C/C++?

Thanks!


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



Re: DNS problem

2003-01-16 Thread Ruben de Groot
On Thu, Jan 16, 2003 at 04:40:40PM +0200, Hilmi Hilmiev typed:
 Hi all,
 
 I have a veri bad situation with my DNS server. From the begining I don't know that 
this server is runing as well, cuz the DNS server is inherited for my. What is a my 
problem: reverse address resolving not work correct. What I mean: I use nslookup tool 
for checking the DNS server, and if I use as server my DNS server all type of 
resolving work. Still work. The problem is when I use server from the world: example 
ns1.versatel.net (situation is same with other server from the worl), this server 
can't find the reverse record for my machines. Here I past some outputs from nslookup.
 
 My question is: what is wrong in my situation? Where is the problem: with my server 
or ...

The IP adres your trying to resolve the PTR record of is not delegated to
your nameserver. Therefore, other nameservers will never find it.

rubeng@koto:/home/rubeng dig 10.54.58.62.in-addr.arpa ptr

;  DiG 9.2.1  10.54.58.62.in-addr.arpa ptr
;; global options:  printcmd
;; Got answer:
;; -HEADER- opcode: QUERY, status: NXDOMAIN, id: 58368
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;10.54.58.62.in-addr.arpa.  IN  PTR

;; AUTHORITY SECTION:
62.in-addr.arpa.6972IN  SOA ns.ripe.net. ops-62.ripe.net. 
2003011602 43200 7200 1209600 7200

If you want to administer your own PTR records, you'll have to go and talk
to your provider. Good luck!


 
 
 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



sysinstall search

2003-01-16 Thread Miklos Janosi
By accident, in the packages sub-menu of sysinstall,
I hit the escape key and a search box came up. No
matter what I put in there it doesn't find anything.
Does someone know how to get the search box to find
a package? TIA

--
--   __/|___  Two||
--  |  |  / | wrongs |  Miki Janosi   |
-- _|  |_ \  ___| won't  |  [EMAIL PROTECTED]|
-- \/  \| make a |  (330) 972-8640|
--  \  /  ___|\   right. ||
--   \/  | \  /---/   |
--   |___  /  \ 3 lefts will. \ _/
--   |/`

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



USB to Serial cable support ?

2003-01-16 Thread ptiJo ptiJo
Hi,

seeing laptops without serial ports, I was wondering if FreeBSD would know who to use 
a USB to Serial Cable (like, fo eg, http://www.usbgear.com/usa/item_288.html - USB 
to Serial RS-232 DB-9 Adapter Cable 6ft).

then, is it another USB thing that gets specific thing over the USB part (like Archos 
JukeBox gets ISD-200 under the USB umass part ; and then you need FreeBSD support for 
ISD-200)
this is to ask, do I have to buy the USB to Serial cable of a specific brand or 
doesn't this matter like it doesn't for normal serial cable or RJ45/Network cable ?

same questions for things like DELL racks/docks - does anyone have it working with 
FreeBee ?

Thanks for answers,
Jo



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



nuxeo ?

2003-01-16 Thread User Frankb
Hi

Does anybody has successfully installed the nuxeo software
on a FreeBSD box ?

This is a Zope based workgroup package.

Thanks


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



syslog.conf and newsyslog.conf questions

2003-01-16 Thread Louis LeBlanc
Hey all.  I have a silly little admin question.

Recently I got a message on my work machine security check output
saying that there was a failed login attempt for my id, from an IP
that seemed a little familiar.  The date of the attempt was January
14.  Well, grepping thru /var/log/auth.log, I found the message, but
it seems it was actually last year.  The IP was familiar because it
is one I used to have when I had ATT Broadband as my ISP at home.
There was a hole in the firewall at work at the time, but it shouldn't
have been there now.  Anyway, it caused quite a bit of confusion
before we realized that the security output was only grepping out the
previous days entries without using the year - and why should it, they
aren't even part of the entries.

What I need to do obviously, is get my auth.log to roll from time to
time.  Preferably on a monthly basis.

The thing is, what, if anything, should I put in the PIDFILE and
SIGNAL fields to ensure the daemon resumes logging to a new auth.log
rather than continuing to log to the one that's been rolled and
possibly compressed?

Here's what I have so far for the entry:

/var/log/auth.log640  12*$M1D0 Z

I'm guessing this is a syslog logfile judging from the
/etc/syslog.conf entry:

auth.info;authpriv.info /var/log/auth.log

So, should I provide the path to that pidfile?  I have other entries
in /etc/newsyslog.conf that correspond to log entries in
/etc/syslog.conf, but don't have any signal or pidfile info.  Is this
ok?  It does look like the logs get rolled properly without the need
for pidfile or signal info, but I want to be sure.

TIA

Lou
-- 
Louis LeBlanc   [EMAIL PROTECTED]
Fully Funded Hobbyist, KeySlapper Extrordinaire :)
http://www.keyslapper.org Ô¿Ô¬

The following statement is not true.  The previous statement is true.

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



Kernel with sound support will not compile

2003-01-16 Thread scottman
Hello helpful spirit,

I'm trying to add sound support to my FreeBSD 4.6.2 Release, but MAKE sends out this 
message:



cc -elf -shared -nostdlib hack.c -o hack.So
rm -f hack.c
sh ../../conf/newvers.sh PATKERNEL 
cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ansi  
-nostdinc -I- -I. -I../.. -I/usr/include -I../../contrib/ipfilter  -D_KERNEL -include 
opt_global.h -elf  -mpreferred-stack-boundary=2  vers.c
linking kernel
if.o: In function `if_setlladdr':
if.o(.text+0x1bc4): undefined reference to `arp_ifinit'
usb_ethersubr.o: In function `usbintr':
usb_ethersubr.o(.text+0x31): undefined reference to `ether_input'
*** Error code 1

Stop in /usr/src/sys/compile/PATKERNEL.



I'm wondering what I need to do so my kernel compiles. BTW: I only installed the 
kernel source files. I also included at the end of this email the modified kernel.

Thank you for all the help, it is very welcome! Keep up the great work and I'm looking 
forward to becoming a true FreeBSD disciple. I'm only in my first month with Unix / 
FreeBSD... ;)

Scottman

Modified kernel which will not compile:

#
# GENERIC -- Generic kernel configuration file for FreeBSD/i386
#
# For more information on this file, please read the handbook section on
# Kernel Configuration Files:
#
#http://www.FreeBSD.org/handbook/kernelconfig-config.html
#
# The handbook is also available locally in /usr/share/doc/handbook
# if you've installed the doc distribution, otherwise always see the
# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
# latest information.
#
# An exhaustive list of options and more detailed explanations of the
# device lines is also present in the ./LINT configuration file. If you are
# in doubt as to the purpose or necessity of a line, check first in LINT.
#
# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.246.2.43 2002/05/23 17:04:01 obrien Exp $

machine i386
cpu I586_CPU

ident   PATKERNEL
maxusers0

#makeoptionsDEBUG=-g#Build kernel with gdb(1) debug symbols

#optionsMATH_EMULATE#Support for x87 emulation
options INET#InterNETworking
options INET6   #IPv6 communications protocols
options FFS #Berkeley Fast Filesystem
options FFS_ROOT#FFS usable as root device [keep this!]
options SOFTUPDATES #Enable FFS soft updates support
#optionsUFS_DIRHASH #Improve performance on big directories
options MFS #Memory Filesystem
options MD_ROOT #MD is a potential root device
#optionsNFS #Network Filesystem
#optionsNFS_ROOT#NFS usable as root device, NFS required
options MSDOSFS #MSDOS Filesystem
options CD9660  #ISO 9660 Filesystem
options CD9660_ROOT #CD-ROM usable as root, CD9660 required
options PROCFS  #Process filesystem
options COMPAT_43   #Compatible with BSD 4.3 [KEEP THIS!]
#optionsSCSI_DELAY=15000#Delay (in ms) before probing SCSI
options UCONSOLE#Allow users to grab the console
options USERCONFIG  #boot -c editor
options VISUAL_USERCONFIG   #visual boot -c editor
options KTRACE  #ktrace(1) support
options SYSVSHM #SYSV-style shared memory
options SYSVMSG #SYSV-style message queues
options SYSVSEM #SYSV-style semaphores
options P1003_1B#Posix P1003_1B real-time extensions
options _KPOSIX_PRIORITY_SCHEDULING
options ICMP_BANDLIM#Rate limit bad replies
options KBD_INSTALL_CDEV# install a CDEV entry in /dev

# To make an SMP kernel, the next two are needed
#optionsSMP # Symmetric MultiProcessor Kernel
#optionsAPIC_IO # Symmetric (APIC) I/O

device  isa
device  eisa
device  pci

# Sound card device
device pcm  # Sound Blaster compatible 
device sbc  # Plug n Play ISA sound card support

# Floppy drives
device  fdc0at isa? port IO_FD1 irq 6 drq 2
device  fd0 at fdc0 drive 0
#device fd1 at fdc0 drive 1
#
# If you have a Toshiba Libretto with its Y-E Data PCMCIA floppy,
# don't use the above line for fdc0 but the following one:
#device fdc0

# ATA and ATAPI devices
device  ata0at isa? port IO_WD1 irq 14
device  ata1at isa? port IO_WD2 irq 15
device  ata
device  atadisk # ATA disk drives
device  atapicd # ATAPI CDROM 

Kernel build returns Error code 1

2003-01-16 Thread romanbsd
Hello helpful spirit,

I'm trying to add sound support to my FreeBSD Release 4.6.2 kernel but it will not 
build successfully. Here is the error output I get (tail of make output):


touch hack.c
cc -elf -shared -nostdlib hack.c -o hack.So
rm -f hack.c
sh ../../conf/newvers.sh PATKERNEL 
cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -c
linking kernel
if.o: In function `if_setlladdr':
if.o(.text+0x1bc4): undefined reference to `arp_ifinit'
*** Error code 1

Stop in /usr/src/sys/compile/PATKERNEL.


I'm only one month old in the Unix/FreeBSD environment and don't really know what 
should be done to fix this. I have included my kernel at the end of this message for 
reference. I just know that I get some warnings about some NET, INET and INET6 
files... Could this be related to these options?

options INET#InterNETworking
options INET6  #IPv6 communications protocols

Thank you for your help, it is much appreciated,
Scottman

Here is the content of my kernel:


machine i386
cpu I586_CPU

ident   PATKERNEL
maxusers0

options INET#InterNETworking
options INET6   #IPv6 communications protocols
options FFS #Berkeley Fast Filesystem
options FFS_ROOT#FFS usable as root device [keep this!]
options SOFTUPDATES #Enable FFS soft updates support
options MFS #Memory Filesystem
options MD_ROOT #MD is a potential root device
options MSDOSFS #MSDOS Filesystem
options CD9660  #ISO 9660 Filesystem
options CD9660_ROOT #CD-ROM usable as root, CD9660 required
options PROCFS  #Process filesystem
options COMPAT_43   #Compatible with BSD 4.3 [KEEP THIS!]
options UCONSOLE#Allow users to grab the console
options USERCONFIG  #boot -c editor
options VISUAL_USERCONFIG   #visual boot -c editor
options SYSVSHM #SYSV-style shared memory
options SYSVMSG #SYSV-style message queues
options SYSVSEM #SYSV-style semaphores
options P1003_1B#Posix P1003_1B real-time extensions
options _KPOSIX_PRIORITY_SCHEDULING
options ICMP_BANDLIM#Rate limit bad replies
options KBD_INSTALL_CDEV# install a CDEV entry in /dev

device  isa
device  eisa
device  pci

# Sound card device
device  pcm   # Sound Blaster compatible 
device  sbc # Plug n Play ISA sound card support

# Floppy drives
device  fdc0at isa? port IO_FD1 irq 6 drq 2
device  fd0 at fdc0 drive 0

# ATA and ATAPI devices
device  ata0at isa? port IO_WD1 irq 14
device  ata1at isa? port IO_WD2 irq 15
device  ata
device  atadisk # ATA disk drives
device  atapicd # ATAPI CDROM drives
device  atapifd # ATAPI floppy drives
options ATA_STATIC_ID   #Static device numbering

# atkbdc0 controls both the keyboard and the PS/2 mouse
device  atkbdc0 at isa? port IO_KBD
device  atkbd0  at atkbdc? irq 1 flags 0x1
device  psm0at atkbdc? irq 12

device  vga0at isa?

# splash screen/screen saver
pseudo-device   splash

# syscons is the default console driver, resembling an SCO console
device  sc0 at isa? flags 0x100

# Floating point support - do not disable.
device  npx0at nexus? port IO_NPX irq 13

# Serial (COM) ports
device  sio0at isa? port IO_COM1 flags 0x10 irq 4
device  sio1at isa? port IO_COM2 irq 3
device  sio2at isa? disable port IO_COM3 irq 5
device  sio3at isa? disable port IO_COM4 irq 9

# Parallel port
device  ppc0at isa? irq 7
device  ppbus   # Parallel port bus (required)
device  lpt # Printer
device  plip# TCP/IP over parallel
device  ppi # Parallel port interface device

# Pseudo devices - the number indicates how many units to allocate.
pseudo-device   loop# Network loopback
pseudo-device   ppp 1   # Kernel PPP
pseudo-device   tun # Packet tunnel.
pseudo-device   pty # Pseudo-ttys (telnet etc)
pseudo-device   md  # Memory disks
pseudo-device   gif # IPv6 and IPv4 tunneling
pseudo-device   faith   1   # IPv6-to-IPv4 relaying (translation)


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



testing testing

2003-01-16 Thread romanbsd
just a test, sorry

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



Re: Problems w NIC

2003-01-16 Thread Stacey Roberts
Hi,
Glad to hear that you've understood, and that you've made progress.

On Thu, 2003-01-16 at 12:01, Brian Astill wrote:
 Stacey Roberts wrote:
 
 Just one more question.
 How do I list the second card in /etc/hosts?
 atm I have
 127.0.0.1   localhost.gihon.org.au 
 localhost  
 192.168.1.100   BAPhD.gihon.org.au  
 BAPhD 
 172.16.1.2  PhD_1.gihon.org.au  
 PhD_1 
 172.16.1.3  third.gihon.org.au  Third
 
 Where do I put rl1 172.16.1.1?  I can make IT the default gateway for 
 172.16.1.2 and 172.16.1.3, I guess, and perhaps make IT'S default 
 gateway 192.168.1.100?

You don't actually list the nic in /etc/hosts. Although not absolutely
necessary, you can list the IP address of rl1, along with the hostname
the box is known on *that* subnet. As long as the IP addrs resolve in
DNS, and routing is enabled on the box, it should all work just fine.

Hope this helps.

Regards,

Stacey

 
 --
 Brian 
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
-- 
Stacey Roberts
B.Sc (HONS) Computer Science

Web: www.vickiandstacey.com



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



Where should I send this sort of thing?

2003-01-16 Thread Alan Day
Typo in this file...



Index: sys/dev/dpt/dpt_scsi.c

===
RCS file: /home/ncvs/src/sys/dev/dpt/dpt_scsi.c,v
retrieving revision 1.34
diff -u -r1.34 dpt_scsi.c
--- sys/dev/dpt/dpt_scsi.c  2002/11/06 21:19:17 1.34
+++ sys/dev/dpt/dpt_scsi.c  2003/01/16 17:56:22
@@ -1561,7 +1561,7 @@
 
/* Ignore status packets with EOC not set */
if (dpt-sp-EOC == 0) {
-   printf(dpt%d ERROR: Request %d recieved with 
+   printf(dpt%d ERROR: Request %d received with 
   clear EOC.\n Marking as LOST.\n,
   dpt-unit, dccb-transaction_id);

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



Re: Where should I send this sort of thing?

2003-01-16 Thread Chuck Swiger
On Thursday, January 16, 2003, at 01:24  PM, Alan Day wrote:

Typo in this file...

[ ...diff removed... ]

You could send-pr it.

-Chuck

   Chuck Swiger | [EMAIL PROTECTED] | All your packets are belong to 
us.
   
-+---+---
   The human race's favorite method for being in control of the facts
is to ignore them.  -Celia Green


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


Re: Shell history in FreeBSD ksh (or ksh93)

2003-01-16 Thread Gary W. Swearingen
stan [EMAIL PROTECTED] writes:

 I've now got a 4.7 STABLE machine, and I'm trying to get this to work with
 either it's ksh, or ksh93 (which I thought would be the same as the ATTT
 version, since it's code is now free). [...]

No cost, lest anyone misunderstand.  The ksh93 license has lots of strings.
 
 Where should I start looking? What environment variables control this, and
 what should the be set to?

I run the ksh from ports/shells/pdksh in emacs mode, but I just now
used the set -o vi command and editing seems to work as you explained.

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



Re: syslog.conf and newsyslog.conf questions

2003-01-16 Thread Matthew Seaman
On Thu, Jan 16, 2003 at 11:55:46AM -0500, Louis LeBlanc wrote:

 Recently I got a message on my work machine security check output
 saying that there was a failed login attempt for my id, from an IP
 that seemed a little familiar.  The date of the attempt was January
 14.  Well, grepping thru /var/log/auth.log, I found the message, but
 it seems it was actually last year.  The IP was familiar because it
 is one I used to have when I had ATT Broadband as my ISP at home.
 There was a hole in the firewall at work at the time, but it shouldn't
 have been there now.  Anyway, it caused quite a bit of confusion
 before we realized that the security output was only grepping out the
 previous days entries without using the year - and why should it, they
 aren't even part of the entries.
 
 What I need to do obviously, is get my auth.log to roll from time to
 time.  Preferably on a monthly basis.
 
 The thing is, what, if anything, should I put in the PIDFILE and
 SIGNAL fields to ensure the daemon resumes logging to a new auth.log
 rather than continuing to log to the one that's been rolled and
 possibly compressed?
 
 Here's what I have so far for the entry:
 
 /var/log/auth.log640  12*$M1D0 Z
 
 I'm guessing this is a syslog logfile judging from the
 /etc/syslog.conf entry:
 
 auth.info;authpriv.info /var/log/auth.log
 
 So, should I provide the path to that pidfile?  I have other entries
 in /etc/newsyslog.conf that correspond to log entries in
 /etc/syslog.conf, but don't have any signal or pidfile info.  Is this
 ok?  It does look like the logs get rolled properly without the need
 for pidfile or signal info, but I want to be sure.

Correct: newsyslog defaults to HUP'ing syslogd if you don't give it an
explicit PID --- otherwise it couldn't recycle most of the log files
in /var/log. The default newsyslog.conf contains a line for auth.log
anyhow, without any .pid files or signal numbers:

% grep auth.log /usr/src/etc/newsyslog.conf
/var/log/auth.log   600  7 100  * Z

Note that you'll probably want the file to be mode 600 and owned by
root:wheel if it's going to receive category authpriv messages.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey 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



IPFW smart networkshaping like in Linux

2003-01-16 Thread Pascal Giannakakis
Lo ppl,

a few month ago there was an article in the german computer mag c't which
described how to tune an ADSL connection. One of the tips was to give small
IP-packages (64 bytes and less) a high priority. According to the article
this will result in an improved behaviour when up- and downstream are both
busy at the same time.

As i suffer exactly this problem, i would like to try it out on FreeBSD 5.
As i can not find what the command would be in FreeBSD - and if it is even
supported, i hope some of you FreeBSD / Linux guys can help me out. Here is
the Linux command:

# iptables -A POSTROUTING -t mangle -o ppp0 -p tcp -m length --length :64 -j
MARK --set-mark 12

The comlete script can be downloaded here:
http://www.heise.de/ct/ftp/02/24/224/

What would be the options in FreeBSD? Thanx!



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



Re: natd port forwarding acting wierd

2003-01-16 Thread WillyB
Thanks for your answer and solutions Matthew :)

This is my 4th day of using freeBSD and I'm still very new to it.
I have used RedHat prior to this and when I could not get it to connect 
to my ISP via the cable modem I installed freeBSD. ;)

Actually.. I don't fully understand the rc.firewall script, so I made my 
own very simple one :)

I will try to implement the reverse proxy solution you wrote about as 
this will probably be easiest for me.

Thanks again for your help and very thorough explination. I understand 
what's happening now ;)

Re's and Cheers!

WillyB


Matthew Seaman wrote:
On Thu, Jan 16, 2003 at 01:49:08AM -0700, WillyB wrote:



I finally got natd and ipforwading set up but have a slight problem I 
don't understand.

The IP forwarding works from the internet, through the cable modem and 
through the freeBSD router I set up for my internal network, to a www 
server on the private lan.

I can't connect to my server however from my local net using the ip of 
the external net.


If you're following the way natd is setup in /etc/rc.firewall, viz
this chunk of code:

case ${firewall_type} in
[Oo][Pp][Ee][Nn]|[Cc][Ll][Ii][Ee][Nn][Tt])
case ${natd_enable} in
[Yy][Ee][Ss])
if [ -n ${natd_interface} ]; then
${fwcmd} add 50 divert natd all from any to any via ${natd_interface}
fi
;;
esac
esac

notice that the rule to divert packets into natd only selects packets
that traverse the external interface (${natd_interface} in
/etc/rc.conf) of your gateway machine.  Packets from your internal
(192.168.0.0/24) network will not pass through that interface even if
they are destined for your nat'ed address, so they won't hit the
divert rule and they won't get nat'ed.

Now, you might think that the obvious answer is just to drop the 'via
${natd_interface}' part of the divert rule, so that all packets
passing across your gateway machine pass through nat'ing.
Unfortunately, this will fail to work --- apart from the fact that it
will probably screw things up by trying to nat packets going via the
loopback interface and all sorts of other unintended consequences,
your original aim of being able to access your internal server as if
you were coming from outside your net still won't work.

What happens is this:

You send a packet to the NAT address on your gateway.

The modified firewall rules pass the packet through the divert socket
to natd, which rewrites the destination address to be that of your
internal server.  Nb.  the *source* address in the packet is left
untouched.

The packet is then sent across your internal network to your server.
The server deals with it as normal, and generates a response packet
back to the *original sender*, with it's own address as the source.
That happens to be to a machine on the local network, so the response
packet gets delivered straight there.  Normally, the response packet
would be to a remote network and the packet would have to pass through
your gateway to get there, thus giving the natd machinery the chance
to process it, and replace the sender address with the nat address.

Now, the original machine is expecting to have a tcp conversation with
a machine using your nat address.  Unfortunately the packets it
receives in response appear to come from some machine on your local
net.  In order to preserve sanity it ignores those packets and keeps
listening out for the expected response from the place it sent the
packets to.  Eventually it all times out and everybody gives up in
disgust.

There are two possible solutions to this problem.

i) Split Horizon.  Usually implemented in terms of DNS, but you
can fudge the issue using /etc/hosts on your internal machines if
that's easier for you.  All this does is arrange things so that a
lookup for www.mysite.com returns the address of the server on the
internal network when looked up from inside, and the address of
the nat gateway when looked up from outside.

ii) Reverse Proxy.  Instead of accessing your internal server via
a NAT gateway, set up a web proxy on your gateway machine.  Unlike
a normal web proxy, instead of grabbing web pages from out on the
net for the benefit of your internal systems, the reverse proxy
grabs web pages from your internal machine for the benefit of the
rest of the net.  The NAT gateway will rewrite one out of the
sender or recipient addresses of any packets addressed to it,
whereas the proxy will effectively rewrite both the sender and
recipient addresses, solving the problem detailed above.

Cheers,

Matthew




--
Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with Shop@Netscape!
http://shopnow.netscape.com/


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



OT: mount BSD slice from linux

2003-01-16 Thread Brian Henning
Hello,

I would like to mount my freebsd slices in linux. Has anyone got this
working before? I am running gentoo 1.4rc. I have turned on UFS in the
kernel, but i was told that because FreeBSD uses 16KB blocksize that it
woun't work. Any help with this problem would be greatly appreciated.

Thanks,

Brian

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



4.7-STABLE upgrade boot failure.

2003-01-16 Thread a l

 First, let me profusely apologize if this is a dual post, as I tried to 
post two days ago and never saw it come up on the list. Trying now with a 
free webmail account.

 Did a clean buildworld, installworld, etc. etc. on a 4.5-RC1 system up to 
4.7-STABLE release. Everything went through fine, no problems.

 Rebuilt kernel and installed the new 4.7 GENERIC kernel, no problems.

 Ran mergemaster, did a MAKEDEV, no problems.

 Rebooted.. and problems. Upon boot, it tries to load up the root partition 
off of /dev/ad4s1a (which is correct), but brings up a Mount boot failure: 
16 error, and asks for a good ufs root location.  Typing in ufs:/dev/ad4s1a 
does no good.

 IDE controller = Highpoint HPT370 onboard = ar0.
 IDE drives = 2x IBM 60gig mirrored = ad4, ad5.

 Eventually, had to boot to 4.5-RC1 kernel which came up fine on 
/dev/ad4s1a. The problem is, everything else is 4.7 now, so there's lots of 
weirdness.

 The problem is in the kernel? No more support for Highpoint controllers? 
Is there something else I should be doing in /dev besides a MAKEDEV std?

 Help?

 Aaron Lewis
 [EMAIL PROTECTED]

_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


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


CPU Affinity

2003-01-16 Thread Daxbert
What is the current state of CPU process affinity for SMP FreeBSD?  Are there any 
tools in user space akin to Solaris' pbind?

Thanks

Dax

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



Re: ipfw/natd questions

2003-01-16 Thread John

 - i've run an ethernet cable from xl1 - integrated intel 1000 pro nic on
machine 1 - to machine 2's nic.
 i've edited machine 2's /etc/rc.conf so that it points to the internal
nic - xl1 on machine 1 as it's default gateway:

Ethernet cable?  Or crossover cable?
If it's straight cable, you need another hub and cable.. or a crossover
cable instead.

 snip
 defaultrouter=10.20.155.1
 hostname=machine2.hostname.com
 ifconfig_xl0=inet 129.x.x.20 netmask 255.255.255.0
 snip

On another note, if I read that correctly.. you connected a nic that is
configured with IP of 129.x.x.x to a nic with an IP of 10.x.x.x.
You would more than likely want the nic on machine2 to be on the 10.x.x.x
subnet for this configuration.

Afterwards, you should at least be able to ping your internal interface on
machine1 from machine2 (It looks like you're allowing it in your IPFW
rules...).

Once you can ping.. (or begin to see traffic on the internal interface in
the logs for IPFW), you can start troubleshooting the IPFW rules, if
necessary.

HTH,
John




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



another go at ipfw/natd

2003-01-16 Thread Redmond Militante
hi again

i have two machines - one has two nics, one has one nic. i'd like to set up the 
machine with two nics as a gateway/natd box, and place the second machine behind it.

gateway machine's kernel has been recompiled with:

options IPFIREWALL
options IPDIVERT
options IPFIREWALL_DEFAULT_TO_ACCEPT
options IPFIREWALL_VERBOSE

gateway machine's /etc/rc.conf:

defaultrouter=129.x.x.1
hostname=enquirer.medill.northwestern.edu
ifconfig_xl0=inet 129.x.x.35 netmask 255.255.255.0
ifconfig_xl1=inet 10.0.0.1 netmask 255.0.0.0
gateway_enable=YES
firewall_enable=YES
#firewall_script=/etc/rc.firewall
firewall_type=OPEN
natd_enable=YES
natd_interface=xl0
natd_flags=

second machine's /etc/rc.conf:

defaultrouter=10.0.0.1
ifconfig_xl0=inet 10.0.0.2 netmask 255.0.0.0

'ipfw list' on the gateway machine gives me:
00050 divert 8668 ip from any to any via xl0
00100 allow ip from any to any via lo0
00200 deny ip from any to 127.0.0.0/8
00300 deny ip from 127.0.0.0/8 to any
65000 allow ip from any to any
65535 allow ip from any to any

i'm following the instructions in the handbook 
http://www.freebsd.org/doc/en_US.IS...dbook/natd.html 

Each machine and interface behind the LAN should be assigned IP address numbers in 
the private network space as defined by RFC 1918 and have a default gateway of the 
natd machine's internal IP address.


this isn't working for me. i cannot ping outside machines from the client machine. 
'ping www.freebsd.org' times out. pinging the ip address outside the router gives me 
'no route to host', pinging the ip address of the gateway box gives me 'no route to 
host'. 'ping 10.0.0.1' gives me 'host is down'. the client machine can ping itself and 
get a response, however - 'ping 10.0.0.2' gives me a response.

please help, i'm stuck.




msg15692/pgp0.pgp
Description: PGP signature


Re: IPSec tunnel between Windows XP and FreeBSD: racoon can't actsas the initiator

2003-01-16 Thread Dru


On Tue, 14 Jan 2003, Andrew Alcheev wrote:

 Hello.

 I have setup an IPSec tunnel between FreeBSD 4.7-stable (system
 18.11.02)/racoon 20021120a and Windows XP Prof.
 FreeBSD acts as gateway, tunneling connections from Windows to world.
 IPSec crypts link between unix and win only.

 ipsec.conf:
 spdadd 0.0.0.0/0 192.168.99.10/32 any -P out ipsec
   esp/tunnel/192.168.99.1-192.168.99.10/require;
 spdadd 192.168.99.10/32 0.0.0.0/0 any -P in ipsec
   esp/tunnel/192.168.99.10-192.168.99.1/require;


 While other side (Windows XP) initiates connect to hosts behind the
 tunnel, all works fine.

 If connect arrives from other hosts before SA has been established,
 then racoon can't initiate Phase 1

 tcpdump output:
 15:29:13.408122 192.168.99.1.500  192.168.99.10.500: isakmp: phase 1 I agg: [|sa]
 15:29:13.409117 192.168.99.10.500  192.168.99.1.500: isakmp: phase 2/others R inf: 
[|n]

 racoon.log:
 ...
 2003-01-14 15:29:13: DEBUG: isakmp.c:222:isakmp_handler(): 56 bytes message received 
from 192.168.99.10[500]
 ...
 2003-01-14 15:29:13: DEBUG: isakmp.c:346:isakmp_main(): malformed cookie received or 
the initiator's cookies collide.
 ...

 What is wrong ?


Hard to tell without a bit more information. Are you using a pre-shared
secret or digital certificates for authentication? Can you send a
sanitized copy of your racoon.conf?

Dru

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



Re: another go at ipfw/natd

2003-01-16 Thread Bill Moran
Redmond Militante wrote:

hi again

i have two machines - one has two nics, one has one nic. i'd like to set up the machine with two

 nics as a gateway/natd box, and place the second machine behind it.


gateway machine's kernel has been recompiled with:

options IPFIREWALL
options IPDIVERT
options IPFIREWALL_DEFAULT_TO_ACCEPT
options IPFIREWALL_VERBOSE

gateway machine's /etc/rc.conf:

defaultrouter=129.x.x.1
hostname=enquirer.medill.northwestern.edu
ifconfig_xl0=inet 129.x.x.35 netmask 255.255.255.0
ifconfig_xl1=inet 10.0.0.1 netmask 255.0.0.0
gateway_enable=YES
firewall_enable=YES
#firewall_script=/etc/rc.firewall
firewall_type=OPEN
natd_enable=YES
natd_interface=xl0
natd_flags=

second machine's /etc/rc.conf:

defaultrouter=10.0.0.1
ifconfig_xl0=inet 10.0.0.2 netmask 255.0.0.0

'ipfw list' on the gateway machine gives me:
00050 divert 8668 ip from any to any via xl0
00100 allow ip from any to any via lo0
00200 deny ip from any to 127.0.0.0/8
00300 deny ip from 127.0.0.0/8 to any
65000 allow ip from any to any
65535 allow ip from any to any

i'm following the instructions in the handbook http://www.freebsd.org/doc/en_US.IS...dbook/natd.html 

Each machine and interface behind the LAN should be assigned IP address numbers in the private
 network space as defined by RFC 1918 and have a default gateway of the natd machine's internal IP address.


this isn't working for me. i cannot ping outside machines from the client machine. 'ping www.freebsd.org'

 times out. pinging the ip address outside the router gives me 'no route to host', pinging the ip address
 of the gateway box gives me 'no route to host'. 'ping 10.0.0.1' gives me 'host is down'. the client
 machine can ping itself and get a response, however - 'ping 10.0.0.2' gives me a response.

Let me ask some questions to help diagnose this:
1. From the gateway: Can you ping www.freebsd.org? Can you ping 129.x.x.1?
2. What's in /etc/resolv.conf on the gateway and the client machine?
3. What does ifconfig display on the gateway?  Does xl1 show as up with a valid media type?
   Do your net card and hub both have link lights?

--
Bill Moran
Potential Technologies
http://www.potentialtech.com


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



Re: another go at ipfw/natd

2003-01-16 Thread Redmond Militante
 
 Let me ask some questions to help diagnose this:
 1. From the gateway: Can you ping www.freebsd.org? Can you ping 129.x.x.1?


yes to both

 2. What's in /etc/resolv.conf on the gateway and the client machine?



/etc/resolv.conf is identical on gateway and client machines

search northwestern.edu
nameserver 129.105.49.1
nameserver 165.124.49.21
~

 3. What does ifconfig display on the gateway?  Does xl1 show as up with a 
 valid media type?


xl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=3rxcsum,txcsum
inet 129.105.51.35 netmask 0xff00 broadcast 129.105.51.255
inet6 fe80::210:5aff:fec6:8bcb%xl0 prefixlen 64 scopeid 0x1 
ether 00:10:5a:c6:8b:cb
media: Ethernet autoselect (100baseTX full-duplex)
status: active
xl1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=3rxcsum,txcsum
inet 10.0.0.1 netmask 0xff00 broadcast 10.0.0.255
inet6 fe80::206:5bff:fe80:985b%xl1 prefixlen 64 scopeid 0x2 
ether 00:06:5b:80:98:5b
media: Ethernet autoselect (none)
status: no carrier

(ifconfig has changed slightly here - i was experimenting by giving xl1 a subnet mask 
of 255.255.255.0 - still doesn't work)



Do your net card and hub both have link lights?
i

i am hooking the client directly into the internal nic on the gateway, so no hub.  
i've verified that both nics on the gateway work - did this by configuring xl1 as the 
primary nic, and it worked.

thanks

redmond

 
 -- 
 Bill Moran
 Potential Technologies
 http://www.potentialtech.com
 



msg15695/pgp0.pgp
Description: PGP signature


Re: 64 bit support

2003-01-16 Thread Kris Kennaway
On Thu, Jan 16, 2003 at 10:44:50AM -0600, Dan Nelson wrote:
 In the last episode (Jan 16), shubha mr said:
  Hi,
  Does freeBSD support 64 bit?If so,which version of the
  OS supports the same?I would appreciate if anyone can
  let me know abt this soon.
 
 64-bit what?  FreeBSD runs on Alpha processors, which are 64-bit. 

And sparc64, and ia64, and supports 64-bit files, ...

Kris



msg15696/pgp0.pgp
Description: PGP signature


Re: Good C/C++ mailinglist for beginners

2003-01-16 Thread parv
in message [EMAIL PROTECTED],
wrote Martin Moeller thusly...

 Could someone point me to a good mailinglist on (learning) C/C++?


i don't know of any mailing lists, but comp.lang.c++.*  are quite
good for newsgroups these days. if you keep your posts confined to
the subject (C++ the language, not C++ the standard, or C), you will
be just fine.


  - parv

-- 


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



printf prints WRONG double precision values

2003-01-16 Thread Ugen
Try this:

#include stdio.h
int main()
{
double pi = 3.14159265358979323846 ;

printf(%20.19f\n, pi);
}

and here is what you get:
host: [16:45] [127] /tmp./test
3.1415926535897931160

 The error in last 4 or digits is obvious. It seems
that the culprit is __dtoa which incorrectly turns
double precision numbers into strings.
This is on FreeBSD 4.3 release..

Ideas?
--Ugen


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



Re: another go at ipfw/natd

2003-01-16 Thread Daniel Schrock
Redmond Militante wrote:

xl1: flags=3D8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=3D3rxcsum,txcsum
inet 10.0.0.1 netmask 0xff00 broadcast 10.0.0.255
inet6 fe80::206:5bff:fe80:985b%xl1 prefixlen 64 scopeid 0x2=20
ether 00:06:5b:80:98:5b
media: Ethernet autoselect (none)
status: no carrier

	  ^^
This is your problem.



Do your net card and hub both have link lights?


i



i am hooking the client directly into the internal nic on the gateway, so n=
o hub.  i've verified that both nics on the gateway work - did this by conf=
iguring xl1 as the primary nic, and it worked.


You can't do this.
You _must_ use a crossover cable to connect 2 NICs directly together.
You need to use a hub or switch to use straight-through ethernet cables.


.daniel.schrock


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



Re: Increase memory limit ?

2003-01-16 Thread Frank Li
Thanks, Roman,


 options MAXDSIZ=(256*1024*1024)
 options MAXSSIZ=(256*1024*1024)
 options DFLDSIZ=(256*1024*1024)
 
 Depending on what you're doing, you might well find using a 64-bit
 platform (Alpha hardware?  Solaris on SPARC?) to be more appropriate...

 Which file should I put in the following ?

in your kernel configuration file, look in /usr/src/sys/i386/conf/


So, I need to recompile kernel ?
I guess in this case I'd better back up things in case the kernel no longer 
boots up...

Frank

_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


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


Re: another go at ipfw/natd

2003-01-16 Thread Bill Moran
Redmond Militante wrote:

snip reply that verifies that DNS is configured properly


3. What does ifconfig display on the gateway?  Does xl1 show as up with a 
   valid media type?

SNIP


xl1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=3rxcsum,txcsum
inet 10.0.0.1 netmask 0xff00 broadcast 10.0.0.255
inet6 fe80::206:5bff:fe80:985b%xl1 prefixlen 64 scopeid 0x2 
ether 00:06:5b:80:98:5b
media: Ethernet autoselect (none)
status: no carrier

Notice the 'autoselect (none)' and 'status: no carrier'
These are indicative of faulty wiring or NIC problems.  Since you state
that you tested the NICs, I would double check the wiring.  If you're
going directly NIC-NIC, you'll need a crossover cable.  Make sure that
the cable you're using is a crossover and is properly wired.  If so,
verify that the cable is good (usually easiest to try a different cable,
unless you have the pricey testing stuff).
It looks like everything else is OK, I'm guessing that once you've got
the cable situation worked out, everything will start working.


i am hooking the client directly into the internal nic on the gateway,

 so no hub.  i've verified that both nics on the gateway work - did this
 by configuring xl1 as the primary nic, and it worked.

Do the NICs have link lights on the back?  Most NICs do.  I'm guessing
that they're dark, indicating that it can't negiotiate a link.  Although
I've seen some NICs that will turn the link light on even if things are
wired wrong (which is really frustrating when you're trying to diagnose
problems!)

--
Bill Moran
Potential Technologies
http://www.potentialtech.com


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



opie stable in 4.7?

2003-01-16 Thread Hanspeter Roth
Hello,

is OPIE stable in Freebsd 4.7?
Or should one better go for S/Key?

-Hanspeter

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



Re: another go at ipfw/natd

2003-01-16 Thread Redmond Militante
hi

thanks this worked :)

In the gothic chambers of the underworld on Thu, Jan 16, 2003 at 03:51:55PM -0600, 
Daniel Schrock darkly muttered:
 Redmond Militante wrote:
 xl1: flags=3D8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
 options=3D3rxcsum,txcsum
 inet 10.0.0.1 netmask 0xff00 broadcast 10.0.0.255
 inet6 fe80::206:5bff:fe80:985b%xl1 prefixlen 64 scopeid 0x2=20
 ether 00:06:5b:80:98:5b
 media: Ethernet autoselect (none)
 status: no carrier
 ^^
 This is your problem.
 
 
 Do your net card and hub both have link lights?
 
 i
 
 
 i am hooking the client directly into the internal nic on the gateway, so 
 n=
 o hub.  i've verified that both nics on the gateway work - did this by 
 conf=
 iguring xl1 as the primary nic, and it worked.
 
 You can't do this.
 You _must_ use a crossover cable to connect 2 NICs directly together.
 You need to use a hub or switch to use straight-through ethernet cables.
 
 
 .daniel.schrock
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
 



msg15703/pgp0.pgp
Description: PGP signature


Re: printf prints WRONG double precision values

2003-01-16 Thread Kent Stewart
On Thursday 16 January 2003 01:47 pm, Ugen wrote:
 Try this:

 #include stdio.h
 int main()
 {
 double pi = 3.14159265358979323846 ;

  printf(%20.19f\n, pi);
 }

 and here is what you get:
 host: [16:45] [127] /tmp./test
 3.1415926535897931160

   The error in last 4 or digits is obvious. It seems
 that the culprit is __dtoa which incorrectly turns
 double precision numbers into strings.
 This is on FreeBSD 4.3 release..

 Ideas?

I thought that a 64-bit floating point was limited to around 16 digits. 
That ends as ...793.

Kent
 --Ugen


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

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html


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



Make World

2003-01-16 Thread Doron Shmaryahu
Hi,

I did a make world upgrade from 4.5 to 4.7 stable. I have done this a couple
of times with no problems. This time there were no errors but when the
machine rebooted it just says btx halted and a whole lot of other stuff. It
sits there and does not boot. If I interrupt the boot process and load the
kernel.GENERIC manually it boots fine. the only command's that seem to give
errors are ps and top. The machine runs fine but I would obviously like to
get rid of this problem.

I have tried reinstalling the kernel, also the generic kernel. I tried doing
a make world again still the same thing !! Any suggestions would help

thanks

Doron Shmaryahu



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



Addition

2003-01-16 Thread Doron Shmaryahu
Hi,

sorry the error from ps:

ps ax
ps: proc size mismatch (61248 total, 1060 chunks)

and this is the last line of dmesg

link_elf: symbol fw_one_pass undefined

Thanks again

Doron Shmaryahu



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



Re: 64 bit support

2003-01-16 Thread Andrew Y Ng
What about x86-64? there is a webpage about it at freebsd's site, i
subscribed to the fbsd hackers list, but really haven't found much
information about it.

Linux runs just fine on Opteron over here, I don't have time to try to
install fbsd on our machines, but it should really be pretty trivial 
to port.

/ayn

-- 
andrew y ng  [EMAIL PROTECTED]  http://andrewng.com
Newisys, Inc. http://www.newisys.com


On  0, Kris Kennaway [EMAIL PROTECTED] wrote:
 On Thu, Jan 16, 2003 at 10:44:50AM -0600, Dan Nelson wrote:
  In the last episode (Jan 16), shubha mr said:
   Hi,
   Does freeBSD support 64 bit?If so,which version of the
   OS supports the same?I would appreciate if anyone can
   let me know abt this soon.
  
  64-bit what?  FreeBSD runs on Alpha processors, which are 64-bit. 
 
 And sparc64, and ia64, and supports 64-bit files, ...
 
 Kris




msg15708/pgp0.pgp
Description: PGP signature


Re: Where should I send this sort of thing?

2003-01-16 Thread Greg 'groggy' Lehey
On Thursday, 16 January 2003 at 13:24:21 -0500, Alan Day wrote:
 Typo in this file...

 Index: sys/dev/dpt/dpt_scsi.c

I've committed the fix.  Thanks.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers

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



Re: Make World

2003-01-16 Thread Andrew Y Ng
have you rebuilt your kernel?  it sounds like your kernel is outdated.

also look into mergemaster(8), it's a nice tool when updating your system.

/ayn

On  0, Doron Shmaryahu [EMAIL PROTECTED] wrote:
 Hi,
 
 I did a make world upgrade from 4.5 to 4.7 stable. I have done this a couple
 of times with no problems. This time there were no errors but when the
 machine rebooted it just says btx halted and a whole lot of other stuff. It
 sits there and does not boot. If I interrupt the boot process and load the
 kernel.GENERIC manually it boots fine. the only command's that seem to give
 errors are ps and top. The machine runs fine but I would obviously like to
 get rid of this problem.
 
 I have tried reinstalling the kernel, also the generic kernel. I tried doing
 a make world again still the same thing !! Any suggestions would help
 
 thanks
 
 Doron Shmaryahu
 
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message

-- 
andrew y ng  [EMAIL PROTECTED]  http://andrewng.com
independent computer consultants http://aynassociates.com




msg15710/pgp0.pgp
Description: PGP signature


Re: Addition

2003-01-16 Thread Andrew Y Ng
can you give us `uname -a` outputs?

try recompiling your kernel. config the kernel, and do a make depend and
make install. that's the old school way of doing it. I think now you can cd
into /usr/src and do `make kernel`, it will build and install a new kernel
for you.


/ayn

On  0, Doron Shmaryahu [EMAIL PROTECTED] wrote:
 Hi,
 
 sorry the error from ps:
 
 ps ax
 ps: proc size mismatch (61248 total, 1060 chunks)
 
 and this is the last line of dmesg
 
 link_elf: symbol fw_one_pass undefined
 
 Thanks again
 
 Doron Shmaryahu
 
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message

-- 
andrew y ng  [EMAIL PROTECTED]  http://andrewng.com
independent computer consultants http://aynassociates.com




msg15711/pgp0.pgp
Description: PGP signature


Re: Make World

2003-01-16 Thread Doron Shmaryahu
Hi,

I have rebuilt the kernel several times but still no luck.

Thanks


Doron
- Original Message - 
From: Andrew Y Ng [EMAIL PROTECTED]
To: Doron Shmaryahu [EMAIL PROTECTED]
Cc: FreeBSD-questions [EMAIL PROTECTED]
Sent: Friday, January 17, 2003 1:41 AM
Subject: Re: Make World




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



Re: Make World

2003-01-16 Thread Kent Stewart
On Thursday 16 January 2003 03:28 pm, Doron Shmaryahu wrote:
 Hi,

 I did a make world upgrade from 4.5 to 4.7 stable. I have done this a
 couple of times with no problems. This time there were no errors but
 when the machine rebooted it just says btx halted and a whole lot of
 other stuff. It sits there and does not boot. If I interrupt the boot
 process and load the kernel.GENERIC manually it boots fine. the only
 command's that seem to give errors are ps and top. The machine runs
 fine but I would obviously like to get rid of this problem.

 I have tried reinstalling the kernel, also the generic kernel. I
 tried doing a make world again still the same thing !! Any
 suggestions would help

Did you do a make kernel to update your kernel? Make world doesn't do 
that. 

If you do a make world instead of the sequence in /usr/src/UPDATING, you 
can get into serious trouble on upgrades.

Kent


 thanks

 Doron Shmaryahu



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

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html


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



uname -a

2003-01-16 Thread Doron Shmaryahu
Hi,

4.5-RELEASE FreeBSD 4.5-RELEASE #0: Mon Jan 28 14:31:56 GMT 2002
[EMAIL PROTECTED]:/usr/src/sys/compile/GENERIC  i386

is the output I can only boot kernel.GENERIC manually


Doron



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



Make World Steps

2003-01-16 Thread Doron Shmaryahu
Hi,

these are the exact steps I used:

  make buildworld; 
make buildkernel KERNCONF=KERNEL
make installkernel KERNCONF=KERNEL
 mergemaster -p
make installworld
mergemaster 
reboot

thanks

Doron


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



Re: Increase memory limit ?

2003-01-16 Thread Duncan Anker
On Fri, 2003-01-17 at 07:59, Frank Li wrote:
 Thanks, Roman,
 
   options MAXDSIZ=(256*1024*1024)
   options MAXSSIZ=(256*1024*1024)
   options DFLDSIZ=(256*1024*1024)
   
   Depending on what you're doing, you might well find using a 64-bit
   platform (Alpha hardware?  Solaris on SPARC?) to be more appropriate...
  
   Which file should I put in the following ?
 
  in your kernel configuration file, look in /usr/src/sys/i386/conf/
 
 So, I need to recompile kernel ?
 I guess in this case I'd better back up things in case the kernel no longer 
 boots up...
 

You can also tune this at boot time by adding them to the file
/boot/loader.conf. e.g.

kern.maxdsiz=(256*1024*1024)

Although I am not 100% certain whether the tunables parser actually
calculates that, I haven't checked the source too closely. I play it
safe by using the actual number.

On other thing to beware of, whether you set this in the kernal or
/boot/loader.conf, is that you cannot go over 2^31-1 because FreeBSD
uses a signed int for this value (I tried setting it to 2G once and
MySQL refused to start - MySQL AB verified the problem).

-- 

The information contained in this email is confidential.
If you are not the intended recipient, you may not disclose or use the
information in this email in any way.
Dark Blue Sea does not guarantee the integrity of any emails or attached
files.
The views or opinions expressed are the author's own and may not reflect
the views or opinions of Dark Blue Sea.
Dark Blue Sea does not warrant that any attachments are free from
viruses or other defects.
You assume all liability for any loss, damage or other consequences
which may arise from opening or using the attachments.


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



Re: Apache_fp Port install problem

2003-01-16 Thread Doug Reynolds
On Sat, 11 Jan 2003 11:31:22 -0600, Jack L. Stone wrote:

I just updated from FBSD-4.5 to 4.7 on a server running apache_fp.1.26. The
update somehow has broken the FP extensions (ugh!). I have tried a number
of fixes, including portupgrade, but get a checksum error there. Have tried
to rerun the present install of FP using fp_install.sh, but get this error:
Who should own web root web on port 80 [www]:  
What should the group for web root web on port 80 be [www]:  
/usr/libexec/ld-elf.so.1: /usr/lib/libm.so.2: Undefined symbol __stderrp
ERROR: Unable to chown web root web in port 80
Hit enter to continue

I'm also seeing the __stderrp error in my httpd-error.log whenever I try
to login to FP. So, something has changed in the FBSD-4.5-4.7 update and
I've never seen this error, so don't know what needs to be fixed. I have
another server running apache_fp.1.27 on FBSD.4.7 just fine.

It's looking like an uninstall/reinstall completely for apache+fp
didn't want to have to do that on a box with a bunch of virtual hosts.

Has anyone seen the above problem on similar installs...???

yeah, you need to have COMPAT3X=TRUE in your /etc/make.conf

took me three day to figure that one out

---
doug reynolds | the maverick | [EMAIL PROTECTED]



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



Re: OT: mount BSD slice from linux

2003-01-16 Thread Giorgos Keramidas
On 2003-01-16 14:15, Brian Henning [EMAIL PROTECTED] wrote:
 I would like to mount my freebsd slices in linux. Has anyone got
 this working before? I am running gentoo 1.4rc. I have turned on UFS
 in the kernel, but i was told that because FreeBSD uses 16KB
 blocksize that it woun't work. Any help with this problem would be
 greatly appreciated.

You might need to patch and rebuild your Linux kernel to recognise all
the block/fragment combinations of an ffs filesystem.


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



Re: port/ftp/mirror-2.9 Out of memory! message--solved

2003-01-16 Thread Tom Parquette
Lowell Gilbert wrote:

Tom Parquette [EMAIL PROTECTED] writes:



Lowell Gilbert wrote:


Tom Parquette [EMAIL PROTECTED] writes:



I'm getting an Out of memory! message from the mirror
(/usr/ports/ftp/mirror-2.9) port trying to update a large archive.
I've tried a number of things but I can't resolve this.
Any suggestions?


hitting a limits(1) limit?



Lowell,
I've been playing with this on and off for a few days.
Your question, I think, put me onto something.
I've been rerunning the mirror command with top running.
mirror fails with the memory size around 520m consistantly.
Limits gives me a datasize limit of 524288kb.  (Close enough for me!)
I've come to the conclusion that the man page would benefit from some
examples.  I've been trying to raise the datasize limit but it does
not seem to take.

Example: limits -B -d 4g mirror.sh... still blows up with memory
values, from top, around 520m (give or take a little.)

You've gotten me looking in the right area.  All I have to do now is
get the override to work.  Can anybody provide any insights on how to
actually do this?



You need to change the maximum limit; this is best done by modifying
login.conf(5) (and rebuilding the database).  One of the uses of these
limits is as a security issue, so the user can't raise the limits
above the given maximum level themselves.

At .5GB, though, you may be hitting a kernel limit; I know that
MAXDSIZ defaults to something like 128MB.  Getting to 4GB on a 32-bit
machine is probably not practical anyway.

I'd recommend using something more efficient than mirror, or at least
figuring a way to break the replication up into smaller pieces.  A
half-gigabyte is a ludicrous amount of memory space to be using for
any such task.  [I kind of suspect a memory leak in the application,
based on those numbers.]

Good luck.


Adding kern.maxdsiz=2147483647 to /boot/loader.conf fixed the problem.
Thanks to everyone on the list that provided input into my problem.
Cheers...

--
Try not.  Do.  Or do not.  There is no try.--Yoda


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



Re: apache 2 and /usr/ports/www/frontpage

2003-01-16 Thread Doug Reynolds
On Tue, 14 Jan 2003 11:20:34 +1100, BSD Freak wrote:

Anyone know if the /usr/ports/www/frontpage port works with the apache 2
port?

i never got it to work, i think they are working on it though.

---
doug reynolds | the maverick | [EMAIL PROTECTED]



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



Re: opie stable in 4.7?

2003-01-16 Thread Kris Kennaway
On Thu, Jan 16, 2003 at 11:11:35PM +0100, Hanspeter Roth wrote:
 Hello,
 
 is OPIE stable in Freebsd 4.7?

OPIE support works well.  S/Key is considered deprecated and has been
removed from 5.0.

Kris



msg15722/pgp0.pgp
Description: PGP signature


Re: Addition

2003-01-16 Thread Kris Kennaway
On Fri, Jan 17, 2003 at 01:33:12AM +0200, Doron Shmaryahu wrote:
 Hi,
 
 sorry the error from ps:
 
 ps ax
 ps: proc size mismatch (61248 total, 1060 chunks)
 
 and this is the last line of dmesg
 
 link_elf: symbol fw_one_pass undefined

Looks like your kernel and userland are out of sync.  Recompile both
from the same sources.

Kris



msg15723/pgp0.pgp
Description: PGP signature


Re: installing win2k after Freebsd?

2003-01-16 Thread Dan Aiello
 I know there's got to be a way to make this work and keep the freebsd boot
 loader. I've heard there's a way to tell a windows installation not to
 install a boot loader.
 
  Windows 2000 won't touch your boot loader, IIRC.

 And even if it does, you can boot of a FreeBSD install CD, got to the fdisk
 section and tell it to write changes (without changing anything) and you'll
 get the option to replace the FreeBSD boot loader.

 Warning on this, exactly which buttons you select determines whether or not
 the bootloader gets installed.  I did it like 3 times or something before it
 worked the last time I had to, but the good news is that it never did anything
 wrong.

For the curious, Windows 2000 _does_ overwrite the boot sector. Also, I
was unable to make FreeBSD install the boot loader. I did every possible
combination of things, and every time it _seemed_ like it was going to
install the boot loader, but it never did until I went through an install
process... :(

Dan


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



Re: Apache_fp Port install problem

2003-01-16 Thread Jack L. Stone
At 07:31 PM 1.16.2003 -0500, Doug Reynolds wrote:
On Sat, 11 Jan 2003 11:31:22 -0600, Jack L. Stone wrote:

I just updated from FBSD-4.5 to 4.7 on a server running apache_fp.1.26. The
update somehow has broken the FP extensions (ugh!). I have tried a number
of fixes, including portupgrade, but get a checksum error there. Have tried
to rerun the present install of FP using fp_install.sh, but get this error:
Who should own web root web on port 80 [www]:  
What should the group for web root web on port 80 be [www]:  
/usr/libexec/ld-elf.so.1: /usr/lib/libm.so.2: Undefined symbol __stderrp
ERROR: Unable to chown web root web in port 80
Hit enter to continue

I'm also seeing the __stderrp error in my httpd-error.log whenever I try
to login to FP. So, something has changed in the FBSD-4.5-4.7 update and
I've never seen this error, so don't know what needs to be fixed. I have
another server running apache_fp.1.27 on FBSD.4.7 just fine.

It's looking like an uninstall/reinstall completely for apache+fp
didn't want to have to do that on a box with a bunch of virtual hosts.

Has anyone seen the above problem on similar installs...???

yeah, you need to have COMPAT3X=TRUE in your /etc/make.conf

took me three day to figure that one out

---
doug reynolds | the maverick | [EMAIL PROTECTED]

Hi, Doug: You say COMPAT3X=TRUE

...but the /etc/defaults/make.conf says:
COMPAT3X= yes(note the spacing too)

Will you double-check this syntax?? I thought it had to be the same as
the default statement, but my first attempts using COMPAT3X= yes didn't
do any good. Then someone (Gordon) suggested deleting /usr/scr and adding
the statement as well. Did you do that too...??? ..or just the add to the
make.conf I'd rather not delete /usr/src if not necessary and the
question boils down to:
COMPAT3X=TRUE vs COMPAT3X= yes (I guess)

...sorry for all the nit-pick questions, but I know the problems lies here
and something simple.

Thanks!

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



RSA SecurID

2003-01-16 Thread Brian McCann
Hi all.  I've searched in the archives and found nothing on this newer
then 2001...so any help would be appreciated.  I'm looking to find a way
to support RSA's SecurIDs on FreeBSD.  There was something mentioned
back in March of 2001 on the topic, but that's all I could find.  Could
someone please tell me if this is possible, and if it is, where to look
for more info?

Thanks,
--Brian McCann


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



RE: RSA SecurID

2003-01-16 Thread C. Kulish
I would think its possible as we just use hyperterminal to login to our RSA
server at work.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Brian McCann
Sent: Thursday, January 16, 2003 7:52 PM
To: [EMAIL PROTECTED]
Subject: RSA SecurID

Hi all.  I've searched in the archives and found nothing on this newer
then 2001...so any help would be appreciated.  I'm looking to find a way
to support RSA's SecurIDs on FreeBSD.  There was something mentioned
back in March of 2001 on the topic, but that's all I could find.  Could
someone please tell me if this is possible, and if it is, where to look
for more info?

Thanks,
--Brian McCann


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: Increase memory limit ?

2003-01-16 Thread Frank Li
Thanks for all of your replies,

Now I can do it through recompiling the kernel and the limits did increase.  
I haven't tried whether it can increase over 2G (I would love that if it 
can!).  The code I used cannot be easily changed to reduce memory 
consumption but I think 2G would probably be enough for some time.   Indeed, 
I found the max value I could set is 2048*1024*1024-1, bigger than that will 
result in a negative value shown by limit.

You can also tune this at boot time by adding them to the file
/boot/loader.conf. e.g.

kern.maxdsiz=(256*1024*1024)


I added this (though it was actually 1024*1024*1024) to /boot/loader.conf 
and also /boot/defaults/loader.conf, and booted the GENERIC kernel.  The 
limits were still the old ones (i.e.512M).  It did not work  I don't know 
why, but I am already happy as recompiling kernel worked anyway.

The final problem now becomes: Initially I made the swap partition to be 1GB 
and there is no more free partition on my harddisk.  This value now actually 
becomes the bottleneck.  Repartitioning will lose all my data and also 
applications installed, and thus is very high cost operation.  Is there any 
easy way to increase the swap partition ?  Say, add one more harddisk(need 
to tell the OS?)?  For me, the easiest way I prefer is to use a file (under 
/usr say, as I have lots of space there) associated with a disk device by 
vnconfig for the swapping.  It seems not difficult to do so.  By looking at 
/etc/rc, I noticed the following:

# Add additional swapfile, if configured.
#
case ${swapfile} in
[Nn][Oo] | '')
   ;;
*)
   if [ -w ${swapfile} -a -c /dev/vn0b ]; then
   echo Adding ${swapfile} as additional swap
   vnconfig -e /dev/vn0b ${swapfile} swap
   fi
   ;;
esac

The swapfile will be associated as an additional swap device (i.e./dev/vn0b 
which does exist in my system).  But I didn't find where the variable 
${swapfile} is set.  Do you know ?

I tried adding one line swapfile=/usr/someone/swap1 and created a file 
/usr/someone/swap1 with vi editor by typing some characters in.  Then boot 
the system, I saw the booting message said:

Adding /usr/someone/swap1 as additional swap
vnconfig:
swapon
:
Device not configured:
Doing intial network setup


I am not sure if it actually already worked or not.

Thanks!

Frank

_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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


Re: Increase memory limit ?

2003-01-16 Thread Duncan Anker
On Fri, 2003-01-17 at 12:08, Frank Li wrote:
 Thanks for all of your replies,
 
 Now I can do it through recompiling the kernel and the limits did increase.  
 I haven't tried whether it can increase over 2G (I would love that if it 
 can!).  The code I used cannot be easily changed to reduce memory 
 consumption but I think 2G would probably be enough for some time.   Indeed, 
 I found the max value I could set is 2048*1024*1024-1, bigger than that will 
 result in a negative value shown by limit.

Yes, 2G - 1 is the maximum size a signed int can hold ... mind you, any
program needing more that 2G of memory really should be implementing
on-disk storage of data for itself.

 
 You can also tune this at boot time by adding them to the file
 /boot/loader.conf. e.g.
 
 kern.maxdsiz=(256*1024*1024)
 
 I added this (though it was actually 1024*1024*1024) to /boot/loader.conf 
 and also /boot/defaults/loader.conf, and booted the GENERIC kernel.

Yes, I just copied the numbers from what was given above - I should have
substituted 1024 or more in there.

 The limits were still the old ones (i.e.512M).  It did not work  I don't know 
 why, but I am already happy as recompiling kernel worked anyway.

It may be the case that you cannot specify the value like that in
loader.conf, in which case we must do the math ourselves. I am glad your
problem is solved.

 
 The final problem now becomes: Initially I made the swap partition to be 1GB 
 and there is no more free partition on my harddisk.  This value now actually 
 becomes the bottleneck.  Repartitioning will lose all my data and also 
 applications installed, and thus is very high cost operation.  Is there any 
 easy way to increase the swap partition ?

Read this, it may help:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/adding-swap-space.html
-- 

The information contained in this email is confidential.
If you are not the intended recipient, you may not disclose or use the
information in this email in any way.
Dark Blue Sea does not guarantee the integrity of any emails or attached
files.
The views or opinions expressed are the author's own and may not reflect
the views or opinions of Dark Blue Sea.
Dark Blue Sea does not warrant that any attachments are free from
viruses or other defects.
You assume all liability for any loss, damage or other consequences
which may arise from opening or using the attachments.


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



Re: printf prints WRONG double precision values

2003-01-16 Thread Gary W. Swearingen
Ugen [EMAIL PROTECTED] writes:

 double pi = 3.14159265358979323846 ;
  printf(%20.19f\n, pi);
 and here is what you get:
 host: [16:45] [127] /tmp./test
 3.1415926535897931160

Function printf is only working with the 64 bits of info in variable
pi not the more-than-64 bits of data represented by the string on the
first line.  The function might be giving the value of the variable to
as much precision as you ask for, but it probably just gives randomish
numbers after about 16 (?) digits.

I did a little test which didn't mean much since I don't know the
details of the floating point bits, but you might find the bc
interesting.  (I changed your printf's format.)

$ ./a.out
3.14159265358979311599796346854

$ echo scale=29; 4*a(1) | bc -l
3.14159265358979323846264338324

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



Re: Make World Steps

2003-01-16 Thread Mike Meyer
In 021201c2bdba$19a55eb0$0801a8c0@dman, Doron Shmaryahu [EMAIL PROTECTED] typed:
This sequence

   make buildworld; 
 make buildkernel KERNCONF=KERNEL
 make installkernel KERNCONF=KERNEL
  mergemaster -p
 make installworld
 mergemaster 
 reboot

leaves out the very important step of doing a reboot between the make
installkernel and the make installworld. You've just found out
why. Your new kernel isn't booting for some reason. If you had found
that out before doing the installworld, backing out the kernel would
be trivial and you'd have your old system back to work on the problems
presented by the new kernel.

The one thing that isn't clear from your messages is what the kernels
you have rebuilt are doing. If they are going to btx halted, then
try building a kernel with debugging built in, and follow the steps in
the writeup on freebsd.org for debugging kernel problems with kdb.

If your new kernels are booting fine but ps and top are failing, then
you're managing to boot without going through the full boot loader
sequence, as that loads the kernel module and sets some symbols. I
don't think this is the case, but if it is, how are you booting the
system?

mike
-- 
Mike Meyer [EMAIL PROTECTED]  http://www.mired.org/consulting.html
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.

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



Customizing the consol - Changing the resolution

2003-01-16 Thread Dilshod
Hello there,
I'm kind of new to FreeBSD, in terms of the structure the OS. I've
installed FreeBSD 5.0 RC 3 before I had version 4.7. I install the OS to
explore and learn about it, so far I love it. 
Here is my question: How can I change the resolution of the consol ?
By default it's set to 640x480. I've read there is a way to display a
splash image at higher resolution, but I'm not sure if it will stay
afterwards. Basically I want to set the consol resolution at 1024 or
higher, like I once had done in a Slackware Linux installation.


Thanks,
DT.


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



Re: Customizing the consol - Changing the resolution

2003-01-16 Thread John Bleichert
On Thu, 16 Jan 2003, Dilshod wrote:
 Subject: Customizing the consol - Changing the resolution
 
 Hello there,
 I'm kind of new to FreeBSD, in terms of the structure the OS. I've
 installed FreeBSD 5.0 RC 3 before I had version 4.7. I install the OS to
 explore and learn about it, so far I love it. 
 Here is my question: How can I change the resolution of the consol ?
 By default it's set to 640x480. I've read there is a way to display a
 splash image at higher resolution, but I'm not sure if it will stay
 afterwards. Basically I want to set the consol resolution at 1024 or
 higher, like I once had done in a Slackware Linux installation.
 
   
 Thanks,
 DT.
 

I believe you can fiddle with your console settings using vidcontrol(1). 
I've never tried it, but that's the tool. Note that in Unix if you're 
looking for help on a specific topic, try the 'apropos' command. Try:

$ apropos console

HTH - JB

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


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



Re: Apache_fp Port install problem

2003-01-16 Thread Doug Reynolds
On Thu, 16 Jan 2003 19:52:33 -0600, Jack L. Stone wrote:

I'm also seeing the __stderrp error in my httpd-error.log whenever I try
to login to FP. So, something has changed in the FBSD-4.5-4.7 update and
I've never seen this error, so don't know what needs to be fixed. I have
another server running apache_fp.1.27 on FBSD.4.7 just fine.

It's looking like an uninstall/reinstall completely for apache+fp
didn't want to have to do that on a box with a bunch of virtual hosts.

Has anyone seen the above problem on similar installs...???

yeah, you need to have COMPAT3X=TRUE in your /etc/make.conf

took me three day to figure that one out

---
doug reynolds | the maverick | [EMAIL PROTECTED]

Hi, Doug: You say COMPAT3X=TRUE

...but the /etc/defaults/make.conf says:
COMPAT3X= yes(note the spacing too)

Will you double-check this syntax?? I thought it had to be the same as
the default statement, but my first attempts using COMPAT3X= yes didn't
do any good. Then someone (Gordon) suggested deleting /usr/scr and adding
the statement as well. Did you do that too...??? ..or just the add to the
make.conf I'd rather not delete /usr/src if not necessary and the
question boils down to:
COMPAT3X=TRUE vs COMPAT3X= yes (I guess)

...sorry for all the nit-pick questions, but I know the problems lies here
and something simple.

I know for sure i did not delete my /usr/src; I don't think i even did
a make clean, but i might have.  i don't normally do that.  I know it
works, frontpage works everytime.

this is what my make.conf say (in full)

CPUTYPE=k6-2
NO_SENDMAIL=true
COMPAT3X=true

according to man make.conf


 The following list provides a name and short description for
variables
 that are used during the world build:

 COMPAT1X  (bool) Set to install the FreeBSD 1 compatibility
   libraries.

 COMPAT20  (bool) Set to install the FreeBSD 2.0 compatibility
   libraries.

 COMPAT21  (bool) Set to install the FreeBSD 2.1 compatibility
   libraries.

 COMPAT22  (bool) Set to install the FreeBSD 2.2 compatibility
   libraries.

 COMPAT3X  (bool) Set to install the FreeBSD 3 compatibility
   libraries.

 COMPAT4X  (bool) Set to install the FreeBSD 4 compatibility
   libraries.

boolean should mean true or false, but in most cases, it means yes  no
---
doug reynolds | the maverick | [EMAIL PROTECTED]



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



Re: Customizing the consol - Changing the resolution

2003-01-16 Thread Anti

On Thu, 16 Jan 2003 18:52:43 -0800
Dilshod [EMAIL PROTECTED] wrote:

 Hello there,
 I'm kind of new to FreeBSD, in terms of the structure the OS. I've
 installed FreeBSD 5.0 RC 3 before I had version 4.7. I install the OS to
 explore and learn about it, so far I love it. 
 Here is my question: How can I change the resolution of the consol ?
 By default it's set to 640x480. I've read there is a way to display a
 splash image at higher resolution, but I'm not sure if it will stay
 afterwards. Basically I want to set the consol resolution at 1024 or
 higher, like I once had done in a Slackware Linux installation.



setting allscreens_flags=VESA_132x60 in /etc/rc.conf is all good...
also need vesa in the kernel, or load the module...

`Anti`

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



Re: Customizing the consol - Changing the resolution

2003-01-16 Thread E.S.
Haven't dealt with splash screens on the console (I prefer to watch all the 
gory dmesg output scroll by), but I just changed my console resolution on a 
4.7-STABLE box (built about 2 months ago) a few days ago.  I can't say for 
sure whether the following instructions will work on a 5.0 box, however...

I ran man vidcontrol, and found that it looks like the highest resolution 
you can achieve is 800x600, with a font size of 8x8 at 132x60 chars 
on-screen.  I found that the 800x600 res uses a box centered on the screen 
in which my text was displayed -- that is, there's a lot of unused black 
space around my console, so I use VESA_132x50 instead (see #2 below) 
instead of VESA_800x600 to eliminate the wasted screen space.

After messing around with putting my own startup script in 
/usr/local/etc/rc.d/, I found that, IIRC, all I needed to do was to (in this 
order, of course):

1) Prior to doing #2, load the VESA driver (kldload vesa).  This can be done 
with this line in /boot/loader.conf:

vesa_load=YES

2) Put this option in /etc/rc.conf:

allscreens_flags=-f 8x8 /usr/share/syscons/fonts/iso-8x8.fnt VESA_132x50

...which will set the ISO 8x8 font and as default across all consoles, using 
the vidcontrol command.  Of course, you can use other fonts (as long as 
they are 8x8) if you prefer.

3) Reboot to reinit the rc.conf file's new settings

And assuming I haven't forgotten anything, that's it!

Before doing any of the above though, I *highly* reccommend trying out the 
different resolutions and fonts using the vidcontrol command on 1 console 
until you find a combination you like -- *then* put the vidcontrol option 
string in for the allscreens_flags= statement above.  That way, you don't 
change 1 setting and either A) it doesn't work or B) you find out you don't 
like it, and in either case, you wind up rebooting over and over again...  
You don't have to reboot to change your console resolution at all...

-ES


On Thursday 16 January 2003 08:52 pm, Dilshod wrote:
 Hello there,
 I'm kind of new to FreeBSD, in terms of the structure the OS. I've
 installed FreeBSD 5.0 RC 3 before I had version 4.7. I install the OS to
 explore and learn about it, so far I love it.
 Here is my question: How can I change the resolution of the consol ?
 By default it's set to 640x480. I've read there is a way to display a
 splash image at higher resolution, but I'm not sure if it will stay
 afterwards. Basically I want to set the consol resolution at 1024 or
 higher, like I once had done in a Slackware Linux installation.


 Thanks,
 DT.


 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 top?

2003-01-16 Thread Jason Morgan
What does this mean?

$ top
kvm_open: proc size mismatch (41340 total, 1056 chunks)
top: Out of memory.

$ ps aux | more
ps: proc size mismatch (41340 total, 1056 chunks)


This came up right after installing the GIMP port (gimp1 in ports). I
noticed some slight slow down in the system, so I thought I would take a
look at what's going on. Now everything seems to be running fine, but I
still can't use top or ps.

Jason




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



Re: problem with top?

2003-01-16 Thread Jason Morgan
As this was my workstation, I was able to reboot. Came to the same
problem. Any suggestions?


On Thu, Jan 16, 2003 at 11:01:32PM -0500, Jason Morgan wrote:
 What does this mean?
 
 $ top
 kvm_open: proc size mismatch (41340 total, 1056 chunks)
 top: Out of memory.
 
 $ ps aux | more
 ps: proc size mismatch (41340 total, 1056 chunks)
 
 
 This came up right after installing the GIMP port (gimp1 in ports). I
 noticed some slight slow down in the system, so I thought I would take a
 look at what's going on. Now everything seems to be running fine, but I
 still can't use top or ps.
 
 Jason
 
 
 
 
 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 top?

2003-01-16 Thread Dax Eckenberg
 On Thu, Jan 16, 2003 at 11:01:32PM -0500, Jason Morgan wrote:
  What does this mean?
 
  $ top
  kvm_open: proc size mismatch (41340 total, 1056 chunks)
  top: Out of memory.
 
  $ ps aux | more
  ps: proc size mismatch (41340 total, 1056 chunks)
 
 
  This came up right after installing the GIMP port (gimp1 in ports). I
  noticed some slight slow down in the system, so I thought I would take a
  look at what's going on. Now everything seems to be running fine, but I
  still can't use top or ps.
 
  Jason

Not sure how the GIMP port would have caused this... but I've had this same problem 
when mixing newly built kernels with old
binaries.  Read the Makefile in /usr/src.  Sounds like you need to:

# cd /usr/src
# make installworld


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



RE: RSA SecurID

2003-01-16 Thread Brian McCann
Yes.  Starting with just login authentication, then eventually, if I can
figure out how, for web page authentication.  I saw that RSA has an
addon for Apache, but you have to buy their $5000 server to support it.
But logins are the first priority.

Thanks,
--Brian

-Original Message-
From: Dax Eckenberg [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 16, 2003 11:55 PM
To: Brian McCann
Subject: Re: RSA SecurID


are you looking to use the fob's (lcd number generator) for login
authentication?


- Original Message - 
From: Brian McCann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 16, 2003 5:51 PM
Subject: RSA SecurID


 Hi all.  I've searched in the archives and found nothing on this newer

 then 2001...so any help would be appreciated.  I'm looking to find a 
 way to support RSA's SecurIDs on FreeBSD.  There was something 
 mentioned back in March of 2001 on the topic, but that's all I could 
 find.  Could someone please tell me if this is possible, and if it is,

 where to look for more info?
 
 Thanks,
 --Brian McCann
 
 
 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: Make World Steps

2003-01-16 Thread Doron Shmaryahu
Hi,

I boot the system by manually loading the kernel. I have used the upgrade
procedure at least 20 times with no problems. Can anyone suggest a route to
go that would redo the upgrade ??

thanks

Doron
- Original Message -
From: Mike Meyer [EMAIL PROTECTED]
To: Doron Shmaryahu [EMAIL PROTECTED]
Cc: FreeBSD-questions [EMAIL PROTECTED]
Sent: Friday, January 17, 2003 4:35 AM
Subject: Re: Make World Steps


 In 021201c2bdba$19a55eb0$0801a8c0@dman, Doron Shmaryahu
[EMAIL PROTECTED] typed:
 This sequence

make buildworld;
  make buildkernel KERNCONF=KERNEL
  make installkernel KERNCONF=KERNEL
   mergemaster -p
  make installworld
  mergemaster
  reboot

 leaves out the very important step of doing a reboot between the make
 installkernel and the make installworld. You've just found out
 why. Your new kernel isn't booting for some reason. If you had found
 that out before doing the installworld, backing out the kernel would
 be trivial and you'd have your old system back to work on the problems
 presented by the new kernel.

 The one thing that isn't clear from your messages is what the kernels
 you have rebuilt are doing. If they are going to btx halted, then
 try building a kernel with debugging built in, and follow the steps in
 the writeup on freebsd.org for debugging kernel problems with kdb.

 If your new kernels are booting fine but ps and top are failing, then
 you're managing to boot without going through the full boot loader
 sequence, as that loads the kernel module and sets some symbols. I
 don't think this is the case, but if it is, how are you booting the
 system?

 mike
 --
 Mike Meyer [EMAIL PROTECTED] http://www.mired.org/consulting.html
 Independent WWW/Perforce/FreeBSD/Unix consultant, email for more
information.





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



make world

2003-01-16 Thread Doron Shmaryahu
Hi,

does anyone recommend I just do a make world in the /usr/src/  dir ? Would
this sort my problems out. ??

thanks

Doron



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



  1   2   >