Hi, Ive tried using your configs and the other pppd methods, but failed to get
any to connect. Only just checked out the presentation slides suggested so
I will dig out through the logs and try to figure out the connection.

Right now I can connect through manual ppp(8) dialing, as in the man page. While
SSH and ftp connects are working, I cannot get through to anywhere with a web
browser and attempts using cvs leave the connection hanging.

Anyone have any ideas?

TJ


On Mon, 16 Feb 2009, Stefan Sperling wrote:

Date: Mon, 16 Feb 2009 21:45:34 +0000
From: Stefan Sperling <s...@stsp.name>
To: Tom Jones <jo...@sdf.lonestar.org>
Cc: misc@openbsd.org
Subject: Re: Huawei Modem Setup


The following setup worked fine in Ireland with this exact modem.
The ISP was three.ie. It uses pppd(8), so run 'pppd call three' to
connect.

Note that you need this patch if you don't run -current, otherwise the
modem will only attach very late (about 30 seconds after being plugged in):
http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/usb/umsm.c.diff?r1=1.34;r2=1.35

See also http://www.hazardous.org/~fkr/openbsd/openbsd_gprs_umts.html,
especially the slide set linked there:
http://hazardous.org/~fkr/talks/gprs_umts_talk_lf2006.pdf

You don't need to configure any kind of authentication for the
ppp session.

I could not ping the other end of the peer-to-peer connection,
no IP was assigned to the other end. However, simply setting a default
route to the local end of the peer-to-peer connection (i.e. pointing
to the local ppp0 interface) was enough to be able to connect to
hosts on the internet.

The DNS servers three gave me didn't respond.
You may need to use some other well-known DNS server instead.

For this reason, if you connect for the first time, it's handy to
have the IP address of my.three.ie handy in order to be able to
top up. That worked for me with firefox after I had figured out
the pppd part (which took me, like, 2 days.... :/ )

Oddly enough, even if you did never top up yet, you can get one packet
through to the internet and get a reply packet, after that three starts
dropping your packets. This allowed me to issue a single DNS query
to a nameserver the IP of which I know by heart to find out the IP of
my.three.ie. :)

Please keep any further questions on-list, umts stuff is not well documented
so it's good to have this in the archives.

Good luck,
Stefan

/etc/ppp/peers/three:
        debug
        /dev/cuaU0
        460800
        lock
        persist
        noauth
        # my ISP does weird stuff in the ipcp session
        0.0.0.0:10.64.64.64
        netmask 255.255.255.255
        ipcp-accept-local
        ipcp-accept-remote
        noipdefault
        crtscts
        deflate 0
        bsdcomp 0
        noccp
        novj
        novjccomp
        nopcomp
        #nodetach
        mru 1440
        refuse-chap
        connect '/usr/sbin/chat -f /etc/ppp/peers/three.chat'

/etc/ppp/peers/three.chat:
        ABORT BUSY
        ABORT ERROR
        ABORT "NO CARRIER"
        ABORT VOICE
        ABORT "NO DIALTONE"
        "" AT
        OK AT+CGDCONT=1,"IP","3ireland.ie"
        OK ATDT*99#
        TIMEOUT 40
        CONNECT \c

/etc/ppp/ip-up:
        #!/bin/sh

        IFACE=$1
        TTY=$2
        SPEED=$3
        MYADDR=$4
        HISADDR=$5
        PARAM=$6

        /sbin/route add default $MYADDR

/etc/ppp/ip-down:
        #!/bin/sh

        IFACE=$1
        TTY=$2
        SPEED=$3
        MYADDR=$4
        HISADDR=$5
        PARAM=$6

        /sbin/route delete default $MYADDR


--------------------------------------------------------
jones@
sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org
-------------------------------------------------------

Reply via email to