lechtermann.net: OpenBSD journal
Home : : Add Story : : Archives : : CVSweb : : About : : Create Account : : Login :
OpenBSD/UMTS with Fonic Surf-Stick (Huawei E160)
Contributed by belenus on Mon Feb 23 18:00:00 2009 (GMT)
from the mobility dept.

After getting me a new UMTS stick to be able to go online even when there is no WLAN available I stumbled about a thread at misc@ which helped me a lot. Basically you only need to create the following 3 files...

/etc/ppp/fonic.connect:
--------------------------------------------------------------------------------------
#!/bin/sh

chat -vs \
        ABORT 'NO CARRIER' \
        ABORT 'NO DIALTONE' \
        ABORT ERROR \
        ABORT 'NO ANSWER' \
        ABORT BUSY '' \
        at OK \
        atz OK \
        at+cpin=**** OK \
        'AT+CGDCONT=1,"IP","pinternet.interkom.de"' OK \
        'atdt*99***1#' CONNECT
--------------------------------------------------------------------------------------

/etc/ppp/disconnect:
--------------------------------------------------------------------------------------
#!/bin/sh

chat -vs \
        ABORT 'NO CARRIER' \
        ABORT 'NO DIALTONE' \
        ABORT ERROR \
        ABORT 'NO ANSWER' \
        ABORT BUSY '' \
        '\K' '' '+++ATH'
--------------------------------------------------------------------------------------

/etc/ppp/peers/fonic:
--------------------------------------------------------------------------------------
cuaU0
connect /etc/ppp/fonic.connect
disconnect /etc/ppp/disconnect
#460800
nocrtscts
xonxoff
#mtu 576
#mru 576
:10.0.0.1
noipdefault
ipcp-accept-local
defaultroute
usepeerdns
novj
nobsdcomp
novjccomp
nopcomp
noaccomp
noauth
nomagic
persist
--------------------------------------------------------------------------------------

Don't forget to replace the **** in the /etc/ppp/fonic.connect script with the pin of your SIM card!

Now you should be able to connect using UMTS with this simple command:
pppd dial fonic

If you want to drop the connection a simple pkill will do:
pkill pppd

If you liked this article and you are also going to order a Fonic Surf-Stick, please use the following number as Aktionscode when ordering and we both receive a 5 EUR bonus.

Mobilfunknummer / Aktionscode: 017678437197

Fonic FAQ: Freunde werben Freunde
[topicopenbsd]

<< Dovecot Managesieve Support | Reply | Flattened | Collapsed | Bundestag Petition: Keine Indizierung und Sperrung von Internetseiten >>

Threshold: Help

Related Links
more by belenus


[ Home | Add Story | Archives | Polls | About ]

Copyright © 2006-2009 Michael Lechtermann. All rights reserved. Articles and comments are copyright their respective authors, submission implies license to publish on this web site. Some icons from slashdot.org used with permission from Kathleen. This journal runs as CGI using chrooted Apache as supplied with OpenBSD, the original source code is BSD licensed. Search engine is a patched version of ht://Dig.