Re: OpenBSD as a router for my ADSL ?

2005-11-13 Thread Stuart Henderson
Thanks, I've just looked again at ueagle(4), it looks like the device 
appears as ugen before the firmware is programmed into it. If you 
didn't install it (into /etc/firmware), you need to do so - the files 
are at .


If that doesn't help, I think you also need to send output from 
'usbdevs -v'.


--On 13 November 2005 17:18 +0400, Bruno Carnazzi wrote:


OpenBSD 3.8 (GENERIC) #138: Sat Sep 10 15:41:37 MDT 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium II ("GenuineIntel" 686-class, 512KB L2 cache) 233
MHz cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MM
X,FXSR real mem  = 33071104 (32296K)
avail mem = 22192128 (21672K)
using 429 buffers containing 1757184 bytes (1716K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(63) BIOS, date 09/07/98, BIOS32 rev. 0 @
0xfc2c0 apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 100%
apm0: AC on, battery charge high, estimated 3:26 hours
apm0: flags 20102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf01c0/96 (4 entries)
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371FB ISA" rev
0x00) pcibios0: PCI bus #2 is the last bus
WARNING: can't reserve area for I/O APIC.
WARNING: can't reserve area for Local APIC.
bios0: ROM list: 0xc/0xc000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX" rev 0x02
cbb0 at pci0 dev 2 function 0 "Toshiba ToPIC97 CardBus" rev 0x05: irq
11 cbb1 at pci0 dev 2 function 1 "Toshiba ToPIC97 CardBus" rev 0x05:
irq 11 vga1 at pci0 dev 4 function 0 "Chips and Technologies 6"
rev 0xc6 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA, 4126MB, 8452080 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0:  SCSI0 5/cdrom
removable cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
"Intel 82371AB Power" rev 0x02 at pci0 dev 7 function 3 not configured
"Toshiba Fast Infrared Type O" rev 0x23 at pci0 dev 10 function 0 not
configured cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 1 device 0 cacheline 0x0, lattimer 0x0
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 2 device 0 cacheline 0x0, lattimer 0x0
pcmcia1 at cardslot1
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: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
sb0 at isa0 port 0x220/24 irq 5 drq 1: dsp v3.01
midi0 at sb0: 
audio0 at sb0
opl0 at sb0: model OPL3
midi1 at opl0: 
wss0 at isa0 port 0x530/8 irq 10 drq 0: CS4231 or AD1845 (vers 4)
audio1 at wss0
pcppi0 at isa0 port 0x61
midi2 at pcppi0: 
spkr0 at pcppi0
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask eb4d netmask eb4d ttymask fbcf
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
ne3 at pcmcia0 function 0 "PCMCIA, FastEthernet, V" port 0xa300/32
ne3: address 00:10:60:f6:71:29
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
ugen0 at uhub0 port 1
ugen0: Analog Devices Eagle II, rev 1.10/50.00, addr 2
ugen0: at uhub0 port 1 (addr 2) disconnected
ugen0 detached
ugen0 at uhub0 port 1
ugen0: Analog Devices Eagle II, rev 1.10/50.00, addr 2
ugen0: at uhub0 port 1 (addr 2) disconnected
ugen0 detached




Re: OpenBSD as a router for my ADSL ?

2005-11-13 Thread Jonathan Gray
On Sun, Nov 13, 2005 at 12:52:32PM +0300, Bruno Carnazzi wrote:
>Hi all,
> 
> My all-in-one router/switch/ADSL modem/AP just crashed (power
> failure). Damned. Back to my USB modem :( I've also set an OpenBSD 3.8
> box at home, on a Toshiba Laptop (4000CDS, PII-233MHz, 32Mo RAM, 4Go
> IDE HD). Let's rethink our Internet acces :)
> 
> Currenlty, I just have 1 NIC (PCMCIA, works well), but I'll buy a
> second. I'd like to make this OBSD box my filtering router/NAT for my
> Internet access. Here's the scenarii :
> 
>   * Try to use this SAGEM [EMAIL PROTECTED] 800 E2L. Uhm... OBSD recognized 
> it as
> ugen0 (ueagle seems not to work). Let's admit that it worked : can my
> CPU sustained the PPPoA at 2Mbps ? I've read it generates an heavy CPU
> load (maybe because of the USB port). Also, it's an USB 1.0 port. I
> don't think this way is a good idea :)

ueagle seems to not be enabled in the default kernel for some
reason.  You will have to build a custom kernel with it uncommented.

Additionally you will have to install the firmware in the locations
the man page talks about.
http://www.openbsd.org/cgi-bin/man.cgi?query=ueagle&apropos=0&sektion=0&manpath=OpenBSD+Current&arch=i386&format=html

If it still doesn't work after that report back with the output
of usbdevs -v.



Re: OpenBSD as a router for my ADSL ?

2005-11-13 Thread Bruno Carnazzi
OpenBSD 3.8 (GENERIC) #138: Sat Sep 10 15:41:37 MDT 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium II ("GenuineIntel" 686-class, 512KB L2 cache) 233 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
real mem  = 33071104 (32296K)
avail mem = 22192128 (21672K)
using 429 buffers containing 1757184 bytes (1716K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(63) BIOS, date 09/07/98, BIOS32 rev. 0 @ 0xfc2c0
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 100%
apm0: AC on, battery charge high, estimated 3:26 hours
apm0: flags 20102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf01c0/96 (4 entries)
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #2 is the last bus
WARNING: can't reserve area for I/O APIC.
WARNING: can't reserve area for Local APIC.
bios0: ROM list: 0xc/0xc000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX" rev 0x02
cbb0 at pci0 dev 2 function 0 "Toshiba ToPIC97 CardBus" rev 0x05: irq 11
cbb1 at pci0 dev 2 function 1 "Toshiba ToPIC97 CardBus" rev 0x05: irq 11
vga1 at pci0 dev 4 function 0 "Chips and Technologies 6" rev 0xc6
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA, 4126MB, 8452080 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0:  SCSI0 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
"Intel 82371AB Power" rev 0x02 at pci0 dev 7 function 3 not configured
"Toshiba Fast Infrared Type O" rev 0x23 at pci0 dev 10 function 0 not configured
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 1 device 0 cacheline 0x0, lattimer 0x0
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 2 device 0 cacheline 0x0, lattimer 0x0
pcmcia1 at cardslot1
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: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
sb0 at isa0 port 0x220/24 irq 5 drq 1: dsp v3.01
midi0 at sb0: 
audio0 at sb0
opl0 at sb0: model OPL3
midi1 at opl0: 
wss0 at isa0 port 0x530/8 irq 10 drq 0: CS4231 or AD1845 (vers 4)
audio1 at wss0
pcppi0 at isa0 port 0x61
midi2 at pcppi0: 
spkr0 at pcppi0
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask eb4d netmask eb4d ttymask fbcf
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
ne3 at pcmcia0 function 0 "PCMCIA, FastEthernet, V" port 0xa300/32
ne3: address 00:10:60:f6:71:29
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
ugen0 at uhub0 port 1
ugen0: Analog Devices Eagle II, rev 1.10/50.00, addr 2
ugen0: at uhub0 port 1 (addr 2) disconnected
ugen0 detached
ugen0 at uhub0 port 1
ugen0: Analog Devices Eagle II, rev 1.10/50.00, addr 2
ugen0: at uhub0 port 1 (addr 2) disconnected
ugen0 detached

On 11/13/05, Stuart Henderson <[EMAIL PROTECTED]> wrote:
> --On 13 November 2005 12:52 +0300, Bruno Carnazzi wrote:
>
> >   * Try to use this SAGEM [EMAIL PROTECTED] 800 E2L. Uhm... OBSD recognized 
> > it as
> > ugen0 (ueagle seems not to work).
>
> ugen is used where a specific driver can't be found. Send your dmesg.



Re: OpenBSD as a router for my ADSL ?

2005-11-13 Thread Stuart Henderson

--On 13 November 2005 12:52 +0300, Bruno Carnazzi wrote:


  * Try to use this SAGEM [EMAIL PROTECTED] 800 E2L. Uhm... OBSD recognized it 
as
ugen0 (ueagle seems not to work).


ugen is used where a specific driver can't be found. Send your dmesg.



Re: OpenBSD as a router for my ADSL ?

2005-11-13 Thread Jasper Lievisse Adriaanse
On Sun, 13 Nov 2005 12:52:32 +0300
Bruno Carnazzi <[EMAIL PROTECTED]> wrote:

[...]
> 
>   * Try to use this SAGEM [EMAIL PROTECTED] 800 E2L. Uhm... OBSD recognized 
> it as
> ugen0 (ueagle seems not to work).
[..]
 
Read "man 4 ugen" and you would've noticed that your modem will probaly work
with the tun(4) driver, like my USB modem.

> Best regards,
> 
> Bruno.
> 
Cheers,
Jasper


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



OpenBSD as a router for my ADSL ?

2005-11-13 Thread Bruno Carnazzi
   Hi all,

My all-in-one router/switch/ADSL modem/AP just crashed (power
failure). Damned. Back to my USB modem :( I've also set an OpenBSD 3.8
box at home, on a Toshiba Laptop (4000CDS, PII-233MHz, 32Mo RAM, 4Go
IDE HD). Let's rethink our Internet acces :)

Currenlty, I just have 1 NIC (PCMCIA, works well), but I'll buy a
second. I'd like to make this OBSD box my filtering router/NAT for my
Internet access. Here's the scenarii :

  * Try to use this SAGEM [EMAIL PROTECTED] 800 E2L. Uhm... OBSD recognized it 
as
ugen0 (ueagle seems not to work). Let's admit that it worked : can my
CPU sustained the PPPoA at 2Mbps ? I've read it generates an heavy CPU
load (maybe because of the USB port). Also, it's an USB 1.0 port. I
don't think this way is a good idea :)

  * Buy an ADSL modem and configure it as a bridge (and buy a second
NIC for my OBSD box). This way, I've got a public IP on the router
through PPPoE. As I don't use USB, will my CPU handle correctly the
traffic ? Uhm... Seems good.

  * Buy an ADSL router. This way, public IP is on the router, and I
have to create a pseudo-public LAN between my ADSL router and my OBSD
box. Latter, I'd like to build some IPSec tunnel from OBSD. I think
this way of doing will bother me with IPSec, no ?

   * Go live in the mountains, and keep far from technology... Uhm,
seems good too :)

Thank you for your advices,

Best regards,

Bruno.