Article View: ch.comp.os.linux
Article #22090Re: Internetzugang ueber Sunrise Freesurf
From: Didi Niklaus
Date: Mon, 31 May 1999 00:00
Date: Mon, 31 May 1999 00:00
151 lines
5669 bytes
5669 bytes
Hallo
Roger wrote:
> Hat jemand seinen Internetzugang von Linux (SuSE 6.1) ueber Sunrise
> Freesurf eingerichtet und koennte mir die entsprechenden Scripts
> (ppp.chat, ...) zusenden, resp. posten.
Ja, kann ich. Nur, ich habe noch SuSE 5.3, Kernel 2.0.35 und somit
einen anderen pppd als Du.
ppp-up:
~~~~~~~
#!/bin/sh
#-------------------------------------------------------------------------------
# $Id: ppp-up,v 1.2 1999/04/27 06:48:57 root Exp $
#
# /etc/ppp/ppp-up
#
# Author:
# Didi Niklaus <didi.niklaus@gmx.ch>
#
# Description:
# Invoke PPP link to ISP
#-------------------------------------------------------------------------------
prefix=031
#-------------------------------------------------------------------------------
# pppd options
#-------------------------------------------------------------------------------
device="/dev/modem" # modem device
speed="115200" # comm. speed between device and host
lock="lock" # lock the serial device to ensure exclusive access
asyncmap="asyncmap 0" # use all characters over the line
debug="debug" # increase debugging level
modem="modem" # use the modem control lines
crtscts="crtscts" # use hardware flow control
noipdefault="noipdefault" # we have dynamically assigned IP-addresses
defaultroute="defaultroute" # generate default route for the connection
# in the routingtable
idle="idle-disconnect 300" # shut link down after 300 seconds
# note: idle time must be shorter than the
# poll interval of fetchmail invoked
# by /etc/ppp/ip-up
#-------------------------------------------------------------------------------
# ISP specific parameters
#-------------------------------------------------------------------------------
isp=$1
[ -z $isp ] && isp="sunrise"
case $isp
in
sunrise)
num="5550065"
user="user sunrise"
;;
datacomm)
num="5550083"
user="user didi.niklaus"
;;
*)
exit 1
esac
PHONE=$prefix$num
#-------------------------------------------------------------------------------
# collect all pppd options
#-------------------------------------------------------------------------------
options1="$device $speed $user $lock $asyncmap $debug"
options2="$modem $crtscts $noipdefault $defaultroute $idle"
options="$options1 $options2"
#-------------------------------------------------------------------------------
# set up connection (with deluxe chat)
#-------------------------------------------------------------------------------
/usr/sbin/pppd $options connect "chat -v TIMEOUT 5 ABORT ERROR \
ABORT 'NO DIALTONE' ABORT 'NO CARRIER' ABORT BUSY TIMEOUT 60 \
'' '+++ATZ' OK ATDT$PHONE CONNECT"
#-------------------------------------------------------------------------------
# set up connection (with simple chat)
#-------------------------------------------------------------------------------
#/usr/sbin/pppd $options connect "chat -v '' ATDT$PHONE CONNECT"
#-------------------------------------------------------------------------------
Ich habe einen switch eingebaut, damit ich noch zwischen
verschiedenen Provider umschalten kann (als Argument in
der Kommandozeile), per default wird hier aber sunrise
freesurf ausgewaehlt.
Bei sunrise freesurf erfolgt der Login mit PAP, also ver-
wendet man das Token 'user' und setzt dazu 'sunrise' als
Benutzernamen.
In pap-secrets steht wiederum 'sunrise' als Benutzername
und 'freesurf' als secret.
Im Chatscript gibt es nichts mehr zu tun fuer den Login.
Die pppd-Option idle-disconnect geht bei Dir wahrscheinlich
nicht mehr (kenne den neuen pppd leider noch nicht). Die
Datei /etc/ppp/options habe ich komplett geleert.
pap-secrets:
~~~~~~~~~~~~
# /etc/ppp/pap-secrets
# Secrets for authentication using PAP
# client server secret IP addresses
didi.niklaus * sagichnicht
sunrise * freesurf
In pap-secrets koennen alle accounts aufgelistet werden, die
man benutzen moechte (auch bei verschiedenen Providern).
Hoffe, das hilft!
Uebrigens folgendes koennte nuetzlich sein in Zusammenhang
mit Freesurf:
DNS: 194.158.230.53 (primary)
194.158.230.54
Folgende zwei Newsserver koennen mit Sunrise Freesurf
verwendet werden:
- news.sunrise.ch (habe ich selber noch nicht versucht)
- news.spectraweb.ch (hat funktioniert)
Proxy:
proxy.spectraweb.ch (noch nicht sicher, dass das laeuft ;-)
Gruss, Didi
--
(o o)
-------------------------ooO-(_)-Ooo-------------------------
From: Didi Niklaus _/_/ _/_/_/_/_/ _/_/_/
Ascom Transmission AG _/ _/ _/ _/ _/
Bern, Switzerland _/_/_/_/ _/ _/_/_/
e-mail: nnikld@ascom.ch _/ _/ _/ _/ _/
-------------------------------------------------------------
Technical Details
Message-ID:
<375243FA.E8C8F8D0@ascom.ch>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<37523637.3C0FFF9@gmx.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f4b73,13d99c1153cc7ba4 X-Google-Attributes: gidf4b73,public From: Didi Niklaus <nnikld@ascom.ch> Subject: Re: Internetzugang ueber Sunrise Freesurf Date: 1999/05/31 Message-ID: <375243FA.E8C8F8D0@ascom.ch> X-Deja-AN: 483999097 Content-Transfer-Encoding: 7bit References: <37523637.3C0FFF9@gmx.net> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Ascom Transmission AG, Bern Mime-Version: 1.0 Newsgroups: ch.comp.os.linux