View Single Post
  #1   (View Single Post)  
Old 1st June 2010
psychonics psychonics is offline
Real Name: Brendon
goodold freebsd*****sdays
 
Join Date: Oct 2008
Location: I live in anonymous proxy too !!!
Posts: 5
Default PPP config for USB-based 3G / NextG HSDPA SIERRA 21 modems (FreeBSD 8.0)

This thread is strictly for setting up PPP configs for USB-based SIERRA Wireless HSPA 3G Modem (FreeBSD 8.0) and onward...

I have tried to work this out via searching here, there and everywhere. All I can achieve is a ppp script that says:

Code:
# ppp
Loading /lib/libalias_cuseeme.so
Loading /lib/libalias_ftp.so
Loading /lib/libalias_irc.so
Loading /lib/libalias_nbt.so
Loading /lib/libalias_pptp.so
Loading /lib/libalias_skinny.so
Loading /lib/libalias_smedia.so
Working in interactive mode
Using interface: tun0
ppp ON localhost> dial kpn
ppp ON localhost> Warning: Chat script failed
ppp ON localhost>
My ppp.conf file was produced by editing a "so called" 3G ppp.conf file which was sourced via the net:
Code:
# PPP config for 3G modems

# This is an example ppp configuration that allows connection to KPN 
# networks.
# Good coverage but crap configuration. If you need help with other 
# providers
# contact 
# for details.

# Issues:

# The destination IP address negotiated by PPP when using KPN as your 
# provider
# is invalid. You need to set up the default route to the interface, not 
# the IP
# address, hence the ppp.link* scripts.
# KPN does not hand out DNS servers, or at least, not that I can see. 
# Add
# entries from OpenDNS.


ppp.conf:
kpn:
 set device /dev/cuau0
 set speed 115200
 set timeout 0
 set authname MYAUTHNAME@MYISP.COM
 set authkey MYPASSWORD


 set dial "ABORT BUSY TIMEOUT 2 \
        \"\" \
        AT OK-AT-OK \
        AT+CFUN=1 OK-AT-OK \
        AT+CMEE=2 OK-AT-OK \
        AT+CSQ OK \
        AT+CGDCONT=1,\\\"IP\\\",\\\"internet\\\" OK \
        AT+CGACT? OK-AT-OK \
        AT+CGATT? OK \
        AT+CGCLASS? OK \
        AT+COPS? OK \
        ATD*99***1# CONNECT"

 ## Lower the MTU as this seems to make the link more stable for GPRS connections.
 #set mtu maximum 296
 #set mru maximum 296
 # set crtscts on
 # disable vjcomp
 # disable acfcomp
 # disable deflate
 # disable deflate24
 # disable pred1
 # disable protocomp
 # disable mppe
 # disable ipv6cp
 # disable lqr
 # disable echo
 nat enable yes 
 enable dns
 resolv writable
 set dns 208.67.220.220 208.67.222.222	# openDNS
 set ifaddr 10.1.0.2/0 10.1.0.1/0 255.255.255.255 0.0.0.0
 #add default HISADDR          # See ppp.link* 


ppp.linkup:
kpn:
 shell route delete default
 shell route add default -interface INTERFACE


ppp.linkdown:
default:
 shell logger "LABEL down (up UPTIME): OCTETSIN received, OCTETSOUT sent"

kpn:
 shell route delete default
This chat script seems to be the problem:

Code:
set dial "ABORT BUSY TIMEOUT 2 \
        \"\" \
        AT OK-AT-OK \
        AT+CFUN=1 OK-AT-OK \
        AT+CMEE=2 OK-AT-OK \
        AT+CSQ OK \
        AT+CGDCONT=1,\\\"IP\\\",\\\"internet\\\" OK \
        AT+CGACT? OK-AT-OK \
        AT+CGATT? OK \
        AT+CGCLASS? OK \
        AT+COPS? OK \
        ATD*99***1# CONNECT"
What I don't understand is why some USB 3G modem PPP.confs ie, other O/S's have to dial a *99# number or similar and are set up obviously with entire different chat scripts.... now, this is the chat script for FreeBSD as it was sourced from freebsd.org.

If anyone else has the USB-based SIERRA Wireless HSPA 3G Modem and actually managed to find a working chat script please upload your ppp.conf here.. THX.

If not don't worry, I'll work the b@st@rd out eventually >8-D.

Anyway,, it's great to be back here at Daemonforums with whats left of us FreeBSDForum heads,,, THX Everyone who actively revived most of the old archives (any that could be salvaged) and those who developed the Daemonforums >8-D.

Last edited by psychonics; 2nd June 2010 at 11:54 AM.
Reply With Quote