Jump to content

Problems getting 3G Dongle to connect in the UK.


Recommended Posts

Hi, ive been trying to find a 3G dongle that works ok with the pineapple here in the UK and so far I haven't had much luck . I've got 2 Huawei 3G dongles one 160 and an unlocked E173 using a 'pay as you go' plan with O2 and neither of them seem to want to work correctly when plugged directly into my pineapple. I can see there is specific code in the Mobile broadband configuration script on the pineapple for the E173 so I'm not sure why its not connecting. I've got the pineapple plugged into the mains so there should be enough power going to it. I'm using firmware 2.8.1.

I'm really not sure if it's an issue with the dongle or the carrier or both or even the pineapple. Does the carrier make much of a difference?

Can anyone suggest anything or recommend a good setup?

This part of my log gets repeated over and over after trying to force the connection:

00:47:52 Pineapple daemon.notice pppd[3255]: Modem hangup
00:47:52 Pineapple daemon.notice netifd: Interface 'wan2' is now down
00:47:52 Pineapple daemon.info pppd[3255]: Exit.
00:47:51 Pineapple daemon.notice pppd[3255]: Connection terminated.
00:47:45 Pineapple daemon.warn pppd[3255]: IPCP: timeout sending Config-Requests
00:47:13 Pineapple daemon.notice pppd[3255]: CHAP authentication succeeded
00:47:13 Pineapple daemon.info pppd[3255]: CHAP authentication succeeded
00:47:12 Pineapple local2.info chat[3259]: timeout set to 30 seconds
00:47:12 Pineapple local2.info chat[3259]: send (ATD*99***1#^M)
00:47:12 Pineapple local2.info chat[3259]: send ( ^M)
00:47:12 Pineapple local2.info chat[3259]: expect (OK)
00:47:12 Pineapple local2.info chat[3259]: expect (CONNECT)
00:47:12 Pineapple local2.info chat[3259]: ^M
00:47:12 Pineapple local2.info chat[3259]: ^M
00:47:12 Pineapple local2.info chat[3259]: OK
00:47:12 Pineapple local2.info chat[3259]: CONNECT
00:47:12 Pineapple local2.info chat[3259]: ATD*99***1#^M^M
00:47:12 Pineapple local2.info chat[3259]: AT+CGDCONT=1,"IP","apn"^M^M
00:47:12 Pineapple local2.info chat[3259]: -- got it
00:47:12 Pineapple local2.info chat[3259]: -- got it
00:47:12 Pineapple daemon.notice pppd[3255]: Connect: 3g-wan2 <--> /dev/ttyUSB0
00:47:12 Pineapple daemon.info pppd[3255]: Using interface 3g-wan2

Edited by WideEyedAndClueless
Link to comment
Share on other sites

What you want to see is something like this:

Jan  1 00:02:21 Pineapple daemon.notice pppd[2362]: pppd 2.4.5 started by root, uid 0
Jan  1 00:02:22 Pineapple local2.info chat[2366]: abort on (BUSY)
Jan  1 00:02:22 Pineapple local2.info chat[2366]: abort on (NO CARRIER)
Jan  1 00:02:22 Pineapple local2.info chat[2366]: abort on (ERROR)
Jan  1 00:02:22 Pineapple local2.info chat[2366]: abort on (NO DIAL TONE)
Jan  1 00:02:22 Pineapple local2.info chat[2366]: abort on (NO ANSWER)
Jan  1 00:02:22 Pineapple local2.info chat[2366]: abort on (DELAYED)
Jan  1 00:02:22 Pineapple local2.info chat[2366]: report (CONNECT)
Jan  1 00:02:22 Pineapple local2.info chat[2366]: timeout set to 10 seconds
Jan  1 00:02:22 Pineapple local2.info chat[2366]: send (AT^M)
Jan  1 00:02:22 Pineapple local2.info chat[2366]: expect (OK)
Jan  1 00:02:22 Pineapple local2.info chat[2366]: AT^M^M
Jan  1 00:02:22 Pineapple local2.info chat[2366]: OK
Jan  1 00:02:22 Pineapple local2.info chat[2366]:  -- got it
Jan  1 00:02:22 Pineapple local2.info chat[2366]: send (ATZ^M)
Jan  1 00:02:23 Pineapple local2.info chat[2366]: timeout set to 30 seconds
Jan  1 00:02:23 Pineapple local2.info chat[2366]: expect (OK)
Jan  1 00:02:23 Pineapple local2.info chat[2366]: ^M
Jan  1 00:02:23 Pineapple local2.info chat[2366]: ATZ^M^M
Jan  1 00:02:23 Pineapple local2.info chat[2366]: OK
Jan  1 00:02:23 Pineapple local2.info chat[2366]:  -- got it
Jan  1 00:02:23 Pineapple local2.info chat[2366]: send (ATDT#777^M)
Jan  1 00:02:23 Pineapple local2.info chat[2366]: expect (CONNECT)
Jan  1 00:02:23 Pineapple local2.info chat[2366]: ^M
Jan  1 00:02:26 Pineapple local2.info chat[2366]: ATDT#777^M^M
Jan  1 00:02:26 Pineapple local2.info chat[2366]: CONNECT
Jan  1 00:02:26 Pineapple local2.info chat[2366]:  -- got it
Jan  1 00:02:26 Pineapple local2.info chat[2366]: send (^M)
Jan  1 00:02:26 Pineapple daemon.info pppd[2362]: Serial connection established.
Jan  1 00:02:26 Pineapple daemon.info pppd[2362]: Using interface 3g-wan2
Jan  1 00:02:26 Pineapple daemon.notice pppd[2362]: Connect: 3g-wan2 <--> /dev/ttyUSB0
Jan  1 00:02:26 Pineapple daemon.info dnsmasq[1391]: reading /tmp/resolv.conf.auto
Jan  1 00:02:26 Pineapple daemon.info dnsmasq[1391]: using nameserver 8.8.8.8#53
Jan  1 00:02:26 Pineapple daemon.info dnsmasq[1391]: using local addresses only for domain lan
Jan  1 00:02:27 Pineapple daemon.notice pppd[2362]: local  IP address 99.204.xxx.xxx
Jan  1 00:02:27 Pineapple daemon.notice pppd[2362]: remote IP address 66.1.xxx.xxx
Jan  1 00:02:27 Pineapple daemon.notice pppd[2362]: primary   DNS address 66.xxx.xxx.xxx
Jan  1 00:02:27 Pineapple daemon.notice pppd[2362]: secondary DNS address 68.xxx.xxx.xxx
Jan  1 00:02:27 Pineapple daemon.notice netifd: Interface 'wan2' is now up
Jan  1 00:02:28 Pineapple user.notice ifup: Enabling Router Solicitations on wan2 (3g-wan2)
Jan  1 00:02:29 Pineapple user.notice root: ifup 3g-wan2

It looks like your modem has successfully modeswitched.

What are the outputs of lsusb, ls /dev/tty* and cat /etc/ppp/options

Link to comment
Share on other sites

Hi Darren thanks for the reply and sorry about not getting back to you sooner, its been a hectic week for me.

This is the log i get if i start the pineapple with the dongle plugged in and the keep alive switched off

00:01:27 Pineapple daemon.notice pppd[1919]: CHAP authentication succeeded
00:01:27 Pineapple daemon.info pppd[1919]: CHAP authentication succeeded
00:01:26 Pineapple user.info sysinit: setting up led WLAN
00:01:26 Pineapple user.info sysinit: setting up led WAN
00:01:26 Pineapple user.info sysinit: setting up led USB
00:01:26 Pineapple user.info sysinit: setting up led LAN
00:01:26 Pineapple local2.info chat[1923]: timeout set to 30 seconds
00:01:26 Pineapple local2.info chat[1923]: timeout set to 10 seconds
00:01:26 Pineapple local2.info chat[1923]: send (ATE1^M)
00:01:26 Pineapple local2.info chat[1923]: send (ATD*99***1#^M)
00:01:26 Pineapple local2.info chat[1923]: send (AT+CGDCONT=1,"IP","apn"^M)
00:01:26 Pineapple local2.info chat[1923]: send (AT&F^M)
00:01:26 Pineapple local2.info chat[1923]: send ( ^M)
00:01:26 Pineapple local2.info chat[1923]: report (CONNECT)
00:01:26 Pineapple local2.info chat[1923]: expect (OK)
00:01:26 Pineapple local2.info chat[1923]: expect (OK)
00:01:26 Pineapple local2.info chat[1923]: expect (OK)
00:01:26 Pineapple local2.info chat[1923]: expect (CONNECT)
00:01:26 Pineapple local2.info chat[1923]: abort on (NO CARRIER)
00:01:26 Pineapple local2.info chat[1923]: abort on (ERROR)
00:01:26 Pineapple local2.info chat[1923]: abort on (BUSY)
00:01:26 Pineapple local2.info chat[1923]: ^M
00:01:26 Pineapple local2.info chat[1923]: ^M
00:01:26 Pineapple local2.info chat[1923]: ^M
00:01:26 Pineapple local2.info chat[1923]: OK
00:01:26 Pineapple local2.info chat[1923]: OK
00:01:26 Pineapple local2.info chat[1923]: OK
00:01:26 Pineapple local2.info chat[1923]: CONNECT
00:01:26 Pineapple local2.info chat[1923]: ATE1^M^M
00:01:26 Pineapple local2.info chat[1923]: ATD*99***1#^M^M
00:01:26 Pineapple local2.info chat[1923]: AT+CGDCONT=1,"IP","apn"^M^M
00:01:26 Pineapple local2.info chat[1923]: AT&F^M^M
00:01:26 Pineapple local2.info chat[1923]: -- got it
00:01:26 Pineapple local2.info chat[1923]: -- got it
00:01:26 Pineapple local2.info chat[1923]: -- got it
00:01:26 Pineapple local2.info chat[1923]: -- got it
00:01:26 Pineapple daemon.notice pppd[1919]: Connect: 3g-wan2 <--> /dev/ttyUSB0
00:01:26 Pineapple daemon.info pppd[1919]: Using interface 3g-wan2
00:01:26 Pineapple daemon.info pppd[1919]: Serial connection established.
00:01:25 Pineapple user.notice root: 3G: firewall stopped
00:01:25 Pineapple user.info sysinit: /pineapple/3g/3g.sh: line 186: /etc/init.d/firewall: not found
00:01:25 Pineapple user.info sysinit: /pineapple/3g/3g.sh: line 186: /etc/init.d/firewall: not found
00:01:24 Pineapple daemon.notice pppd[1919]: pppd 2.4.5 started by root, uid 0
00:01:20 Pineapple user.notice usb-modeswitch: 1-1:1.6: Manufacturer=HUAWEI_Technology Product=HUAWEI_Mobile Serial=?
00:01:20 Pineapple user.notice usb-modeswitch: 1-1:1.5: Manufacturer=HUAWEI_Technology Product=HUAWEI_Mobile Serial=?
00:01:20 Pineapple user.notice usb-modeswitch: 1-1:1.4: Manufacturer=HUAWEI_Technology Product=HUAWEI_Mobile Serial=?
00:01:20 Pineapple user.notice usb-modeswitch: 1-1:1.3: Manufacturer=HUAWEI_Technology Product=HUAWEI_Mobile Serial=?
00:01:20 Pineapple kern.info kernel: [ 80.800000] usbserial: USB Serial Driver core
00:01:20 Pineapple kern.info kernel: [ 80.790000] usbcore: registered new interface driver usbserial_generic
00:01:20 Pineapple kern.info kernel: [ 80.780000] usbserial_generic 1-1:1.4: generic converter detected
00:01:20 Pineapple kern.info kernel: [ 80.780000] usb 1-1: generic converter now attached to ttyUSB2
00:01:20 Pineapple kern.info kernel: [ 80.770000] usbserial_generic 1-1:1.3: generic converter detected
00:01:20 Pineapple kern.info kernel: [ 80.770000] usb 1-1: generic converter now attached to ttyUSB1
00:01:20 Pineapple kern.info kernel: [ 80.760000] usb 1-1: generic converter now attached to ttyUSB0
00:01:20 Pineapple kern.info kernel: [ 80.750000] usbserial_generic 1-1:1.0: generic converter detected
00:01:20 Pineapple kern.info kernel: [ 80.750000] USB Serial support registered for generic
00:01:20 Pineapple kern.info kernel: [ 80.740000] usbcore: registered new interface driver usbserial
00:01:19 Pineapple user.notice usb-modeswitch: 1-1:1.2: Manufacturer=HUAWEI_Technology Product=HUAWEI_Mobile Serial=?
00:01:19 Pineapple user.notice usb-modeswitch: 1-1:1.1: Manufacturer=HUAWEI_Technology Product=HUAWEI_Mobile Serial=?
00:01:19 Pineapple user.notice usb-modeswitch: 1-1:1.0: Manufacturer=HUAWEI_Technology Product=HUAWEI_Mobile Serial=?
00:01:17 Pineapple kern.info kernel: [ 77.700000] usbcore: deregistering interface driver usbserial
00:01:17 Pineapple kern.info kernel: [ 77.700000] USB Serial deregistering driver generic
00:01:17 Pineapple kern.info kernel: [ 77.690000] usbcore: deregistering interface driver usbserial_generic
00:01:14 Pineapple user.notice usb-modeswitch: 1-1:1.1: Manufacturer=HUAWEI_Technology Product=HUAWEI_Mobile Serial=?
00:01:07 Pineapple user.info sysinit: Looking for default devices ...

If i have the keep alive setting switched on i get this section that repeats

00:05:54 Pineapple daemon.notice pppd[2360]: Modem hangup
00:05:54 Pineapple daemon.notice netifd: Interface 'wan2' is now down
00:05:54 Pineapple daemon.info pppd[2360]: Exit.
00:05:53 Pineapple daemon.notice pppd[2360]: Connection terminated.
00:05:47 Pineapple daemon.warn pppd[2360]: IPCP: timeout sending Config-Requests
00:05:14 Pineapple daemon.notice pppd[2360]: CHAP authentication succeeded
00:05:14 Pineapple daemon.info pppd[2360]: CHAP authentication succeeded
00:05:13 Pineapple local2.info chat[2371]: timeout set to 30 seconds
00:05:13 Pineapple local2.info chat[2371]: send (ATD*99***1#^M)
00:05:13 Pineapple local2.info chat[2371]: send ( ^M)
00:05:13 Pineapple local2.info chat[2371]: expect (OK)
00:05:13 Pineapple local2.info chat[2371]: expect (CONNECT)
00:05:13 Pineapple local2.info chat[2371]: ^M
00:05:13 Pineapple local2.info chat[2371]: ^M
00:05:13 Pineapple local2.info chat[2371]: OK
00:05:13 Pineapple local2.info chat[2371]: CONNECT
00:05:13 Pineapple local2.info chat[2371]: ATD*99***1#^M^M
00:05:13 Pineapple local2.info chat[2371]: AT+CGDCONT=1,"IP","apn"^M^M
00:05:13 Pineapple local2.info chat[2371]: -- got it
00:05:13 Pineapple local2.info chat[2371]: -- got it
00:05:13 Pineapple daemon.notice pppd[2360]: Connect: 3g-wan2 <--> /dev/ttyUSB0
00:05:13 Pineapple daemon.info pppd[2360]: Using interface 3g-wan2
00:05:13 Pineapple daemon.info pppd[2360]: Serial connection established.
00:05:12 Pineapple local2.info chat[2371]: timeout set to 10 seconds
00:05:12 Pineapple local2.info chat[2371]: send (ATE1^M)
00:05:12 Pineapple local2.info chat[2371]: send (AT+CGDCONT=1,"IP","apn"^M)
00:05:12 Pineapple local2.info chat[2371]: send (AT&F^M)
00:05:12 Pineapple local2.info chat[2371]: report (CONNECT)
00:05:12 Pineapple local2.info chat[2371]: expect (OK)
00:05:12 Pineapple local2.info chat[2371]: expect (OK)
00:05:12 Pineapple local2.info chat[2371]: abort on (NO CARRIER)
00:05:12 Pineapple local2.info chat[2371]: abort on (ERROR)
00:05:12 Pineapple local2.info chat[2371]: abort on (BUSY)
00:05:12 Pineapple local2.info chat[2371]: ^M
00:05:12 Pineapple local2.info chat[2371]: OK
00:05:12 Pineapple local2.info chat[2371]: OK
00:05:12 Pineapple local2.info chat[2371]: ATE1^M^M
00:05:12 Pineapple local2.info chat[2371]: AT&F^M^M
00:05:12 Pineapple local2.info chat[2371]: -- got it
00:05:12 Pineapple local2.info chat[2371]: -- got it
00:05:11 Pineapple daemon.notice pppd[2360]: pppd 2.4.5 started by root, uid 0
00:05:11 Pineapple daemon.info dnsmasq[1172]: using nameserver 8.8.8.8#53
00:05:11 Pineapple daemon.info dnsmasq[1172]: using local addresses only for domain lan
00:05:11 Pineapple daemon.info dnsmasq[1172]: reading /tmp/resolv.conf.auto

So after the line :

00:05:14 Pineapple daemon.notice pppd[2360]: CHAP authentication succeeded

it waits about 30 seconds and times out with:

00:05:54 Pineapple daemon.info pppd[2360]: Exit.
00:05:53 Pineapple daemon.notice pppd[2360]: Connection terminated.
00:05:47 Pineapple daemon.warn pppd[2360]: IPCP: timeout sending Config-Requests

this is the output from the commands you asked me to run :

Execute: lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 12d1:1436 Huawei Technologies Co., Ltd. E173 3G Modem (modem-mode)

Execute: ls /dev/tty*
/dev/tty
/dev/ttyATH0
/dev/ttyS0
/dev/ttyUSB0
/dev/ttyUSB1
/dev/ttyUSB2

cat /etc/ppp/options

logfile /dev/null
noaccomp
nopcomp
nocrtscts
lock
maxfail 0

Edited by WideEyedAndClueless
Link to comment
Share on other sites

  • 2 weeks later...

Thanks imTheDMZ, I just tried plugging into a computer and it installs the drivers and connection manager and allows you to connect up no problems at all.

I visited the link you provided and tried the solution (created a lock directory) to the problem they were having and there has been no change.

Its still giving me:

Pineapple daemon.warn pppd[2360]: IPCP: timeout sending Config-Requests

after the CHAP authentication.

Edited by WideEyedAndClueless
Link to comment
Share on other sites

Sure thing

#!/bin/sh

# ---------------------------------------------------------

# 3G Connection Script for WiFi Pineapple. "Does the thing"

#

# Version: 2012-02-17

# Supports:

#

# ZTE MF591 (T-Mobile) -dkitchen

# Novatel MC760 (Virgin) -dkitchen

# Novatel MC760 (Ting) -dkitchen

# Sierra 598u (Ting) -brianzimm

# And more.

#

# Updates: wifipineapple.com

# ---------------------------------------------------------





# -----------------------------------------------------------

# Configure /etc/ppp/options with hard-coded working settings

# -----------------------------------------------------------

echo "

logfile /dev/null

noaccomp

nopcomp

nocrtscts

lock

maxfail 0" > /etc/ppp/options



# --------------------------------------------------------------------------------------------------

# Check for known usb modem vendor and product IDs then switch 'em from storage to serial modem mode

# --------------------------------------------------------------------------------------------------

echo "Searching for attached 3G Modems"

logger "3G: Connection Script here, searching for modems"

MODEM=$(lsusb | awk '{ print $6 }')

echo $MODEM



case "$MODEM" in



*19d2:1523*)    echo "ZTE MF591 (T-Mobile) detected. Attempting mode switch"

                uci delete network.wan2         

                uci set network.wan2=interface  

                uci set network.wan2.ifname=ppp0           

                uci set network.wan2.proto=3g           

                uci set network.wan2.service=umts       

                uci set network.wan2.device=/dev/ttyUSB0     

                uci set network.wan2.apn=epc.tmobile.com     

                uci set network.wan2.username=internet       

                uci set network.wan2.password=internet

                uci set network.wan2.defaultroute=1    

                uci commit network

        usb_modeswitch -v 19d2 -p 1523 -V 19d2 -P 1525 -M 5553424312345678000000000000061b000000020000000000000000000000 -n 1 -s 20

        sleep 10; rmmod usbserial

        sleep 3; insmod usbserial vendor=0x19d2 product=0x1525

        sleep 5; /etc/init.d/firewall disable; /etc/init.d/firewall stop

        logger "3G: firewall stopped"

        iptables -t nat -A POSTROUTING -s 172.16.42.0/24 -o 3g-wan2 -j MASQUERADE

        iptables -A FORWARD -s 172.16.42.0/24 -o 3g-wan2 -j ACCEPT

        iptables -A FORWARD -d 172.16.42.0/24 -m state --state ESTABLISHED,RELATED -i 3g-wan2 -j ACCEPT

        

        ;;

*1410:6002* | *1410:5031*) echo "Novatel MC760 (Virgin Mobile) detected. Attempting mode switch"

        uci delete network.wan2

        uci set network.wan2=interface

        uci set network.wan2.ifname=ppp0

        uci set network.wan2.proto=3g

        uci set network.wan2.service=cdma

        uci set network.wan2.device=/dev/ttyUSB0

        uci set network.wan2.username=internet

        uci set network.wan2.password=internet

        uci set network.wan2.defaultroute=1

        uci set network.wan2.ppp_redial=persist

        uci set network.wan2.peerdns=0

        uci set network.wan2.dns=8.8.8.8

        uci set network.wan2.keepalive=1

        uci set network.wan2.pppd_options=debug

        uci set network.wan2.pppd_options=noauth

        uci commit network

        usb_modeswitch -v 1410 -p 5031 -V 1410 -P 6002 -M 5553424312345678000000000000061b000000020000000000000000000000 -n 1 -s 20

        sleep 10; rmmod usbserial

        sleep 3; insmod usbserial vendor=0x1410 product=0x6002

        sleep 5; /etc/init.d/firewall disable; /etc/init.d/firewall stop

        logger "3G: firewall stopped"

        iptables -t nat -A POSTROUTING -s 172.16.42.0/24 -o 3g-wan2 -j MASQUERADE

        iptables -A FORWARD -s 172.16.42.0/24 -o 3g-wan2 -j ACCEPT

        iptables -A FORWARD -d 172.16.42.0/24 -m state --state ESTABLISHED,RELATED -i 3g-wan2 -j ACCEPT



        ;;

*1410:5030*)    echo "Novatel MC760 (Ting) detected. Attempting mode switch"

        uci delete network.wan2

        uci set network.wan2=interface

        uci set network.wan2.ifname=ppp0

        uci set network.wan2.proto=3g

        uci set network.wan2.service=cdma

        uci set network.wan2.device=/dev/ttyUSB0

        uci set network.wan2.username=internet

        uci set network.wan2.password=internet

        uci set network.wan2.defaultroute=1

        uci set network.wan2.ppp_redial=persist

        uci set network.wan2.peerdns=0

        uci set network.wan2.dns=8.8.8.8

        uci set network.wan2.keepalive=1

        uci set network.wan2.pppd_options=debug

        uci set network.wan2.pppd_options=noauth

        uci commit network

        usb_modeswitch -v 1410 -p 5030 -V 1410 -P 6000 -M 5553424312345678000000000000061b000000020000000000000000000000 -n 1 -s 20

        sleep 10; rmmod usbserial

        sleep 3; insmod usbserial vendor=0x1410 product=0x6000

        sleep 5; /etc/init.d/firewall disable; /etc/init.d/firewall stop

        logger "3G: firewall stopped"

        iptables -t nat -A POSTROUTING -s 172.16.42.0/24 -o 3g-wan2 -j MASQUERADE

        iptables -A FORWARD -s 172.16.42.0/24 -o 3g-wan2 -j ACCEPT

        iptables -A FORWARD -d 172.16.42.0/24 -m state --state ESTABLISHED,RELATED -i 3g-wan2 -j ACCEPT



        ;;

*1199:0025*)    echo "Sierra 598u (Ting) detected. Attempting mode switch"

                uci delete network.wan2

                uci set network.wan2=interface

                uci set network.wan2.ifname=ppp0

                uci set network.wan2.proto=3g

                uci set network.wan2.service=cdma

                uci set network.wan2.device=/dev/ttyUSB0

                uci set network.wan2.username=internet

                uci set network.wan2.password=internet

                uci set network.wan2.defaultroute=1

                uci set network.wan2.ppp_redial=persist

                uci set network.wan2.peerdns=0

                uci set network.wan2.dns=8.8.8.8

                uci set network.wan2.keepalive=1

                uci set network.wan2.pppd_options=debug

                uci set network.wan2.pppd_options=noauth

                uci commit network

                usb_modeswitch -v 1199 -p 0025

                sleep 10; rmmod usbserial

                sleep 3; insmod usbserial vendor=0x1199 product=0x0025

                sleep 5; /etc/init.d/firewall disable; /etc/init.d/firewall stop

                logger "3G: firewall stopped"

                iptables -t nat -A POSTROUTING -s 172.16.42.0/24 -o 3g-wan2 -j MASQUERADE

                iptables -A FORWARD -s 172.16.42.0/24 -o 3g-wan2 -j ACCEPT

                iptables -A FORWARD -d 172.16.42.0/24 -m state --state ESTABLISHED,RELATED -i 3g-wan2 -j ACCEPT



                ;;

*12d1:1436*)    echo "Huawei E173 detected. Attempting mode switch"

                uci delete network.wan2

                uci set network.wan2=interface

                uci set network.wan2.ifname=ppp0

                uci set network.wan2.proto=3g

                uci set network.wan2.service=umts

                uci set network.wan2.device=/dev/ttyUSB0

                uci set network.wan2.apn=apn

                uci set network.wan2.username=username

                uci set network.wan2.password=password

                uci set network.wan2.defaultroute=1

                uci commit network

                usb_modeswitch -v 12d1 -p 1436

                sleep 10; rmmod usbserial

                sleep 3; insmod usbserial vendor=0x12d1 product=0x1436

                sleep 5; /etc/init.d/firewall disable; /etc/init.d/firewall stop

                logger "3G: firewall stopped"

                iptables -t nat -A POSTROUTING -s 172.16.42.0/24 -o 3g-wan2 -j MASQUERADE

                iptables -A FORWARD -s 172.16.42.0/24 -o 3g-wan2 -j ACCEPT

                iptables -A FORWARD -d 172.16.42.0/24 -m state --state ESTABLISHED,RELATED -i 3g-wan2 -j ACCEPT



                ;;

*12d1:140c*)    echo "Huawei Modem (3-IRL) detected. Attempting mode switch"

                uci delete network.wan2

                uci set network.wan2=interface

                uci set network.wan2.ifname=ppp0

                uci set network.wan2.proto=3g

                uci set network.wan2.service=umts

                uci set network.wan2.device=/dev/ttyUSB0

                uci set network.wan2.apn=3internet

                uci set network.wan2.username=

                uci set network.wan2.password=

                uci set network.wan2.defaultroute=1

                uci commit network

                usb_modeswitch -v 12d1 -p 140c -V 12d1 -P 140c -M 5553424312345678000000000000061b000000020000000000000000000000 -n 1 -s 20

                sleep 10; rmmod usbserial

                sleep 3; insmod usbserial vendor=0x12d1 product=0x140c

                sleep 5; /etc/init.d/firewall disable; /etc/init.d/firewall stop

                logger "3G: firewall stopped"

                iptables -t nat -A POSTROUTING -s 172.16.42.0/24 -o 3g-wan2 -j MASQUERADE

                iptables -A FORWARD -s 172.16.42.0/24 -o 3g-wan2 -j ACCEPT

                iptables -A FORWARD -d 172.16.42.0/24 -m state --state ESTABLISHED,RELATED -i 3g-wan2 -j ACCEPT



                ;;

esac



Can i ask what dongle / carrier you are using InTheDMZ? Seeing as you are also in the uk.

Link to comment
Share on other sites

In the past I managed to get a vodafone 3g dongle working pretty easily with the pineapple in the uk. The only issue I found was that the 3g signal didn't seem very reliable. I would suggest trying a 3g mifi, in my experience they are a lot better but slightly more expensive than the dongle.

Link to comment
Share on other sites

try this instead of the existing settings for the 173:

*12d1:1436*)    echo "Huawei E173 detected. Attempting mode switch"

                uci delete network.wan2

                uci set network.wan2=interface

                uci set network.wan2.ifname=ppp0

                uci set network.wan2.proto=3g

                uci set network.wan2.service=umts

                uci set network.wan2.device=/dev/ttyUSB0

                uci set network.wan2.apn=mobile.o2.co.uk

                uci set network.wan2.username=payandgo

                uci set network.wan2.password=password

                uci set network.wan2.defaultroute=1

                uci commit network

                usb_modeswitch -v 12d1 -p 1436

                sleep 10; rmmod usbserial

                sleep 3; insmod usbserial vendor=0x12d1 product=0x1436

                sleep 5; /etc/init.d/firewall disable; /etc/init.d/firewall stop

                logger "3G: firewall stopped"

                iptables -t nat -A POSTROUTING -s 172.16.42.0/24 -o 3g-wan2 -j MASQUERADE

                iptables -A FORWARD -s 172.16.42.0/24 -o 3g-wan2 -j ACCEPT

                iptables -A FORWARD -d 172.16.42.0/24 -m state --state ESTABLISHED,RELATED -i 3g-wan2 -j ACCEPT

Link to comment
Share on other sites

@laputer:) i might just buy one to see if it works.

@InTheDMZ : Thanks for that but still no joy im afraid.

IPCP: timeout sending Config-Requests

then 30 seconds later it times out with the same

17:56:32 Pineapple daemon.notice pppd[4183]: Modem hangup
17:56:32 Pineapple daemon.notice netifd: Interface 'wan2' is now down
17:56:32 Pineapple daemon.info pppd[4183]: Exit.
17:56:31 Pineapple daemon.notice pppd[4183]: Connection terminated.
17:56:25 Pineapple daemon.warn pppd[4183]: IPCP: timeout sending Config-Requests
21:23:14 Pineapple daemon.notice pppd[2514]: CHAP authentication succeeded
21:23:14 Pineapple daemon.info pppd[2514]: CHAP authentication succeeded
21:23:13 Pineapple local2.info chat[2518]: timeout set to 30 seconds
21:23:13 Pineapple local2.info chat[2518]: send (ATD*99***1#^M)
21:23:13 Pineapple local2.info chat[2518]: send ( ^M)
21:23:13 Pineapple local2.info chat[2518]: expect (OK)
21:23:13 Pineapple local2.info chat[2518]: expect (CONNECT)
21:23:13 Pineapple local2.info chat[2518]: ^M
21:23:13 Pineapple local2.info chat[2518]: ^M
21:23:13 Pineapple local2.info chat[2518]: OK
21:23:13 Pineapple local2.info chat[2518]: CONNECT
21:23:13 Pineapple local2.info chat[2518]: ATD*99***1#^M^M
21:23:13 Pineapple local2.info chat[2518]: AT+CGDCONT=1,"IP","mobile.o2.co.uk"^M^M
21:23:13 Pineapple local2.info chat[2518]: -- got it
21:23:13 Pineapple local2.info chat[2518]: -- got it
21:23:13 Pineapple daemon.notice pppd[2514]: Connect: 3g-wan2 <--> /dev/ttyUSB0
21:23:13 Pineapple daemon.info pppd[2514]: Using interface 3g-wan2
21:23:13 Pineapple daemon.info pppd[2514]: Serial connection established.
21:23:12 Pineapple local2.info chat[2518]: timeout set to 10 seconds
21:23:12 Pineapple local2.info chat[2518]: send (ATE1^M)
21:23:12 Pineapple local2.info chat[2518]: send (AT+CGDCONT=1,"IP","mobile.o2.co.uk"^M)
21:23:12 Pineapple local2.info chat[2518]: send (AT&F^M)
21:23:12 Pineapple local2.info chat[2518]: report (CONNECT)
21:23:12 Pineapple local2.info chat[2518]: expect (OK)
21:23:12 Pineapple local2.info chat[2518]: expect (OK)
21:23:12 Pineapple local2.info chat[2518]: abort on (NO CARRIER)
21:23:12 Pineapple local2.info chat[2518]: abort on (ERROR)
21:23:12 Pineapple local2.info chat[2518]: abort on (BUSY)
21:23:12 Pineapple local2.info chat[2518]: ^M
21:23:12 Pineapple local2.info chat[2518]: OK
21:23:12 Pineapple local2.info chat[2518]: OK
21:23:12 Pineapple local2.info chat[2518]: ATE1^M^M
21:23:12 Pineapple local2.info chat[2518]: AT&F^M^M
21:23:12 Pineapple local2.info chat[2518]: -- got it
21:23:12 Pineapple local2.info chat[2518]: -- got it
21:23:11 Pineapple daemon.notice pppd[2514]: pppd 2.4.5 started by root, uid 0
21:23:11 Pineapple daemon.info dnsmasq[1178]: using nameserver 8.8.8.8#53
21:23:11 Pineapple daemon.info dnsmasq[1178]: using local addresses only for domain lan
21:23:11 Pineapple daemon.info dnsmasq[1178]: reading /tmp/resolv.conf.auto

GifGaf and o2 are essentially the same carrier i think.

Edited by WideEyedAndClueless
Link to comment
Share on other sites

If you get the vodafone 3g dongle this is the script that I used :-

# -----------------------------------------------------------
# Configure /etc/ppp/options with hard-coded working settings
# -----------------------------------------------------------
echo "
logfile /dev/null
noaccomp
nopcomp
nocrtscts
lock
maxfail 0" > /etc/ppp/options

# --------------------------------------------------------------------------------------------------
# Check for known usb modem vendor and product IDs then switch 'em from storage to serial modem mode
# --------------------------------------------------------------------------------------------------
echo "Searching for attached 3G Modems"
logger "3G: Connection Script here, searching for modems"
MODEM=$(lsusb | awk '{ print $6 }')
echo $MODEM

case "$MODEM" in

*12d1:14c9*) echo "Vodafone 3g. Mode switch disabled"
uci delete network.wan2
uci set network.wan2=interface
uci set network.wan2.ifname=ppp0
uci set network.wan2.proto=3g
uci set network.wan2.service=umts
uci set network.wan2.device=/dev/ttyUSB0
uci set network.wan2.apn=SMART
uci set network.wan2.username="username"
uci set network.wan2.password="password"
uci set network.wan2.defaultroute=1
uci commit network
#usb_modeswitch -v 12d1 -p 1436
sleep 10; rmmod usbserial
sleep 3; insmod usbserial vendor=0x12d1 product=0x14c9
sleep 5; /etc/init.d/firewall disable; /etc/init.d/firewall stop
logger "3G: firewall stopped"
iptables -t nat -A POSTROUTING -s 172.16.42.0/24 -o 3g-wan2 -j MASQUERADE
iptables -A FORWARD -s 172.16.42.0/24 -o 3g-wan2 -j ACCEPT
iptables -A FORWARD -d 172.16.42.0/24 -m state --state ESTABLISHED,RELATED -i 3g-wan2 -j ACCEPT

;;
*12d1:14d1*) echo "Vodafone 3g. Attempting mode switch"
uci delete network.wan2
uci set network.wan2=interface
uci set network.wan2.ifname=ppp0
uci set network.wan2.proto=3g
uci set network.wan2.service=umts
uci set network.wan2.device=/dev/ttyUSB0
uci set network.wan2.apn=SMART
uci set network.wan2.username="username"
uci set network.wan2.password="password"
uci set network.wan2.defaultroute=1
uci commit network
usb_modeswitch -v 12d1 -p 14d1 -V 12d1 -P 14c9 -M 55534243123456780000000000000011062000000100000000000000000000 -n 1 -s 20
sleep 10; rmmod usbserial
sleep 3; insmod usbserial vendor=0x12d1 product=0x14c9
sleep 5; /etc/init.d/firewall disable; /etc/init.d/firewall stop
logger "3G: firewall stopped"
iptables -t nat -A POSTROUTING -s 172.16.42.0/24 -o 3g-wan2 -j MASQUERADE
iptables -A FORWARD -s 172.16.42.0/24 -o 3g-wan2 -j ACCEPT
iptables -A FORWARD -d 172.16.42.0/24 -m state --state ESTABLISHED,RELATED -i 3g-wan2 -j ACCEPT

;;
esac

Link to comment
Share on other sites

Thanks inTheDMZ but it still doesnt want to play ball :

21:39:45 Pineapple daemon.notice pppd[2281]: Modem hangup
21:39:45 Pineapple daemon.notice netifd: Interface 'wan2' is now down
21:39:45 Pineapple daemon.info pppd[2281]: Exit.
21:39:44 Pineapple daemon.notice pppd[2281]: Connection terminated.
21:39:38 Pineapple daemon.warn pppd[2281]: IPCP: timeout sending Config-Requests
21:39:05 Pineapple daemon.notice pppd[2281]: CHAP authentication succeeded
21:39:05 Pineapple daemon.info pppd[2281]: CHAP authentication succeeded
21:39:04 Pineapple local2.info chat[2285]: timeout set to 30 seconds
21:39:04 Pineapple local2.info chat[2285]: timeout set to 10 seconds
21:39:04 Pineapple local2.info chat[2285]: send (ATE1^M)
21:39:04 Pineapple local2.info chat[2285]: send (ATD*99***1#^M)
21:39:04 Pineapple local2.info chat[2285]: send (AT+CGDCONT=1,"IP","payandgo.o2.co.uk"^M)
21:39:04 Pineapple local2.info chat[2285]: send (AT&F^M)
21:39:04 Pineapple local2.info chat[2285]: send ( ^M)
21:39:04 Pineapple local2.info chat[2285]: report (CONNECT)
21:39:04 Pineapple local2.info chat[2285]: expect (OK)
21:39:04 Pineapple local2.info chat[2285]: expect (OK)
21:39:04 Pineapple local2.info chat[2285]: expect (OK)
21:39:04 Pineapple local2.info chat[2285]: expect (CONNECT)
21:39:04 Pineapple local2.info chat[2285]: abort on (NO CARRIER)
21:39:04 Pineapple local2.info chat[2285]: abort on (ERROR)
21:39:04 Pineapple local2.info chat[2285]: abort on (BUSY)
21:39:04 Pineapple local2.info chat[2285]: ^M
21:39:04 Pineapple local2.info chat[2285]: ^M
21:39:04 Pineapple local2.info chat[2285]: ^M
21:39:04 Pineapple local2.info chat[2285]: OK
21:39:04 Pineapple local2.info chat[2285]: OK
21:39:04 Pineapple local2.info chat[2285]: OK
21:39:04 Pineapple local2.info chat[2285]: CONNECT
21:39:04 Pineapple local2.info chat[2285]: ATE1^M^M
21:39:04 Pineapple local2.info chat[2285]: ATD*99***1#^M^M
21:39:04 Pineapple local2.info chat[2285]: AT+CGDCONT=1,"IP","payandgo.o2.co.uk"^M^M
21:39:04 Pineapple local2.info chat[2285]: AT&F^M^M
21:39:04 Pineapple local2.info chat[2285]: -- got it
21:39:04 Pineapple local2.info chat[2285]: -- got it
21:39:04 Pineapple local2.info chat[2285]: -- got it
21:39:04 Pineapple local2.info chat[2285]: -- got it
21:39:04 Pineapple daemon.notice pppd[2281]: Connect: 3g-wan2 <--> /dev/ttyUSB0
21:39:04 Pineapple daemon.info pppd[2281]: Using interface 3g-wan2
21:39:04 Pineapple daemon.info pppd[2281]: Serial connection established.
21:39:03 Pineapple daemon.notice pppd[2281]: pppd 2.4.5 started by root, uid 0
21:39:03 Pineapple daemon.info dnsmasq[1179]: using nameserver 8.8.8.8#53
21:39:03 Pineapple daemon.info dnsmasq[1179]: using local addresses only for domain lan
21:39:03 Pineapple daemon.info dnsmasq[1179]: reading /tmp/resolv.conf.auto
21:38:17 Pineapple daemon.notice pppd[2219]: pppd 2.4.5 started by root, uid 0
21:38:17 Pineapple daemon.info dnsmasq[1179]: using nameserver 8.8.8.8#53
21:38:17 Pineapple daemon.info dnsmasq[1179]: using local addresses only for domain lan
21:38:17 Pineapple daemon.info dnsmasq[1179]: reading /tmp/resolv.conf.auto

Edited by WideEyedAndClueless
Link to comment
Share on other sites

the last few entries are

21:39:45 Pineapple daemon.notice pppd[2281]: Modem hangup
21:39:45 Pineapple daemon.notice netifd: Interface 'wan2' is now down
21:39:45 Pineapple daemon.info pppd[2281]: Exit.
21:39:44 Pineapple daemon.notice pppd[2281]: Connection terminated.
21:39:38 Pineapple daemon.warn pppd[2281]: IPCP: timeout sending Config-Requests

21:39:05 Pineapple daemon.notice pppd[2281]: CHAP authentication succeeded

The blue light on the dongle is still flashing, not solid blue. I tried connecting up through the pineapple with another computer but it got no internet access. The log just repeates the section i posted over and over, each time failing at "IPCP: timeout sending Config-Requests".

Link to comment
Share on other sites

  • 2 weeks later...

In the end at the advice of InTheDMZ i swapped to an unlocked ZTE MF637 on 3UK PayG. And after a couple of reboots of the pineapple it connects up great.

*19d2:0031*) echo "ZTE MF637 (3UK) detected. Attempting mode switch"
uci delete network.wan2
uci set network.wan2=interface
uci set network.wan2.ifname=ppp0
uci set network.wan2.proto=3g
uci set network.wan2.service=umts
uci set network.wan2.device=/dev/ttyUSB2
uci set network.wan2.apn=three.co.uk
uci set network.wan2.defaultroute=1
uci commit network
sleep 10; rmmod usbserial
sleep 5; insmod usbserial vendor=0x19d2 product=0x0031
sleep 5; /etc/init.d/firewall disable; /etc/init.d/firewall stop
logger "3G: firewall stopped"
iptables -t nat -A POSTROUTING -s 172.16.42.0/24 -o 3g-wan2 -j MASQUERADE
iptables -A FORWARD -s 172.16.42.0/24 -o 3g-wan2 -j ACCEPT
iptables -A FORWARD -d 172.16.42.0/24 -m state --state ESTABLISHED,RELATED -i 3g-wan2 -j ACCEPT

Big thanks to InTheDMZ for the advice and script.

Edited by WideEyedAndClueless
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...