USB WLAN dongles
Hi, I have a thinkpad T40 running OpenBSD and live in a small, nice city close to Barcelona whose city hall offers free wifi Internet to everybody. Unfortunately they do not have a good coverage and where my building is, I don't get any signal. The card is identified by OpenBSD as ath0. I was thinking, as somebody in the thinkpad forum suggested, of an USB WLAN dongle, but one of those with an external antenna that is connected through a standard (typically: Reverse) SMA-connector. Next, get a sufficiently long, low-loss cable and a parabolic antenna (some 24 dBi gain, e.g.), mount the antenna at a point having preferably line-of-sight to the WLAN source (the public router/access point), and disable the Atheros internal miniPCI interface (or, is this perhaps even not necessary?). If your Linux will support the particular USB WLAN dongle, then you're in business... otherwise, well, you're in trouble! A few images showing what type of USB WLAN dongles I am having in mind are something like this no. 1 http://cgi.ebay.com/USB-11g-Wireless-2-4G-WiFi-WI-FI-LAN-External-Antenna_W0QQitemZ150208258653 or this no. 2 http://cgi.ebay.com/Alfa-50mW-USB-WiFi-24dBi-Grid-w-Mount-WLAN-10-ext_W0QQitemZ130190878170 or this no. 3. http://cgi.ebay.com/802-11g-Wireless-LAN-WLAN-High-Gain-USB-Adapter-Antenna_W0QQitemZ180168479250 An example of an outdoor, high-gain parabolic WLAN antenna is shown here - http://www.embeddedworks.net/antenna/f2400_Outdoor-Parabolic-Grid-Dish.html there are TONS of such available, and at a variety of prices; Google around a bit, and you will find much cheaper ones. Now, my question is... will this work with OpenBSD? Has any of you tried this? I have googled for a while and found nothing... thanks Pau
Re: USB WLAN dongles
On Thu, Jan 24, 2008 at 10:11:14AM +0100, Pau Amaro-Seoane wrote: I was thinking, as somebody in the thinkpad forum suggested, of an USB WLAN dongle, but one of those with an external antenna that is connected through a standard (typically: Reverse) SMA-connector. Next, get a sufficiently long, low-loss cable and a parabolic antenna (some 24 dBi gain, e.g.), mount the antenna at a point having preferably line-of-sight to the WLAN source (the public router/access point) How long does your run have to be? Perhaps you can mount the dongle in a parabolic dish and run USB back to your system. Standard USB cable is good for about 5 meters; If you're going farther than that, you can get powered repeater cables that are good for up to 30 meters or so, or place a small box like a soekris close to the dish, and run ethernet. Either way signal losses on a digital run will be much, much less than even the most expensive low-loss cable :-) -Ryan
Re: USB WLAN dongles
On 2008/01/24 10:11, Pau Amaro-Seoane wrote: connected through a standard (typically: Reverse) SMA-connector. Next, get a sufficiently long, low-loss cable and a parabolic antenna (some Low-loss microwave transmission cable is expensive and thick, (0.2dB/m loss on 11mm cable which wouldn't fit an SMA connector so you'd need an adapter or pigtail, expect to pay at least 3eur/m; short runs you can use 5mm cable with 0.5dB/m loss at about half the price, which does fit SMA). If you can put the USB adapter outdoors with the antenna directly connected, that will keep loss to a minimum. If not, use as short as possible LMR200-type cable, and have the main length as a USB extension (if you need longer than USB allows, use another computer to connect to the wireless network running NAT, and connect to that by ethernet; soekris/pcengines board are useful for this). You might also want to think if you need some protection against lightning. At the very least unplug if an electrical storm is nearby... 24 dBi gain, e.g.), mount the antenna at a point having preferably Maximum power you are allowed to radiate from the antenna in Europe under ETS300/328 is 20dBm (100mW), otherwise you need a license. With a 50mW (17dBi) radio like the ones you show, you're only legally allowed to use an antenna with 3dB gain unless you have software control to reduce transmit power (or use lossy cable etc). A few images showing what type of USB WLAN dongles I am having in mind are something like this no. 1 Images of the cases don't help much. If you can't get information about the type of MAC/radio used, see if you can get a copy of the Windows driver and you'll find the vendor and device id in the inf file, you can look this up in sys/dev/pci/pcidevs and see if there's a driver which claims the device.
Re: spamd, CARP and relayd
Urban Hillebrand [EMAIL PROTECTED] writes: (3) I found several hints in the archives that some people believed to have problems with spamd and SMTP servers using address verification, open relay checkers, and some broken SMTP software. Does any of this still pose a problem for you? Some variants of broken smtp configurations will choke on greylisting, and spamd doesn't really have much in the way of smtp smarts beyond what it needs in order to waste spammers' time. If somebody important is unable to deal with greyliting, you will probably need to whitelist them. And yes, those toy relay checkers that do not check if the message gets delivered do tend to think spamd is an open relay. That and some spammers' tricks will swell your greylist a bit from time to time, but I don't really see that as much of a problem in real life. - P -- Peter N. M. Hansteen, member of the first RFC 1149 implementation team http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/ Remember to set the evil bit on all malicious network traffic delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.
Re: USB WLAN dongles
Wouldn't wi-fi router ve more effective here? Or is it too expensive to be a solution? -- Dmitrij D. Czarkoff
Re: Install OpenBSD from USB ?
just for the record: you could've just dd'ed the floppy42.fs to the usb device this has worked for me several times. markus
Re: USB WLAN dongles
On Thu, Jan 24, 2008 at 03:19:12PM +0100, Pau Amaro-Seoane wrote: what do you mean? I have to increase the gain of the reception on my laptop. Just to make it clear: you need to increase the gain of reception and transmission. Increasing transmit power helps little if you can't hear the replies. A high-gain antenna, of course, does both so it should help you. Or do you mean I can use the built-in antenna of a router to do that? If so, how? I do have an old wifi router Look inside it and see if it contains something useful :) I think the OP meant using a router that can work as a client instead of an AP. At least my 3Com access point can do that, and it should be possible with other devices, especially if you use DD-WRT or some other alternative firmware like that. Ethernet-connected WLAN client devices also exist specifically for the purpose of connecting ethernet-enabled devices to a WLAN. Those usually have a convenient external antenna connection, too. With PoE one of those would probably be my choice to solve the problem if I had an external antenna - if I had to hack something together I'd use a USB dongle and some kitchenware as a reflector. -- Jussi Peltola
Re: USB WLAN dongles
what do you mean? I have to increase the gain of the reception on my laptop. Or do you mean I can use the built-in antenna of a router to do that? If so, how? I do have an old wifi router 2008/1/24, Dmitrij Czarkoff [EMAIL PROTECTED]: Wouldn't wi-fi router ve more effective here? Or is it too expensive to be a solution? -- Dmitrij D. Czarkoff
Re: spamd, CARP and relayd
Urban Hillebrand wrote: On Mittwoch 23 Januar 2008 18:56:52 elpinguim wrote: [...] Bob Beck's presentation on spamd pf should provide some useful insight as to how you could deploy a similar setup. I found the presentation(s) to be quite helpful a few years ago. http://www.ualberta.ca/~beck/nycbug06/ Thanks, but I already stole several ideas from his presentation :) However, it does not answer the 3 questions in my original post. Regarding hardware sizing Bob says he is using a smallish Dell Server - I would be interested in more details (how much RAM is needed, how big does the greylist DB get...). I suppose two standard servers (single xeon, 2 GB RAM, small internal disk) would be more than sufficient for us, but some real world examples would still be helpful. Here is an example from a server that has constantly over 500 concurrent smtp connections to spamd and takes more than 1.000.000 connections a day. spamdb | wc -l ls -lah /var/db/spamd 251365 -rw-r--r-- 1 _spamd _spamd 88.3M Jan 24 15:07 /var/db/spamd As you can see the size of the database is quite ludicrous. You should just take care that for this kind of size, you will have to raise max table-entries in pf.conf. As for the CPU usage, spamd on this machine uses 10% at max of one of the CPUs (2X Intel(R) Xeon(R) CPU 5130 @ 2.00GHz), and is generally at 5% or less.
Re: Install OpenBSD from USB ?
markus ploner wrote: just for the record: you could've just dd'ed the floppy42.fs to the usb device this has worked for me several times. markus That'd be a pretty dumb way to do it... 1) The bsd.rd on the floppy image is considerably smaller then the one on the CD. 2) USB thumb drives are more like hard drives, they use an MBR.. which one might want to preserve. Using fdisk/disklabel/newfs and then installboot would be the better option ;) -Nix Fan.
Re: Install OpenBSD from USB ?
On Thu, Jan 24, 2008 at 08:14:56AM -0800, Unix Fan wrote: | markus ploner wrote: | just for the record: | you could've just dd'ed the floppy42.fs to the usb device | this has worked for me several times. | | markus | | That'd be a pretty dumb way to do it... Actually, it's not so bad... | 1) The bsd.rd on the floppy image is considerably smaller then the one on the CD. That doesn't really matter as long as you get enough drivers to install over the network. | 2) USB thumb drives are more like hard drives, they use an MBR.. which one might want to preserve. For booting purposes, I've found them more to be like floppies / CD's-with-floppy-emulation. USB harddrives are more like hard drives, but USB flash storage typically boot like floppies. And why you'd want to preserve the MBR if your alternative is formatting and installing the thing in your suggestion is beyond me. After dd'ing floppy*.fs to your USB key and using that to install, you can simply reformat and reuse. | Using fdisk/disklabel/newfs and then installboot would be the better option ;) Why is it better ? Simply `dd if=floppy42.fs of=/dev/sd0c` in a few seconds and boot from it. I've done this several times and it Just Works (tm). I've also done a complete OpenBSD install on my 4G 'thumbdrive' but I've yet to find a machine that can boot it (all the machines I've tried (except for my MacBook Pro) boot floppy42.fs from the same thumbdrive without problems). Paul 'WEiRD' de Weerd -- [++-]+++.+++[---].+++[+ +++-].++[-]+.--.[-] http://www.weirdnet.nl/
Hard Drive Errors
Hi Everyone I would like to revisit a problem I was unable to solve about a year ago, an error messages I was getting about pciide temouts. Several times we have had hard drives that will display the following error and then the computer freezes: wd1(pciide1:1:0): timeout type: ata c_bcount: 65536 c_skip: 0 pciide1:1:0: bus-master DMA error: missing interrupt, status=0x21 I tried to find the source of this problem and could not. I'm willing to accept that this could be due to a dying hard drive, overheated hard drive, or any similar causes except for a loose cable. The second error is very similar but does not make the computer lock up. I have been having this problem on many computers and more frequently than the above error. It doesn't seem to have any direct side effects. But the other day I noticed the error on one of my computers and we were having speed troubles with one of the disks. So we tried to reboot and for some reason the system got stuck and the watchdog didnt reboot the machine. I have no idea if this problem is linked to the hard drive error. Anyways, here is the error: wd2(pciide1:1:0): timeout type: ata c_bcount: 49152 c_skip: 0 pciide1:1:0: bus-master DMA error: missing interrupt, status=0x61 wd2a: device timeout reading fsbn 176823520 of 176823520-0 (wd2 bn 176823583; cn 175420 tn 3 sn 34), retrying wd2: soft error (corrected) Does anybody know what this is and if its a bad thing? I have attached the dmesg from a computer the last two times it got the error. Thanks Jonathan Steel dmesg from 2008-01-22 OpenBSD 4.1 (GENERIC.esentire) #0: Wed Aug 15 20:55:55 UTC 2007 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.esentire cpu0: Intel(R) Core(TM)2 Quad CPU @ 2.40GHz (GenuineIntel 686-class) 2.40 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16, xTPR real mem = 3756482560 (3668440K) avail mem = 3445522432 (3364768K) using 4278 buffers containing 187949056 bytes (183544K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+ BIOS, date 08/25/07, BIOS32 rev. 0 @ 0xfd470, SMBIOS rev. 2.51 @ 0xdfeea000 (31 entries) bios0: Supermicro PDSMi pcibios0 at bios0: rev 2.1 @ 0xfd470/0xb90 pcibios0: PCI BIOS has 20 Interrupt Routing table entries pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82801GB LPC rev 0x00) pcibios0: PCI bus #15 is the last bus bios0: ROM list: 0xc/0xb000 0xcb000/0x1000 0xcc000/0x1000 0xcd000/0x1000 acpi at mainbus0 not configured ipmi at mainbus0 not configured mainbus0: Intel MP Specification (Version 1.4) cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 266 MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Core(TM)2 Quad CPU @ 2.40GHz (GenuineIntel 686-class) 2.40 GHz cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16, xTPR cpu2 at mainbus0: apid 2 (application processor) cpu2: Intel(R) Core(TM)2 Quad CPU @ 2.40GHz (GenuineIntel 686-class) 2.40 GHz cpu2: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16, xTPR cpu3 at mainbus0: apid 3 (application processor) cpu3: Intel(R) Core(TM)2 Quad CPU @ 2.40GHz (GenuineIntel 686-class) 2.40 GHz cpu3: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16, xTPR mainbus0: bus 0 is type PCI mainbus0: bus 9 is type PCI mainbus0: bus 10 is type PCI mainbus0: bus 13 is type PCI mainbus0: bus 14 is type PCI mainbus0: bus 15 is type PCI mainbus0: bus 16 is type ISA ioapic0 at mainbus0: apid 4 pa 0xfec0, version 20, 24 pins ioapic1 at mainbus0: apid 5 pa 0xfec1, version 20, 24 pins pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 Intel E7230 MCH rev 0xc0 ppb0 at pci0 dev 1 function 0 Intel E7230 PCIE rev 0xc0 pci1 at ppb0 bus 1 ppb1 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x01 pci2 at ppb1 bus 9 ppb2 at pci2 dev 0 function 0 Intel PCIE-PCIE rev 0x09 pci3 at ppb2 bus 10 em0 at pci3 dev 1 function 0 Intel PRO/1000GT (82541GI) rev 0x05: apic 5 int 0 (irq 11), address 00:0e:0c:c6:49:e0 Intel IOxAPIC rev 0x09 at pci2 dev 0 function 1 not configured ppb3 at pci0 dev 28 function 4 Intel 82801G PCIE rev 0x01 pci4 at ppb3 bus 13 em1 at pci4 dev 0 function 0 Intel PRO/1000MT (82573E) rev 0x03: apic 4 int 16 (irq 11), address 00:30:48:91:3e:f0 ppb4 at pci0 dev 28 function 5 Intel 82801G PCIE rev 0x01 pci5 at ppb4 bus 14 em2 at pci5 dev 0 function 0 Intel PRO/1000MT (82573L) rev 0x00: apic 4 int 17 (irq 12), address 00:30:48:91:3e:f1 uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x01: apic 4 int 23 (irq 10) usb0 at uhci0: USB revision 1.0 uhub0 at usb0
Anyone lucky with pf rtable ?
Hi Misc@, I'm currently setup bgp router using openbgp. Routes learned from openbgpd are stored in routing table 1. So, I got this client from NET2, coming from the same interface that my ibgp peer coming from, and I want to pass client from NET2 going to regional exchange to QUAGGA router. I got no luck with: pass on $ext_if from $NET2 to any modulate state rtable 1, NET2 always use the default route via $ext_if when going to regional exchange I appreciate any input and suggestion regarding this. Thanks, Insan Praja SW as 65021 |---| |--| |QUAGGA |--| reg exchange |--| |---| |--| AS 65021| | ext_if1|-|ext_if2 | |-| OpenBSD gtw |NAT---UPSTREAM--INTERNET | |-| |---| | NET2 | |---| Non BGP clients
Re: Hard Drive Errors
Both look like a disk going bad. run a dd and read the entire contents of the disk to allow the disk to reallocate the bad sectors. Then run it again to see if it is clean; if it is you have a good chance that the drive will be fine. If not it is going to be dead soonish... On Thu, Jan 24, 2008 at 12:28:32PM -, Jonathan Steel wrote: Hi Everyone I would like to revisit a problem I was unable to solve about a year ago, an error messages I was getting about pciide temouts. Several times we have had hard drives that will display the following error and then the computer freezes: wd1(pciide1:1:0): timeout type: ata c_bcount: 65536 c_skip: 0 pciide1:1:0: bus-master DMA error: missing interrupt, status=0x21 I tried to find the source of this problem and could not. I'm willing to accept that this could be due to a dying hard drive, overheated hard drive, or any similar causes except for a loose cable. The second error is very similar but does not make the computer lock up. I have been having this problem on many computers and more frequently than the above error. It doesn't seem to have any direct side effects. But the other day I noticed the error on one of my computers and we were having speed troubles with one of the disks. So we tried to reboot and for some reason the system got stuck and the watchdog didnt reboot the machine. I have no idea if this problem is linked to the hard drive error. Anyways, here is the error: wd2(pciide1:1:0): timeout type: ata c_bcount: 49152 c_skip: 0 pciide1:1:0: bus-master DMA error: missing interrupt, status=0x61 wd2a: device timeout reading fsbn 176823520 of 176823520-0 (wd2 bn 176823583; cn 175420 tn 3 sn 34), retrying wd2: soft error (corrected) Does anybody know what this is and if its a bad thing? I have attached the dmesg from a computer the last two times it got the error. Thanks Jonathan Steel dmesg from 2008-01-22 OpenBSD 4.1 (GENERIC.esentire) #0: Wed Aug 15 20:55:55 UTC 2007 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.esentire cpu0: Intel(R) Core(TM)2 Quad CPU @ 2.40GHz (GenuineIntel 686-class) 2.40 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16, xTPR real mem = 3756482560 (3668440K) avail mem = 3445522432 (3364768K) using 4278 buffers containing 187949056 bytes (183544K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+ BIOS, date 08/25/07, BIOS32 rev. 0 @ 0xfd470, SMBIOS rev. 2.51 @ 0xdfeea000 (31 entries) bios0: Supermicro PDSMi pcibios0 at bios0: rev 2.1 @ 0xfd470/0xb90 pcibios0: PCI BIOS has 20 Interrupt Routing table entries pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82801GB LPC rev 0x00) pcibios0: PCI bus #15 is the last bus bios0: ROM list: 0xc/0xb000 0xcb000/0x1000 0xcc000/0x1000 0xcd000/0x1000 acpi at mainbus0 not configured ipmi at mainbus0 not configured mainbus0: Intel MP Specification (Version 1.4) cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 266 MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Core(TM)2 Quad CPU @ 2.40GHz (GenuineIntel 686-class) 2.40 GHz cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16, xTPR cpu2 at mainbus0: apid 2 (application processor) cpu2: Intel(R) Core(TM)2 Quad CPU @ 2.40GHz (GenuineIntel 686-class) 2.40 GHz cpu2: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16, xTPR cpu3 at mainbus0: apid 3 (application processor) cpu3: Intel(R) Core(TM)2 Quad CPU @ 2.40GHz (GenuineIntel 686-class) 2.40 GHz cpu3: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16, xTPR mainbus0: bus 0 is type PCI mainbus0: bus 9 is type PCI mainbus0: bus 10 is type PCI mainbus0: bus 13 is type PCI mainbus0: bus 14 is type PCI mainbus0: bus 15 is type PCI mainbus0: bus 16 is type ISA ioapic0 at mainbus0: apid 4 pa 0xfec0, version 20, 24 pins ioapic1 at mainbus0: apid 5 pa 0xfec1, version 20, 24 pins pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 Intel E7230 MCH rev 0xc0 ppb0 at pci0 dev 1 function 0 Intel E7230 PCIE rev 0xc0 pci1 at ppb0 bus 1 ppb1 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x01 pci2 at ppb1 bus 9 ppb2 at pci2 dev 0 function 0 Intel PCIE-PCIE rev 0x09 pci3 at ppb2 bus 10 em0 at pci3 dev 1 function 0 Intel PRO/1000GT (82541GI) rev 0x05: apic 5 int 0 (irq 11), address 00:0e:0c:c6:49:e0 Intel IOxAPIC rev 0x09 at pci2 dev 0 function 1 not configured ppb3 at pci0 dev 28 function 4 Intel 82801G PCIE rev 0x01 pci4 at ppb3 bus 13 em1
Re: Install OpenBSD from USB ?
On Thursday 24 January 2008 14:02:28 markus ploner wrote: just for the record: you could've just dd'ed the floppy42.fs to the usb device this has worked for me several times. markus Really ? I tried that but it didn't seem to work... -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments GnuPG public key: http://itsuki.fkraiem.org/gpgkey
Re: Install OpenBSD from USB ?
On Thu, Jan 24, 2008 at 07:16:17PM +0100, Firas Kraiem wrote: Really ? I tried that but it didn't seem to work... The only sure thing about usb boot is that it depends on your BIOS... -- Jussi Peltola
setup degraded array using raidframe
Hi misc! First of all i'm a newbie, so please excuse my lack of knowledge. Now, let's get to the point. I'm trying to setup a raid 1 degraded array using RAIDFRAME. I'm using a PII machine with hard-drives wd0,wd1. Step 1) a) recompiled the kernel with pseudo-device raid 4 option RAID_AUTOCONFIG b) recompiled userland. c) made a release. 4) made a bootable iso image from the release files and burned that image on a CDROM. Step 2) a) install base system with the new boot cd on wd0. b) fdisk -i wd1; disklabel -E wd1. After labeling, wd1 looks like this: # /dev/rwd1c: type: ESDI disk: ESDI/IDE disk label: FUJITSU MPB3032A flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 16 sectors/cylinder: 1008 cylinders: 4092 total sectors: 4124736 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # microseconds track-to-track seek: 0 # microseconds drivedata: 0 16 partitions: #size offset fstype [fsize bsize cpg] a: 131985 63 4.2BSD 2048 163841 b: 263088 132048swap c: 41247360 unused 0 0 d: 3729600 395136RAID I've created a new filesystem on wd1a and made it bootable. I've edited /etc/raid0.conf START array # numRow numCol numSpare 1 2 0 START disks /dev/wd0d /dev/wd1d START layout 128 1 1 1 START queue fifo 100 Create raid0: raidctl -C /etc/raid0.conf raid0 Initialize component labels: raidctl -I 100 raid0 Initialize the raid device: raidctl -vi raid0 Check the array was created: raidctl -vs raid0 Allow the system to use raid0 as root device: raidctl -A root raid0 I've labeled raid0. It looks like this # /dev/rraid0c: type: RAID disk: raid label: fictitious flags: bytes/sector: 512 sectors/track: 128 tracks/cylinder: 8 sectors/cylinder: 1024 cylinders: 3642 total sectors: 3729536 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # microseconds track-to-track seek: 0 # microseconds drivedata: 0 16 partitions: #size offset fstype [fsize bsize cpg] a: 37295360 4.2BSD 2048 163841 c: 37295360 unused 0 0 I've mounted /dev/raid0a, copied the instalation and modified /etc/fstab to mount /dev/raid0a as /. I've rebooted the system. Everything works. From dmesg: Kernelized RAIDframe activated raid0 at root: (RAID Level 1) total number of sectors is 3729536 (1821 MB) as root Step 3) Mirror everything to wd0. I've label wd0 so it looks like this. # /dev/rwd0c: type: ESDI disk: ESDI/IDE disk label: FUJITSU MPC3064A flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 15 sectors/cylinder: 945 cylinders: 13410 total sectors: 12672450 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # microseconds track-to-track seek: 0 # microseconds drivedata: 0 16 partitions: #size offset fstype [fsize bsize cpg] a: 131292 63 4.2BSD 2048 163841 b: 262710 131355swap c: 126724500 unused 0 0 d: 3729600 394065RAID raidctl -a /dev/wd0d raid0 - add raid partition as spare raidctl -vF component0 raid0 - force backup to spare raidctl -vP raid0 - recreate parity Output of raidctl -vs raid0 follows: Components: component0: spared /dev/wd1d: optimal Spares: /dev/wd0d: used_spare After that i've made the first disk bootable again. Step 4) Reboot After reboot. The output of raidctl -vs raid0 follows: raid0 Components: component0: failed /dev/wd1d: optimal No spares. After searching the list and google, I used /dev/wd0d as spare again and after that tried to reinitialize components labels ( raidctl -I 200 raid0 ) or/and reinitialize the raid device ( raidctl -vi raid0 ), tried the setup from scratch, but the outcome was still the same: component0: failed. |Any pointers or ideas to the problem would be highly apreciated. I've added the dmesg from the machine to the end of this mail. P.S.: I've followed the setup described in http://www.linux.com/articles/52713 OpenBSD 4.2 (GENERIC) #1: Sat Jul 28 14:56:37 EEST 2007 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel Pentium II (GenuineIntel 686-class, 512KB L2 cache) 399 MHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR real mem = 267997184 (255MB) avail mem = 251064320 (239MB) mainbus0 at root bios0 at
Re: building a kernel for net4801 from dmassage
In article [EMAIL PROTECTED], Lars Noodin wrote: 2) Under what circumstances (generally) would one encounter a situation where it would strongly desirable to have a custom kernel? When I happened to get an obsd kernel running on an 8M memory machine by stripping out network support, unneeded drivers, etc. Yes it needed custom tweaks to make it compile, and yes it worked. Would I do it again? Likely not. -Toby. -- [100~Plax]sb16i0A2172656B63616820636420726568746F6E61207473754A[dZ1!=b]salax
Vietnam Tourism Property Opportunities Conference and Exhibition 2008
Dear Our Value Customers, We would like to invite you to join VnTPO-2008 - Viet Nam Tourism Property Opportunities Conference and Exhibition that will be held on 17th-18th April, 2008 in Ho Chi Minh City, Viet Nam. VnTPO-2008 is the ONLY Event of its kind: This is the first international conference to introduce Vietnam's real estate tourism potentials and the hottest opportunities in hospitality, entertainment and leisure to investors. Over 10 provinces with the best tourism real estate potentials in Vietnam have confirmed their active participation: Hue, Da Nang, Quang Nam (Hoi An), Binh Dinh (Qui Nhon), Ninh Thuan (Phan Rang), Binh Thuan (Phan Thiet), Lam Dong (Da Lat), Dong Nai, Vung Tau, Ho Chi Minh City, Can Tho, An Giang (Long Xuyen), Kien Giang (Phu Quoc), Tien Giang (My Tho). Over 50 major real estate projects of resorts, hotels, villas, golf, entertainment leisure are expected to be exhibited at this special Event. VnTPO-2008 is a chance to hear candid insights from major market specialists and investors with extensive experience in the industry in Vietnam. With a unique and unparalleled line up of speakers, the conference will help investors examine all the latest trends in the Vietnamese tourism and property markets and understand the best approach to investment, in the country. The conference promises to include many tourism and property investment opportunities, to investors, that promise to yield high ROI. Kindly visit our website: www.VnTPO.vn http://www.vntpo.vn for more details. http://www.vntpo.vn Due to the limit number of participants, please register now! Sincerely Yours, Nguyen Quang Huy VNTPO Coodinator Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Mobile: +84-(0)-902 655 100 mailto:[EMAIL PROTECTED] Addr: Suite 607, Giay Viet Plaza, 180-182 Ly Chinh Thang Str., Dist.3, HCMC., VN Tel: +84-8-2905520 +84-8-5262073 ; Fax: +84-8-5262074 Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Website: www.VnTPO.vn http://www.vntpo.vn/ -- Thank for your time and hope you get helpful things with this email. If you do not want to receive this message, please click http://congdongdulich.com/phplist/?p=unsubscribeuid=7423214a393b13ef5f6c49b317bcd34b -- Powered by PHPlist, www.phplist.com --
Re: brute force voip QoS
1. Your topology: On the inside lan, are you hosting clients or service? So is this an outside-to-inside -or- an inside-to-outside problem? 2. altq queue-type priq effectively does what your asking -- if voip traffic is allocated to priority 6, then nothing flows from queues 5, 4, 3, 2, and 1 while the q6 bucket is wet. I run altq priq on my voip/sip/asterisk setups with priority 7 being tos, 6 being voip, 5 being vpn and then general traffic at 1 and bulk stuff at 0. My VOIP is NEVER affected by anything else going on and works flawlessly. I, therefore, don't understand why you'd need to or want to go to further extreme configurations. As for some of the other stuff raised, use a table table VoipSrvrProviders const \ {did.voicenetwork.ca. stun.voicenetwork.ca.} May or may not need the static-port modifier nat log on outside inet proto udp \ from SipClients to VoipSrvrProviders \ - (outside:0) static-port use altq priq altq on outisde priq bandwidth 825Kb queue { Q0, Q1, Q4, Q5VPN, Q6VOIP, Q7 } queue Q7 priority 7 queue Q6VOIP priority 6 queue Q5VPN priority 5 queue Q4 priority 4 queue Q1 priority 1 priq(default) queue Q0 priority 0 If your case is an outside-to-inside scenario, then reverse the directions, i.e. use either an inside-edge nat or a rdr instead. /Scott -Original Message- From: Jeff Santos [EMAIL PROTECTED] To: misc@openbsd.org Subject: brute force voip QoS Date: Wed, 23 Jan 2008 09:28:09 -0500 Delivered-To: [EMAIL PROTECTED] Hi, I would like to know if this is possible and how, regardless of what happenned with other applications. I would like to setup PF so that, whenever an initial voip flow was detetcted, all other non relevant traffic would be blocked, and normal packet flow being restored only after some voip idleness be detected. Can it be done? Can someone give some ideas of how? Thanks in advance. Best regards, Jeff. -- Want an e-mail address like mine? Get a free e-mail account today at www.mail.com!
Re: USB WLAN dongles
Pau Amaro-Seoane ha scritto: what do you mean? I have to increase the gain of the reception on my laptop. Or do you mean I can use the built-in antenna of a router to do that? If so, how? I do have an old wifi router If you have a fonera, you can use it like a repeater with an selfmade Twin Quad antenna, he have a 12 dbi gain. With this antenna i can going at 3.2 Km with goods ionospherics conditions... I tell you my experiment, in a modified firmware, dd-wrt. You can set soo much parameters, like mW, dbi to be used... It's a good firmware as far i know... hasta luego
pgt0: timeout waiting for management packet response to 0x17000013
On rare occasion, I receive the following on the console and need to ifconfig the interface down and up again to restore normal operations. Any recommends on a way to address this? pgt0: timeout waiting for management packet response to 0x1713 pgt0: state dump: control 0x20004400 interrupt 0x8000 pgt0: state dump: driver curfrag[] pgt0: 0x1c2f 0x22ab 0x0008 0x 0x0094 0x0085 pgt0: state dump: device curfrag[] pgt0: 0x1c27 0x22a9 0x 0x 0x0090 0x0084 Thanks, Daniel
OT: Can an SSH alternative to WebDav be use on OpenBSD
Hi, I need some possible suggestions if I may asked to not setup, or have to setup WebDav on OpenBSD to allow users to do their web folder stuff. It can be setup with ftp for example to allow them to map a folder in their network place on XP for example, but then they can't do the stupid save as and just for that, they want to use the WebDav. However, then it need to allow write access via http and the full load of issues that could with that when combine with php, etc. I only allow ssh access and in very special case, I had accepted ftp from specific locations control via PF, but because of the stupid save as, they are screaming for WebDav, or mod_dav, witch I really would like to avoid totally. I just don't see the benefit worth the risk required to allow it. May be I am wrong and someone could in light me, witch I would very much appreciate, but again, may be there is an alternative using SSH that I do not know. I provided WinSCP years ago and it sure works well, plus I can control access via ssh with PF too, witch I would loose introducing WebDav. I hate all these users that can only work using a GUI like interface all the time and fell they need everything to be done via http. Anyone can provide me some ideas, or alternative here as I am running out of them and being view as the asshole that always refuse flexibility for security is fine, but may be there is something I can do to keep it safe and give the winers a bone. I hate the Microsoft centric bias users that care less for security, but would also be the first to scream should there be compromise too. Any suggestions here? Sorry for the somewhat off topic question, but I need suggestion if there is any. Best, Daniel.
Dell PE1950 III - Perc 6i
Hi, Just got this machine from Dell. Tried to install OpenBSD 4.2-current (23-01-2008) but it dit not recognize the raid1 disk. Any idea when Perc 6i will be added? --- Thanks JW
Re: Dell PE1950 III - Perc 6i
I added the pci ids but it obviously didn't work. Can you send me the dmesg? On Fri, Jan 25, 2008 at 12:18:36AM +0100, J.W. Zondag wrote: Hi, Just got this machine from Dell. Tried to install OpenBSD 4.2-current (23-01-2008) but it dit not recognize the raid1 disk. Any idea when Perc 6i will be added? --- Thanks JW
Re: Can an SSH alternative to WebDav be use on OpenBSD
Thanks Thomas,' But that solution sis to be install on Windows server, witch I have kill all years ago and I am not going back. http://www.webdrive.com/products/webdrive/sysreq.html I sure appreciate your suggestion and time however. Thanks Daniel Thomas Althoff wrote: www.webdrive.com WebDrive has built-in support for the industry standard SSL protocol. When used in conjunction with secure WebDAV, FTP, FTPS, or SFTP servers, WebDrive will open an encrypted tunnel between the client computer and the remote server; giving you secure transmission of critical data over the Internet. WebDrive can also be used as an alternative to a corporate VPN. Install the WebDrive client and an SSL enabled server, and WebDrive can act as the VPN for your company; an efficient alternative to an expensive VPN and non-secure FTP client connections -Thomas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Ouellet Sent: den 24 januari 2008 23:59 To: misc@openbsd.org Subject: OT: Can an SSH alternative to WebDav be use on OpenBSD Hi, I need some possible suggestions if I may asked to not setup, or have to setup WebDav on OpenBSD to allow users to do their web folder stuff. It can be setup with ftp for example to allow them to map a folder in their network place on XP for example, but then they can't do the stupid save as and just for that, they want to use the WebDav. However, then it need to allow write access via http and the full load of issues that could with that when combine with php, etc. I only allow ssh access and in very special case, I had accepted ftp from specific locations control via PF, but because of the stupid save as, they are screaming for WebDav, or mod_dav, witch I really would like to avoid totally. I just don't see the benefit worth the risk required to allow it. May be I am wrong and someone could in light me, witch I would very much appreciate, but again, may be there is an alternative using SSH that I do not know. I provided WinSCP years ago and it sure works well, plus I can control access via ssh with PF too, witch I would loose introducing WebDav. I hate all these users that can only work using a GUI like interface all the time and fell they need everything to be done via http. Anyone can provide me some ideas, or alternative here as I am running out of them and being view as the asshole that always refuse flexibility for security is fine, but may be there is something I can do to keep it safe and give the winers a bone. I hate the Microsoft centric bias users that care less for security, but would also be the first to scream should there be compromise too. Any suggestions here? Sorry for the somewhat off topic question, but I need suggestion if there is any. Best, Daniel.
Re: Can an SSH alternative to WebDav be use on OpenBSD
Daniel Ouellet P=P0P?P8QP0: Thanks Thomas,' But that solution sis to be install on Windows server, witch I have kill all years ago and I am not going back. http://www.webdrive.com/products/webdrive/sysreq.html I sure appreciate your suggestion and time however. Thanks Daniel Thomas Althoff wrote: www.webdrive.com WebDrive has built-in support for the industry standard SSL protocol. When used in conjunction with secure WebDAV, FTP, FTPS, or SFTP servers, WebDrive will open an encrypted tunnel between the client computer and the remote server; giving you secure transmission of critical data over the Internet. WebDrive can also be used as an alternative to a corporate VPN. Install the WebDrive client and an SSL enabled server, and WebDrive can act as the VPN for your company; an efficient alternative to an expensive VPN and non-secure FTP client connections -Thomas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Ouellet Sent: den 24 januari 2008 23:59 To: misc@openbsd.org Subject: OT: Can an SSH alternative to WebDav be use on OpenBSD Hi, I need some possible suggestions if I may asked to not setup, or have to setup WebDav on OpenBSD to allow users to do their web folder stuff. It can be setup with ftp for example to allow them to map a folder in their network place on XP for example, but then they can't do the stupid save as and just for that, they want to use the WebDav. However, then it need to allow write access via http and the full load of issues that could with that when combine with php, etc. I only allow ssh access and in very special case, I had accepted ftp from specific locations control via PF, but because of the stupid save as, they are screaming for WebDav, or mod_dav, witch I really would like to avoid totally. I just don't see the benefit worth the risk required to allow it. May be I am wrong and someone could in light me, witch I would very much appreciate, but again, may be there is an alternative using SSH that I do not know. I provided WinSCP years ago and it sure works well, plus I can control access via ssh with PF too, witch I would loose introducing WebDav. I hate all these users that can only work using a GUI like interface all the time and fell they need everything to be done via http. Anyone can provide me some ideas, or alternative here as I am running out of them and being view as the asshole that always refuse flexibility for security is fine, but may be there is something I can do to keep it safe and give the winers a bone. I hate the Microsoft centric bias users that care less for security, but would also be the first to scream should there be compromise too. Any suggestions here? Sorry for the somewhat off topic question, but I need suggestion if there is any. Best, Daniel. I really didn't fully understand you - do you want or not to allow FTP acces, and why clients are not able to save as when using it? Do you mean that they need it mapped as a network drive? If so, they can use something like this: http://www.acs.uwosh.edu/novell/netdrive.htm to map the FTP account you provide to their own PC as a drive. Then they can use whatever they want to read/edit/write stuff. Sorry for the fuzz if i've misunderstood you. Kind regards, Doichin
Re: OT: Can an SSH alternative to WebDav be use on OpenBSD
On Thu, Jan 24, 2008 at 05:58:57PM -0500, Daniel Ouellet wrote: .. I only allow ssh access and in very special case, I had accepted ftp from If you're considering a commercial product, http://www.sftpdrive.com If the product performs as it says, you shouldn't need to change anything on the web server.
Re: Can an SSH alternative to WebDav be use on OpenBSD
NetOne - Doichin Dokov wrote: I really didn't fully understand you - do you want or not to allow FTP acces, and why clients are not able to save as when using it? Do you mean that they need it mapped as a network drive? If so, they can use something like this: http://www.acs.uwosh.edu/novell/netdrive.htm to map the FTP account you provide to their own PC as a drive. Then they can use whatever they want to read/edit/write stuff. They have ftp access now from very limited and restricted locations only. It's also configure in the My Network Places of XP, but they can't from that work live on the server for example, or do save as from inside applications as this ftp mapping do not map to drive if you want. This might work, but I can't download as it does required an account. Might work. Sorry for the fuzz if i've misunderstood you. Kind regards, Doichin
Re: OT: Can an SSH alternative to WebDav be use on OpenBSD
Andrew Ruscica wrote: On Thu, Jan 24, 2008 at 05:58:57PM -0500, Daniel Ouellet wrote: .. I only allow ssh access and in very special case, I had accepted ftp from If you're considering a commercial product, http://www.sftpdrive.com If the product performs as it says, you shouldn't need to change anything on the web server. Thanks, I appreciate your suggestions, but I will stick with solutions that I could see the code and that are open source. I got a few suggestions that might make sense so far. Thanks for your time in offering solutions however. Best, Daniel