Professional Documents
Culture Documents
User Tools
RegisterLog In
Site Tools
Search
Search
Recent ChangesMedia ManagerSitemap
OpenWrt Wiki Welcome to OpenWrt recipes Use 3g/UMTS USB Dongle for WAN connectio
n
cestina or Cesky (Czech)
Deutsch (German)
English
Espanol (Spanish, Mexico)
Francais (French)
Hungarian (magyar)
??? (Japanese)
Poliski (Polish)
Portugues brasileiro (Portuguese, Brasil)
(Russsian)
T?rkce (Turkish)
?? (Chinese)
?? (Taiwanese)
doc:recipes:3gdongle
Table of Contents
Preparations
Required Packages
Dependencies
Installation
switching USB mode
usb-modeswitch method
sdparm method
Configuration
Network configuration
Chat configuration
Establishing connection
Debugging signal strength issues
AICCU interaction
Installing multiple 3G dongles
LOADBALANCER/ MULTIWAN
Additional DNS configuration
Advertising public DNS to clients
Using DNS forwarding
Easy Configuration Using Luci Web Interface
Obtaining IPv6 address
Compile things yourself
Troubleshooting
Howto activate serial mode through web browser on CDC-Ethernet devices
Huawei
ZTE
Howto restore CDC mode on CDC-Ethernet capable devices
Huawei
ZTE
Workarounds for specific devices
General information on modeswitching
Huawei E220/Chaos Calmer
TP-Link MA260/Attitude Adjustment
TP-Link MA260/Barrier Breaker
Devices using qmi and mbim protocol
Prot=ff Driver=option
Prot=ff Driver=option
Prot=ff Driver=option
Prot=50 Driver=usb-storage
usb-modeswitch method
Install and use the usb-modeswitch and usb-modeswitch-data packages with the cor
rect hardware ID's for your USB Dongle in order to switch the USB dongle from CD
ROM file system to Modem mode (> flip flop). Read on here how to use this packag
e.
Now your USB Dongle should create logs in dmesg. If it doesn't, try
usb_modeswitch -c /etc/usb_modeswitch.d/<file>
where <file> represents the modem's combined vendor/product id, e.g. 19d2:0083 f
or a ZTE MF190. Obviously, that file must exist in the forementioned directory.
This will show syntax errors in <file> , if any.
usb_modeswitch -l -c /etc/usb_modeswitch.d/<file>
will list switchable devices.
usb_modeswitch -s -c /etc/usb_modeswitch.d/<file>
will actually execute the custom modeswitch. Add
-v
, if you need more information.
For instance, with the DX 7.2M HSDPA 3G SIM Card USB Item# 80032, the reported s
csi ID is 12d1:1001; running "usb_modeswitch -v 12d1 -p 1001" results in 4 ttyUS
B devices:
[426955.836000] option 1-1.2:1.0: GSM modem (1-port) converter detected
[426955.844000] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB0
[426955.860000] option 1-1.2:1.1: GSM modem (1-port) converter detected
[426955.868000] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB1
[426955.884000] option 1-1.2:1.2: GSM modem (1-port) converter detected
[426955.892000] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB2
[426955.908000] option 1-1.2:1.3: GSM modem (1-port) converter detected
[426955.916000] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB3
[426955.936000] scsi17 : usb-storage 1-1.2:1.4
[426956.940000] scsi 17:0:0:0: CD-ROM
HSDPA
CDROM Storage
2.31P
Q: 0 ANSI: 2
[426956.948000] scsi 17:0:0:0: Attached scsi generic sg0 type 5
[426956.960000] scsi 17:0:0:1: Direct-Access
HSDPA
MMC Storage
2.31P
Q: 0 ANSI: 2
[426956.968000] sd 17:0:0:1: Attached scsi generic sg1 type 0
[426956.992000] sd 17:0:0:1: [sda] Attached SCSI removable disk
NOTE: As of r36812, OpenWrt made significant changes with usb-modeswitch as part
of procd system init daemon. The new usb-modeswitch package includes binary usb
mode with json-based configuration instead of classic usb_modeswitch binary. Sup
ported modems should switch automatically as long as usbmode service is active.
The /etc/usb-mode.json configuration file looks partially like below.
{
"messages" : [
"555342431234567800000000000006d0000000000000000000000000000000"
,
"5553424312345678000000000000061b004600000000000000000000000000"
,
],
"devices" : {
"03f0:002a": {
"*": {
"t_class": 7,
"msg": [ 0 ],
"response": true
}
},
"0408:f000": {
"*": {
"t_vendor": 1032,
"t_product": [ 53257 ],
"msg": [ 1 ]
}
},
}
}
03f0:002a is default vendor and product in hexadecimal neotation, as it appears
on executition of lsusb or kernel usb debug, while msg is the message content ar
ray. These messages issue the commands, that will either allow for media eject a
in order to switch the device into 3G modem mode
nd/or eject the virtual CD-ROM,
. t_vendor is target vendor in decimal notation, t_product is target product in
decimal notation. Depending to the recognized vendor and product id, you may sen
d one of the messages to the dongle by just using the message array index If you
want to know more, look at the file /etc/usb-mode.json.
The above usbmode-json example will send this message code
"555342431234567800000000000006d0000000000000000000000000000000"
to the usb device with the vendor id 03f0 and product id 002a. After modeswitchi
ng, the usb device will stay with the same vendor id and product id, but with ta
rget device class number of 7.
In addition, it will send message code
"5553424312345678000000000000061b004600000000000000000000000000"
to the usb device with the vendor id and the product id of 0408:f000. After mode
switching, the usb device will switch to decimal vendor id and product id of 103
2:53257, which you can convert to hexadecimal notation of 0408:D009 (You need de
cimal to hexadecimal converter such as your computer's calculator in 'programmer
's mode'.). The device vendor id and product id after modeswitch as show on lsus
b and /sys/kernel/debug/usb/devices is 0408:D009.
Note: the json file is generated automaticallly from ordinary usb_modeswitch dat
a files during build process using perl script named convert-modeswitch.pl. For
diagnostics purpose, you can create usb-mode-custom.json with defined message an
d devices part and launch the command
usbmode -l
usbmode -s -v -c /path/to/usb-mode-custom.json
Converting the standard usb-modeswitch file to json format can be done in a simp
le way. The standard usb-modeswitch file (0408:f000) content.
# Yota Router (Quanta 1QDLZZZ0ST2)
TargetVendor=0x0408
TargetProduct=0xd009
MessageContent="5553424312345678000000000000061b004600000000000000000000000000"
Target vendor (0x0408) is converted to decimal notation to fill t_vendor value (
1032) and target product (0xd009) is converted to decimal notation to fill t_pro
duct (53257). There is only one message content, so the message index is zero (0
). The resulting usb-mode-custom.json content is as follows.
{
"messages" : [
"5553424312345678000000000000061b004600000000000000000000000000"
,
],
"devices" : {
"0408:f000": {
"*": {
"t_vendor": 1032,
"t_product": [ 53257 ],
"msg": [ 0 ]
}
},
}
}
Based on this example, you can make another usb-mode-custom.json file to perform
modeswitching on unsupported dongles for diagnostic purpose.
If your device doesn't work with usb_modeswitch, try the sdparm method.
sdparm method
This method uses sdparm to issue SCSI eject command to the emulated CDROM device
. This is enough to put some modems into modem mode (tested on Ovation MC935D).
Before you start, make note of your modem's vendor and product ID:
# cat /proc/bus/usb/devices
...
P: Vendor=1410 ProdID=5020 Rev= 0.00
S: Manufacturer=Novatel Wireless, Inc.
...
First, find out your device address - in this example it's going to be sg0. Then
issue the following:
sdparm --eject /dev/sg0
For Attitude Adjustment try:
sdparm --command=eject /dev/sg0
Then, check for changes of your product ID:
# cat /proc/bus/usb/devices
...
P: Vendor=1410 ProdID=7001 Rev= 0.00
S: Manufacturer=Novatel Wireless, Inc.
S: Product=Qualcomm Configuration
...
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
...
Configuration
The shown configuration replaces the WAN line, so no further changes are needed
to the firewall/other configuration. Note that if you also want to use the WAN p
ort, you have to define it as WAN2 in the configuration. If you define the 3g co
nnection as WAN2, you have to do more changes to other parts, like firewall and
so on.
Network configuration
Edit your '/etc/config/network' file: (see network 3G section for more details)
config interface wan
#
option ifname ppp0 # on some carriers enable this line
option pincode 1234
option device /dev/ttyUSB0
option apn
your.apn
option service umts
option proto 3g
Replace 'pincode' with the correct pincode of your SIM card. Note that an disabl
ed pincode on the SIM card is problematic, please enable it. If you are connecti
ng to a phone where the pincode has already been entered, there if no need for t
his.
Replace 'device' with the correct USB port of your modem. On a phone this might
for example be /dev/ttyACM0.
Replace 'apn' with the correct APN of your 3g/umts provider.
Note in case your APN also requires an username/password, you can configure this
too, just add to the network configuration file:
option username yourusername
option password yourpassword
Replace 'username' and 'password' with the correct username/password you receive
d from your 3g provider. You can also look for this information (apn, username a
nd password) in the mobile-broadband-provider-info database from the Gnome proje
ct.
For some providers, apperently it is neccessary to add 'noipdefault' to 'pppd_op
tions'. If logread shows that the connection was established and CHAP authentica
tion was successful, but the connection was immediately dropped after, then try:
option 'pppd_options' 'noipdefault'
If your provider supports PAP authentication only then you need to disable all o
ther protocols via these added options:
option 'pppd_options' 'noipdefault refuse-chap refuse-mschap refuse-mscha
p-v2 refuse-eap'
Now you have configured the network interface.
Chat configuration
Now we need to check if the default chatscript does work with your 3g provider o
r not.
You can find it here '/etc/chatscripts/3g.chat', it looks like this:
ABORT
ABORT
ABORT
BUSY
'NO CARRIER'
ERROR
REPORT
TIMEOUT
""
OK
OK
ABORT
TIMEOUT
OK
CONNECT
If your
have to
ettings
CONNECT
12
"AT&F"
"ATE1"
'AT+CGDCONT=1,"IP","$USE_APN"'
'NO CARRIER'
15
"ATD*99***1#"
' '
modem needs a special AT command, your can add it to this file. You may
edit the dial number of the ATD command to fit in with your provider's s
(for example "*99#" instead of "*99***11#").
Establishing connection
Just type on console 'ifup wan'
Now check dmesg logread for successful connect:
pppd 2.4.4 started by root, uid 0
abort on (BUSY)
abort on (ERROR)
report (CONNECT)
timeout set to 12 seconds
send (AT&F^M)
expect (OK)
AT&F^M^M
OK
-- got it
send (ATE1^M)
expect (OK)
^M
ATE1^M^M
OK
-- got it
send (AT+CGDCONT=1,"IP","your.apn"^M)
abort on (NO CARRIER)
timeout set to 15 seconds
expect (OK)
^M
AT+CGDCONT=1,"IP","your.apn"^M^M
OK
-- got it
send (ATD*99***1#^M)
expect (CONNECT)
^M
ATD*99***1#^M^M
CONNECT
-- got it
send ( ^M)
Serial connection established.
Using interface 3g-wan
Connect: 3g-wan <--> /dev/ttyUSB0
Could not determine remote IP address: defaulting to x.x.x.x
local IP address x.x.x.x
remote IP address x.x.x.x
primary DNS address x.x.x.x
secondary DNS address x.x.x.x
adding wan (3g-wan) to firewall zone wan
That's it, now you should be connected.
If you want an permanent connect from startup, add 'ifup wan' command to '/etc/r
c.local' file.
Debugging signal strength issues
For troubleshooting or locating the best position for the USB Dongle, you can us
e
gcom info -d /dev/ttyUSBx
from the console. This tool will report signal strength, but also network regist
ration and SIM status. If it returns a port-in-use error because your connection
is already up, try
gcom -d /dev/ttyUSBx
where x represents a port number not used by the wan connection itself.
gcom returns the signal quality in RSSI (Received signal strength indication) an
d in BER (Bit error rate, reported in percent). A higher RSSI value represents a
stronger signal - scale is from 0 to 99, where 1 is the lowest detectable signa
l and 31 a very good signal. Don't expect your signal to go all the way up to 99
, though. If BER returns 99 it means not known or not detectable.
If your 3G modem is e.g. a ZTE K3565-Z featuring a LED SSI indicator to show it'
s status (Not Connected, GPRS, UMTS) you may be mislead to believe, that a stron
g signal strength of e.g. 17 may be better, while you only get GPRS, but a value
of 4 allows for UMTS access. This is owed to the circumstance, that the device
may switch over to another cell. The only method to prevent a handover between a
GPRS and an UMTS station during the process of optimizing, is to initiate the d
evice to use 'UMTS only' in the first place.
You can also add the AT command
""
"AT+CSQ"
to your chat script to check signal quality.
Command return is "+CSQ: <rssi>,<ber>" and looks like this in logread:
send (AT+CSQ^M)
expect (OK)
^M
AT+CSQ^M^M
+CSQ: 11,99^M
^M
OK
-- got it
If you have problems establishing a connection and multiple modem devices (/dev/
ttyUSB0, /dev/ttyUSB1, ) are present, try all of them. Some may not work at all w
hile others seem to work at first, but will give a NO CARRIER during the connect
ion process.
AICCU interaction
/etc/hotplug.d/iface/30-aiccu starts aiccu when the WAN connection is establishe
d. It seems however that, in the case of 3G connections, the start scripts are s
tarted just a bit too early and the start of aiccu fails. I have butchered the s
cript a bit:
#!/bin/sh
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && /etc/init.d/aiccu enabled && s
leep 15; /etc/init.d/aiccu restart
Note that sixxs really frowns upon quick re-re-restarts of aiccu, it may get you
r account blocked for unjust use of resources. Be careful with these scripts.
Installing multiple 3G dongles
You can use many usb 3G dongles easily by using an active USB hub.
Prepare for the next steps: We assume you have at least one 3g dongle configured
. You will need an active internet connection in order to install modules for 3g
support. Check 3gdongle for more information.
1. Connect an active USB hub to the OpenWrt router. You need to assure, that the
power supply will deliver sufficent power for all of your 3g dongles. A proper
estimation is, that you will need 500+ mA per one 3g dongle. Remember that modem
can slightly exceed its declared power consumption in HDSPA+ modes. Be generous
and pick USB hub with some power source overhead.
2. Connect all 3g dongles and start.
3. Browse through logread to check if modems are properly recognized and /ttyUSB
ports are assigned.
4. Usually a 3g modem has a few "modem ports" - one for connection and others
e service types. Exeplum gratum: A Huawei E1750 has three ports. The first in
a communication port and last is a service port. If you only have one modem,
will be recognized as /ttyUSB0, /ttyUSB1 and /ttyUSB2. You need to configure
terface using /ttyUSB0 (first one). A Huawei E372 has five ports, but similar
other Huawei devices, the communication port is the first one.
ar
is
it
in
to
option
option
option
option
'name' 'rtl8366s'
'reset' '1'
'enable_vlan' '1'
'blinkrate' '2'
config 'switch_vlan'
option 'device' 'rtl8366s'
option 'vlan' '1'
option 'ports' '0 1 2 3 5t'
config 'switch_port'
option 'device' 'rtl8366s'
option 'port' '1'
option 'led' '6'
config 'switch_port'
option 'device' 'rtl8366s'
option 'port' '2'
option 'led' '9'
config 'switch_port'
option 'device' 'rtl8366s'
option 'port' '5'
option 'led' '2'
Firewall - add second wan zones
config 'defaults'
option 'syn_flood' '1'
option 'input' 'ACCEPT'
option 'output' 'ACCEPT'
option 'forward' 'REJECT'
option 'drop_invalid' '1'
config 'zone'
option
option
option
option
option
'name' 'lan'
'network' 'lan'
'input' 'ACCEPT'
'output' 'ACCEPT'
'forward' 'REJECT'
config 'zone'
option
option
option
option
option
option
option
'name' 'wan'
'input' 'REJECT'
'output' 'ACCEPT'
'forward' 'REJECT'
'masq' '1'
'mtu_fix' '1'
'network' 'wan'
config 'rule'
option
option
option
option
option
'src' 'wan'
'proto' 'udp'
'dest_port' '68'
'target' 'ACCEPT'
'family' 'ipv4'
config 'rule'
option 'src' 'wan'
option 'proto' 'icmp'
'name' 'wan2'
'forward' 'REJECT'
'output' 'ACCEPT'
'network' 'wan2'
'input' 'REJECT'
'masq' '1'
'mtu_fix' '1'
config 'forwarding'
option 'dest' 'wan2'
option 'src' 'lan'
config 'dnsmasq'
option 'domainneeded' '1'
option 'boguspriv' '1'
option 'filterwin2k' '0'
option 'localise_queries' '1'
option 'rebind_protection' '1'
option 'rebind_localhost' '1'
option 'local' '/lan/'
option 'domain' 'lan'
option 'expandhosts' '1'
option 'nonegcache' '0'
option 'authoritative' '1'
option 'readethers' '1'
option 'leasefile' '/tmp/dhcp.leases'
option 'resolvfile' '/tmp/resolv.conf.auto'
option 'server' '8.8.8.8'
option 'server' '8.8.4.4'
config 'dhcp' 'lan'
option 'interface' 'lan'
option 'start' '100'
option 'limit' '150'
option 'leasetime' '12h'
config 'dhcp' 'wan'
option 'interface' 'wan'
option 'ignore' '1'
If you prefer to ignore DNS servers obtained via PPP negotiation:
uci add dhcp.@dnsmasq[-1].noresolv=1
uci commit dhcp
File /etc/config/dhcp
config 'dnsmasq'
option 'domainneeded' '1'
option 'boguspriv' '1'
option 'filterwin2k' '0'
option 'localise_queries' '1'
option 'rebind_protection' '1'
option 'rebind_localhost' '1'
option 'local' '/lan/'
option 'domain' 'lan'
option 'expandhosts' '1'
option 'nonegcache' '0'
option 'authoritative' '1'
option 'readethers' '1'
option 'leasefile' '/tmp/dhcp.leases'
option 'resolvfile' '/tmp/resolv.conf.auto'
option 'server' '8.8.8.8'
option 'server' '8.8.4.4'
option 'noresolv' '1'
This configuration is better, because clients will be able to resolve local host
names, while utilizing dnsmasq to cache client dns requests.
More dnsmasq tweaks are available here and here.
Easy Configuration Using Luci Web Interface
Luci has supported 3G configuration. Be sure to have luci and luci-proto-3g inst
alled. If you want to do multiwan configuration, make sure that luci-apps-multiw
BUSY
'NO CARRIER'
ERROR
CONNECT
10
"AT&F"
"ATE1"
'AT+CGDCONT=1,"IPV4V6","$USE_APN"'
"Calling UMTS/GPRS"
30
"ATD$DIALNUMBER"
of OpenWRT Chaos Calmer. It may in some cases be easier to delete the file /etc
/usb-mode.json with a custom modeswitch file, if necessary. A previously configu
red serial modem, that is unknown to the kernel can be manually associated with
it's driver by assigning it the manufacturer and product id as shown by lsusb as
follows: e.g. for E220 in fallback mode:
echo '12d1 1001 ff' > /sys/bus/usb-serial/drivers/option1/new_id
Huawei E220/Chaos Calmer
If you encounter problems with an undetected Huawei E220, you can try the follow
ing - this resets the E220 to its factory defaults, so it can again be handled b
y the new JSON-based modeswitch. This will reenable the CD-ROM Mode.
1. Make the modem work once, by manually telling the kernel to use generic (opti
on) drivers.
echo '12d1 1003 ff' > /sys/bus/usb-serial/drivers/generic/new_id
2. Shutdown WWAN (necessary only if WWAN was previously configured)
ifdown WWAN
3. Modes of the E220 Modem + PC UI
echo "AT^U2DIAG=0" >/dev/ttyUSB0
Modem + CD
echo "AT^U2DIAG=1" >/dev/ttyUSB0
References: ?? 4. Reboot
reboot
? http://www.techytalk.info/disable-virtu
m-devices/ ? https://www.semanticlab.n
et/index.php/UMTS_with_OpenWRT
TP-Link MA260/Attitude Adjustment
This workaround is valid for Attitude Adjustment, but has been obsoleted by r368
12 and newer builds, such as Barrier Breaker 14.07.
If you plug the MA260 into the USB port of a compatible OpenWRT device running A
ttitude Adjustment, you will notice certain issues, similar to those described i
n the Ubuntu forum: [TP Link MA260, Ubuntu 12.04 LTS[http://ubuntuforums.org/sho
wthread.php?t=2197164]], e.g. missing modeswitch routines missing hotplug etc.
Create and edit the file /etc/hotplug.d/usb/21-tplink_ma260 with the following c
ontent:
#!/bin/sh
BINARY="/usr/bin/usb_modeswitch"
TPLINKMA260_PRODID1="2357/f000/0"
TPLINKMA260_PRODID2="2357/9000/0"
sleep 15
# issue the modeswitch and change the product id.
${BINARY} -v 2357 -p f000 -V 2357 -P 9000 -W -I -n \
-M '5553424312345678000000000000061e0000000000000000000000000000
00' \
-2 '5553424312345678000000000000061b0000000200000000000000000000
00'
logger -t HOTPLUG "${TPLINKMA260_PRODID1} plugged in."
fi
if [ "${ACTION}" = "remove" ]; then
logger -t HOTPLUG "${TPLINKMA260_PRODID1} was removed."
fi
fi
Some new 3G/4G dongles use qmi and mbim protocol to establish connection to ISP.
For your information, qmi protocol is proprietary protocol by Qualcomm. In cont
rast to qmi, mbim is more standardized protocol for 3G/4G dongles.
QMI Protocol Configuration
To make use of qmi protocol, package kmod-usb-net-qmi-wwan and uqmi are needed.
uqmi is available on both barrier breaker and bleeding edge repository.
Here is a brief help about uqmi command line usage.
No device given
Usage: uqmi <options|actions>
Options:
--single, -s:
--device=NAME, -d NAME:
--keep-client-id <name>:
--release-client-id <name>:
Services:
Actions:
--get-versions:
--set-client-id <name>,<id>:
--get-client-id <name>:
--start-network <apn>:
elow)
--auth-type pap|chap|both|none:
--username <name>:
--password <password>:
--autoconnect:
--stop-network <pdh>:
67295), (use with option below)
--autoconnect:
--get-data-status:
--set-autoconnect <val>:
abled, paused)
--get-pin-status:
--verify-pin1 <pin>:
--verify-pin2 <pin>:
--get-imsi:
--reset-dms:
--set-device-operating-mode <m>
line
--set-network-modes <modes>:
mode2>,...])
--get-serving-system:
Get serving system info
--list-messages:
List SMS messages
--get-message <id>:
Get SMS message at index <id>
--get-raw-message <id>:
Get SMS raw message contents at index <id>
--send-message <data>:
Send SMS message (use options below)
--send-message-smsc <nr>:
SMSC number (required)
--send-message-target <nr>:
Destination number (required)
--send-message-flash:
Send as Flash SMS
UCI has supported qmi network protocol configuration. The detailed explanation a
bout qmi network configuration is explained here.
Currently, there is no such thing as luci-proto-qmi yet to make use of Luci for
qmi configuration. You need to configure UCI manually using uci command line or
text editor.
MBIM Protocol configuration
Currently, there is not enough information about mbim protocol as it's being act
ively developed. If you are curious about setting up mbim protocol, you may ask
OpenWrt users/devel mailing lists or OpenWrt forum
Here is a brief help about umbim command line.
umbim help
Usage: mbim <caps|pinstate|unlock|connect|disconnect> [options]
Options:
-d <device> the device (/dev/cdc-wdmX)
-t <transaction>
the transaction id
-n
no close
-v
verbose
- Ordered List Item
Setting up RNDIS-based dongles
(This section is based on experience with Bleeding Edge r47548 from December of
2015 on a wt3020 and connecting to an Alcatel Onetouch L850.).
For rndis devices, only a limited subset of packages are necessary (besides the
base USB packages, that are most likely already contained in the base image):
opkg update
opkg install kmod-usb-net-rndis usb-modeswitch
kmod-usb-net-rndis will also install kmod-mii, kmod-usb-net, kmod-usb-net-cdc-et
her and kmod-usb-net-rndis as dependencies.
After installing the packages and connecting the USB stick, the following should
appear in dmesg:
[ 847.390000] usb 1-1: new high-speed USB device number 3 using ehci-platform
[ 847.590000] usb 1-1: no of_node; not parsing pinctrl DT
[ 847.610000] rndis_host 1-1:1.0: no of_node; not parsing pinctrl DT
[ 847.620000] rndis_host 1-1:1.0 usb0: register 'rndis_host' at usb-101c0000.eh
ci-1, RNDIS device, 72:4d:eb:bb:e2:60
You can verify the interface details on the new usb0 network interface by runnin
g ifconfig usb0.
If the USB stick will be your only WAN connection, then the easiest way to set u
p the automatic connection is to change /etc/config/network to be something like
:
n mechanism there. To protect it, you can add the following rule to Network>Fire
wall>Custom Rules:
iptables -A forwarding_lan_rule -d 192.168.1.0/24 -m comment --comment "no acces
s to USB dongle from LAN" -j DROP
Now, if you need to access your dongle web interface, log in to your OpenWRT box
with:
ssh -L 8080:192.168.1.1:80 root@your-openwrt-ip
and point your browser to http://localhost:8080.
1) Some of public DNS servers are OpenDNS:208.67.222.222,208.67.220.220 and Goog
le DNS:8.8.8.8,8.8.4.4
2) Google public dns doesn't hijack NXDOMAIN response, unlike OpenDNS
3) To check if your dongle support PDPv6, open up serial terminal (Putty, screen
, minicom, microcom, or picocom), and type AT+CGDCONT=?. If the response shows a
line containing "IPV6", for example +CGDCONT: (1-11),"IPV6",,,(0-2),(0-3), your
dongle supports PDPv6. Otherwise, your dongle is stuck with IPv4.
4) See previous note.
doc/recipes/3gdongle.txt Last modified: 2016/05/06 00:37 by tmomas
Page Tools
Show pagesource
Old revisions
Backlinks
Back to top
Except where otherwise noted, content on this wiki is licensed under the followi
ng license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
CC Attribution-Noncommercial-Share Alike 3.0 Unported Donate Powered by PHP V
alid HTML5 Valid CSS Driven by DokuWiki