RE: VPN server

2004-06-10 Thread Aaron Burke
 I am looking for some recomendations for a powerful (yet simple if
 possible) VPN server.
You have two options, there is 'mpd' and 'PoPToP'. I have run them
both, but mpd seems to support Microsoft clients with less hassle
(at least in my experience).

 At present I will need to only have access to one other network in a
 different office running Win2K PPTP. Hopefully I will need to expand in
 the future to other networks that may or may not be MS based.
This can be done using ip routing. You can create a static route
between the two networks on the PPTP server and client. The windows
client will get its configuation data from the VPN Server (FreeBSD).
However, You may want to add a static route to FreeBSD that will
send remote LAN specific traffic down the VPN link. Pretend that
your remote network in the office is numbered 192.168.20.1/24.
myUnix# route add -net 192.168.20 192.168.20.1 255.255.255.0

One other thing to disable (its on by default) is that the Windows
implimentation of the VPN client will route all traffic over the VPN.
I doubt that this is what you want, and you can disable it in the
VPN/PPTP connection properties on the windows machine. In Windows XP
Professional, I do the following.
Open the VPN Connection Properties.
Select the Networking Tab.
Select Internet Protocol (TCP/IP) and click properties.
Click on Advanceed.
Uncheck Use default gateway on remote network.

Both products (mpd and poptop) will work, but they both require a
little bit of configuration. The current mpd in the ports tree has
some examples you may want to look at.

 I would like if possible for the connections to be completly transparent
 to a user. Best case senario is the user signs on to thier FreeBSD (I am
 in a mixed network so there are a few XP systems also) system and opens up
 an application (or browse to a share on the other network) that connects
 to the other network and it connects without any more user intervention.
Well, if you have a FreeBSD box in both places, there are lots of
other options as well. My friend Nick runs a FreeBSD machine and we
use a 'gif' tunnel (IPv4 over IPv4) with IPSec encrypting the data
before it goes over the wire. There other solutions as well such as
'nos-tun'. I think that 'nos-tun' is part of the base installation and uses
the 'tun' device (part of the GENERIC kernel) by default.


 LOL I am not asking much am I?
Not at all. '-questions' is a good place for this question. In fact if
you search through the archives, I have posted similar VPN questions in
the past to this same list.


 Thank you,
 Joshua Lewis

Aaron Burke
(private email address because I HATE spam)


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


RE: strange ping behavior

2003-11-28 Thread Aaron Burke
 check this out - I have a fbsd 4.6 box on my network, as well as a 
 fbsd5.1 box and several XP boxes. I have a netgear router/firewall (also 
 does dhcp and print server) box as well. The 4.6 box is set up on the 
 network, the netgear dhcp server finds the box, as well as the 5.1 box, 
 so they are 'talking' on the network. The 4.6 box cannot ping anything. 
 I get this error -
 ping: sendto: permission denied
I get this message if I have disabled ICMP via the firewall.
If you have one running, make sure that your allowing ICMP through
it.

This should be as easy as ipfw 1 add allow icmp from any to any.

 from any box I try to ping the 4.6 box, and the ping just times out. The 
 5.1 box works fine. The 4.6 box used to work fine, and was serving web 
 pages, it has apache/php/mysql installed. It went down when the power 
 went out, and since has had the connection problems.
 Any ideas?
What kind of connection problems?

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


RE: internet setup

2003-11-12 Thread Aaron Burke
 B F wrote:
 
 Can someone just tell me step by step how to get my internet 
 running starting from a FreeBSD clean install?  I have spent days 
 trying different things I've read on websites and books, but have 
 yet to get it working.  Thanks.
 
 I'm new to BSD, but if it was Windows I'd just tell you to enable DHCP 
 on the FreeBSD box to get your network settings from your cable modem, 
 and be happy.  If that's not your style, then give your BSD box the 
 network settings manually (probably 192.168.x.y for the IP address, with 
 255.255.255.0 as a subnet mask.  Just pick something with a different 
 final number than either of your other machines.  ;) )
If you get the address via DHCP, run the following (my interface is ed0).
alpha# dhclient ed0

And if you want it to get the address on boot, add the following to
/etc/rc.conf
ifconfig_ed0=DHCP  #internet connection

If you want it to be a router as well, add the following to rc.conf
gateway_enable=YES



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


RE: Dialup firewalling with FreeBSD

2003-10-21 Thread Aaron Burke
 Hello,
 I followed this doc to install my firewall. Upon reboot I get 
 about 12 lines
 more or less like this:
 
 ipfw: size mismatch (have 176 need..)
 It also says that dev tun0 doesn't exist.
Does the tun0 device exist after boot?
If so, I have faced a similar problem in the past. 

However, I did have some people at a SeaFUG (now SeaBUG) meeting
come up with a solution. I basically had to open the tun0 port
before ipfw got started. I can past in the examples if you need
them. (if you have tun0 after boot)

And allthough dmesg showed several errors, the firewall did work
as expected. I, perhaps like you, dont like looking at errors.

 
 How do I correct this.
Do you have pseudo-device tun in your kernel config file? Is
it remmed out?

I am not sure if GENERIC has it or not.

 TIA
 j
 hullATmonisys.ca


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


RE: Windows XP and FreeBSD 4.4 on the same hard drive

2003-10-20 Thread Aaron Burke
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Rod Person
 Sent: Tuesday, October 14, 2003 4:16 PM
 To: Walt Haynes; [EMAIL PROTECTED]
 Subject: Re: Windows XP and FreeBSD 4.4 on the same hard drive


 On Tuesday 14 October 2003 04:48 pm, Walt Haynes wrote:
  I am currently running Windows XP Professional on a HP
 Pavilion with a
  27.95GB hard drive which I've partitioned with FDISK. Windows is in the
  primary DOS partition (about 7GB)  on disk drive C and the extended DOS
  partition had three logical drives (D, E, and F) defined in it; they are
  7.3GB, 7.3GB, and 6.3GB respectively. I want to create my FreeBSD
  environment in the first logical drive (D). I know the starting
 and ending
  sector numbers so that I won't overwrite any data already on the drive.
  Does this sound reasonable ? And will I be able to install
 FreeBSD's boot
  manager to give me a choice of which OS I want to come up ? I'd
 really like
  to do this right the first time.

 It been quit some time since I've used 4.4 or installed FreeBSD with DOS
 partitions that existed, so someone can correct me if I am mistaken. As
 memory serves me you can install FreeBSD into a extended DOS partition.

 I would delete the partition that you want FreeBSD to be in. Then
 when you
 install FreeBSD let it take care of the formating for you.

 Otherwise, you should have no problem.
This is bad information. If you dont want to kill your logical
drives, dont delete them. Windows places all extended drives in one
extended partition. (FDISK wont let you choose otherwise).

It is my opinion that you obtain a copy of some partition movement
utilities such as Partition Magic. (even though it runs in Windows/DOS
only) you should still be able to use it. You can then resize your
partitions and make room for a FreeBSD slice.

* Positive not for Partition magic: You can create Emergency Disks
that are bootable. So having DOS/Windows installed is not a requirement.



 --
 Rod

 @ Home So No Cool Signature
 http://opensourcebeef.bsd.st


Aaron Burke
[EMAIL PROTECTED]


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


Broken gif interface for IPV4 over IPV4 tunnel on FreeBSD 4.5-Release-P6

2003-10-11 Thread Aaron Burke
Hello Questions List,
(please cc, as I may not be on this list, (Too many daily messages))

I have previously setup a gif interface on a box called GM
using pseudo-device gif. I have tried several things to get the
gif interface back up and working. I will list them all in this
email. On an other note, the kernel source files used to be
located in the default /usr/src/sys/ have been moved to
/a/usr/src/sys/ (RAID5 on 3ware IDE RAID controller). If anyone
is interested in the details of the move I can paste them in if
people are intersted. And for the conveiniance of the person that
has physical access to the box, I symlinked /a/usr/src/sys to
/usr/src/sys .

The kernel was rebuilt the other day to add in support for
IPSEC and IPSEC_ESP to encrypt the connections. Since rebuilding
gif device no longer works. I have tried removing the IPSEC stuff
and rebuilding and go figure the gif device still doesnt work. So
I broke it, tried removing my changes, and its still broken.

I double-checked and pseudo-device gif is still in the kernel
config file.

I want to make it clear to everyone that I did have this working
in the past. I also dont have physical access to the box, so an
upgrade is not possible. (Plus, why upgrade something that has
worked in the past.)

And now for the problem:
gif0 does not show up in ifconfig, so I have tried creating the
device with methods that work on three other FreeBSD boxes
(4.8-stable from July 29th, 2003, and two 4.7-release boxes)
GM# ifconfig gif0 create
ifconfig: interface gif0 does not exist
Greenmantis# gifconfig gif0 local.public.ip.address remote.public.ip.address
gifconfig: interface gif0 does not exist
Greenmantis# ifconfig gif0 inet 10.1.1.2 192.168.0.2
ifconfig: interface gif0 does not exist

Where as on all of my other boxes, I dont get gifconfig:
interface gif0 does not exist. It just silently creates the
device and returns me to the prompt.

I am really currious about why it worked before, but doesnt work now.
And to have other people double-check the kernel source file on
the busted machine, I will paste it here. Some confidential info has
been changed for privacy)

#
# GM - GM's kernel configuration file.
# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.246.2.38 2002/01/25 17:41:40
murray Exp $

machine i386
cpu I686_CPU
ident   GM
maxusers0

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

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 UFS_DIRHASH #Improve performance on big
directories
options MFS #Memory Filesystem
#optionsMD_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
#optionsCD9660_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
options SUIDDIR #SMB support, its my file, I can del
it

options IPFIREWALL
options IPDIVERT

# secure VPN functionallity (were added for IPSEC secure transport)
# options   IPSEC#IP security
# options   IPSEC_ESP#IP security (crypto; define w/ IPSEC)

# 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

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

# 

RE: Remote X from another BSD Box

2003-03-21 Thread Aaron Burke
 On Wednesday, 19 March 2003 at 22:06:45 -0500, Brian McCann wrote:
  Hi all.  I'd imagine this would be fairly simple since I got it to work
  from Xmanager for Windows...but I'm having difficulties.  I have 2
  boxes, both BSD (one FreeBSD, one OpenBSD).  The FreeBSD box has a full
  blown install of X with KDE and all kinds of stuff, the OpenBSD just has
  a basic X installed with xdm.  I'd like to be able to use the OpenBSD
  box as a display for the FreeBSD box.  I thought I'd just be able to ssh
  into the FreeBSD box and run xmms, xcalc, xterm, whatever I wanted...but
  no dice.  Can someone help me out?

 The most obvious way of doing this is to start an xterm on the FreeBSD
 server:

   xterm -display freebsd:0.0 
There is also an other way via xdm. But for this to work you need to
uncomment the last line in /usr/X11R6/lib/X11/xdm/xdm-config.

You will also want to make sure your kernel contians the line
options XSERVER   (no quotes).


 For this to work, you should:

 1.  On the FreeBSD box, modify /usr/X11R6/bin/startx.  Change the line

   listen_tcp=-nolisten tcp

 to

   listen_tcp=
Not sure that this is needed, I have never changed it. However
I share x-windows using XDM.


 2.  Also on the FreeBSD box, run xhost:

 xhost openbsd
Guessing that xhost is kind of like the configurations of an
X server.


 This applies to any other X application as well, of course.
If you enable xdm (X Display Manager) X-Windows will become
an X-Server for every computer on your network. Other people
know of some ways to limit this functionallity by modify
which hosts your machine will listen on.

And With XDM running on a server you connect to it via:
From a UNIX box: X -query other.freebsd.box
Or: X -broadcast  Asks for any display server that
is running a display manager. A list is generated on your client.



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


RE: BTX Halted and Fatal Trap 12 errors on older machine

2003-03-14 Thread Aaron Burke
 I've got this spare machine, and I thought it would be perfect as a
 FreeBSD box to play with.  It's a P-100mHz, with 32MB RAM, floppy, video
 card, two PCI NICs, 50X CDROM, 40GB Western Digital hard drive, and one
 IDE controller.  
 
 However, I can't boot at all from any bootable FreeBSD ISO (tried
 4.5,4.6,4.7, and 5.0).  I can boot RedHat, Windows, and NetBSD cds
 though.  When I try to boot from CD, I get a BTX Halted error message
 right away, before the hardware even gets probed.  I tried changing
 every BIOS setting possible, but the FreeBSD ISO's just don't work on
 this system.  Anyone have any ideas why I would get this error?
 
 So, I then used the bootable floppies and successfully started
 sysinstall.  Each of about 25 installation attempts failed at different
 points with Fatal Trap 12 errors.  Installations failed during
 sysinstall extracting files, and during Gnome or KDE installation,
 either installing from CD or FTP.  Sometimes installation would
 successfully complete, I would reboot, login, do some stuff, and then
 another Fatal Trap 12 error would appear.  This occurred while
 installing various packages, while upgrading ports tree with cvsup, and
 during compiling/installation of various ports.
 
 The only thing that seems to be a common thread is that the Fatal Trap
 12 errors occur during heavy disk read/write periods.  Memtest-86 showed
 no memory errors at all, and I ran a disk utility to check for badblocks
 on hd, and the drive is healthy.
 
 I'm pretty sure that the BTX errors and the Fatal Trap 12 errors are
 probably not related...
They could be.

 
 Before I spend more time on this dang machine, does it sound like there
 is something that I can work around these problems with?  Or should I
 just forget about this miserable thing?
There are a few things that might be causing this. To me, allthough
I am not a motherboard expert, sounds like you may be having some
difficulties with your motherboard. There are a few things
that you can try before giving up on FreeBSD.

Avoid overclocking your CPU. You may also try underclocking it
and seeing if that fixes your BTX halted messages.
Also, the fact that you have tried FreeBSD 4.x and 5.x shows
me that its not specific to any version of FreeBSD. For example
FreeBSD 5.0 accesses parts of the mainboard differently by using
ACPI. Since this is an older mainboard, you may have to look
up some settings and move some jumpers around on the mainboard
for this.

There are a few other mainboard things that could be affecting
the installation (or lack there of). One of them is RAM, are
your memory sticks showing signs of errors? I have had Windows
2000 install but run poorly in the past, whereas FreeBSD failed.
After replacing the RAM in the system, FreeBSD installed and
worked fine. I have not run Windows 2000 on that box since, so
I am not sure if that fixed some of Windows 2000's problems.

Also, you can try to load the failsafe configuration settings
in your bios. (if they are available)

I am sure some other people on this list can offer some other,
and perhaps better advise.

 
 Thanks,
No problem, thats what some of us are here for.

 
 Trying hard to use freebsd... 
 Adam
 



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


RE: Mirroring/load-balance two servers

2003-03-06 Thread Aaron Burke
 Does anyone know if there is a simple way to mirror two servers
 without spending $ on hardware? I'm NOT talking about mirroring the
 OS and the files, I'm talking about sending http requests to a second
 server if the first server is down/un-reachable. This is sometimes
 referred to as load-balancing.

 The second server doesn't have to be updated in realtime, it just needs
 to have a fairly current version of the data files of the main server.
 So, for example if the main server goes off line for any reason, then
 web pages would be served up from the second server instead.

 Can this be accomplished with DNS?
To my knowlege, yes. Lets say you had a server called www.
You would just give it two addresses in your domain configuration
files.

www IN  CNAME   12.34.56.78
www IN  CNAME   9.10.11.12
www IN  CNAME   65.4.3.21

The DNS standard will give out a different address for every
query. To get the address 12.34.56.78 twice, you would have
to make 4 unique queries for the server records.

One good example of this is to look at www.yahoo.com in nslookup.
Default Server:  localhost.jupiter.sol
Address:  127.0.0.1

 www.yahoo.com
Server:  localhost.jupiter.sol
Address:  127.0.0.1

Non-authoritative answer:
Name:www.yahoo.akadns.net
Addresses:  216.109.125.73, 216.109.125.70, 64.58.76.223, 216.109.125.72
  216.109.125.67, 216.109.125.65, 216.109.125.66, 64.58.76.227,
64.58.76.228
  216.109.125.71, 64.58.76.230, 216.109.125.69, 64.58.76.225
Aliases:  www.yahoo.com



 Jonas Fornander - System Administrator
 Netwood Communications, LLC - www.netwood.net
 Find out why we're better - 310-442-1530


 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: Mirroring/load-balance two servers

2003-03-06 Thread Aaron Burke
 Aaron Burke [EMAIL PROTECTED] writes:
 
  To my knowlege, yes. Lets say you had a server called www.
  You would just give it two addresses in your domain configuration
  files.
  
  www IN  CNAME   12.34.56.78
  www IN  CNAME   9.10.11.12
  www IN  CNAME   65.4.3.21
 
 That should be A records, not CNAMEs.
Err, you are correct, my mistake.

 
  The DNS standard will give out a different address for every
  query. To get the address 12.34.56.78 twice, you would have
  to make 4 unique queries for the server records.
 
 Where does the standard say that?  Most servers will return the
 records in the same order each time by default, and my reading of the
 standards is that this is perfectly acceptable behaviour.

I have personally not read the standard. It is just information
thats been given to me by some knowlegable friends.


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


RE: connecting two computer through a hub

2003-03-05 Thread Aaron Burke
 Hi:
 
 I have a machine set up with freebsd and it was set up to
 connect to the internet.
Cool.
  
 
 However, now I need to connect that computer to another
 computer through a hub without any interent connection at
 all.  (I just want to have a VNC viewer up in the freebsd
 box so that the freebsd box can control the other computer
 running WinXP)
 
 Both computer does not have connection to the interent.
Well, we can show you how to put them both on the internet
at the same time using something called network address
translation. This will allow both computers to share one
public internet ip address. Is this what your asking for
help about?

 
 My question is, do I have to change any settings on the
 freebsd box?
This will depend on exactly what your asking for help on.

 
 Thanks
Your welcome.

 
 Herman
 




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


RE: RAM

2003-03-01 Thread Aaron Burke
 To whom it may concern:
 
 What is the minimal amount of RAM do you need to install FreeBSD
 4.6/5.0?
According to some docs at FreeBSD, you should only need 5MB to
install, and 4MB to run. However more than 5MB is of course
better.

 
 Thank you.
No problem.



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


RE: Hooking 2 Networks

2003-03-01 Thread Aaron Burke
 Subject: Hooking 2 Networks
 
 
 I have two separate connections to the Internet with static
 IPs and two separate networks. Each network has an internal
 FBSD Gateway/NAT/caching DNS connected to the backbone  
 each have a separate LAN subnet (192.168.0.x on one and
 10.0.0.x on another). The default router for each LAN is
 its internal Gateway machine, so they know which GW to use
 to get out to the Net. Each also operates web  mail
 servers. Each have their own switches from the Gateway
 machine cabled to the servers/workstations.

This is possible and easy, it will however become a problem
if your machines are getting thier ip addresses via DHCP.
There may be a better way. (see below)

You may find it more conveinient to attach one box to both
networks. The most simple solution would be to attach both
gateways to both networks. But dont attach the networks
together. Doing it this way avoids cable usage, and ethernet
broadcasts dont have to be advertized on both networks.
You also will not have to worry about setting up a specific
routes on each client. And because both routers will have
addresses on both networks they will auto-forward packets
between the two networks.

The following is my idea of what your network looks like
now:

{192.168.0.0}--[freebsd gateway]--{internet conn1}
(10.0.0.1}--[freebsd gateway]--{internet conn2}

And what you want to do would be the following:

{192.168.0.0}--[freebsd-gateway]--{internet conn1}
(link)  
{10.0.0.0}--[freebsd gateway]---{internet conn2}

This will simplify the number of hops between the boxes
and you will get much higher speeds. And if you attach
the two FreeBSD boxes to both networks, you can still
safely use DHCP for providing IP addresses to the
clients.

 
 I would like to hook the two networks together via the
 switches  I assUme I do this by running a cable from 
 the one switch to the uplink on the other???
 Is my assumption correct?
Yes, this will work, but you may want to simply attach
both gateways to the two networks.

 
 I would like to have all machines have direct  fast
 access via the internal NW cables for NFS access.
Attaching both unix boxes to both networks will solve
this for you.

 
 As simple as this sounds, I have not found anything
 anywhere about hooking 2 networks together and if 
 there is any problems. Guess I could just hook up 
 and try it, but rather double-check with some one
 who has a similar setup -- or point me to a URL
 (I've googled, visited the networking and router sites
 - none talk about directly hooking 2 NWs).
 
 Appreciate any replies. thanks!
No problem, let us know if you wish to continue this.
Lots of people on this list can provide good advise.
(better than me in many cases)

 
 Best regards,
 Jack L. Stone,
 Administrator
 
 SageOne Net
 http://www.sage-one.net
 [EMAIL PROTECTED]


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


RE: Hooking 2 Networks

2003-03-01 Thread Aaron Burke
 Each machine has static internal IPs and listed in the 
 /etc/hosts so finding them is easy.
You dont have to worry about this. It should be fine that
they are in hosts.

(snip)
 {192.168.0.0}--[freebsd-gateway]--{internet conn1}
  (link)  
 {10.0.0.0}--[freebsd gateway]---{internet conn2}
 
 
 How did you link the two machines? I have 2 NICs
 in each box - 1 for external and 1 for internal.
In my case I just an other ethernet card. 

Which would bring the total number of network cards to 3
instead of 2. This unfortunatly means that (with this
plan) you would need an other network connection between
the two machines.

Assume the following:
FreeBSD Machine on 192.168.0.0
ethernet to 192.168.0.0
ethernet to FreeBSD Machine 10.0.0.0
internet connection

FreeBSD Machine on 10.0.0.0
ethernet to 10.0.0.0
ethernet to FreeBSD Machine 192.168.0.0
internet connection

And you can buypass a hub/switch by using a 
cross-over cable. A cross over cable is simply
an ethernet cable that maps outbound (TX  RX)
to incomming (RX  TX).

 Just have those two questions above inline. thanks again.
Well, I seem to have answered at least one, whats the
other question?

 Best regards,
 Jack L. Stone,
 Administrator
 
 SageOne Net
 http://www.sage-one.net
 [EMAIL PROTECTED]
 
 


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


RE: question

2003-02-26 Thread Aaron Burke
 I had installed the ports with sysinstall
 but how do I can start them loll
 thank you for your answer
If you installed the ports collection via sysinstall you
should have a folder under /usr/ports .

For example to install (lets say) screen
you would type the following as root or super-user:

cd /usr/ports/misc/screen
make  make install
rehash

The first two lines install the port, and the rehash line
tells your shell to refresh the list of commands.


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


RE: XDM on multiple virutal X screens ( ALT-F9,ALT-F10...)

2003-02-26 Thread Aaron Burke
(snip)
  You have searched  well enough. I remember playing with this
  for about a week in the past. (when I first got it working).
  Its amazing how easy the change is to make though.
There are a few good reasons I can think of. Simply running an
other instance of X-Windows takes up more resources. Most just
run virtual-desktops to get around problems like this.


 Perhaps folk does not like to run it for some reasons. But If i want it to
 get it running on diffrent screens I have to edit
 /usr/X11R6/lib/X11/XF86Config I guess and add the other graphic
 card there, and so forth.
Adding the other entry to XServers does not have anything to do
with running it on multiple monitors.

There are three connectivity sections to every X window.
Adding a line to Xservers (to my knowlege) does not have
anything to do with running on two different monitors in
a dual-head'd configuration. A second monitor/display
would show up as :0.1, :1.1, etc. A third monitor would
be :0.2 or :1.2, etc. Also note that the lack of a host
name tells the X-Windows system to find the best way of
communicating with the localhost. There are several other
ways of communicating with the X-Server including UNIX
sockets, IPX, etc.

A simple way to remember it is Hostname:Window:Screen.

(snip)



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


RE: can't get to ATA133

2003-02-26 Thread Aaron Burke
(snip)
 Subject: can't get to ATA133
 FreeBSD 4.7R

 Promise TX2000 with two ATA133 drives as ata masters using the ATA133 IDE
 cables that came with the TX2000.

 dmesg shows:

 ad4: DMA limited to UDMA33, non-ATA66 cable or device
 ad6: DMA limited to UDMA33, non-ATA66 cable or device
 ar0: 39083MB ATA SPAN array [4982/255/63] status: READY subdisks:
   0 READY ad4: 39083MB Maxtor 6Y040L0 [79408/16/63] at
 ata2-master UDMA33
 ar1: 39083MB ATA SPAN array [4982/255/63] status: READY subdisks:
   0 READY ad6: 39083MB Maxtor 6Y040L0 [79408/16/63] at
 ata3-master UDMA33

 Anybody know why TX sees only 33?
Seems that you are running 40 conductor IDE cables.
In order to get anything higher than UDMA33, you will
need to have an 80 conductor cable. These cables run
dual conductors to help reduce noise generated on the
cable itself.


 Len



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


RE: isp connection woes

2003-02-25 Thread Aaron Burke
(snip)

 I have ATTBI for an isp, someone told me that the IP TTL is
 expiring on the way to the server. Their network design
 supports no more than 16 hops on the way to a DHCP server,
 but increasing the (hard-coded) TTL (at line 159 in
 /usr/src/contrib/isc-dhcp/common/packet.c) can help fix the
 problem.
99.9% of users are no more than two hops from the DHCP server.
16 hops seems way too high. But perhaps your isp doesnt agree
with my observations.

 I would like to manually try to connect to my isp
 before i try changing the code for DHCP.
 I got my network info from my lrp operating system. I would like
 to switch that to bsd.
 can i use traceroute to find out the number of hops i am
 currently taking to get
 to my isp's dhcp server?
Yes, you can.
The lease information should be in /var/db/dhclient.leases .



 manual configuration
 
 ifconfig_rl0=inet 66.41.139.87 netmask 255.255.248.0#66.41.139.87/21
 ifconfig_rl1=inet 192.168.1.254 netmask 255.255.255.0

 default_router=66.41.136.1 rl0
 default_router=192.168.1.254 rl1
If this info is in your rc.conf file, you will want to
comment out the second default router (rl1). Ethernet
hosts dont need additional routes to be set up to
communicate with other hosts on the same chunk of your
ethernet.

 domain the-matrix.net
 nameserver 63.240.76.19
 nameserver 204.127.198.19
Are you serving out a domain called the-matrix.net?
Are you running your own DNS server?


 is there anything else i need to manually connect to my isp?
That depends on how they want to authenticate thier users. If
they are using PPPoE then yes. If not, then it should work fine
now. I think removing the second instance of default_router from
your rc.conf file will fix the communication issues.


 thanks,
Thats what we are here for.


 brian



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


RE: isp connection woes

2003-02-25 Thread Aaron Burke
(snip)
You asked if you can ping your DHCP server
  Don't see why not, assuming:
  1) The DHCP server returns icmp echo requests
  2) You know the IP of the DHCP server
 
   manual configuration
   
   ifconfig_rl0=inet 66.41.139.87 netmask 255.255.248.0
 #66.41.139.87/21
If you are using DHCP you will want to set this to
ifconfig_rl0=DHCP

   ifconfig_rl1=inet 192.168.1.254 netmask 255.255.255.0
  
   default_router=66.41.136.1 rl0
  This should be:
  defaultrouter=66.41.136.1
I agree.

   default_router=192.168.1.254 rl1
 ^
  This is wrong.  Don't put that in.
Thats correct, and also dont include the network
adapter name.
   domain the-matrix.net
   nameserver 63.240.76.19
   nameserver 204.127.198.19
  This goes in your /etc/resolv.conf

 
 Bill,
 
 Why do i not need to have two default routes,
 I have 2 networks? 
The default routes have nothing to do with how many
networks you are attached to.

 I am sure you
 are correct, I guess i just don't understand why.
 is there a way i can find out the ip addr of my 
 dhcp server?
Yes, see /var/db/dhclient.leases . Dont worry that
there are serveral different addresses in there. dhclient
just appends the current lease to the end of the file.

 does this even work: default_router=192.168.1.254 rl1
I dont think that it does. You can find out by typing
'netstat -r'. It will give you a listing of your IP routes.

 Thanks again for the help,
 Brian
Once again, thats what we are here for.



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


RE: Verizon DSL FreeBSD?

2003-02-22 Thread Aaron Burke
(snip)

   I also don't user Verizon for an ISP because they don't permit local 
   servers.
Not true at all.

   
  
  i'm guessing you're talking about the inconvenient way some Cable/DSL
  ISPs block incoming connections on common server ports (25, 80)?
 
 Verizon DSL does not block port 25 in the NorthEast.  Port 80 appears
 blocked (Bah!), but they claim they don't block any ports.  I was told
 it could be the DSL modem (Westell Wirespeed A90-210015-D4), but as
 far as I can tell, it isn't configurable, and doesn't block ports
 anyway.  Odd thing is that the port 80 trace stops at the modem.  I've
 never been able to figure this out.
I am also a Verizon DSL customer. They have given me a similar model
of the wirespeed dsl access point. They gave me a Westell Inc 
A90-210015-04 and do not block any ports period.

 
 Next month, Comcast (formerly ATT Broadband (formerly MediaOne
 Broadband)) is supposed to turn on the digital upgrades in my area, so
 I'm probably going to switch over.
 
 Oh, and BTW, other than port 80, Verizon DSL/PPP works great with
 FreeBSD.
They dont block 80 on my box, allthough that might be a config setting
not set in my area.

(snip)


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


RE: Verizon DSL FreeBSD?

2003-02-22 Thread Aaron Burke
 On 02/22/03 09:26 AM, Aaron Burke sat at the `puter and typed:
  (snip)
  They dont block 80 on my box, allthough that might be a config setting
  not set in my area.

 Ok, mind if I ask you what your network setup looks like?
rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
inet 192.168.0.1 netmask 0xff00 broadcast 192.168.0.255
ether 00:e0:29:51:8b:62
media: Ethernet autoselect (100baseTX full-duplex)
status: active
ed0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
inet 4.x.y.z netmask 0xfc00 broadcast 4.40.155.255
ether 00:80:c8:3d:bc:ec
(snip)

 Any pointers? - maybe this will help the originator of this thread as
 well :)
I dont use PPPoE on this interface, as far as my machine is
concerned, the internet is just an other chunk of the lan.

I also nmap'd your ip address, the isp is stopping the
traffic on ports 80, 113, and 27374 for you. You could
try getting in touch with them about removing these rules
for your ip address.

Also keep in mind that some Cable Modem ISPs have similar
rules in place.


 TIA
 Lou
 --
 Louis LeBlanc   [EMAIL PROTECTED]
 Fully Funded Hobbyist, KeySlapper Extrordinaire :)
 http://www.keyslapper.org ԿԬ

 When the weight of the paperwork equals the weight of the plane, the
 plane will fly.
 -- Donald Douglas



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


RE: Verizon DSL FreeBSD?

2003-02-22 Thread Aaron Burke
  On 02/22/03 07:03 PM, Cliff Sarginson sat at the `puter and typed:
   Hi,
   Well I can telnet to port 80 on your domain, but it times out in a
   browser.
   I don't get any greeting on the telnet, so...it's open, but
 nothing is
   responding to it .. (no web server I mean).
nmap on his IP address says otherwise. (notice closed not
filtered)

Interesting ports on pool-68-160-158-62.bos.east.verizon.net
(68.160.158.62):
(The 1547 ports scanned but not shown below are in state: filtered)
Port   State   Service
21/tcp openftp
22/tcp openssh
25/tcp opensmtp
80/tcp closed  http
113/tcpclosed  auth
143/tcpopenimap2
443/tcpopenhttps
993/tcpopenimaps
27374/tcp  closed  subseven

Notice that they are closed, a local firewall makes the ports
say filtered if they are turned off with a local firewall.
(SNIP)



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


RE: Verizon DSL FreeBSD?

2003-02-22 Thread Aaron Burke
(snip)
 I am resetting ports 113 and 27374 from my firewall, but not port 80.
 From my work system, port 80 is shown as filtered by nmap.  Other than
 that, everything above looks exactly right.  Is it possible that port
 80 is being reset elsewhere?  What command line did you use?
nmap -P0 68.160.158.62

 I used this:
 nmap -sT -P0 -O -v -oN ~/scan.txt -p 80 68.160.158.62
 
 And got this:
 Port   State   Service
 80/tcp filteredhttp
(snip)


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


RE: gif tunnels?

2003-02-21 Thread Aaron Burke
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of
 Krassimir Slavchev
 Sent: Friday, February 21, 2003 12:21 AM
 To: [EMAIL PROTECTED]
 Subject: gif tunnels?


 Hello All,

 I have:

  Private Net 1  Firewall 1Firewall 2  Private Net 2
 ---  ---
 | 10.1.0.0/24 || FBSD 4.7 |--//--| FBSD 4.7 || 10.2.0.0/24 |
 ---  ---
 |__tunnel__|

 I want to configure tunnel between Private Net 1 and Private Net 2
 and
 can not get tunnel to work when Public IP of Firewall 1 and Firewall
 2 are
 from same subnet. If public IPs of my firewalls are from different
 subnets all works fine.

 On Firewall 1 I do:
 # ifconfig gif0 create
 # gifconfig gif0 x.y.z.1 x.y.z.2
 # ifconfig gif0 inet 10.255.255.1 10.255.255.2 netmask 255.255.255.252
 # route add -net 10.2.0.0/24 10.255.255.2

 On Firewall 2 I do:
 # ifconfig gif0 create
 # gifconfig gif0 x.y.z.2 x.y.z.1
 # ifconfig gif0 inet 10.255.255.2 10.255.255.1 netmask 255.255.255.252
 # route add -net 10.1.0.0/24 10.255.255.1

 Is there any way to get this to work?

You may want to check out http://www.nullplusone.com/vpn .It describes
a slightly different situation. Here there is a link from the 192.168.0.0/24
to 10.1.1.0/24.


 Thanks in advance
Hope this site is some help



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



RE: IPFW: rc.firewall script doesn't load when loading rules from a file

2003-02-18 Thread Aaron Burke


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Jason Williams
 Sent: Tuesday, February 18, 2003 3:50 PM
 To: [EMAIL PROTECTED]
 Subject: IPFW: rc.firewall script doesn't load when loading rules from a
 file
 
 
 I'm using FBSD 4.7 and have compiled ipfw into the kernel. My rc.conf 
 file has the following:
 
 firewall_enable=YES
 firewall_script=/etc/rc.firewall
 firewall_type=/etc/ipfw.rules
I am not sure how your situation is different than most, but I use
firewall_type=OPEN instead of /etc/ipfw.rules. The other 
options will be listed in the file /etc/rc.firewall .

You may want to look at the following in the freebsd handbook.
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls.html

 firewall_quiet=NO
 firewall_logging_enable=YES
 log_in_vain=YES
 icmp_drop_redirect=YES
 
 On reboot, ipfw is not reading rc.firewall before loading my rules - 
 /etc/ipfw.rules - as I've assumed it would. I thought I could let 
 rc.firewall take care of housekeeping ( flush and loopback rules ) 
 before moving on to the the custom rules in ipfw.rules. Am I missing 
 something here or is it normal to bypass rc.firewall altogether and set 
 up a rules file with everything needed in there? All the tutorials seem 
 to suggest that ipfw reads rc.firewall first before moving onto custom 
 rules files, but that has not been my experience here. Thanks for your 
 help
 
 Jason Williams
 [EMAIL PROTECTED]
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
 
 


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



RE: Need help formatting HDD

2003-02-16 Thread Aaron Burke
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of . Saevio .
 Sent: Sunday, February 16, 2003 11:21 PM
 To: [EMAIL PROTECTED]
 Subject: Need help formatting HDD
 
 
 
 Hi All,
Hi . Saevio .

 
 Sorry to write a F-BSD list with this, but i figured you would know.
 I have a IBM Deskstar 30gb, with FreeBSD 4.x on it, and i need to 
 remove it 
 so i can install the HDD in a friends system. However after trying with 
 format.com and fdisk.exe it wont even recognize the partition.
Fdisk is not going to be able to identify the FreeBSD partition.
It will only show up as unknown. But you should still be able to
delete an unknown partition.

 
 How do i remove it? anything would be appreciated.
(non bsd discussion follows)

I am assuming that you want to make a FAT filesystem on the drive
for use in windows. This should be pretty simple.
Create a new Master partition on the drive.
reboot
type dir c:\ (or whatever drive you expect it to be)
You should get a message about the os not being able to read
the partion. If you dont, and it lists files, then repost to
this list and re-describe what is exactly going on. If you get
the message then use format c: /s. (the /s tells the format
utility to copy over the system files and make the drive
bootable).
Then remove the hard drive and give it to your friend.

 
 Thanks,
 
 ..brian..
 
(snip)


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



Re: login.conf tc=default

2003-01-20 Thread Aaron Burke
(forgive outlook express, I too hate its formatting)

- Original Message -
From: Hanspeter Roth [EMAIL PROTECTED]
To: FreeBSD User Questions List [EMAIL PROTECTED]
Sent: Saturday, January 18, 2003 6:00 AM
Subject: Re: login.conf tc=default


   On Jan 17 at 16:57, Joe Marcus Clarke spoke:

  On Fri, 2003-01-17 at 16:43, Hanspeter Roth wrote:
   Hello,
  
   I'm trying to setup an alternate welcome file for a specific user.
   I have the following entry in login.conf:
  
   user:\
   :welcome=/etc/resolv.conf:\
   :tc=default:
  
   But the user is presented the default /etc/motd at login.
   How will he see /etc/resolv.conf?
 
  After you modified this, did you run cap_mkdb?

 Well, I failed to notice that this is necessary.
 But also now as I've done it I still get the default /etc/motd.
 Is there something more to consider?

Perhaps there is, I am guessing that you want a custom message for
a specific user. I had to do this for a user named dustman on my
machine. It was as simple as adding the name dustman (also in
login.conf) to the password database file.

I have pasted in two entries from vipw, notice the word dustman
in both of them. One is for user test2, the other for user dustman.

dustman:IJcNND58gQpL6:1011:1011:dustman:0:0:Dustin D
Brand:/home/dustman:/usr/lo
cal/bin/bash
test2:$1$hcveRAF2$oIEp0sKgLzEB1WYsafGry.:1012:1012:dustman:0:0:Test Account
for
Login Class:/home/test2:/usr/local/bin/bash


 -Hanspeter

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

Aaron Burke
[EMAIL PROTECTED]



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



RE: How to get detailed information on the RAM in the system?

2003-01-08 Thread Aaron Burke
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Pranav A. Desai
 Sent: Tuesday, January 07, 2003 11:47 AM
 To: FreeBSD Questions
 Subject: How to get detailed information on the RAM in the system?

It shows you if you type dmesg. Its just below the processor info.
CPU: Pentium/P55C (233.86-MHz 586-class CPU)
  Origin = GenuineIntel  Id = 0x543  Stepping = 3
  Features=0x8001bfFPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX
real memory  = 67108864 (65536K bytes)


 
 
 Hi!
 
   Is there a way to find out how many memory modules are in a
 machine e.g. whether it is 2*1G=2G or 4*512M=2G of RAM. I dont have
 physical access to the machine.
 
 Thank you for your time
 
 -Pranav
 
 ***
 Pranav A. Desai
 
 
 
 
 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: dual-boot question

2003-01-06 Thread Aaron Burke
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Jud
 Sent: Monday, January 06, 2003 02:56 AM
 To: chip wiegand; [EMAIL PROTECTED]
 Subject: Re: dual-boot question
 
 
 On Sun, 5 Jan 2003 22:44:06 -0800, chip wiegand [EMAIL PROTECTED] wrote:
 
  I have a box running fbsd/w2k but am considering replacing w2k with
  win98. There are problems with wine not being able to run apps on w2k
  partition properly, or at all. I realize if I install win98 it will wipe
  out my boot partition, thus making it so I can't boot into fbsd, which I
  use 99% of the time.
  Any suggestions on how to install win98 without wiping out the boot
  partition, or how to recreate the dual-boot menu?

Yes, I seem to remember a setup switch to the Windows 98 Installation
program that does not write to the MBR. But then again, I may be wrong.
Just type d:\setup /?.


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



RE: FreeBSD Stability

2003-01-04 Thread Aaron Burke
  Don't think (pretty darn sure actually) that FreeBSD can do 
 this ... howver 
  - there is a project for Linux that has this capability.  Check 
 out the Two 
  Kernel Monte at 
 http://www.scyld.com/products/beowulf/software/monte.html
  
 
 quoeted from http://www.scyld.com/products/beowulf/software/monte.html
 ...
   which allows Linux to load another kernel image into RAM and restart
   the machine from that kernel.
 ...
 
 notice the word 'restart'.

True, but if you 'restart', your uptime goes back to 0 days. Which
defeats the point.

 
 danny
 
 
 

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



RE: mac os x 10.2.3 jaguar and port forwarding?

2002-12-31 Thread Aaron Burke
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Ralph
 Freibeuter
 Sent: Monday, December 30, 2002 04:27 PM
 To: [EMAIL PROTECTED]
 Subject: mac os x 10.2.3 jaguar and port forwarding?


 Ho can I exactly define a rule (and where?) that forwards
 incoming requests to port 445 (samba?) to an internal machine
 with lan ip 192.168.2.50 ?

 The routing Macs IP is 192.168.2.1 and the external IP is
 given by ISP via pppoe.

 Please help me.

 I've already tried:

 sudo natd -redirect_port tcp 192.168.2.50:445 445

I am assuming that there are several ways of doing this. I am
blindly assuming that you are doing this on the FreeBSD box.

I was using regular ppp to forward all incomming traffic on
port 6112 to a specific box inside the 192.168.0.2 range using
the following. This was required to play on battle.net with one
specific Windows machine on my private network. I added the
following three lines to /etc/rc.conf

natd_enable=YES
natd_interface=tun0
natd_flags=-f /etc/natd.conf

Then within /etc/natd.conf I have:
dynamic yes
use_sockets yes
same_ports yes
unregistered_only
redirect_port udp 192.168.0.2:6112 6112

And the result that I obtain looks like this
alpha# ps auxw | grep natd
root 160  0.0  0.1   436   32  ??  Is   21Dec02   0:19.62 /sbin/natd -f
/etc/natd.conf -n tun0


 But all I get are messages about errors and addresses
 that already have been given.

 Please help

Lemme know if this was any help.


 Regards,
 Ralph


 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: Error when trying to mount cd

2002-12-31 Thread Aaron Burke
(snip) (and fix of earlier top-post)

 
 --- Stacey Roberts [EMAIL PROTECTED] wrote:
  Hi Kevin,
  
  On Tue, 2002-12-31 at 10:37, Kevin Greenidge wrote:
   I get the following error message when trying to
  mount
   a cd:
   
   sentinel# mount /dev/acd0c
   
   cd9660: /dev/acd0c: Input/output error
  
  You might want to try:
  
  mount -t cd9660 /dev/acd0c /cdrom

begin Top-Post fix:
 I am running 4.7 and mount /cdrom does not work. I
 have yet to try mount -t cd9660 /dev/acd0c /cdrom
 and maybe this one will
end Top-Post fix:

   What could I be doing wrong? 

How is the cdrom you are trying to use attached to the
system? Is it an IDE ATAPI CDROM or is it scsi?
If it is scsi, you may need to use a different device
name such as /dev/scd0c. (I am assuming this
is where scsi cdroms are at, but I dont have scsi on my box).

Also, in the /dev dir if you do 'ls -l cdrom' you will see that it
is a symlink to the real device. On my box I get:
bash-2.05$ ls -l cdrom
lrwxr-xr-x  1 root  wheel  11 Jul  2  2002 cdrom - /dev/racd0c

(snip)

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



RE: Hangs on boot.

2002-12-31 Thread Aaron Burke
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of bryan cassidy
 Sent: Tuesday, December 31, 2002 09:04 AM
 To: [EMAIL PROTECTED]
 Subject: Hangs on boot.
 
 
 Hello. I am using FreeBSD 4.7 right now and was
 wondering something. In my /etc/rc.conf file I made
 sendmail_enable=YES sendmail_enable=NO and when I
 boot the system hands for a few minutes at the most
 when trying to start the sendmail daemons. Is there a
 way to stop the system from hanging at boot time?
 Please Cc: [EMAIL PROTECTED] (I can't send e-mails
 from my POP account to the mailing list for some
 strange reason) thanks in advance.

POP is not generally for sending mail. It is typically used to
retrieve mail. It sounds like you have a problem with your
SMTP server. One thing that kind of hung me up in the past
was assuming that I could always use the account
smtp.nullplusone.com. It would work fine on some connections,
but not when dialed into some isp's. I later learned that
you should be using your internet service providers smtp server.

For example, lets take AOL. AOL will let you use any SMTP server
in the world, with no problems. However when you dial into 
JoeBlow ISP, you should use something like smtp.joeblow.com.

(snip)

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



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

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

This is as I expected. And I dont know of a way to get around
it.

 
  Cannot open your terminal '/dev/ttyp0' - please check.
 
 Three possibilities that you might wish to investigate further are:
 
 1. Write a shell script that does the equivalent of the system() call
you are using now.  This should be fairly easy and will work fine
if you execute the script from a root shell.

I dont think that this will work. The super-user has nothing to do
with the process that needs to be run. The user that logs in is not
privliged, and the account that he is becomming is not privlidged
either.

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

Done. Thanks for the comment on this. I noticed a warning from g++ about
this today.

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

How would I do this with exec. According to the man page for exec
I have only a few options.
 int execl(const char *path, const char *arg, ...);
 int execlp(const char *file, const char *arg, ...);
 int execle(const char *path, const char *arg, ...);
 int exect(const char *path, char *const argv[], 
   char *const envp[]);
 int execv(const char *path, char *const argv[]);
 int execvp(const char *file, char *const argv[]);

Can you point me to the right documentation to learn about
the exec functions provided by unistd.h?

Allthough I am not familiar with unistd.h at all, I did do
a little bit of expermentation.

Here is my new code:

#include stdio.h
#include stdlib.h
#include unistd.h

int main(int argc, char* pszArgs[])
{
int result, result2;
result= execlp(/usr/bin/su, ppp, -m);
result2=execlp(/usr/local/bin/screen, -x);
return result + result2;
}
bash-2.05$ g++ run-ppp.c
bash-2.05$ ./a.out
bash-2.05$

I am a little supprised that nothing appeared to have happened.
Perhaps I am running these improperly. Am I using the correct
exec command? Can you demonstrate how this should work? 
What else could execlp(args) needs to say?

 
 - Giorgos
 

Thanks for your time.

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



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

2002-12-19 Thread Aaron Burke
Hello list

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


Here is my application:


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

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

Thank you all for your time.

Aaron Burke
[EMAIL PROTECTED]

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



RE: WINS service over a Point to Point link. (Problem Solved)

2002-10-09 Thread Aaron Burke

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Aaron Burke
 Sent: Sunday, September 29, 2002 04:27 PM
 To: [EMAIL PROTECTED]
 Subject: WINS service over a Point to Point link.
 
 
 Hello List,
   I have a question about how I can get WINS to run over a
 PLIP link. The service does run fine over my two ethernet networks.
 However, when WINS (run via Samba) tries to determine if there is
 WINS service running on the lp0 (Parrallel Point-to-Point
 connection) it fails on the broadcast. There is no 192.168.2.255
 broadcast address available to send packets to.
 
   I am under the assumption that because there is no way to
 determine if a WINS server is allready running on that interface.
 Because no WINS server can be contacted, WINS is forced to fail
 to announce that it becomes the WINS server on that interface.
 
   Is there any way to add a reference to bravo (192.168.2.2)
 to the WINS tables?

Seems that there was using the remote announce tag.

On the server I used remote announce = 192.168.2.2 in the
[global] section of the smb.conf file. I am aware that this may not
be what made the difference

And on the workstation (also a bsd box) I added
remote announce = 192.168.2.1 and wins server = 192.168.2.1
in the [global] section of the smb.conf file.

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



WINS service over a Point to Point link.

2002-09-29 Thread Aaron Burke

Hello List,
I have a question about how I can get WINS to run over a
PLIP link. The service does run fine over my two ethernet networks.
However, when WINS (run via Samba) tries to determine if there is
WINS service running on the lp0 (Parrallel Point-to-Point
connection) it fails on the broadcast. There is no 192.168.2.255
broadcast address available to send packets to.

I am under the assumption that because there is no way to
determine if a WINS server is allready running on that interface.
Because no WINS server can be contacted, WINS is forced to fail
to announce that it becomes the WINS server on that interface.

Is there any way to add a reference to bravo (192.168.2.2)
to the WINS tables?

If I have forgotten to mention anything, please let me know.

Aaron Burke
[EMAIL PROTECTED]

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