GET How-To: Connect Pfsense with Huawei E392 Modem to Yota Provider / Sudo Null IT News FREE

Introduction

This post was written because there is little information on the Internet and it is illogical, it was necessary to collect line aside line from various sources. I will try to bring everything together in that point. It is assumed that you already let first knowledge about pfSence assembly and you can go to the console.
System version:

          [2.0.3-RELEASE][admin@pfsense.office staff]/antecedent(1): uname -a FreeBSD pfsense.office 8.1-Publish-p13 FreeBSD 8.1-RELEASE-p13 #0: Fri Apr 12 10:47:01 EDT 2013     antecedent@snapshots-8_1-i386.builders.pfsense.org:/usr/obj.pfSense/usr/pfSensesrc/src/sys/pfSense_SMP.8  i386                  
Why is Huawey E392?

This modem was chosen collectable to the presence of stable reception in places where ordinary modems do not catch. Likewise, you give the axe tie an external antenna to it and take it out to the external wall of the edifice.
The router was already available, it had been working successfully for a endless clock time, and I did non want to deepen additional equipment due to the change of provider. Buying a new Yota router is undesirable, because all sorts of goodies, such as block sites and plastic the channel in it are not available.

Putting the modem in modem mode

By nonpayment, the modem is in usbdisk + CD-ROM mode for installation drivers under Windows. Drivers are right it. This mode is of little pursuit to us; we need to transfer IT to modem mode.
We check that the modem was seen in the organisation with the dmesg program line . There should be such lines:

          da3: Attempt to query device size failed: NOT READY, Average not present Root mount waiting for: usbus4 ugen4.3:                          at usbus4 umass1:                              on usbus4 umass1: Small computer system interface terminated Bulge-Only; quirks = 0x0000 Root mount wait for: usbus4 umass1:1:1:-1: Attached to scbus1 Trying to climb up steady down from ufs:/dev/ad6s1a Cautionary: / was not properly dismounted (probe0:umass-sim1:1:0:0): TEST UNIT Waiting. CDB: 0 0 0 0 0 0 (probe0:umass-sim1:1:0:0): River Cam status: SCSI Status Error (probe0:umass-sim1:1:0:0): SCSI position: Check Condition (probe0:umass-sim1:1:0:0): SCSI signified: NOT READY asc:3a,0 (Medium non present) cd0 at umass-sim1 bus 1 scbus1 target 0 lun 0 cd0:                                  Removable CD-ROM SCSI-0 device cd0: 40.000MB/s transfers cd0: Attempt to query twist size failed: NOT READY, Medium not present                                                            

We check which idVendor and idProduct are installed away default with the usbconfig -d 4.3 dump_device_desc command , we deal the value of the -d parameter from the outturn of dmesg ( ugen4.3: at usbus4):

              ugen4.3:                                  at usbus4, cfg=0 md=Legion spd=HIGH (480Mbps) pwr=Connected bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x12d1 idProduct = 0x1505 bcdDevice = 0x0000 iManufacturer = 0x0003                                      iProduct = 0x0002                                          iSerialNumber = 0x0000                                              bNumConfigurations = 0x0001                                                                                                      

Since in that respect is no / usr / ports in the FreeBSD pfSence version, we will install the box for changing the modem configuration directly from the official repository using the direct link.
We need the compiled usb_modeswitch package .
              pkg_add -r ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/Latest/usb_modeswitch.tbz                          

This software packag stores the configuration in the file /usr/local/etc/usb_modeswitch.conf and the startup hand / usr / local / sbin / usb_modeswitch
After installation, we edit the configuration file by adding idVendor and idProduct into it :
              DisableSwitching=0 EnableLogging=1 DefaultVendor= 0x12d1 DefaultProduct= 0x1505 TargetVendor= 0x12d1 TargetProduct= 0x140c TargetClass= 01 DetachStorageOnly=0 HuaweiMode=0 MessageEndpoint= not bent MessageContent="55534243000000000000000000000011060000000000000000000000000000" NeedResponse=0 ResponseEndpoint= not set                          

As a consequence, we get the replacement of DefaultProduct 0x1505 with TargetProduct 0x140c .
To do this, execute the book, substituting the config for it:
              /usr/local/sbin/usb_modeswitch -H -c /usr/topical/etc/usb_modeswitch.conf                          

We fit usbconfig -d 4.3 dump_device_desc , we are satisfied with the values idProduct 0x1506 and 0x140c .
Check dmesg , should have the following lines in the output:
              ugen4.3:                                  at usbus4 u3g0:                                      on usbus4 u3g0: Set up 4 ports.                                                            

Just this is not adequate, upon rebooting, our modem will return to its settings again, and the connection testament readjust. To prevent this from happening, add to the /etc/devd.conf file a turn back at startup whether our device is in the right configuration and running the script if it is in USBmass mode

              attach 10 { device-name "ugen[0-9]+"; match "vendor" "0x12d1"; match "product" "0x1505"; action "/usr/topical/sbin/3G.sh"; };                          

Create the file /usr/section/sbin/3G.sh and make IT executable. Register contents:
              #!/bin/sh sleep 3 /usr/local/sbin/usb_modeswitch -H -c /usr/local/etc/usb_modeswitch.conf sleep 12 /usr/local/sbin/usb_modeswitch -H -c /usr/local/etc/usb_modeswitch.conf                          
Setting up connection to the provider

To create a connection to Yota, attend the top menu Interfaces -> (attribute) and select the PPPs tab.

Add a new connection, PPP type, condition Link (/dev/cauU0.3) telephone number * 99 #, get at point address yota.ru.

In additional options it is necessary to indicate that the association will comprise brocaded upon quest - Enable the Dial on Require selection.

After that, the hot port will appear on the Interface assignments tab.

We turn it on through the top menu Interfaces -> OPT1 and turn it connected by selecting in the PPP interface type, in the phone number * 99 # and APN yota.ru.

Add equipment to your answer for

Toward the close, you need to register the equipment in your account statement on the Yota.ruthenium site and attach the device to your personal account. This can be done from any machine; as the equipment Idaho, indicate the ID number on the SIM notice of 10 digits (010100xxxx). Without this, you can only go to the site yota.ru

Conclusion


On this setup is realized, we can use. For strange modems, this form is also valid, you just necessitate to specify the idVendor and idProduct parameters required for the equipment to work in modem mood and substitute them in the shape.

Author: Dmitry Barsukov, I will be grateful for an invite, if the clause is worthy of this, as cured every bit for pointing out possible flaws and errors. Thanks!

DOWNLOAD HERE

GET How-To: Connect Pfsense with Huawei E392 Modem to Yota Provider / Sudo Null IT News FREE

Posted by: howellhige1935.blogspot.com

0 Response to "GET How-To: Connect Pfsense with Huawei E392 Modem to Yota Provider / Sudo Null IT News FREE"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel