DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 1st June 2010
psychonics psychonics is offline
New User
 
Join Date: Oct 2008
Posts: 5
Thanked 0 Times in 0 Posts
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
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to config PF as router and source based routing kivi_kmitl OpenBSD Security 0 4th May 2010 08:06 AM
FreeBSD New Frenzy Live CD based on FreeBSD 8.0 J65nko News 3 11th January 2010 06:15 PM
A name for an embedded FreeBSD-based OS nimnod Off-Topic 15 16th March 2009 03:06 PM
Firewall on (A)DSL modems JMJ_coder General software and network 10 30th January 2009 12:31 AM


All times are GMT. The time now is 11:30 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick