View Single Post
  #5   (View Single Post)  
Old 29th April 2009
DraconianTimes's Avatar
DraconianTimes DraconianTimes is offline
Security Geek
 
Join Date: May 2008
Location: United Kingdom
Posts: 37
Talking SOLVED!!!!

Finally got my Huawei E220 USB dongle working with Vodafone UK, after a serious amount of headaches and tiresome searching of various forums, newsgroups etc. For reference, I am running OpenBSD i386 4.5-CURRENT on an IBM T60 laptop (snapshot from a few days ago).

You need to create three key files:
/etc/ppp/pap-secrets
/etc/ppp/chat-vodafone
/etc/ppp/peers/vodafone

I also created a short script to get it all working (don't forget you need to create a ppp device prior to starting pppd - see my dial_vodafone.sh script below). I also needed to setup DNS in my /etc/resolv.conf manually - but you can use the OpenDNS servers or whichever ones you prefer (I couldn't find a definitive list of Vodafone's UK DNS servers).

/etc/ppp/pap-secrets
Code:
#	$OpenBSD: pap-secrets,v 1.3 2002/06/09 06:15:15 todd Exp $

# Secrets for authentication using PAP
# client	server	secret			IP addresses
"web"		*	"web"
/etc/ppp/chat-vodafone
Code:
ABORT BUSY
ABORT 'NO CARRIER'
ABORT ERROR
REPORT CONNECT
TIMEOUT 60
SAY "Calling Vodafone...\n"
'' "ATZ"
'' "AT+COPS?"
'' "AT_OPSYS=3"
'' "AT+CSQ"
'' 'AT+CGDCONT=1,"ip","internet"'
'' "ATD*99***1#"
CONNECT \d\c
/etc/ppp/peers/vodafone
Code:
ttyU0
384000
idle 7200
lock
debug
crtscts
modem
noauth
defaultroute
ipcp-restart 10
ipcp-accept-local
ipcp-accept-remote
0.0.0.0:10.64.64.64
noipdefault
novj
connect "/usr/sbin/chat -v -f /etc/ppp/chat-vodafone"
dial_vodafone.sh
Code:
#!/bin/sh
echo Create PPP interface...
ifconfig ppp0 create
echo Sleeping for 5 seconds...
sleep 5
echo Starting pppd...
pppd call vodafone
Hope this of use to some other folk!
Nick
Reply With Quote