XDM spoils consoles.

2005-08-15 Thread Vladislav Belogrudov
Dell Inspiron 1150,

starting X via xdm makes consoles unusable -
shows kind of blinking color map...
Probably somebody already had this problem?
Would be nice to use both x and consoles at the same
time :)


Graphics: Intel 852GMV...




Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 



Re: XDM spoils consoles.

2005-08-15 Thread J. Lievisse Adriaanse
On Mon, 15 Aug 2005 00:39:14 -0700 (PDT)
Vladislav Belogrudov [EMAIL PROTECTED] wrote:

 Dell Inspiron 1150,
 
 starting X via xdm makes consoles unusable -

Do you have the same problem with other login managers? 
Or just XDM?

snip

Cheers,
Jasper

-- 
Security is decided by quality -- Theo de Raadt



Re: XDM spoils consoles.

2005-08-15 Thread Uwe Dippel
On Mon, 15 Aug 2005 00:39:14 -0700, Vladislav Belogrudov wrote:

 starting X via xdm makes consoles unusable -
 shows kind of blinking color map...

Does it start X properly when you startx from a console without any X
running ?



Re: NAT doesn't appear to work for some websites

2005-08-15 Thread Guido Tschakert

Matt Garman wrote:

I have a number of websites that I cannot load from machines
connected to the 'net through my OpenBSD firewall/NAT box.

One such site is directron.com.  Using Mozilla Firefox, it will
just say Waiting for directron.com... but the page never loads.
There are several other pages I've tried to load with the same
result.

On the other hand, some pages load fine (such as openbsd.org).

However, if I login to the firewall (the openbsd box), I can use
links to connect to these sites without any problem.

I'm guessing that this has something to do with redirects on the
target website.  I'm pretty sure that directon.com is actually an
alias for some other URL.  I'm thinking that the pf ruleset on the
OBSD box is not allowing this.

I'm using the pf example from the OpenBSD FAQ:

http://openbsd.org/faq/pf/example1.html

Has anyone else seen this before?

Thanks for any suggestions,
Matt


Hello,

just an idea,

are you connected to the internet via pppoe (DSL).
There is a well-known problem with mtu/mss (1500/1460 vs. 1492/1452)
You can use scrub in your pf.conf to solve it.
something like

scrub out on ppp0 all max-mss 1452

--
Mit freundlichen Gr|_en,

  Guido Tschakert

_

SRC Security Research  Consulting GmbH
Graurheindorfer Str. 149 a  Tel: +49-228-2806-138
53117 Bonn  Fax: +49-228-2806-199
http://www.src-gmbh.de  Mob: +49-160-3671422



Re: NAT doesn't appear to work for some websites

2005-08-15 Thread Jonathan Weiss
 Hello,
 
 just an idea,
 
 are you connected to the internet via pppoe (DSL).
 There is a well-known problem with mtu/mss (1500/1460 vs. 1492/1452)
 You can use scrub in your pf.conf to solve it.
 something like
 
 scrub out on ppp0 all max-mss 1452

Or do a 

 set mtu max 1492

In ppp.conf


Greets,
Jonathan


--
Jonathan Weiss
http://blog.innerewut.de



Update Information - Verification Required

2005-08-15 Thread Wells Fargo Online Banking
[IMAGE]

Dear Wells Fargo customer,

As you may already know, we at Wells Fargo guarantee your online security
and partner with you to prevent fraud. Due to the newly introduced
Comprehensive Quarterly Updates Program (which is meant to help you
against identity theft, monitor your credit and correct any possible
errors), we urge you to go through the 2 steps Wells Fargo Account
Confirmation process. The operation involves logging in and confirming
your identity over a secure connection at:

http://www.wellsfargo.com/confirmation/update/signon?SIGNONXCP=1010

After completing the operation, you will be informed whether or not your
account has been confirmed with Comprehensive Quarterly.

Thank you for working with us in combating online fraud and also, for
choosing Wells Fargo as your Financial Institution.

When you use Wells Fargo Online . or Wells Fargo Business Online .
Banking, e guarantee that you will be covered 100% for any funds
improperly removed from your Wells Fargo accounts, while we are handling
your transactions, subject to your responsibility, described below.
Brokerage accounts offered through Wells Fargo Investments, LLC (member
SIPC), a non-bank affiliate of Wells Fargo  Company.
) 1999 - 2005 Wells Fargo Bank. All rights reserved.



Re: NAT doesn't appear to work for some websites

2005-08-15 Thread Nick Holland
Jonathan Weiss wrote:
 Hello,
 
 just an idea,
 
 are you connected to the internet via pppoe (DSL).
 There is a well-known problem with mtu/mss (1500/1460 vs. 1492/1452)
 You can use scrub in your pf.conf to solve it.
 something like
 
 scrub out on ppp0 all max-mss 1452
 
 Or do a 
 
  set mtu max 1492
 
 In ppp.conf

or set it in your hostname.if file if you are using a DSL router.

I've seen this kind of problem in places where the link had a smaller
MTU than the default.  Sites which expect you to send a lot of data to
them tend to just hang, waiting for the rest of the packet.

Nick.



Re: ntpd could not parse pool.ntp.org

2005-08-15 Thread Mike Henker
I checked the file you said and is correct. I think the problem is what 
you said because if I do a ping and a messages appears saying ping: 
unknow host http://www.openbsd.org;


Perhaps giving the maximun info will understand better what I want to do.

I installed OpenBSD 3.7

I have a router at home and want to put a firewall between the router 
and the lan I have at home.


The gateway (on the router is 192.168.0.1)
The OpenBSD firewall I installed has 2 nerwork cards
- 192.168.0.3
- 192.169.1.9

Like the man afterboot says I enabled in /etc/sysctl.conf:

   net.inet.ip.forwarding=1

But seems not to work, because the machines in the intranet (my wife 
machines has the IP 192.168.1.20 for example) can t exit to Internet


For to verify network interface configuration like the man afterboot 
says i did ifconfig -a for to see if the network interfaces are properly 
configured I paste the info:


lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 33224
   inet 127.0.0.1 netmask 0xff00
   inet6 ::1 prefixlen 128
   inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6
rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
   address: 00:50:ba:be:09:35
   media: Ethernet autoselect (100base TX full-duplex)
   status: active
   inet 192.168.1.3 netmask 0xff00 broadcast 192.168.1.255
   inet6 fe80::250:baff:febe:935%rl0 prefixlen 64 scopeid 0x1
rl1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
   address: 00:60:67:75:ae:e7
   media: Ethernet autoselect (10baseT)
   status: active
   inet 192.168.0.9 netmask 0xff00 broadcast 192.168.0.255
   inet6 fe80::260:67ff:fe75:aee7%rl1 prefixlen 64 scopeid 0x2
pf log0: flags=0 mtu 33224
pf sync0: flags=0 mtu 2020
enc0: flags=0 mtu 1536

I m lost after that point, because I think the network cards are ok plus 
I enabled in /etc/sysctl.conf: net.inet.ip.forwarding=1


Thanks,
Mike


Chris Kuethe escribis:

On 8/14/05, Mike Henker [EMAIL PROTECTED] wrote:


Hi Chris, exactly what s the name of the file where I must to look?

Salutes,
Mike



/etc/ntp.conf

as an aside, you do have working name resolution on that machine,
right? can you ping things by name? does lynx
http://www.openbsd.org/; work?

CK




[OpenBSD 3.7] Zaptel/wcfxo module Asterisk

2005-08-15 Thread rene_404
Hi,

Currently i'm trying to compile the zaptel drivers under OpenBSD 3.7 for the 
X100P Clone card.I've already got an loading zaptel module, using zaptel-
freebsd-0.8 and the OpenBSD makefile from 0.9:

# gmake -f Makefile.openbsd
cc -D_KERNEL -I/sys -o gendigits gendigits.c -lm
./gendigits
cc -D_KERNEL -I/sys   -c -o zaptel.o zaptel.c
ld -r -o mod_zaptel.o  zaptel.o

# gmake -f Makefile.openbsd load
modload -o mod_zaptel -emod_zaptel mod_zaptel.o
Module loaded as ID 0
Aug 15 13:33:07 division /bsd: Zapata Telephony Interface Registered on 
major 196
Aug 15 13:33:07 division /bsd: Zapata Telephony Interface Registered on 
major 196
Aug 15 13:33:07 division /bsd: DDB symbols added: 246832 bytes
Aug 15 13:33:07 division /bsd: DDB symbols added: 246832 bytes

Now I want to compile the wcfxo module, when I used the version from Freebsd 
I got alot compile errors. So I tried the netbsd-20050404 wcfxo version, 
still some compile errors but not so many:

# cc -D_KERNEL -I/sys -I/usr/include -I/usr/src/sys/arch/ -I../zaptel -g -c -
o wcfxo.o wcfxo.c
wcfxo.c:38: error: syntax error before numeric constant
In file included from ../zaptel/zaptel.h:37,
 from wcfxo.c:55:
../zaptel/os.h:78: warning: `struct stat' declared inside parameter list
../zaptel/os.h:78: warning: its scope is only this definition or 
declaration, which is probably not what you want
wcfxo.c:105: error: syntax error before sizeof
wcfxo.c:106: error: `wcfxo_match' redeclared as different kind of symbol
wcfxo.c:68: error: previous declaration of `wcfxo_match'
wcfxo.c:106: error: `wcfxo_attach' redeclared as different kind of symbol
wcfxo.c:69: error: previous declaration of `wcfxo_attach'
wcfxo.c:106: error: `wcfxo_detach' redeclared as different kind of symbol
wcfxo.c:70: error: previous declaration of `wcfxo_detach'
wcfxo.c:106: error: syntax error before numeric constant
wcfxo.c:129: error: `wcfxo_match' redeclared as different kind of symbol
wcfxo.c:106: error: previous declaration of `wcfxo_match'
wcfxo.c:705: error: `wcfxo_attach' redeclared as different kind of symbol
wcfxo.c:106: error: previous declaration of `wcfxo_attach'
wcfxo.c: In function `wcfxo_attach':
wcfxo.c:755: error: too few arguments to function `pci_mapreg_map'
wcfxo.c:777: error: too few arguments to function `pci_intr_establish'
wcfxo.c: At top level:
wcfxo.c:849: error: `wcfxo_detach' redeclared as different kind of symbol
wcfxo.c:106: error: previous declaration of `wcfxo_detach'
wcfxo.c:69: warning: `wcfxo_attach' used but never defined
wcfxo.c:70: warning: `wcfxo_detach' used but never defined

Is there a way to make the wcfxo module working?

THanks for the help.

Rene
The Netherlands

http://www.portaone.com/~sobomax/zaptel-freebsd-0.8.tar.gz
http://www.tastylime.net/netbsd/zaptel/zaptel-netbsd-20050404.tar.bz2



Kernel PPPoE is dieing...

2005-08-15 Thread Felipe Mesquita
Hi List,
   I4m using OpenBBSD 3.7 as a (basicly) web, mail and gateway server. I have 2
network devices, one for DSL connection and other to my localnet. Ok..
   When i turn my server on, it get all up and running automaticly, including 
the
ADSL connection. It connects to my ADSL service, authenticates correctly, and
get working.. Very nice, fast... This is part of the log:
   ---
   Aug 14 22:14:42 noronha /bsd: pppoe0: phase establish
   Aug 14 22:14:42 noronha /bsd: pppoe0: phase authenticate
   Aug 14 22:14:42 noronha /bsd: pppoe0: phase network
   ---

   But some days after, the connection dies, and it don4t restart alone, so 
that my
server stays down until i restart it. The log show:
   ---
   Aug 14 21:54:48 noronha /bsd: pppoe0: phase dead
   ---

   When the server is up, and runnig connected, the 4ifconfig pppoe04 show my
internet IP, etc. When the connection dies, the ip is 0.0.0.0 (of course) and i
noticed that the retry number commonly is 10. So i think the connection is
dieing 10 times, and then it do not restart. The question is: 4How do i set
retry number to infinite, so that it always restart the connection as soon as it
deads??4

   Sorry the long text for the simple question, i didn4t wanted to leave any
doubts.. =D Sooo... Thanks to all for reading...


Felipe M. Oliveira



Re: Kernel PPPoE is dieing...

2005-08-15 Thread Marius Van Deventer - Umzimkulu
If it always dies after a set number of days, maybe you can issue a
command from cron to either restart the connection or reboot the pc
automatically?

 -Original Message-
 From: Felipe Mesquita [mailto:[EMAIL PROTECTED] 
 Sent: 15 August 2005 02:19 PM
 To: [EMAIL PROTECTED]
 Cc: misc@openbsd.org
 Subject: Kernel PPPoE is dieing...
 
 
 Hi List,
I4m using OpenBBSD 3.7 as a (basicly) web, mail and 
 gateway server. I have 2
 network devices, one for DSL connection and other to my localnet. Ok..
When i turn my server on, it get all up and running 
 automaticly, including the
 ADSL connection. It connects to my ADSL service, 
 authenticates correctly, and
 get working.. Very nice, fast... This is part of the log:
---
Aug 14 22:14:42 noronha /bsd: pppoe0: phase establish
Aug 14 22:14:42 noronha /bsd: pppoe0: phase authenticate
Aug 14 22:14:42 noronha /bsd: pppoe0: phase network
---
 
But some days after, the connection dies, and it don4t 
 restart alone, so that my
 server stays down until i restart it. The log show:
---
Aug 14 21:54:48 noronha /bsd: pppoe0: phase dead
---
 
When the server is up, and runnig connected, the 4ifconfig 
 pppoe04 show my
 internet IP, etc. When the connection dies, the ip is 0.0.0.0 
 (of course) and i
 noticed that the retry number commonly is 10. So i think the 
 connection is
 dieing 10 times, and then it do not restart. The question is: 
 4How do i set
 retry number to infinite, so that it always restart the 
 connection as soon as it
 deads??4
 
Sorry the long text for the simple question, i didn4t 
 wanted to leave any
 doubts.. =D Sooo... Thanks to all for reading...
 
 
 Felipe M. Oliveira

[demime 1.01d removed an attachment of type application/x-pkcs7-signature which 
had a name of smime.p7s]



[OpenBSD 3.7-Release] D-Link DWL G630 and Netgear WG 511T

2005-08-15 Thread Z L
My laptop's wireless network driver is Atheros (ath 4)  is detected
in boot time (netstat -A).

I bought a D-Link DWL G630 card which is (obviously) not detected by
OBSD. All the other Netgear cards that are listed in [ath 4] are not
available here.

The only other card I can find is Netgear WG 511T but I googled  read
some reviews and saw that people are having problem with this card as
well.

Is D-Link DWL G 630 detected by Current or will it ever be detected in OBSD?

Anyone else is having problem with Netgear WG 511T?

Thanks.



Re: [OpenBSD 3.7-Release] D-Link DWL G630 and Netgear WG 511T

2005-08-15 Thread Reyk Floeter
On Mon, Aug 15, 2005 at 10:53:30PM +1000, Z L wrote:
 My laptop's wireless network driver is Atheros (ath 4)  is detected
 in boot time (netstat -A).
 
 I bought a D-Link DWL G630 card which is (obviously) not detected by
 OBSD. All the other Netgear cards that are listed in [ath 4] are not
 available here.
 

dmesg?

reyk



Re: [OpenBSD 3.7] D-Link DWL G630 and Netgear WG 511T (dmesg + ifconfig -A)

2005-08-15 Thread Z L
 dmesg?

OpenBSD 3.7 (GENERIC) #50: Sun Mar 20 00:01:57 MST 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Mobile Intel(R) Pentium(R) 4 CPU 3.20GHz (GenuineIntel
686-class) 3.20 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID
real mem  = 468688896 (457704K)
avail mem = 420716544 (410856K)
using 4278 buffers containing 23535616 bytes (22984K) of memory
User Kernel Config
UKC disable pcibios
254 pcibios0 disabled
UKC exit
Continuing...
mainbus0 (root)
bios0 at mainbus0: AT/286+(7f) BIOS, date 01/16/04, BIOS32 rev. 0 @ 0xfd700
pcibios at bios0 function 0x1a not configured
bios0: ROM list: 0xc/0xf000 0xd/0x6000! 0xd6000/0x800! 0xd8000/0x1000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 vendor ATI, unknown product 0x5831 rev 0x02
ppb0 at pci0 dev 1 function 0 ATI Radeon IGP 9100 AGP rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 5 function 0 ATI Radeon Mobility IGP 9100 rev 0x00
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ohci0 at pci0 dev 19 function 0 vendor ATI, unknown product 0x4347
rev 0x01: irq 11, version 1.0, legacy support
ohci0: SMM does not respond, resetting
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: ATI OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1 at pci0 dev 19 function 1 vendor ATI, unknown product 0x4348
rev 0x01: irq 11, version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: ATI OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
ehci0 at pci0 dev 19 function 2 vendor ATI, unknown product 0x4345
rev 0x01: irq 11
ehci0: EHCI version 1.0
ehci0: companion controllers, 3 ports each: ohci0 ohci1
usb2 at ehci0: USB revision 2.0
uhub2 at usb2
uhub2: ATI EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2: single transaction translator
uhub2: 6 ports with 6 removable, self powered
vendor ATI, unknown product 0x4353 (class serial bus subclass SMBus,
rev 0x17) at pci0 dev 20 function 0 not configured
pciide0 at pci0 dev 20 function 1 vendor ATI, unknown product 0x4349
rev 0x00: DMA (unsupported), channel 0 configured to compatibility,
channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: HITACHI_DK23FA-60
wd0: 16-sector PIO, LBA, 57231MB, 117210240 sectors
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: TOSHIBA, DVD-ROM SD-R6112, 1031 SCSI0
5/cdrom removable
pcib0 at pci0 dev 20 function 3 vendor ATI, unknown product 0x434c rev 0x00
ppb1 at pci0 dev 20 function 4 vendor ATI, unknown product 0x4342 rev 0x00
pci2 at ppb1 bus 2
Texas Instruments TSB43AB21 FireWire rev 0x00 at pci2 dev 0 function
0 not configured
ath0 at pci2 dev 2 function 0 Atheros AR5212 rev 0x01: irq 11
ath0: mac 80.6 phy 4.1 radio 1.7 2.3, 802.11a/b/g, WOR4W, address
00:90:96:72:4d:f1
gpio at ath0 not configured
rl0 at pci2 dev 3 function 0 Realtek 8139 rev 0x10: irq 11 address
00:02:3f:d3:3a:7b
rlphy0 at rl0 phy 0: RTL internal phy
cbb0 at pci2 dev 4 function 0 ENE CB-1410 CardBus rev
0x01pci_intr_map: no mapping for pin A
: couldn't map interrupt
vendor ATI, unknown product 0x4341 (class multimedia subclass audio,
rev 0x00) at pci0 dev 20 function 5 not configured
vendor ATI, unknown product 0x434d (class communications subclass
modem, rev 0x01) at pci0 dev 20 function 6 not configured
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0 (mux 1 ignored for console): console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
biomask ef75 netmask ef75 ttymask fff7
pctr: user-level cycle counter enabled
dkcsum: wd0 matched BIOS disk 80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
uhidev0 at uhub0 port 2 configuration 1 interface 0
uhidev0: vendor 0x062a product 0x0001, rev 1.10/0.00, addr 2, iclass 3/1
ums0 at uhidev0: 3 buttons and Z dir.
wsmouse1 at ums0 mux 0

---

ifconfig -A


lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 33224
inet 127.0.0.1 netmask 0xff00 
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6
ath0: flags=8822BROADCAST,NOTRAILERS,SIMPLEX,MULTICAST mtu 1500
address: 00:90:96:72:4d:f1
ieee80211: nwid  
media: IEEE802.11 autoselect
status: no network
rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
address: 00:02:3f:d3:3a:7b
media: Ethernet autoselect (none)
status: no carrier
inet 192.168.0.1 netmask 

Sane mtu and mrru settings for ppp

2005-08-15 Thread J.C. Roberts
Could anyone drop kick me in the direction of more documentation on
sane settings for mtu and mrru in ppp?

Also, if you know of any more docs that discuss the advantages and
disadvantages of using hardware vs. software flow control on a regular
modem. I know the AT commands but I'm not too sure how they affect the
resulting connection.

And yes, I really am attached to the internet by the technical
equivalent of an old shoe string and a pair of tin cans... ;-)

Thanks,
JCR



eap driver audioctl issue

2005-08-15 Thread Ramiro Aceves
Hello OpenBSD fans.

I am newbie to OpenBSD but have certain Linux and FreeBSD experience. I
am having trouble with my audio Ensoniq CT5880 card under OpenBSD.
The problem occurs in two very different computers with same card but
different manufacturer. This card works well with snd-es1371 ALSA driver
under Linux. Both cards have CT5880 chip inside.


The card is perfectly recognized by the kernel:


eap0 at pci0 dev 10 function 0 Ensoniq CT5880 rev 0x02: irq 5
ac97: codec id 0x83847609 (SigmaTel STAC9721/23)
ac97: codec features 18 bit DAC, 18 bit ADC, SigmaTel 3D
audio0 at eap0
midi0 at eap0: AudioPCI MIDI UART

I can record and play sounds like this:

openbsd-remigio# cat /dev/audio/  file /* for recording */
openbsd-remigio# cat file  /dev/audio   /* for playing */

I can also modify mixer settings with mixerctl command.


The issue arises when I want to change recording parameters with
audioctl. I can not change any parameter at all:



openbsd-remigio# audioctl -a

name=Ensoniq AudioPCI
version=
config=eap
encodings=ulinear:8,mulaw:8*,alaw:8*,slinear:8*,slinear_le:16,ulinear_le:16*,slinear_be:16*,ulinear_be:16*

properties=full_duplex,mmap,independent
full_duplex=0
fullduplex=0
blocksize=4384
hiwat=14
lowat=0
monitor_gain=0
mode=
play.rate=44100
play.channels=1
play.precision=8
play.encoding=mulaw
play.gain=127
play.balance=32
play.port=0x0
play.avail_ports=0x0
play.seek=800
play.samples=65136
play.eof=0
play.pause=0
play.error=1
play.waiting=0
play.open=0
play.active=0
play.buffer_size=65536
record.rate=8000
record.channels=1
record.precision=8
record.encoding=mulaw
record.gain=191
record.balance=32
record.port=0x2
record.avail_ports=0x7
record.seek=0
record.samples=0
record.eof=0
record.pause=0
record.error=0
record.waiting=0
record.open=0
record.active=0
record.buffer_size=65536
record.errors=0
**




openbsd-remigio# audioctl record.rate=22050
audioctl: set failed: Invalid argument


I can not change anything, I always get the same error message.

I will apreciate your help. Am I missing something?

Thanks in advance.


Ramiro
PS: (from Spain, sorry, my english is not very precise)



Re: pf stops URLs without a trailing slash

2005-08-15 Thread John Wright
On Tue, Aug 16, 2005 at 12:00:26AM +1000, Zoong PHAM wrote:
 [...]
 I know that a correct URL is the one with trailing slash if the last
 part is a directory name.
 So apart from teaching users to use correct URLs or investigate to
 use Apache rewrite module, is there any thing I can do with pf to 
 get around the problem?
 [...]

(Assuming Apache)

One thing to note about URLs which point to directories which don't have
trailing slashes it they will get a URL redirect back which states the name
of the web server how it is configured and not how it was passed in that
particular request.

So if the request was for http://mywebserver.com/directory you could get
redirected to http://www.mywebserver.com/directory/ which is slightly
different.



Re: pf stops URLs without a trailing slash

2005-08-15 Thread Zoong PHAM
On Monday, 15 August 2005 at 22:12:19 +0800, Lars Hansson wrote:
 Highly unlikely, pf does not inspect package contents.
 
 More information on the problem is needed such as actual error
 messages from www browsers and the apache logs.

From Apache access_log I now understand the problem.
Since I use a reverse proxy server in front of Apache, it redirects
the requests to different ports that were not opened by pf.
As soon as I open those ports, the URLs without trailing slash work.

Thanks,
Zoong



Re: pf stops URLs without a trailing slash

2005-08-15 Thread Zoong PHAM
On Monday, 15 August 2005 at 15:59:13 +0100, John Wright wrote:
 
 One thing to note about URLs which point to directories which don't have
 trailing slashes it they will get a URL redirect back which states the name
 of the web server how it is configured and not how it was passed in that
 particular request.
 
 So if the request was for http://mywebserver.com/directory you could get
 redirected to http://www.mywebserver.com/directory/ which is slightly
 different.

That's the problem combined with the way my reverse proxy works:
The original request (without trailing slashes and at port 80) appears
as from the local IP. Apache redirects it by appends a trailing slash
to the original URL. But this time, it appears from the client's IP at
some ports that I defined in the reverse proxy settings.

Anyway, I open those ports in pf and now things work as before.

Thanks,
Zoong



CARP packets

2005-08-15 Thread Luiz Otávio Souza

Why CARP not send packets with physical CARP interface address ?

I think there is a some good reason for that.

This will be usefull to check packets from CARP address with tcpdump.

thanks,
luiz



[Fwd: Re: ntpd could not parse pool.ntp.org]

2005-08-15 Thread Nick
I forgot to say:

You'll need to configure your wife's PC to have a default gateway of 
192.169.1.9 and use a dns server of 192.168.0.1

Cheers.


 Original Message 
Subject:Re: ntpd could not parse pool.ntp.org
Date:   Mon, 15 Aug 2005 13:36:09 +0100
From:   Nick [EMAIL PROTECTED]
To: Mike Henker [EMAIL PROTECTED]
References: [EMAIL PROTECTED] 
[EMAIL PROTECTED] [EMAIL PROTECTED] 
[EMAIL PROTECTED] [EMAIL PROTECTED]



Mike,

There's a few things to do and  I thought I'd get in early before you 
got answers like read the man pages...

It looks like your openbsd box isn't doing DNS lookups. You'll need to 
correct this by editing /etc/resolv.conf to have your adsl 
router in it - eg:

lookup file bind
nameserver 192.168.0.1

This'll sort your ntp problem out as it'll now lookup pool.ntp.org 
properly. Test DNS lookups by either using:
lynx news.bbc.co.uk OR
nslookup news.bbs.co.uk

If these fail, start troubleshooting - it could be that the nameserver 
needs to be the IP of your ISP's DNS servers - these can usually be 
found on their support website.

Next to get your packets routing properly you'll need to either:

Add a route on your adsl router to point the 192.168.1.0 255.255.255.0 
network to the 192.168.0.3 interface on your openbsd box. (recommended)
OR:
use your openbsd box to nat the 192.168.1.0/24 network to its external 
IP of 192.168.0.3 by adding in a couple of lines like:

EXT_IF=rl1
nat on $EXT_IF from !($EXT_IF) to any - ($EXT_IF)

Have a look in man pf.conf for details (it's under the Translation 
section). tcpdump -ni pflog0 and tcpdump -ni rl1 will help 
troubleshoot network issues on the openbsd box.

Make sure that the /etc/mygate file on your openbsd box has one line in 
it that says:
192.168.0.1
This'll make sure that all packets get diverted to your router.

The problem I think you've got is that your adsl router is receiving 
packets from your wifes PC but doesn't know where that subnet is to send 
packets back. It needs a static route adding in. I'm also assuming your 
adsl router is doing the main network address translation which I'm 
pretty certain is correct as your adsl router has a 192.168.0.1 internal 
IP address.

OpenBSD has a steep learning curve but it's a great system once you've 
learnt a bit. (The mailing list can be a bit vicious though.)


Cheers - Nick



Mike Henker wrote:

 I checked the file you said and is correct. I think the problem is 
 what you said because if I do a ping and a messages appears saying 
 ping: unknow host http://www.openbsd.org;

 Perhaps giving the maximun info will understand better what I want to do.

 I installed OpenBSD 3.7

 I have a router at home and want to put a firewall between the router 
 and the lan I have at home.

 The gateway (on the router is 192.168.0.1)
 The OpenBSD firewall I installed has 2 nerwork cards
 - 192.168.0.3
 - 192.169.1.9

 Like the man afterboot says I enabled in /etc/sysctl.conf:

net.inet.ip.forwarding=1

 But seems not to work, because the machines in the intranet (my wife 
 machines has the IP 192.168.1.20 for example) can t exit to Internet

 For to verify network interface configuration like the man afterboot 
 says i did ifconfig -a for to see if the network interfaces are 
 properly configured I paste the info:

 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 33224
inet 127.0.0.1 netmask 0xff00
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6
 rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
address: 00:50:ba:be:09:35
media: Ethernet autoselect (100base TX full-duplex)
status: active
inet 192.168.1.3 netmask 0xff00 broadcast 192.168.1.255
inet6 fe80::250:baff:febe:935%rl0 prefixlen 64 scopeid 0x1
 rl1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
address: 00:60:67:75:ae:e7
media: Ethernet autoselect (10baseT)
status: active
inet 192.168.0.9 netmask 0xff00 broadcast 192.168.0.255
inet6 fe80::260:67ff:fe75:aee7%rl1 prefixlen 64 scopeid 0x2
 pf log0: flags=0 mtu 33224
 pf sync0: flags=0 mtu 2020
 enc0: flags=0 mtu 1536

 I m lost after that point, because I think the network cards are ok 
 plus I enabled in /etc/sysctl.conf: net.inet.ip.forwarding=1

 Thanks,
 Mike

  

 Chris Kuethe escribis:

 On 8/14/05, Mike Henker [EMAIL PROTECTED] wrote:

 Hi Chris, exactly what s the name of the file where I must to look?

 Salutes,
 Mike



 /etc/ntp.conf

 as an aside, you do have working name resolution on that machine,
 right? can you ping things by name? does lynx
 http://www.openbsd.org/; work?

 CK



Re: ntpd could not parse pool.ntp.org

2005-08-15 Thread Mike Henker
You re right, Im sorry I wrote an error instead of 192.169.1.x I mean 
192.168.1.x


I know what I want to do, the problem is I don t know how to configurate 
the firewall:


For to ilustrate better the structure is:

Router-OpenBSDFirewall-Hub-Intranet Lan (with some machines connected)

Looking nearly:

Router (with gateway 192.168.0.1)

OpenBSD with 2 network cards:
One network card 192.168.0.9 (connected to the router)
One network Card 192.168.1.3 (connected to a HUB) I want to connect my 
wife's computer and the rest of machines (my home lan) to the hub for to 
be protected by the OpenBSD firewall, and all the traffic will pass 
through the OpenBSD firewall.


I suppose NAT is running on my 192.168.0.1 router because if I connect a 
machine directly to the router just need 3 parameters for to surf on 
Internet (my ISP give me that info)


The gateway 192.168.0.1
A Primary DNS 194.224.52.6
A secondary DNS 194.224.52.4

Greg the info you need:

My wife computer s 192.168.1.20
My laptop 192.168.1.19
Another machine 192.168.1.18

mygate file has:
192.168.0.1

Results of netstat -rn

Routing tables
Internet:
DestinationGateway Flags  Refs  Use  Mtu Interface
default192.168.0.1 UGS 0 0-   rl1
127/8  127.0.0.1   UGRS0 033224   lo0
127.0.0.1  127.0.0.1   UH  1104   33224   lo0
192.168.0/24   link#2  UC  1 0-   rl1
192.168.0.10:4:76:95:70:bb UHLc1 0-   rl1
192.168.1/24   link#1  UC  0 0-   rl0
224/4  127.0.0.1   URS 0 033224   lo0

I suppose I must to put as gateway in the machines connected to the hub 
the gateway 192.168.1.3 (remember is the network card of the OpenBSD 
firewall connected to the Hub)


Salutes,
Mike

Greg Thomas escribis:
This is a basic networking problem.  You need to post MUCH more info. 
We'll assume NAT is running on your 192.168.0.1 router.


A little drawing of your network with IPs of your workstations,
firewall, and router would help.  Either you have a typo below or you
don't understand TCP/IP, see my note below.  Need contents of 
etc/mygate.  Results of netstat -rn.


On 8/15/05, Mike Henker [EMAIL PROTECTED] wrote:


I checked the file you said and is correct. I think the problem is what
you said because if I do a ping and a messages appears saying ping:
unknow host http://www.openbsd.org;

Perhaps giving the maximun info will understand better what I want to do.

I installed OpenBSD 3.7

I have a router at home and want to put a firewall between the router
and the lan I have at home.

The gateway (on the router is 192.168.0.1)
The OpenBSD firewall I installed has 2 nerwork cards
- 192.168.0.3
- 192.169.1.9

Like the man afterboot says I enabled in /etc/sysctl.conf:

   net.inet.ip.forwarding=1

But seems not to work, because the machines in the intranet (my wife
machines has the IP 192.168.1.20 for example) can t exit to Internet




You have 192.168.1.x in that last sentence but 192.169.1.x up above. 
I assume you mean:


192.168.1.20  -  192.168.1.9/192.168.0.3  -  192.168.0.1  -  internet

Greg




3.7 ,xdm and fluxbox

2005-08-15 Thread Smonek
I install fluxbox on OpenBSD 3.7 .
In My rc.conf I add xdm= and configured my Xsession file 
(/etc/X11/xdm/Xsession

fi
xterm 
fluxbox
fi

Fluxbox starting but no have background

[demime 1.01d removed an attachment of type APPLICATION/DEFANGED which had a 
name of smonek.19337DEFANGED-vcf]



Re: 3.7 ,xdm and fluxbox

2005-08-15 Thread Lukasz Sztachanski
On Mon, Aug 15, 2005 at 06:22:33PM +0200, Smonek wrote:
 I install fluxbox on OpenBSD 3.7 .
 In My rc.conf I add xdm= and configured my Xsession file 
 (/etc/X11/xdm/Xsession
 
 fi
 xterm 
 fluxbox
 fi
 
 Fluxbox starting but no have background
 
firstable, use local XSession file( ~/.xsession). 
startfluxbox(1) is much more flexible then just fluxbox(1). first one 
uses ~/.fluxbox/startup or theme config file, second one uses only 
theme config file.

Anyway, check your $PATH and make sure that program, which is used for 
setting background, exists( and is it covered by $PATH). 

-- 
Lukasz Sztachanski  
...proud user of C8H10N4O2 :)
http://szati.blogspot.com
http://rudy.mif.pg.gda.pl/~szati/szati.asc



compiling sendmail with sasl support

2005-08-15 Thread Jernej Vodopivec
Hello!

I am having headaches with enabling sasl in sendmail. Please give me
some hints how to do it.. My goal is to enable authentication in
sendmail..
I've installed cyrus-sasl-2.1.20p3. After that I've downloaded the
sources and try to recompile sendmail. I've found out that I have to
put these two lines to site.config.m4 which should be in devtools/Site
but I there isn't such directory.
APPENDDEF(`confLIBDIRS', `-L/usr/local/lib/sasl2')
APPENDDEF(`confINCDIRS', `-I/usr/local/include/sasl')
What should I do?

BR,

Jernej



Re: compiling sendmail with sasl support

2005-08-15 Thread Michael Erdely
echo WANT_SMTPAUTH=1/etc/mk.conf
cd /usr/src/gnu/usr.sbin/sendmail
make obj; make depend; make; sudo make install

-ME

On 8/15/05, Jernej Vodopivec [EMAIL PROTECTED] wrote:
 Hello!
 
 I am having headaches with enabling sasl in sendmail. Please give me
 some hints how to do it.. My goal is to enable authentication in
 sendmail..
 I've installed cyrus-sasl-2.1.20p3. After that I've downloaded the
 sources and try to recompile sendmail. I've found out that I have to
 put these two lines to site.config.m4 which should be in devtools/Site
 but I there isn't such directory.
 APPENDDEF(`confLIBDIRS', `-L/usr/local/lib/sasl2')
 APPENDDEF(`confINCDIRS', `-I/usr/local/include/sasl')
 What should I do?
 
 BR,
 
 Jernej
 
 


-- 
http://erdelynet.com/

Support OpenBSD! http://www.openbsd.org/orders.html



Re: [Fwd: Re: ntpd could not parse pool.ntp.org]

2005-08-15 Thread Greg Thomas
On 8/15/05, Nick [EMAIL PROTECTED] wrote:
 
 OpenBSD has a steep learning curve but it's a great system once you've
 learnt a bit. (The mailing list can be a bit vicious though.)
 

Whether OpenBSD has a steep learning curve or not is irrelevant as
this issue is almost a pure networking one.  It sounds like Mike is
actually getting around OpenBSD fairly well.

Greg



Re: i-opener prob

2005-08-15 Thread eric
On Sun, 2005-08-14 at 21:54:15 -0400, roger proclaimed...

 I have an old i-opener with a bad modem (I think.).
 
 And I have a brand new i-opener that does an opening tutorial and then
 freezes...tries to dial-up to no avail.
 
 Any suggestions?  I'm going crazy.

Try adding more pepper and changing the oil on it; that should make things
better. Or you can actually tell us wtf your problem is.



Howto for Ethereal on OpenBSD 3.7 (covers 0.10.12 now)

2005-08-15 Thread Ober Heim

The howto at http://www.linbsd.org/ethereal_on_openbsd37.html
has been updated to include a patch to allow 0.10.12 to compile/install.


I am not your puppet. Since when? Now, get your spongy pink ass out 
there, and dance for the cameras.  -Death to Smoochy


-- Forwarded message --
Date: Fri, 5 Aug 2005 11:00:59 -0500 (CDT)
From: Ober Heim [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Howto for Ethereal on OpenBSD 3.7

Now before everyone goes off half cocked about 'ohh, I read that application is 
insecure!' rant, be aware that process separation is

currently in the works by me.

With that said, I put together a simple how-to on getting ethereal 0.10.11 to 
compile properly.


http://www.linbsd.org/ethereal_on_openbsd37.html

As far as security goes, it goes without saying:
Dont run ethereal in capture/decode mode as root.
Capture with tcpdump to a file and read with ethereal as a non privileged user.
You can even chown _ethereal /dev/bpf* if you are really inclined to run it as 
the primary capture device. Limit your captures to specific protocols you need 
and nothing else.
Most of the time that there are exploits, it happens to deal with specific 
dissectors that you do not care about.

So, say  if you only want to capture web traffic then do so.
ethereal -R http
Or limit it with capture filters to specific ports
ethereal port 80

/rant
I am not your puppet. Since when? Now, get your spongy pink ass out there, and 
dance for the cameras.  -Death to Smoochy




newsyslog running twice with $W1DO5 as when field - with solution

2005-08-15 Thread Bill
Well since I wrote it all down below I think I know what happened.
Maybe this will help someone else as dumb as me someday.  

I think the problem is that I also have ntpdate scheduled at 5am... so
the one second adjustment must have caused cron to run the newsyslog
again.  (the entries below show the second running one second earlier
than the first)

Curse this adled brain

I guess the moral of the story is to not have your time update near
another cron job...

Bill

---

It's not a question of if I am doing something wrong, its what...

On 3.7:

I changed my /var/log/maillog rotation to use $W1D05 which according to
everthing I read, should mean Every week on Monday at 05:00.  Which
works great.  Wonderful.

Except for the entries I changed to that run twice right after each
other.

After the first time it ran I had this:

-rw---  1 root  wheel  473930 Aug 15 15:41 /var/log/maillog
-rw---  1 root  wheel 102 Aug 15 05:00 /var/log/maillog.0.gz
-rw---  1 root  wheel  452207 Aug 15 05:00 /var/log/maillog.1.gz

The maillog.0.gz log only contains this:
Aug 15 05:00:02 ironman newsyslog[29992]: logfile turned over
Aug 15 05:00:01 ironman newsyslog[3362]: logfile turned over

The other ones that were affected by this also seemed to have the two
different PID's when they were run, which leads me to think that two
instances of newsyslog were run for some reason...

I rescheduled one of my problem entries to run by itself at $W1D16
and it ran fine, as expected.  Since it has resolution to the hour
mark, I have to wait to have my next test of two at the same time run.

Has anyone seen this problem?  It only occurs on the ones that I did as
$W1D05 and I definatly only have one entry for it in cron...


Explosivo Internet Technologies Group
http://www.Explosivo.com
Hosting, Web Development, E-Commerce solutions and more

If you have received this e-mail in error, please ignore and delete



Re: newsyslog running twice with $W1DO5 as when field - with solution

2005-08-15 Thread Simon Farnsworth
On Monday 15 August 2005 21:16, Bill wrote:
 I think the problem is that I also have ntpdate scheduled at 5am... so
 the one second adjustment must have caused cron to run the newsyslog
 again.  (the entries below show the second running one second earlier
 than the first)

Out of interest, why are you running ntpdate instead of ntpd? In theory, ntpd
should provide you with equally good or even better time updating (even in
the presence of things like network connections that are rarely up), and
won't trigger things like the same cron job running twice.
--
Simon Farnsworth

[demime 1.01d removed an attachment of type application/pgp-signature]



isakmpd.conf man page additions

2005-08-15 Thread andrew fresh
I am attaching a diff to the isakmpd.conf man page that I hope clarifies using 
certificate based authentication.  I found the information in the archives, and 
I thought they might be better documented in the man page.  

I believe the changes to be correct, but please do not take my word on it as I 
am new to IPSec.

l8rZ,
-- 
andrew - ICQ# 253198 - JID: [EMAIL PROTECTED]
 Proud member: http://www.mad-techies.org

BOFH excuse of the day: boss forgot system password
--- isakmpd.conf.5.orig Mon Aug 15 11:24:10 2005
+++ isakmpd.conf.5  Mon Aug 15 12:22:53 2005
@@ -886,12 +886,13 @@
 # Incoming phase 1 negotiations are multiplexed on the source IP address
 [Phase 1]
 10.1.0.1=  ISAKMP-peer-west
+10.1.0.3=  ISAKMP-peer-north
 
 # These connections are walked over after config file parsing and told
 # to the application layer so that it will inform us when traffic wants to
 # pass over them.  This means we can do on-demand keying.
 [Phase 2]
-Connections=   IPsec-east-west
+Connections=   IPsec-east-west,IPsec-east-north
 
 # Default values are commented out.
 [ISAKMP-peer-west]
@@ -905,6 +906,20 @@
 Authentication=mekmitasdigoat
 #Flags=
 
+# This connection uses certifiates, it assumes you have generated a valid 
+# certificate from your Private-key, that includes the subjectAltName 
+# as used in the ID-east section and placed it in the Cert-directory.
+[ISAKMP-peer-north]
+Phase= 1
+#Transport=udp
+Local-address= 10.1.0.2
+Address=   10.1.0.3
+#Port= isakmp
+#Port= 500
+Configuration= RSA_SIG-phase-1-configuration
+ID=ID-east
+#Flags=
+
 [IPsec-east-west]
 Phase= 2
 ISAKMP-peer=   ISAKMP-peer-west
@@ -929,6 +944,19 @@
 EXCHANGE_TYPE= QUICK_MODE
 Suites=
QM-ESP-3DES-SHA-PFS-SUITE,QM-ESP-AES-SHA-PFS-SUITE
 
+# Phase 1 description (Main Mode) using AUTHENTICATION_METHOD= RSA_SIG 
+# RSA_SIG is needed when using certificates for authentication
+
+[RSA_SIG-phase-1-configuration]
+EXCHANGE_TYPE= ID_PROT
+Transforms=3DES-SHA-RSA_SIG
+
+# The values here are what would be used by default in this configuration
+# if an ID was not specified in the ISAKMP-peer-north section.
+[ID-east]
+ID-type=   IPV4_ADDR
+Address=   10.1.0.2
+
 # Data for an IKE mode-config peer
 [asn1_dn//C=SE/L=SomeCity/O=SomeCompany/CN=SomePeer.company.com]
 Address=   192.168.1.123
@@ -983,6 +1011,13 @@
 GROUP_DESCRIPTION= MODP_1024
 Life=  Default-phase-1-lifetime
 
+[DES-MD5-RSA_SIG]
+ENCRYPTION_ALGORITHM=  DES_CBC
+HASH_ALGORITHM=MD5
+AUTHENTICATION_METHOD= RSA_SIG
+GROUP_DESCRIPTION= MODP_1024
+Life=  Default-phase-1-lifetime
+
 [DES-SHA]
 ENCRYPTION_ALGORITHM=  DES_CBC
 HASH_ALGORITHM=SHA
@@ -990,6 +1025,13 @@
 GROUP_DESCRIPTION= MODP_1024
 Life=  Default-phase-1-lifetime
 
+[DES-SHA-RSA_SIG]
+ENCRYPTION_ALGORITHM=  DES_CBC
+HASH_ALGORITHM=SHA
+AUTHENTICATION_METHOD= RSA_SIG
+GROUP_DESCRIPTION= MODP_1024
+Life=  Default-phase-1-lifetime
+
 # 3DES
 
 [3DES-SHA]
@@ -999,6 +1041,13 @@
 GROUP_DESCRIPTION= MODP_1024
 Life=  Default-phase-1-lifetime
 
+[3DES-SHA-RSA_SIG]
+ENCRYPTION_ALGORITHM=  3DES_CBC
+HASH_ALGORITHM=SHA
+AUTHENTICATION_METHOD= RSA_SIG
+GROUP_DESCRIPTION= MODP_1024
+Life=  Default-phase-1-lifetime
+
 # Blowfish
 
 [BLF-SHA]
@@ -1006,6 +1055,14 @@
 KEY_LENGTH=128,96:192
 HASH_ALGORITHM=SHA
 AUTHENTICATION_METHOD= PRE_SHARED
+GROUP_DESCRIPTION= MODP_1024
+Life=  Default-phase-1-lifetime
+
+[BLF-SHA-RSA_SIG]
+ENCRYPTION_ALGORITHM=  BLOWFISH_CBC
+KEY_LENGTH=128,96:192
+HASH_ALGORITHM=SHA
+AUTHENTICATION_METHOD= RSA_SIG
 GROUP_DESCRIPTION= MODP_1024
 Life=  Default-phase-1-lifetime



audio plays too fast

2005-08-15 Thread Jernej Vodopivec
Hello!

I couldn't find any acceptable solution for my problem - the problem
is that sound is playing too fast. I've found out that many people
has/had the same problem before but the problem is still here..

I am running obsd 3.7 on Toshiba Satellite 2410-304 (auich0 at pci0
dev 31 function 5 Intel 82801CA/CAM AC97 rev 0x02: irq 11, ICH3
AC97; ac97: codec id 0x594d803 (Yamaha YMF753-S); ac97: codec features
18 bit DAC, No 3D Stereo; audio0 at auich0).

I think this is obsd specific problem because I didn't have this
problem when I was running debian linux, freebsd or windows on this
laptop.
All the soulitons I've found (convert with sox, audioctl play.rate,
madplay, buying new real sound card) are not acceptable..

I tried to play .mp3 with madplay, xmms and mplayer.

The only solution I've found is that I have to resample each file from
44100 to 48000 with sox - but this isn't acceptable solution - at
least not in longterm..

Is there any solution for this problem yet?

Thank you!

Jernej



html2text

2005-08-15 Thread Hanspeter Roth
Hello,

which HTML-to-plaintext implementation is used in OpenBSD mailing
lists?

-Hanspeter



Re: audio plays too fast

2005-08-15 Thread Marc Espie
On Mon, Aug 15, 2005 at 11:24:24PM +0200, Jernej Vodopivec wrote:
 The only solution I've found is that I have to resample each file from
 44100 to 48000 with sox - but this isn't acceptable solution - at
 least not in longterm..
 
 Is there any solution for this problem yet?
 
mplayer is perfectly happy to resample on the fly...
mplayer -af resample=48000
if memory serves...



Re: isakmpd.conf man page additions

2005-08-15 Thread Jason McIntyre
On Mon, Aug 15, 2005 at 01:48:29PM -0700, andrew fresh wrote:
 I am attaching a diff to the isakmpd.conf man page that I hope clarifies 
 using certificate based authentication.  I found the information in the 
 archives, and I thought they might be better documented in the man page.  
 
 I believe the changes to be correct, but please do not take my word on it as 
 I am new to IPSec.
 

hi. there is a section in isakmpd(8) titled X509 AUTHENTICATION which
describes a basic setup w/ certificates. i know isakmpd stuff is not
always 100% clear, but can you describe what you think is missing or
wrong with the page as is? (usually i moan at people for not providing
diffs, but in this case i think we have enough - i need to see what you
think is missing)

feel free to mail me privately...

jmc



keycodes and wscons

2005-08-15 Thread James Reynolds
Is there a way to retrieve the keycodes and keysyms of keys pressed from 
wscons in a C program? A quick look at /usr/include/dev/wscons/wsconsio.h 
didn't jump out at me. 

-- 
james reynolds, bsc
...running back to saskatoon...



BSD PPPoA Hardware

2005-08-15 Thread Simon Morgan
Hi,

I have a PPPoA ADSL connection and would like to use FreeBSD or OpenBSD
as a gateway/server and am looking for compatible hardware that would
facilitate this. I'm specifically looking to avoid combination modem
+ routers and NAT and port forwarding in particular. This will be
a pure routed IP setup. Obviously stability is very important (So
far I've been using a SpeedTouch 330 with Linux which hasn't been
fun).

Does anyone have any suggestions? Any advice is welcome.

Thanks.

Simon



keycodes and wscons

2005-08-15 Thread James Reynolds
Is there a way to retrieve the keycodes and keysyms of keys
pressed in OpenBSD wscons in a C program? A look 
at /usr/include/dev/wscons/wsconsio.h 
and the solution didn't jump at me. 

-- 
james reynolds, bsc
...running back to saskatoon...



Re: newsyslog running twice with $W1DO5 as when field - with solution

2005-08-15 Thread Bill
I did ntpd years and years back under linux when I was getting started
and had a bunch of issues, so I just have not revisited it.  Perhaps I
will give it a look.

I just threw it in to get something running... of course had I known
this would be a problem...  

I'll spend some time checking it out



On Mon, 15 Aug 2005 21:29:56 +0100
Simon Farnsworth [EMAIL PROTECTED] wrote:

 On Monday 15 August 2005 21:16, Bill wrote:
  I think the problem is that I also have ntpdate scheduled at 5am... so
  the one second adjustment must have caused cron to run the newsyslog
  again.  (the entries below show the second running one second earlier
  than the first)
 
 Out of interest, why are you running ntpdate instead of ntpd? In theory, ntpd
 should provide you with equally good or even better time updating (even in
 the presence of things like network connections that are rarely up), and
 won't trigger things like the same cron job running twice.
 --
 Simon Farnsworth
 
 [demime 1.01d removed an attachment of type application/pgp-signature]
 


-- 


Explosivo Internet Technologies Group
http://www.Explosivo.com
Hosting, Web Development, E-Commerce solutions and more

If you have received this e-mail in error, please ignore and delete



Re: Major Surprise with xdm on 3.7

2005-08-15 Thread hellsop
On Fri, Aug 12, 2005 at 05:39:37AM -0500, Dave Feustel wrote:
 On Thursday 11 August 2005 19:35, Justin Reigle wrote:
   I now think that there is a security advantage to using xdm to bring up
   KDE - namely, that there is no unprotected console session which can be
   hijacked by someone sitting down at the computer, finding the session
   from which KDE was started, and putting startkde in the background.
   
  
  Well, what happens when they reboot the box, go in with boot -s,
  get the root shell and cause havoc?
 
 The computer requires a password to reboot.

Clever. A password-protected power switch...

  If you're that concerned about people 
  sitting down in front of your machine to cause problems, then protect it
  with something physical (e.g. caged rack with lock).
 
 Actually I'm not particularly concerned about this right now.

What problem are you wanting to solve then?

-- 
73. I will not agree to let the heroes go free if they win a rigged contest, 
even though my advisors assure me it is impossible for them to win.
--Peter Anspach's list of things to do as an Evil Overlord



Re: newsyslog running twice with $W1DO5 as when field - with solution

2005-08-15 Thread Simon Farnsworth
On Tuesday 16 August 2005 00:11, Bill wrote:
 I did ntpd years and years back under linux when I was getting started
 and had a bunch of issues, so I just have not revisited it.  Perhaps I
 will give it a look.

If by years and years ago, you mean in the 2.0 kernel era, then things are
much better now (both under Linux 2.2 and later kernels, and under supported
OpenBSDs). ntpd is easier to configure, thanks to the pool.ntp.org project,
and modern kernels (for some rather large values of modern) include support
needed to make ntpd work well. Plus, there's the OpenNTPD project, from the
OpenBSD team.

 I just threw it in to get something running... of course had I known
 this would be a problem...

For the archives, running ntpdate from cron is dangerous when the time
adjustment is going to be backwards; it will cause the same second to
happen twice, which can trigger all sorts of entertainment (cron firing the
same job twice, make getting confused and other such fun).
--
Simon Farnsworth

[demime 1.01d removed an attachment of type application/pgp-signature]



kword crashes instantly when print or print preview selected

2005-08-15 Thread Dave Feustel
I'm running 3.7 release with the koffice package installed.
This is 100% repeatable. Has anyone else seen this?

Thanks,
Dave Feustel



Re: newsyslog running twice with $W1DO5 as when field - with solution

2005-08-15 Thread Bill
On Tue, 16 Aug 2005 00:44:20 +0100
Simon Farnsworth [EMAIL PROTECTED] wrote:
 For the archives, running ntpdate from cron is dangerous when the time
 adjustment is going to be backwards; it will cause the same second to
 happen twice, which can trigger all sorts of entertainment (cron firing the
 same job twice, make getting confused and other such fun).
 --

I'm convinced - thanks for the info


-- 

Bill Chmura


Explosivo Internet Technologies Group
http://www.Explosivo.com
Hosting, Web Development, E-Commerce solutions and more

If you have received this e-mail in error, please ignore and delete



ASUS K8S-MX + SATA = problem

2005-08-15 Thread Joe Szedula
Just tried adding a SATA drive to my ASUS K8S-MX system using -current 
(as of August 13th) and got the following message (repeated twice before 
the system hung up) during the boot:

  wd2(pciide1:0:0): timeout
type: ata
c_bcount: 512
c_skip: 0

This is similar to the problem I had when I tried to install OpenBSD 3.7 
amd64 except that time it was for wd0 (an IDE drive) and I also got the 
additional line:

pciide0:0:0: bus-master DMA error: missing interrupt, status=0x21

That time I tried:
  boot -c
UKC change wd
change (y/n) ? y
channel [-1] ? -1
flags [0] ? 0xff0
UKC quit

and was able to install the system. This time it made no difference with 
-current. Is there a solution to this problem (short of not using SATA 
drives or replacing the motherboard)?

Joe

dmesg output (minus the SATA drive info since I can't boot with the SATA 
drive attached) follows:

OpenBSD 3.8-beta (GENERIC) #1: Sun Aug 14 11:59:10 CDT 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 502722560 (490940K)
avail mem = 419856384 (410016K)
using 12324 buffers containing 50479104 bytes (49296K) of memory
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD Athlon(tm) 64 Processor 2800+, 2029.83 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFL
USH,MMX,FXSR,SSE,SSE2,NXE,MMXX,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 
64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully 
associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully 
associative
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 SIS 760 PCI rev 0x03
ppb0 at pci0 dev 1 function 0 SIS 86C202 VGA rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 SIS 6330 VGA rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
SIS 965 PCI rev 0x47 at pci0 dev 2 function 0 not configured
pciide0 at pci0 dev 2 function 5 SIS 5513 EIDE rev 0x01: 760: DMA, 
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: QUANTUM FIREBALLlct15 10
wd0: 16-sector PIO, LBA, 9736MB, 19941264 sectors
wd1 at pciide0 channel 0 drive 1: QUANTUM FIREBALL EX3.2A
wd1: 16-sector PIO, LBA, 3079MB, 6306048 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
wd2 at pciide0 channel 1 drive 0: HDS722512VLAT20
wd2: 16-sector PIO, LBA48, 117800MB, 241254720 sectors
atapiscsi0 at pciide0 channel 1 drive 1
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: E-IDE, CD-ROM 52X/AKH, A63 SCSI0 5/cdrom 
removable
wd2(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5
cd0(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2
auich0 at pci0 dev 2 function 7 SIS 7012 AC97 rev 0xa0: irq 10, SiS7012 
AC97
ac97: codec id 0x41445368 (Analog Devices AD1888)
ac97: codec features headphone, 20 bit DAC, No 3D Stereo
audio0 at auich0
ohci0 at pci0 dev 3 function 0 SIS 5597/5598 USB rev 0x0f: irq 5, 
version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: SIS OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1 at pci0 dev 3 function 1 SIS 5597/5598 USB rev 0x0f: irq 5, 
version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: SIS OHCI root hub, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
ohci2 at pci0 dev 3 function 2 SIS 5597/5598 USB rev 0x0f: irq 3, 
version 1.0, legacy support
usb2 at ohci2: USB revision 1.0
uhub2 at usb2
uhub2: SIS OHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 3 function 3 SIS 7002 USB rev 0x00: irq 5
usb3 at ehci0: USB revision 2.0
uhub3 at usb3
uhub3: SIS EHCI root hub, rev 2.00/1.00, addr 1
uhub3: 8 ports with 8 removable, self powered
vendor SIS, unknown product 0x0190 (class network subclass ethernet, 
rev 0x00) at pci0 dev 4 function 0 not configured
pciide1 at pci0 dev 5 function 0 SIS 182 SATA rev 0x01: DMA
pciide1: using irq 11 for native-PCI interrupt
ppb1 at pci0 dev 6 function 0 vendor SIS, unknown product 0x000a rev 
0x00
pci2 at ppb1 bus 2
ppb2 at pci0 dev 7 function 0 vendor SIS, unknown product 0x000a rev 
0x00
pci3 at ppb2 bus 3
dc0 at pci0 dev 9 function 0 Lite-On PNIC rev 0x20: irq 10, address 
00:a0:cc:24:be:91
mtdphy0 at dc0 phy 1: MTD972 10/100 PHY, rev. 8
pchb1 at pci0 dev 24 function 0 AMD AMD64 HyperTransport rev 0x00
pchb2 at pci0 dev 24 function 1 AMD AMD64 Address Map rev 0x00
pchb3 at pci0 dev 24 function 2 AMD AMD64 DRAM Cfg rev 0x00
pchb4 at pci0 dev 24 function 3 AMD AMD64 Misc Cfg rev 0x00
isa0 at mainbus0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 

Re: eap driver audioctl issue

2005-08-15 Thread Lost Reality

Hello

I have the same issue with a SB Live 5.1.
This message appears, but the setting is changed anyways...

--
Andre


- Original Message - 
From: Ramiro Aceves [EMAIL PROTECTED]

To: misc@openbsd.org
Sent: Monday, August 15, 2005 10:54 AM
Subject: eap driver audioctl issue



Hello OpenBSD fans.

I am newbie to OpenBSD but have certain Linux and FreeBSD experience. I
am having trouble with my audio Ensoniq CT5880 card under OpenBSD.
The problem occurs in two very different computers with same card but
different manufacturer. This card works well with snd-es1371 ALSA driver
under Linux. Both cards have CT5880 chip inside.


The card is perfectly recognized by the kernel:


eap0 at pci0 dev 10 function 0 Ensoniq CT5880 rev 0x02: irq 5
ac97: codec id 0x83847609 (SigmaTel STAC9721/23)
ac97: codec features 18 bit DAC, 18 bit ADC, SigmaTel 3D
audio0 at eap0
midi0 at eap0: AudioPCI MIDI UART

I can record and play sounds like this:

openbsd-remigio# cat /dev/audio/  file /* for recording */
openbsd-remigio# cat file  /dev/audio  /* for playing */

I can also modify mixer settings with mixerctl command.


The issue arises when I want to change recording parameters with
audioctl. I can not change any parameter at all:



openbsd-remigio# audioctl -a

name=Ensoniq AudioPCI
version=
config=eap
encodings=ulinear:8,mulaw:8*,alaw:8*,slinear:8*,slinear_le:16,ulinear_le:16*,slinear_be:16*,ulinear_be:16*

properties=full_duplex,mmap,independent
full_duplex=0
fullduplex=0
blocksize=4384
hiwat=14
lowat=0
monitor_gain=0
mode=
play.rate=44100
play.channels=1
play.precision=8
play.encoding=mulaw
play.gain=127
play.balance=32
play.port=0x0
play.avail_ports=0x0
play.seek=800
play.samples=65136
play.eof=0
play.pause=0
play.error=1
play.waiting=0
play.open=0
play.active=0
play.buffer_size=65536
record.rate=8000
record.channels=1
record.precision=8
record.encoding=mulaw
record.gain=191
record.balance=32
record.port=0x2
record.avail_ports=0x7
record.seek=0
record.samples=0
record.eof=0
record.pause=0
record.error=0
record.waiting=0
record.open=0
record.active=0
record.buffer_size=65536
record.errors=0
**




openbsd-remigio# audioctl record.rate=22050
audioctl: set failed: Invalid argument


I can not change anything, I always get the same error message.

I will apreciate your help. Am I missing something?

Thanks in advance.


Ramiro
PS: (from Spain, sorry, my english is not very precise)




--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.9/72 - Release Date: 14/8/2005




Ports Question - Update

2005-08-15 Thread Dave Feustel
I'm running release 3.7 and I've put the release src and ports
trees in /usr. I've updated both trees using cvs.

I remade unzip as per the instructions in ports.html.
When I attempted to make install, I got an error message
saying that unzip was already present (which it was).
So  I attempted to pkg_delete unzip and then got the following:
===
/usr/ports}cd archivers/unzip
/usr/ports/archivers/unzip}sudo pkg_delete unzip
Password:
Can't remove unzip without also removing:
xmms-1.2.10p0 kdeaddons-3.3.2 kdenetwork-3.3.2p0 xmms-mp3-1.2.10p0
/usr/ports/archivers/unzip}  

I don't understand why I would need to remove xmms, kdeaddons,
and kdenetwork in order to remove unzip. Enlightenment will be
appreciated.

-Update---

I finally found the newly made unzip-5.51.tgz 
and tried a pkg_add -r, but it didn't work
(console log follows)
==
/usr/ports/packages/i386/all}ls -l
total 244
-rw-r--r--  3 root  wheel  122973 Aug 14 13:11 unzip-5.51.tgz
/usr/ports/packages/i386/all}sudo pkg_add -r unzip-5.51.tgz
Password:
Can't install unzip-5.51 because it's already installed
/usr/sbin/pkg_add: unzip-5.51.tgz:Fatal error
/usr/ports/packages/i386/all} 
===



Re: newsticker - console based ?

2005-08-15 Thread Uwe Dippel
On Mon, 15 Aug 2005 07:32:48 -0400, Joseph C. Bender wrote:

 tcpdump pflog0 on to a console screen?  *grin*

HaHaHa !! No need to *grin* !!!
This is what I have been doing over the last years !!!

I had a lot of visitors; but it got boring. Now is time for a change; and
an automated news reader would be the greatest thing since - pflog !

Really astonished that seemingly nothing like this exists !?
Personally, I was sure someone had forked snownews or similar into a
random / sequential unattended kiosk application.

Uwe



Re: Kernel PPPoE is dieing...

2005-08-15 Thread Uwe Dippel
On Mon, 15 Aug 2005 09:19:07 -0300, Felipe Mesquita wrote:

 The question is: 4How do i set
 retry number to infinite, so that it always restart the connection as soon as 
 it
 deads??4

* *   *   *   *   /usr/local/sbin/chkpppoe

into crontab -e for root.

(I don't have access to the chkpppoe now; but there is at least one
example in this list.)

Uwe



Re: BSD PPPoA Hardware

2005-08-15 Thread J.C. Roberts
On Mon, 15 Aug 2005 23:18:19 +0100, Simon Morgan [EMAIL PROTECTED]
wrote:

Hi,

I have a PPPoA ADSL connection and would like to use FreeBSD or OpenBSD
as a gateway/server and am looking for compatible hardware that would
facilitate this. I'm specifically looking to avoid combination modem
+ routers and NAT and port forwarding in particular. This will be
a pure routed IP setup. Obviously stability is very important (So
far I've been using a SpeedTouch 330 with Linux which hasn't been
fun).

Does anyone have any suggestions? Any advice is welcome.

Thanks.

Simon

Hi Simon,

You seem to be confused on your terms. The term PPPoA means
Point-to-Point Protocol over ATM (Asyncronous Transfer Mode). I
seriously doubt you're running ADSL over ATM. ;-)

What you're looking for is actually PPPoE (Point-to-Point Protocol
over Ethernet) since your (A)DSL modem has an ethernet connection to
your network and requires PPP to connect to your providers' network.

The answer is yes, OpenBSD does a very good job with PPPoE. There are
both userland and kernel implementations that can be used. I'm not
sure which flavor of hardware you prefer but basically you need a
platform that is supported by OpenBSD along with supported ethernet
devices.

http://www.openbsd.org/plat.html

Kind Regards,
JCR