Daniel's Blog
29 Jan/12 0

Online via UMTS surf stick with Debian using wvdial and O2 Mobile Flat

Since my new DSL line is activated only in a few weeks, I have the option to Alice "Quick Start" is selected. Was switched here you get a SIM card that you can surf for free for 3 months, as a stopgap until the DSL connection.

Of course I did not make the Internet connection from a client, but as usual on my home server, which acts for the entire home network and router.

The biggest problems I had with the Alice hotline. The SIM card was a quick guide on how to activate it via the Alice portal. Unfortunately, neither the site in Firefox, Chrome or Opera is working properly. I'm not advanced to the activation of the SIM card.

So, unfortunately, calls to the hotline 01 805. Very annoying for 42ct./Min.

The hotline, the Akivierung the map was done quickly, fortunately, there I was, unfortunately, could not immediately call the APN needed for the configuration of wvdial. I wanted to make sure I had some fear of exorbitant bills at the wrong configuration of the value. Here I could help the technology to happiness. For the Alice / O2 QuickStart Mobile Internet APN is the flat, according to the Hotline "internet.partner1". When assigning the name was probably no one involved in the marketing ;)

As a next step, I have inserted the SIM card into a mobile phone to wait for the activation and those aware of it. It went pretty quickly, after about 30 minutes, my SIM was already active and logs in to the grid. Amazingly fast, since the activation of Alice initially promoted to O2. To force the phone to new einzubuchen into the net, it can be off and on again. I have now with the phone still disables the SIM PIN code request because I had some time ago already bad problems with wvdial and a PIN.

The rest worked amazingly well.

I have the SIM in my Huawei Surf Drive (T-Mobile Surf Stick III)

 Bus 001 Device 004: ID 12d1: 1003 Huawei Technologies Co., Ltd..  E220 HSDPA Modem / E270 HSDPA / HSUPA Modem

inserted. After plugging in a USB port with a current kernel Debian provides the device / dev/ttyUSB0 available.

This may appeal to you with wvdial

 # / Etc / wvdial.conf

 [Dialer Defaults]
 Init1 = ATZ
 Init2 = ATQ0 V1 E1 S0 = 0 & C1 & D2 + FCLASS = 0
 Init3 = AT + CGDCONT = 1, "IP", "internet.partner1"
 Phone = * 99 *** 1 #
 Password = blank
 Username = blank
 New PPPD = yes
 Modem = / dev/ttyUSB0
 Baud = 460800
 Modem Type = USB Modem
 Auto Reconnect = on

Can then be a "wvdial" the connection is established:

 gbn-root-00: 19:27 ~ -> wvdial
 -> WvDial: Internet dialer version 1.60
 -> Can not get information for serial port
 -> Initializing modem.
 -> Sending: ATZ
 ATZ
 OK
 -> Sending: ATQ0 V1 E1 S0 = 0 & C1 & D2 + FCLASS = 0
 ATQ0 V1 E1 S0 = 0 & C1 & D2 + FCLASS = 0
 OK
 -> Sending: AT + CGDCONT = 1, "IP", "internet.partner1"
 AT + CGDCONT = 1, "IP", "internet.partner1"
 OK
 -> Modem initialized.
 -> Sending: ATDT * 99 *** 1 #
 -> Waiting for carrier.
 ATDT * 99 *** 1 #
 CONNECT
 -> Carrier detected.  Waiting for prompt.
 -> Do not know what to do!  Starting pppd and hoping for the best.
 -> Starting pppd at Sun January 29 2012 00:19:58
 -> Pid of pppd: 3749
 -> Using interface ppp0
 -> Pppd: ȧ
 -> Pppd: ȧ
 -> Pppd: ȧ
 -> Pppd: ȧ
 -> Pppd: ȧ
 -> Pppd: ȧ
 -> Local IP address 10.43.145.228
 -> Pppd: ȧ
 -> Remote IP address 10.64.64.64
 -> Pppd: ȧ
 -> Primary DNS address 193 189 244 225
 -> Pppd: ȧ
 -> Secondary DNS address 193 189 244 206
 -> Pppd: ȧ 

After this is over the air interface to the Internet PPP0 device is available that you can now use for routing and firewall rules.

Downstream is in the center of Dusseldorf just fine, the upstream can be desired, however, VERY:

 Download speed: 2082 kbit / s (260 kByte / s)
 Upload speed: 71 kbit / s (9 kbytes / s)

But ... Do not look a gift horse in the mouth. I would pay for this performance, however.


Supplement

Unfortunately, the compound is not stable. After less than an hour, no more data to flow over PPP0, wvdial gets them unfortunately with nothing and thinks the connection is still active, choose one that is not itself continuously. To debug this problem was too complicated, because this workaround in any case only a few weeks until the circuit has to work the DSLers. The following small script checks whether the connection is still valid. If not, run wvdial and killed again.

 # / Bin / bash

 ping-c 1 www.google.de> / dev / null

 if $ [?  -Ne 0];
         then
         killall wvdial
         echo `date` >> / var / log / connection_lost.log
         wvdial &
 fi

I call this script automatically via a cron job and am always on:

 # / Etc / crontab

 # REDIAL CRAPPY O2 Online
 ***** Root / root / scripts / redial_ppp


Pitfalls:

  • SIM PIN protection is not disabled
  • The mobile connection provider is unfortunately geNATtet. The private server is not directly accessible from the outside. Server services can be offered only with difficulty.
Comments (0) Trackbacks (0)

This article was not posted any comments.


Leave a comment

Please copy the string to the field below BIyUnL:

No trackbacks.