Re: About suidperl in FreeBSD

2011-10-04 Thread Alex Teslik
you don't need suidperl for openwebmail. Use C-wrappers as explained in the
HOWTO:

http://openwebmail.acatysmoof.com/doc/install/freebsd/8.2-RELEASE/HOWTO_Install_OpenWebMail_FreeBSD8.2.txt
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


ipfw breaking smtp conversations

2009-11-04 Thread Alex Teslik
Hi List,

   I'm having trouble with mail deliveries. I'm getting lots of error
messages like:

timeout writing message to mx3.comcast.net.: Broken pipe
timeout writing message to mailserver2.telmex.net.co.: Resource temporarily
unavailable

After looking elsewhere I decided to try changing my ipfw.rules - the
problems went away immediately. Unfortunately, the change caused http
connections from outside to stall mid-conversation. So I changed it back.
But I'm clearly doing something wrong.

Here is what my network looks like (fairly basic):

Direct to Internet
   ^
   |
Dual-Homed Host (em0 external interface)
NAT,DHCP (sk0 internal interface)
 |
 v
Internal LAN

Here are my current rules:

#!/bin/sh
IPFW=ipfw -q add
ipfw -q -f flush

$IPFW 10 allow all from any to any via sk0
$IPFW 20 allow all from any to any via lo0
$IPFW 30 divert natd ip from any to any in via em0
$IPFW 50 check-state
$IPFW 60 skipto 500 all from any to any out via em0 setup keep-state
$IPFW 70 allow all from any to me in via em0 setup limit src-addr 50
$IPFW 500 divert natd ip from any to any out via em0
$IPFW 600 allow ip from any to any
$IPFW 800 deny all from any to any


Here are the rules that fixed smtp, but broke http:

#!/bin/sh
IPFW=/sbin/ipfw -q add
ipfw -q -f flush

$IPFW 990 divert natd ip from any to any in via em0
$IPFW 995 divert natd ip from any to any out via em0
$IPFW 1000 allow tcp from any to any established
$IPFW 1010 allow all from any to any via em0
$IPFW 1020 allow all from any to any via sk0
$IPFW 1030 allow all from any to any via lo0
$IPFW 1050 allow tcp from any to any out
$IPFW 1060 allow udp from any to any out
$IPFW 1070 allow udp from any to any frag
$IPFW 1090 allow ip from any to any
$IPFW  deny all from any to any


Somewhere between these two sets is the right thing, but I'm not certain
where to look. In english, here is what (I think) I'm trying to do:

Allow all incoming traffic on all ports on em0
Allow all outbound traffic on all ports on em0
Divert incoming NAT'd packets on em0 to sk0
Divert outbound NAT'd packets on sk0 to em0

Thanks,
Alex
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


intermittent failures with sendmail

2009-07-02 Thread Alex Teslik
I have sendmail 8.14.2 running on freebsd 7.0:

[gouda:root]/var/spool/mqueue# sendmail -d0  /dev/null
Version 8.14.2
 Compiled with: DNSMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7
NAMED_BIND NETINET NETINET6 NETUNIX NEWDB NIS PIPELINING SASLv2
SCANF STARTTLS TCPWRAPPERS USERDB XDEBUG

 SYSTEM IDENTITY (after readcf) 
  (short domain name) $w = gouda
  (canonical domain name) $j = gouda.acatysmoof.com
 (subdomain name) $m = acatysmoof.com
  (node name) $k = gouda.acatysmoof.com


[gouda:root]/var/spool/mqueue# uname -a
FreeBSD gouda.acatysmoof.com 7.0-STABLE-200806 FreeBSD 7.0-STABLE-200806 #0: 
Mon Jun 30 
03:43:40 PDT 2008 a...@xxx.com:/usr/obj/usr/src/sys/CORE2-STABLE-7  i386

mails sent out to the internet are intermittently causing these error reports 
in the daily run output:

n5UNkYTo06980923878 Tue Jun 30 16:46 a...@x.com 
(reply: read error from mail.OO.net.) 
 r...@oo.net 
n5ULKB0i064252* 7028205 Tue Jun 30 14:20 ki...@.com 
 8BITMIME   (timeout writing message to c.mx.mail.yahoo.com.: Broken pipe) 
 xxx...@yahoo.com 
n5TM36Jn012370  420 Mon Jun 29 15:03 ...@acat 
(Deferred: Name server: YYY.com.: host name lookup failur) 
 avalderr...@yy.com


The yahoo one is particularly puzzling. Most mails make it, but some fail. I 
can't figure out why. The 
recipient is valid and they have plenty of space in their account. Sometimes 
mail to them works with 
no problem.

I checked the sendmail logs and found:

Jul  2 03:35:16 gouda sm-mta[40342]: n5ULKB0i064252: SYSERR(root): timeout 
writing message to 
b.mx.mail.yahoo.com.: Broken pipe
Jul  2 04:23:01 gouda sm-mta[47860]: n5ULKB0i064252: SYSERR(root): timeout 
writing message to 
e.mx.mail.yahoo.com.: Broken pipe
Jul  2 07:03:05 gouda sm-mta[53788]: n5ULKB0i064252: SYSERR(root): timeout 
writing message to 
d.mx.mail.yahoo.com.: Broken pipe

I thought it might be an MTU problem:

http://anthony.zerosandones.co.uk/?q=node/451

I set my MTU to 1300, but that hasn't helped.

[gouda:root]/home/alex/acatysmoof.com/services# ifconfig -a
em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1300
options=19bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4
ether 00:1c:c0:36:85:62
inet 24.205.141.134 netmask 0xfffc broadcast 24.205.141.135
media: Ethernet autoselect (100baseTX full-duplex)
status: active

DNS is working fine everywhere, so I don't think thats it. PTR is fine, reverse 
lookups work fine.

I've googled my brains out. Does anyone have any ideas?

Thanks,
Alex
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


natd and ipfw external hangs

2008-07-06 Thread Alex Teslik
Hello,

I recently upgraded to 7.0-STABLE and have setup an ipfw+natd combo on
my dual homed host. I have two interfaces:

em0 - external interface to the net 24.205.x.x
sk0 - internal interface 192.168.x.x

When users connect on the 192.168.x.x internal network everything works
great. Packets get out to the net and back to the originating machine with
no delays. So, natd seems to be doing the right thing.

The server (24.205.x.x) can directly connect to the internet for all
services - no problems there.

The problem is external users. When they hit the webserver at 24.205.x.x the
text portion of the pages load quickly. A few images load, and then the rest
of the page hangs for quite some time. When I check the connection on my
side with netstat -a I see a lot of these:

tcp4   0  0  server.http 41.221.19.24.62422
FIN_WAIT_2
tcp4   0  0  server.http 41.221.19.24.62401
FIN_WAIT_2
tcp4   0  0  server.http 203.215.120.236.1686
FIN_WAIT_2


So it seems the connection is just hanging for some reason. I opened my
firewall up completely, taking natd out of the equation and the external
problem was solved. So, I'm suspecting a bad config in my firewall rules, or
a bad config in my natd.

So I created an open firewall that also uses natd to see if I could get
things working. Here are the rules (complete with comments from the fbsd
handbook):

#!/bin/sh
IPFW=ipfw -q add
ipfw -q -f flush

# No restrictions on Inside LAN Interface for private network
$IPFW 10 allow all from any to any via sk0

# No restrictions on loopback interface
$IPFW 20 allow all from any to any via lo0

# check if packet is inbound and nat address if it is
$IPFW 30 divert natd ip from any to any in via em0

# Allow the packet through if it has previously been added to the
# the dynamic rules table by an allow keep-state statement.
$IPFW 50 check-state

# Interface facing Public Internet (Outbound Section)
# Interrogate session start requests originating from behind the
# firewall on the private network or from this gateway server
# destined for the public Internet.
# Basically, let everything out.
$IPFW 60 skipto 500 all from any to any out via em0 setup keep-state

# Interface facing Public Internet (Inbound Section)
# Interrogate packets originating from the public Internet
# destined for this gateway server or the private network.
# Basically, let everything in to me.
$IPFW 70 allow all from any to me in via em0 setup limit src-addr 2

# This is skipto location for outbound stateful rules
$IPFW 500 divert natd ip from any to any out via em0
$IPFW 600 allow ip from any to any

$IPFW 800 deny all from any to any


and my natd setup:

gateway_enable=YES
firewall_enable=YES
firewall_script=/etc/ipfw.rules
natd_enable=YES
natd_interface=em0
natd_flags=-dynamic -m


and in my kernel:

# For Network Address Translation (NAT)
options IPFIREWALL
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT=5
options IPFIREWALL_DEFAULT_TO_ACCEPT
options IPDIVERT


How can I successfully eliminate the external hangs without loosing natd for
the internal users? Any ideas greatly appreciated!

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


Red5 working on FreeBSD 7.0?

2008-06-27 Thread Alex Teslik
Hello,

 I have installed Red5 from /usr/ports/www/red5. There were no errors
during installation. I can go to port 8180 on that machine and I get the
Red5 welcome screen. 'netstat -an' shows that the rtmp port 1935 is
listening. However, none of the demos work. The RTMP simply timeouts and I
cannot connect to the server to view any media over RTMP. The Port Tester
demo shows all status FAILED.

 I have asked at the Red5 lists, but with little success. I'm wondering
if this is a FreeBSD specific issue. If anyone has had success getting Red5
working on FreeBSD 7.0 please provide any possible tips.

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


DNS propagation problems - changed ip

2007-01-03 Thread Alex Teslik

Hello,

   I changed the ip address of my server (physical move to a new location)
and updated my dns. Logs show that everything is fine. I can get out to
other sites just fine, send email, and internally everything is working
fine. However, I updated on Jan 1st and the changes for the nameservers have
still not propagated out anywhere. Logs show no one hitting the server. I'm
starting to get worried.
   The db file has this data:

   2007010101  ; Serial (year,month,day,version_that_day)
   86400   ; refresh (1 day)
   7200; retry (2 hours)
   864 ; expire (100 days)
   86400 ) ; minimum (1 day)

So after 1 day external DNS's should update to the new info.
   The only other bit of info that I can't figure out is that in the logs
I'm getting this message:

Jan  2 02:44:16 gouda /kernel: arplookup 10.1.10.1 failed: host is not on
local network

but 10.1.10.1 has nothing to do with my network, so I have no idea which
service is trying to get to this. I grepped all etc and usr/local/etc bu
nothing have that ip.

Finally, nslookup is working on any address including my own. Thats makes me
think DNS is working properly... Any ideas on what else I can check that
might not be right?

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


Re: DNS propagation problems - changed ip

2007-01-03 Thread Alex Teslik

Hi Derek,

  Thank you very much. Sure enough, a call to the registrar and the ips
finally became updated - seconds later everything started pouring in. Whew!
  I misunderstood DNS in this scenario. My understanding was that an update
of the DNS broadcast from my server would automatically update everything
out there. I suppose now that I think about it more a manual update to the
*authoritative* nameserver seems reasonable. I noticed that
non-authoritative nameservers for the other domains I host automatically
snapped into place once the authoritative one got back in line.
   Thanks again!


On 1/3/07, Derek Ragona [EMAIL PROTECTED] wrote:


 Your registrar for the domain maintains actual IP's for your
authoritative DNS servers.  If you moved those from one IP to another,
update the registrars record to reflect the new addresses.

-Derek


At 10:30 AM 1/3/2007, Alex Teslik wrote:

Hello,

   I changed the ip address of my server (physical move to a new location)
and updated my dns. Logs show that everything is fine. I can get out to
other sites just fine, send email, and internally everything is working
fine. However, I updated on Jan 1st and the changes for the nameservers
have
still not propagated out anywhere. Logs show no one hitting the server.
I'm
starting to get worried.
   The db file has this data:

   2007010101  ; Serial (year,month,day,version_that_day)
   86400   ; refresh (1 day)
   7200; retry (2 hours)
   864 ; expire (100 days)
   86400 ) ; minimum (1 day)

So after 1 day external DNS's should update to the new info.
   The only other bit of info that I can't figure out is that in the logs
I'm getting this message:

Jan  2 02:44:16 gouda /kernel: arplookup 10.1.10.1 failed: host is not on
local network

but 10.1.10.1 has nothing to do with my network, so I have no idea which
service is trying to get to this. I grepped all etc and usr/local/etc bu
nothing have that ip.

Finally, nslookup is working on any address including my own. Thats makes
me
think DNS is working properly... Any ideas on what else I can check that
might not be right?

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

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.


--
This message has been scanned for viruses and
dangerous content by *MailScanner* http://www.mailscanner.info/, and is
believed to be clean.
MailScanner thanks transtec Computers http://www.transtec.co.uk/ for
their support.

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


non-English character support

2005-10-21 Thread Alex Teslik
Hello,

I have several files on my system that I have received from various
sources - French, German, and Italian. They have all flavors of accents and
umlauts. When I list these files in my Konsole, the filenames are all messed
up - but only on the non-English characters (I'm assuming the characters out
of the normal ASCII range?). In a non-X11 standard tty console, the characters
display fine. I have tried following the directions in the handbook here:

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

But with no results. My .cshrc settings are:

setenv  LANG   en_US.ISO8859-1
setenv  MM_CHARSET ISO-8859-1

I was also wondering why there is no en_US.UTF8 in /usr/share/locale? Any
guidence is much appreciated.

I am using FreeBSD 4.10-RELEASE-p5.

Thanks,
Alex

- Please cc me as I am not currently subscribed -

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


Re: NFS connection dropping

2005-10-19 Thread Alex Teslik
Hi Kelly,

Thanks for your reply. I found out that the problem is caused by some
files on my system that I received from Germany. The files have German words
that contain the u-umlaut character in their name. Whenever I try to pass
these files over NFS to the Mac, the connection dies. So, I renamed the files
and now its all working fine. I'm not savvy enough about how each file system
is handling character encodings, nor am I savvy enough about nfs internals to
know if this is expected behavior (I expect not), but there it is.
If anyone knows if and/or where I should report this, please let me know.

Thanks,
Alex

-please cc me on replies as I am not currently subscribed


-- Original Message ---
From: Kelly D. Grills [EMAIL PROTECTED]
To: freebsd-questions@freebsd.org
Sent: Mon, 17 Oct 2005 16:46:35 -0500
Subject: Re: NFS connection dropping

 On Mon, Oct 17, 2005 at 01:53:25AM -0700, Alex Teslik wrote:
  
  All power-saving features are disabled on this box as well - it is a 
  server. I
  then run rsync on the FBSD box to backup a local disk to the mounted nfs 
  disk.
  Everything works great for about 5-10 minutes, and then the rsync freezes 
  and
  issues the message:
  
  nfs server 192.168.4.200:/Volumes/BackupDrive: not responding
 
 Just a stab in the dark, see section 24.3.5 of the handbook:
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-nfs.html
 
 The -r / -w options cured my NFS problems.
 
 -- 
 Kelly D. Grills
 [EMAIL PROTECTED]
--- End of Original Message ---

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


NFS connection dropping

2005-10-17 Thread Alex Teslik
Hello,

   I've been trying to do rsync backups of my local FreeBSD system to a
firewire drive that is mounted on an OSX machine and shared to my FBSD box via
nfs over gigabit copper. I have done backups before to this same firewire
drive, on these same systems, over nfs with tar and had no problems. I can't
figure out why its not working now.
   The Mac is a G4 running OSX 10.2.8 and is the NFS server. The firewire
drive is plugged into this machine and is named BackupDrive. I activate the
nfs sharing on this machine for this drive by running the commands:

/usr/sbin/portmap
/usr/sbin/mountd
/sbin/nfsd -t -u -n 6

The drive is configured in NetInfo Manager as:

name  /Volumes/BackupDrive
clients   192.168.4.1
opts  mapall=root

All power saving and disk spindown features have been turned off in System
Preferences.

   The FreeBSD machine is an x86 box running 4.10-RELEASE-p5. I mount the
BackupDrive to the local mount point /mnt/misc via the command:

mount 192.168.4.200:/Volumes/BackupDrive /mnt/misc

All power-saving features are disabled on this box as well - it is a server. I
then run rsync on the FBSD box to backup a local disk to the mounted nfs disk.
Everything works great for about 5-10 minutes, and then the rsync freezes and
issues the message:

nfs server 192.168.4.200:/Volumes/BackupDrive: not responding

The rsync shell is frozen. I try to do df in another shell, but the df simply
hangs. I've tried killall for nfsd, mountd, portmap, nfsiod, and df on both
machines as unsuccessful attempts to try to get the FBSD shells to un-hang.
The only way I have found to un-hang the shells is to reboot the FBSD box.
During this freeze time, I can access the firewire drive on the Mac with no
problems - it is only FBSD that is frozen. I have tried to re-serve the drive
via nfs, but the FBSD box does not reconnect to it automagically.

I've tried reading Google and everywhere else I can think of - does anyone
have any tips or ideas on what might be causing the timeout?

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


mountmsdosfs(): disk too big still a problem?

2005-07-13 Thread Alex Teslik
I have run into the mountmsdosfs(); disk too big problem while trying to
mount a 250GB FAT32 drive. This problem is pretty well documented:

http://www.atm.tut.fi/list-archive/freebsd-stable/msg11027.html

but I couldn't find any documentation regarding it being fixed when I googled
around.
I am running FreeBSD 4.10-RELEASE-p5 i386. Does anyone know if this problem is
fixed in 4.11 or 5.4?

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


Re: mountmsdosfs(): disk too big still a problem?

2005-07-13 Thread Alex Teslik
-- Original Message ---
From: Kevin Kinsey [EMAIL PROTECTED]
To: Alex Teslik [EMAIL PROTECTED]
Cc: List freebsd-questions freebsd-questions@freebsd.org
Sent: Wed, 13 Jul 2005 14:29:34 -0500
Subject: Re: mountmsdosfs(): disk too big still a problem?

 Alex Teslik wrote:
 
 I have run into the mountmsdosfs(); disk too big problem while trying to
 mount a 250GB FAT32 drive. This problem is pretty well documented:
 
 http://www.atm.tut.fi/list-archive/freebsd-stable/msg11027.html
 
 but I couldn't find any documentation regarding it being fixed when I googled
 around.
 I am running FreeBSD 4.10-RELEASE-p5 i386. Does anyone know if this problem 
 is
 fixed in 4.11 or 5.4?
 
 Thanks,
 Alex
   
 
 
 I'm thinking the answer is no, but I've not searched
 the CVS tree.
 
 Last time I tried was about a month, maybe two months
 ago on 5.3, IIRC.  FWIW, the limit is about 120GB, and,
 AFAIK, the problem is known (of course) and quite possibly
 is being addressed.
 
 Kevin Kinsey
 DaleCo, S.P.
--- End of Original Message ---

Thanks Kevin and Tsampros.

For what its worth, I would think this should be turned on by default.
According to the notes it doesn't prevent NFS exporting of 128GB filesystems,
so it shouldn't bite anyone currently in the sad position of having to do that.
On the other hand it is getting to the point that 128GB drives are becoming
foolish to buy, and harder to find. Unfortunately the windows systems that
they also need to work with are still ubiquitous. So enabling this support
would relieve a lot of headaches with everyone buying new drives.

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


dynamically limit ip connections to ports over time?

2005-05-03 Thread Alex Teslik
Hi all,

I have been running a FreeBSD box for a few years. Over this time spammers
and other unfriendlies have found my box and have been attacking at a slowly
increasing rate. Every night the daily periodic scripts run and report to me
the number of rejected mail hosts. Last week, one of the rejected mail hosts
had the number of rejections listed at 3000. My hard drive has been getting
louder and louder as it gets busier rejecting and logging all of these and now
I would like to do something about it... but I'm not sure what I can do. When
the hard drive is at its busiest I see mail being virus and spam scanned at a
dizzying rate (tail -f /var/log/maillog), hence the hard drive grinding.
What I would LIKE to do is allow any ip to connect to a port for a
specified number of times per minute.  If they connect too many times than I
would like to freeze them out for a specified amount of time. This solution
should be dynamic so that I don't need to constantly monitor the offending ip
addresses.
Originally, I thought I would attach a sendmail milter to do this, since
mail cannons are my main problem right now. I looked at:

http://www.milter.info/milter-limit/index.shtml

but it requires manually adding a rule for each ip.

Then I considered grey-listing:

http://www.milter.info/milter-gris/index.shtml

but I don't want to reject messages and cause mail delivery delays on my
system.

Finally, it occurred to me that the firewall would probably be a better
solution and would have the nice side effect of limiting traffic to other
ports as well. To try to accomplish this I have been reading a lot of IPFilter
rules via google and lists, but I havn't found any that seems that it can do
what I describe above - limit by ip over time.
I'm sure this is not a unique problem - can someone point me in a helpful
direction?

Many Thanks

P.S.- please cc my email address as I am not subscribed.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ld-elf __lxstat undefined symbol

2004-12-28 Thread Alex Teslik
Hello,

I am trying to play a realaudio file on my system using mplayer. Mplayer works
wonderfully with many other files, but with realaudio it fails with this output:

opening shared obj '/usr/local/lib/win32/sipr.so.6.0'
/usr/libexec/ld-elf.so.1: /usr/local/lib/win32/sipr.so.6.0: Undefined symbol
__lxstat

I've tried portupgrade and even cvsup and buildworld to 4.10 - but no luck. I
don't know where I can find the __lxstat symbol and get it into the ld-elf
linker library. Any ideas?

Thanks,
Alex

uname:
FreeBSD xxx.xxx.com 4.10-RELEASE-p5 FreeBSD 4.10-RELEASE-p5 #1: Sun Dec 26
12:23:17 PST 2004 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/DUALP3-RELENG_4_10  i386
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


300Gb hard drive formatting to 249Gb - boo.

2004-12-06 Thread Alex Teslik
Hello,

   I have recently installed a new 300Gb Maxtor hard disk:

[root]/home/alex# dmesg -a | grep ^ad1
ad1: 286188MB Maxtor 6B300R0 [581463/16/63] at ata0-slave UDMA100

This disk has a single partition on it and is formatted in compatibility mode:

[root]/home/alex# disklabel ad1
# /dev/ad1c:
type: ESDI
disk: ad1s1
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 36482
sectors/unit: 586099332
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0   # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0

8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  c: 5860993320unused0 0# (Cyl.0 - 36482*)
  e: 58609933204.2BSD 1024  819222  # (Cyl.0 - 36482*)

now, I understand that a Gigabyte to the Maxtor corporation is 300,000,000,000
bytes. So, I would expect this disk to format to 279Gb based on the following
math:

[alex]/home/alex# bc
bc 1.06
Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.

(((3000 / 1024) /1024) /1024)
279

However, when I mount the drive it is formatted to 271Gb, 8Gb less than what I
expected. This wouldn't be so bad except that the available space on the drive
is only 249Gb. :(
Is this right? I feel like I am missing something. Can someone help me
understand this better? I would love to regain the 30Gb I feel I am missing if
possible.

[root]/home/alex# mount /dev/ad1s1e /1

[root]/home/alex# df -h
FilesystemSize   Used  Avail Capacity  Mounted on
/dev/da0s1a97M62M27M70%/
/dev/da0s1e   7.7G   6.2G   938M87%/usr
/dev/ad0s1e72G66G   817M99%/home
procfs4.0K   4.0K 0B   100%/proc
/dev/ad1s1e   271G   1.0K   249G 0%/1

[root]/home/alex# df
Filesystem  1K-blocks Used Avail Capacity  Mounted on
/dev/da0s1a 9918363614 2763570%/
/dev/da0s1e   8084746  647706296090587%/usr
/dev/ad0s1e  75744027 6884789983660699%/home
procfs  44 0   100%/proc
/dev/ad1s1e 2840466281 261322897 0%/1

I formatted this drive using the automatic settings in
/stand/sysinstall-Index-Partitions.

Thanks,
Alex


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


switching ide disk, change disklabel?

2004-12-02 Thread Alex Teslik
Hello,

   I am adding a new disk to the system to make my /home partition bigger.
Currently I have /home on ad0s1e. I will be adding ad1s1e. After I copy all
the data from ad0 to ad1 I want to remove ad0 and make ad1 the master on that
controller. Will I need to change the disklabel of ad1 to ad0 at that point,
or will FreeBSD automagically know what to do?
   Note that this is all on the second controller, so no booting happening
here. Just /home data.

uname -a
FreeBSD xx..com 4.9-RELEASE-p2 FreeBSD 4.9-RELEASE-p2 #1: Tue Jun
 8 19:15:51 PDT 2004
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/DUALP3-RELENG_4_9  i386

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


Re: switching ide disk, change disklabel?

2004-12-02 Thread Alex Teslik

 If you mean to move the disk containing ads1s1e from primary slave to the 
 primary master then the partition will automatically become ad0s1e.

Great. That answers my question exactly.

 
 But how are the other partitions in your system organised? Are you currently 
 using ad0s1a, ad0s1b etc.?

FilesystemSize   Used  Avail Capacity  Mounted on
/dev/da0s1a97M62M27M70%/
/dev/da0s1e   7.7G   6.2G   900M88%/usr
/dev/ad0s1e72G66G   772M99%/home
procfs4.0K   4.0K 0B   100%/proc

So I'm booting off of a SCSI disk da0.

I want to replace ad0s1e with the new 300GB monster.

 These will move with the disk. If you are physically 
 swapping the disk connections these will become ad1s1a, ad1s1b etc. which will
 be a problem. You'll need to fix /etc/fstab and arrange for a booting MBR on 
 the new disk and arrange for the boot sequence to find your / partition.

But not in my case since this disk is just storage I think, right. Actually,
when I run the disklabel do I need to use -B at all. I don't need a bootstrap
since its not a boot disk, right?

Thanks,
Alex

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


Maxtor OneTouch USB Drive

2004-06-09 Thread Alex Teslik
Hello,

Has anyone out there managed to get a Maxtor OneTouch USB Drive working on
4.9? Any tips would be greatly appreciated. Right now usbd sees it:

Jun  8 18:39:57 gouda /kernel: umass0: Maxtor OneTouch, rev 2.00/2.00, addr 2
Jun  8 18:39:57 gouda /kernel: umass0: Get Max Lun not supported (STALLED)
Jun  8 18:39:58 gouda /kernel: da1 at umass-sim0 bus 0 target 0 lun 0
Jun  8 18:39:58 gouda /kernel: da1: Maxtor OneTouch 0201 Fixed Direct Access
SCSI-0 device
Jun  8 18:39:58 gouda /kernel: da1: 650KB/s transfers
Jun  8 18:39:58 gouda /kernel: da1: 286103MB (585938944 512 byte sectors: 64H
32S/T 23959C)

but no mount commands seem to work. :/

camcontrol start da1 works, but then what?

I always get Device not configured errors (although the light on the unit
flashes, so something is happening). Anyway...

uname -a

FreeBSD xx.xxx.com 4.9-RELEASE-p2 FreeBSD 4.9-RELEASE-p2 #1: Tue Jun 
8 19:15:51 PDT 2004
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/DUALP3-RELENG_4_9  i386

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


Re: struggling with hylafax installation

2004-02-08 Thread Alex Teslik
-- Original Message ---
From: Jeff Gardner [EMAIL PROTECTED]
To: Alex Teslik [EMAIL PROTECTED]
Cc: list-freebsd-questions [EMAIL PROTECTED]
Sent: Sun, 08 Feb 2004 01:00:37 -0500
Subject: Re: struggling with hylafax installation

 Alex Teslik wrote:
  Oy, the second post to questions in the same day :(
  
  So, I bought new modem and got it working, but only kind of - the modem is
  not echoing commands back to the 'cu' or 'ppp' terminals. It is a USRobotics
  5610B 56K Pro Modem. It is not winmodem and the system put it on sio2.
 
 Is this an internal or external modem?

Internal

dmesg | grep 'sio[0-9]':
sio0: configured irq 2 not in bitmap of probed irqs 0x20
sio0: 3COM PCI FaxModem port 0xe000-0xe007 irq 2 at device 10.0 on pci0
sio0: moving to sio2
sio2: type 16550A
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A



 
  
  I made all the devices in /dev eventhough they already existed.
  
  I added a direct line to the modem in /etc/remote like:
  cuaa2:dv=/dev/cuaa2:br#57600:pa=none
  
  I can connect to the modem like:
  cu -l /dev/cuaa2
  or
  tip cuaa2
  or
  ppp (then 'term')
  
  I can type commands and see them. I type ATDT1234567 and the modem picks up
  and dials. So I know it hears and understands me. But it never echoes back
  result information. I never see an OK or anything from the modem in the
  terminal.
 
 So you get nothing when you type 'AT' followed by enter with nothing else?


Correct.


 
  
  The problem is that HylaFAX relies on these echo results to control its
  communication with the modem. It is looking for those OKs. Does anyone have
  any ideas on how to get the OKs working? I have gone through all of the AT
  commands USR documents and I can't get anything. Is this a problem with 'cu'
  or 'ppp' or 'tip'? The results are obviously going somewhere, but I don't know
  where.
 
 And this makes me ask my first question.  Is this internal or external?
 
  
  The AT command set for this modem is documented (USR issues the same document
  for all their modems - this is an online version from another model instead of
  a PDF version that is posted with my specific model, but they are the
same) here:
  http://www.usr.com/support/839/83909-ug/six.html
  
  This should turn on all echos (but does not):
  ATQ0 E1 F0
 
 These should at least get the result codes you need.  Maybe try an atf1
 which is Load Factory 1, HW FC and see if that gets the OK working.  The 
 only thing I could do to mine to turn of the OK is Q1.


Nothing with atf1 or any of the factory settings. Do you have this modem? Are
you willing to share the steps you took to get it working properly?

uname -a:
FreeBSD xxx.xxx.xxx 4.8-RELEASE FreeBSD 4.8-RELEASE #6: Sat Feb  7 16:57:02
PST 2004 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/DUALP3-4_8_0-RELEASE  i386

Thanks,
Alex

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


Re: 3Com USRobotics 5699B 56k fax modem install

2004-02-08 Thread Alex Teslik
Hey Jeff,

   No, you are correct. I had a 5699B and I have now replaced it with a 5610B.
Both modems do not work with 4.8_RELEASE. I started another thread called
struggling with hylafax install which you have already responded to that
details the problems with the 5610B modem.
   From your uname output I have decided to upgrade to 4.9 RELEASE in the
hopes that that supports it. I can't do a 5 branch upgrade right now.

fingers crossed and thanks,
Alex

P.S.- I'll update after the results of my upgrade.


-- Original Message ---
From: Jeff Gardner [EMAIL PROTECTED]
To: Christopher Nehren [EMAIL PROTECTED]
Cc: Alex Teslik [EMAIL PROTECTED], FreeBSD Questions List
[EMAIL PROTECTED]
Sent: Sun, 08 Feb 2004 20:52:51 -0500
Subject: Re: 3Com USRobotics 5699B 56k fax modem install

 Christopher Nehren wrote:
  If you can, take your 5699B back and get a 5610B. It's a great
  non-winmodem made by USR, and it gave me many successful and
  uninterrupted dial-up hours.
 
 OK, mine is the 5610B as well.  I was not sure if the 5699B was a 
 winmodem or not.  I misread the thread thinking that he replaced a 
 winmodem with a non-winmodem.So, I concur get the 5610B and your 
 problems will be gone.
 
 Jeff
--- End of Original Message ---

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


3Com USRobotics 5699B 56k fax modem install

2004-02-07 Thread Alex Teslik
Hello,

I've been trying to get this faxmodem setup so I can use hylafax, but with
marginal luck. There is lots of documentation for adding support for ISA PNP
modems, but I can't find anything for PCI PNP modems. I don't know what to do
from here.

Here is some output - any recommendations greatly appreciated:

dmesg:
...
pci0: unknown card (vendor=0x12b9, dev=0x1007) at 10.0 irq 2
...
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A


pciconf -lv:
[EMAIL PROTECTED]:10:0:class=0x078000 card=0x00c212b9 chip=0x100712b9
rev=0x00 hdr=0x00
vendor   = '3COM Corp, Modem Division (Formerly US Robotics)'
device   = 'ERL3263A-0 USR 56k Internal DF GWPCI PC99'
class= simple comms


uname -a:
FreeBSD xxx.xxx.xxx 4.8-RELEASE FreeBSD 4.8-RELEASE #5: Fri Feb  6 07:22:37
PST 2004 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/DUALP3-4_8_0-RELEASE  i386


pnpinfo is not relevant with this card because this card is PCI, not ISA.

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


RE: 3Com USRobotics 5699B 56k fax modem install

2004-02-07 Thread Alex Teslik
Arg!

This is indeed a winmodem according to the USRobotics website. I knew to avoid
those like the plague, but since the modem cost twice as much as all the other
modems and it didn't say winmodem anywhere on the box I figured it was safe. I
thought USR was reputable. This sucks. I feel duped. Off to the store to
replace this

Thanks,
Alex


-- Original Message ---
From: JJB [EMAIL PROTECTED]
To: Alex Teslik [EMAIL PROTECTED], list-freebsd-questions
[EMAIL PROTECTED]
Sent: Sat, 7 Feb 2004 12:56:45 -0500
Subject: RE: 3Com USRobotics 5699B 56k fax modem install

 On 4.8 the dmesg
 pci0: unknown card (vendor=0x12b9, dev=0x1007) at 10.0 irq 2
 
 Means one of 2 things.
 
 your modem is what is known as an winmodem. A cheap modem mfg just
 for ms/windblows market. Which FBSD does not work with. If this PCI
 modem card works under windows with special driver loaded then it's
 am winmodem. You can look at the modem circuit board and if it has
 lucent chips, it's an winmodem. You are SOL. Replace it with an PCI
 modom card that has onboard controller and DSP functions.  Or use
 any external serial modem.
 
 Your PC has legacy bios which does not ID PCI modem cards correctly.
 In this case add  device pun  to your kernel source and recompile
 it.
 This device has additional code to probe your system's bio's using
 different methods which in most cases results on your PCI modem card
 being found. Also works for unknown Nic cards on PC with legacy
 bio's.
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Alex Teslik
 Sent: Saturday, February 07, 2004 12:09 PM
 To: list-freebsd-questions
 Subject: 3Com USRobotics 5699B 56k fax modem install
 
 Hello,
 
 I've been trying to get this faxmodem setup so I can use
 hylafax, but with
 marginal luck. There is lots of documentation for adding support for
 ISA PNP
 modems, but I can't find anything for PCI PNP modems. I don't know
 what to do
 from here.
 
 Here is some output - any recommendations greatly appreciated:
 
 dmesg:
 ...
 pci0: unknown card (vendor=0x12b9, dev=0x1007) at 10.0 irq 2
 ...
 sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
 sio0: type 16550A
 sio1 at port 0x2f8-0x2ff irq 3 on isa0
 sio1: type 16550A
 
 pciconf -lv:
 [EMAIL PROTECTED]:10:0:class=0x078000 card=0x00c212b9
 chip=0x100712b9
 rev=0x00 hdr=0x00
 vendor   = '3COM Corp, Modem Division (Formerly US Robotics)'
 device   = 'ERL3263A-0 USR 56k Internal DF GWPCI PC99'
 class= simple comms
 
 uname -a:
 FreeBSD xxx.xxx.xxx 4.8-RELEASE FreeBSD 4.8-RELEASE #5: Fri Feb  6
 07:22:37
 PST 2004
 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/DUALP3-4_8_0-RELEASE  i386
 
 pnpinfo is not relevant with this card because this card is PCI, not
 ISA.
 
 Thanks!
 Alex
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
--- End of Original Message ---

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


struggling with hylafax installation

2004-02-07 Thread Alex Teslik
Oy, the second post to questions in the same day :(

So, I bought new modem and got it working, but only kind of - the modem is
not echoing commands back to the 'cu' or 'ppp' terminals. It is a USRobotics
5610B 56K Pro Modem. It is not winmodem and the system put it on sio2.

I made all the devices in /dev eventhough they already existed.

I added a direct line to the modem in /etc/remote like:
cuaa2:dv=/dev/cuaa2:br#57600:pa=none

I can connect to the modem like:
cu -l /dev/cuaa2
or
tip cuaa2
or
ppp (then 'term')

I can type commands and see them. I type ATDT1234567 and the modem picks up
and dials. So I know it hears and understands me. But it never echoes back
result information. I never see an OK or anything from the modem in the
terminal.

The problem is that HylaFAX relies on these echo results to control its
communication with the modem. It is looking for those OKs. Does anyone have
any ideas on how to get the OKs working? I have gone through all of the AT
commands USR documents and I can't get anything. Is this a problem with 'cu'
or 'ppp' or 'tip'? The results are obviously going somewhere, but I don't know
where.

The AT command set for this modem is documented (USR issues the same document
for all their modems - this is an online version from another model instead of
a PDF version that is posted with my specific model, but they are the same) here:
http://www.usr.com/support/839/83909-ug/six.html

This should turn on all echos (but does not):
ATQ0 E1 F0

Any ideas appreciated!


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


usb monitoring

2003-08-19 Thread Alex Teslik
Hello,

 I'm looking for a program or daemon that will watch my USB ports and
launch a specific script when specific devices are attached. Any pointers to
where I could find such a beast much appreciated...

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


IDE reboot after power outage problem

2003-07-03 Thread Alex Teslik
Hello,

My system used to be an all SCSI system. After rare power outages the system
would automatically fsck the disks and boot up.
Recently I added an IDE drive to the system. Now, after power outages the
system boots and when it gets to the ide drive it prompts for single user mode
shell. I drop into single user mode, fsck all the disks so they are marked
clean, and reboot.
Why is the system not automatically fsck'ing the disk on boot, and is there
some setting I need to enable to return to the old desired behavior?

Thanks,
Alex

uname -a
FreeBSD ..com 4.8-RELEASE FreeBSD 4.8-RELEASE #4: Tue May  6 00:26:04
PDT 2003 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/DUALP3-4_8_0-RELEASE  i386

df -h
FilesystemSize   Used  Avail Capacity  Mounted on
/dev/da0s1a97M49M40M55%/
/dev/da0s1e   7.7G   3.2G   3.9G45%/usr
/dev/ad0s1e72G42G24G64%/home
procfs4.0K   4.0K 0B   100%/proc


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


monitoring ftp and http connections

2003-02-23 Thread Alex Teslik
Hello,

   I use gkrellm to let me know when I have http and ftp connections on my
box. It has a nice button that tells me who is connected to each port.
However, I would like to know more information about these connections. 
   I'm looking for a program that can tell me what file(s) a user on a port is
modifying / messing with. Is there a program already installed by default on
FreeBSD that can do this that I am just missing? Is there a port that can show
me this information in an easy 
to read format?
   I'm not subscribed, so direct replies much appreciated.

Thanks,
Alex



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


unpacking .debs on FreeBSD?

2002-12-12 Thread Alex Teslik
Hello,

After searching the ports and google, I'm stumped. How can I unpack a .deb on
FreeBSD?

Thanks,
Alex



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



scanner sharing?

2002-10-30 Thread Alex Teslik

Hello,

Is it possible to share a scanner over TCP/IP with a OSX box or another
FreeBSD box?

Thanks,
Alex


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



Ethernet over USB?

2002-10-10 Thread Alex Teslik

Hello,

Is ethernet-over-USB supported on FreeBSD yet? I know Linux has the usbdnet
driver that does it. 
I have a Sharp Zaurus that I am trying to get working with my FreeBSD box. I
would like to ultimately ftp to and from the box. When I plug in the USB
cradle it is detected:

ugen0: Sharp SL Series, rev 2.00/0.00, addr 2
Oct 10 22:07:49 gouda /kernel: ugen0: Sharp SL Series, rev 2.00/0.00, addr 2
Oct 10 22:07:49 gouda /kernel: ugen0: Sharp SL Series, rev 2.00/0.00, addr 2

and usbdevs shows:

Controller /dev/usb0:
addr 1: self powered, config 1, UHCI root hub(0x), VIA(0x), rev 0x0100
 port 1 addr 2: self powered, config 1, SL Series(0x8004), Sharp(0x04dd), rev
0x
 port 2 powered

Any ideas how I could get to the point where I could ping this machine?

TIA,
Alex

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