Re: usbdevs umsm.c kernel modifications
Yes, this works with ppp mode, nevertheless this modem has a newer interface cdce0 that's not recognized with this modification. Original kernel recognize this but not the cuau interfaces, therefore it's useless. On May 5, 2015 6:27 AM, "Martin Pieuchot" wrote: > On 02/05/15(Sat) 12:23, Cristián Edwards wrote: > > Hello, > > > > In order for OpenBSD 5.7 to recognize a Huawei 609 mini PCIe Modem , I > did > > these kernel modifications: > > > > Added to usbdevs this line: > > > > product HUAWEI MU6090x1573 HUAWEI MU 609 > > > > # make usbdevs.h > > Then added to umsm.c this line: > > > > {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_MU609 }, > DEV_TRUINSTALL}, > > > > I can connect to the modem now: > > # cu /dev/cuaU0 > > Connected to /dev/cuaU0 (speed 9600) > > AT > > OK > > > > I wish that cdce driver would work as well, but it didn't with these > > modifications. > > > > Perhaps kernel developers could add a change like this to the kernel. > > Something like that? > > Index: umsm.c > === > RCS file: /cvs/src/sys/dev/usb/umsm.c,v > retrieving revision 1.102 > diff -u -p -r1.102 umsm.c > --- umsm.c 14 Mar 2015 03:38:50 - 1.102 > +++ umsm.c 5 May 2015 09:22:52 - > @@ -141,6 +141,7 @@ static const struct umsm_type umsm_devs[ > {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_Mobile }, DEV_HUAWEI}, > {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_K3765_INIT }, > DEV_UMASS5}, > {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_K3765 }, 0}, > + {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_ME609 }, > DEV_TRUINSTALL}, > {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_K4510 }, DEV_UMASS5}, > {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E1750 }, DEV_UMASS5}, > {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E1752 }, 0}, > Index: usbdevs > === > RCS file: /cvs/src/sys/dev/usb/usbdevs,v > retrieving revision 1.648 > diff -u -p -r1.648 usbdevs > --- usbdevs 26 Apr 2015 11:47:13 - 1.648 > +++ usbdevs 5 May 2015 09:21:45 - > @@ -2177,6 +2177,7 @@ product HUAWEI K4510 0x14c5 HUAWEI Mob > product HUAWEI E353_INIT 0x14fe HUAWEI Mobile E353 Initial > product HUAWEI E392_INIT 0x1505 HUAWEI Mobile E392 Initial > product HUAWEI K3765_INIT 0x1520 HUAWEI Mobile K3765 Initial > +product HUAWEI ME609 0x1573 HUAWEI Mobile ME906 > product HUAWEI E173S 0x1c05 HUAWEI Mobile E173s > product HUAWEI E173S_INIT 0x1c0b HUAWEI Mobile E173s Initial > product HUAWEI E3030x1f01 HUAWEI Mobile E303
Re: usbdevs umsm.c kernel modifications
Model is MU609 On May 5, 2015 6:27 AM, "Martin Pieuchot" wrote: > On 02/05/15(Sat) 12:23, Cristián Edwards wrote: > > Hello, > > > > In order for OpenBSD 5.7 to recognize a Huawei 609 mini PCIe Modem , I > did > > these kernel modifications: > > > > Added to usbdevs this line: > > > > product HUAWEI MU6090x1573 HUAWEI MU 609 > > > > # make usbdevs.h > > Then added to umsm.c this line: > > > > {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_MU609 }, > DEV_TRUINSTALL}, > > > > I can connect to the modem now: > > # cu /dev/cuaU0 > > Connected to /dev/cuaU0 (speed 9600) > > AT > > OK > > > > I wish that cdce driver would work as well, but it didn't with these > > modifications. > > > > Perhaps kernel developers could add a change like this to the kernel. > > Something like that? > > Index: umsm.c > === > RCS file: /cvs/src/sys/dev/usb/umsm.c,v > retrieving revision 1.102 > diff -u -p -r1.102 umsm.c > --- umsm.c 14 Mar 2015 03:38:50 - 1.102 > +++ umsm.c 5 May 2015 09:22:52 - > @@ -141,6 +141,7 @@ static const struct umsm_type umsm_devs[ > {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_Mobile }, DEV_HUAWEI}, > {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_K3765_INIT }, > DEV_UMASS5}, > {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_K3765 }, 0}, > + {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_ME609 }, > DEV_TRUINSTALL}, > {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_K4510 }, DEV_UMASS5}, > {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E1750 }, DEV_UMASS5}, > {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E1752 }, 0}, > Index: usbdevs > === > RCS file: /cvs/src/sys/dev/usb/usbdevs,v > retrieving revision 1.648 > diff -u -p -r1.648 usbdevs > --- usbdevs 26 Apr 2015 11:47:13 - 1.648 > +++ usbdevs 5 May 2015 09:21:45 - > @@ -2177,6 +2177,7 @@ product HUAWEI K4510 0x14c5 HUAWEI Mob > product HUAWEI E353_INIT 0x14fe HUAWEI Mobile E353 Initial > product HUAWEI E392_INIT 0x1505 HUAWEI Mobile E392 Initial > product HUAWEI K3765_INIT 0x1520 HUAWEI Mobile K3765 Initial > +product HUAWEI ME609 0x1573 HUAWEI Mobile ME906 > product HUAWEI E173S 0x1c05 HUAWEI Mobile E173s > product HUAWEI E173S_INIT 0x1c0b HUAWEI Mobile E173s Initial > product HUAWEI E3030x1f01 HUAWEI Mobile E303
usbdevs umsm.c kernel modifications
Hello, In order for OpenBSD 5.7 to recognize a Huawei 609 mini PCIe Modem , I did these kernel modifications: Added to usbdevs this line: product HUAWEI MU6090x1573 HUAWEI MU 609 # make usbdevs.h Then added to umsm.c this line: {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_MU609 }, DEV_TRUINSTALL}, I can connect to the modem now: # cu /dev/cuaU0 Connected to /dev/cuaU0 (speed 9600) AT OK I wish that cdce driver would work as well, but it didn't with these modifications. Perhaps kernel developers could add a change like this to the kernel.
Driver Request: Huawei MU609 Cellular Modem
Hello, I've noticed that there is no support for MU609, it would be great if a nice developer could add support for this card. Dmesg: https://gist.github.com/crised/21ac828798fa45d855bf Lsusb descriptor: https://gist.github.com/crised/a090e8adb342cbc03314 Linux driver: http://www.cs.fsu.edu/~baker/devices/lxr/http/source/linux/drivers/usb/serial/option.c Regards, Cristian
Re: cdce0 in ifconfig
Problem is that only the ugen driver is present... so I think there is no chance of speaking with the modem. Will read the link thoruoughly On Wed, Apr 29, 2015 at 4:27 PM, Zé Loff wrote: > On Wed, Apr 29, 2015 at 12:34:12PM -0300, Cristián Edwards wrote: > > Hello, > > > > How to configure cdce0 device in OpenBSD? > > > > Dmesg: > > cdce0 at uhub1 port 1 configuration 2 interface 0 "Huawei Technologies > > HUAWEI Mobile" rev 2.00/0.00 addr 2 cdce0: address 00:a0:c6:60:85:70 > > ugen0 at uhub1 port 1 configuration 2 "Huawei Technologies HUAWEI Mobile" > > rev 2.00/0.00 addr 2 > > cdce0: flags=28843 mtu > > 1500lladdr 00:a0:c6:60:85:70priority: 0 > > > > ifconfig: > > cdce0: flags=28843 mtu > > 1500 > >lladdr 00:a0:c6:60:85:70 > >priority: 0 > > > > > > Hardware: > > > http://consumer.huawei.com/en/solutions/m2m-solutions/products/tech-specs/mu6 09-en.htm > > > > Regards, > > > > Cristian > > > > You probably need to bring up the modem first. See this message (and > rest of thread) as well as the thread it quotes: > > http://marc.info/?l=openbsd-misc&m=142213746124451&w=2 > > Cheers > Zé > > --
Re: cdce0 in ifconfig
On older modems a configuration with these similar values worked properly: http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man4/umsm.4?query=umsm &sec=4 On Wed, Apr 29, 2015 at 1:02 PM, Fred wrote: > On 04/29/15 16:34, Cristián Edwards wrote: > >> Hello, >> >> How to configure cdce0 device in OpenBSD? >> >> Dmesg: >> cdce0 at uhub1 port 1 configuration 2 interface 0 "Huawei Technologies >> HUAWEI Mobile" rev 2.00/0.00 addr 2 cdce0: address 00:a0:c6:60:85:70 >> ugen0 at uhub1 port 1 configuration 2 "Huawei Technologies HUAWEI Mobile" >> rev 2.00/0.00 addr 2 >> cdce0: flags=28843 mtu >> 1500lladdr 00:a0:c6:60:85:70priority: 0 >> >> ifconfig: >> cdce0: flags=28843 mtu >> 1500 >> lladdr 00:a0:c6:60:85:70 >> priority: 0 >> >> >> Hardware: >> >> http://consumer.huawei.com/en/solutions/m2m-solutions/products/tech-specs/mu6 09-en.htm >> >> Regards, >> >> Cristian >> >> > something like: > > ifconfig cdce0 inet 192.168.0.1 255.255.255.0 > > should do the trick. > > hth > > Fred
cdce0 in ifconfig
Hello, How to configure cdce0 device in OpenBSD? Dmesg: cdce0 at uhub1 port 1 configuration 2 interface 0 "Huawei Technologies HUAWEI Mobile" rev 2.00/0.00 addr 2 cdce0: address 00:a0:c6:60:85:70 ugen0 at uhub1 port 1 configuration 2 "Huawei Technologies HUAWEI Mobile" rev 2.00/0.00 addr 2 cdce0: flags=28843 mtu 1500lladdr 00:a0:c6:60:85:70priority: 0 ifconfig: cdce0: flags=28843 mtu 1500 lladdr 00:a0:c6:60:85:70 priority: 0 Hardware: http://consumer.huawei.com/en/solutions/m2m-solutions/products/tech-specs/mu609-en.htm Regards, Cristian
URL/IP Blacklists PF Tables or SquidGuard
Hello, If I want to introduce URL Blacklist to my edge firewall, Should I use SquidGuard or just pf tables? The amount of domains is in the number of millions, like 1.5 million entries. Blacklists that I've found: http://www.squidguard.org/blacklists.html In Addition, I *believe* PF only handles IP values, how will it manage domain names coming from these lists? Will it just resolve the domain names at the time of applying the rules? Best, Cristian
Dial Cellular connection on boot amd64
Hello, I have a umsm modem, that connects to the internet with pppd, need to always dial up the connection on boot. Added a simple hostname.if, like this: # cat /etc/hostname.ppp0 dhcp !pppd call ac875 This approach does work, but it feels weird because it does not really uses dhcp. Also I get this on the start: "starting network ppp0: no link ... sleeping" How this should be achieved correctly? Version: 5.6 Regards, Cristian