funguje to s
http://t-mobile.cz/Web/Residential/Telefony/Telefon.aspx/Telefon/305vytvořit...
/etc/ppp/chap-secrets# Secrets for authentication using CHAP
# client server secret IP addresses
GPRS * GPRS
/etc/ppp/pap-secrets# This is a pap-secrets file to be used with the AUTO_PPP function of
# mgetty. mgetty-0.99 is preconfigured to startup pppd with the login option
# which will cause pppd to consult /etc/passwd (and /etc/shadow in turn)
# after a user has passed this file. Don't be disturbed therefore by the fact
# that this file defines logins with any password for users. /etc/passwd
# (again, /etc/shadow, too) will catch passwd mismatches.
#
# This file should block ALL users that should not be able to do AUTO_PPP.
# AUTO_PPP bypasses the usual login program so it's necessary to list all
# system userids with regular passwords here.
#
# ATTENTION: The definitions here can allow users to login without a
# password if you don't use the login option of pppd! The mgetty Debian
# package already provides this option; make sure you don't change that.
# INBOUND connections
# Every regular user can use PPP and has to use passwords from /etc/passwd
* hostname "" *
# UserIDs that cannot use PPP at all. Check your /etc/passwd and add any
# other accounts that should not be able to use pppd!
guest hostname "*" -
master hostname "*" -
root hostname "*" -
support hostname "*" -
stats hostname "*" -
# OUTBOUND connections
# Here you should add your userid password to connect to your providers via
# PAP. The * means that the password is to be used for ANY host you connect
# to. Thus you do not have to worry about the foreign machine name. Just
# replace password with your password.
# If you have different providers with different passwords then you better
# remove the following line.
# * password
GPRS * GPRS
/etc/ppp/peers/umts# File:
# umts
#
# Description:
# Serial cable, IrDA, Bluetooth and USB pppd options for GPRS phones.
# See 'man pppd' for detailed option descriptions.
# Most GPRS phones don't reply to LCP echo's
# lcp-echo-failure 0
# lcp-echo-interval 0
# Keep pppd attached to the terminal:
# Comment this to get daemon mode pppd
nodetach
# Debug info from pppd:
# Comment this off, if you don't need more info
debug
# Show password in debug messages
hide-password
# The phone is not required to authenticate:
noauth
# Connect script:
# scripts to initialize the GPRS modem and start the connection,
# wvdial command is for Orange SPV while other phones should work with chat
#connect /etc/ppp/peers/gprs-connect-chat
connect "/usr/bin/wvdial --chat --config /etc/ppp/peers/umts-wvdial.conf umts_usb_spv"
#connect "/usr/sbin/chat -v -f /etc/chatscripts/umts"
# Disconnect script:
# AT commands used to 'hangup' the GPRS connection.
disconnect /etc/ppp/peers/umts-disconnect-chat
# Serial device to which the GPRS phone is connected:
# /dev/ttyS0 for serial port (COM1 in Windows),
# /dev/ircomm0 for IrDA,
# /dev/ttyUB0 for Bluetooth (Bluez with rfcomm running) and
/dev/ttyUSB0 # for USB
#/dev/ttyS0 # serial port one
#/dev/ttyS1 # serial port two
#/dev/ircomm0 # IrDA serial port one
#/dev/rfcomm0 # Bluetooth serial port one
#/dev/ttyACM0 # USB serial device, for example Orange SPV
# Serial port line speed
115200 # fast enough
#57600 # perhaps usefull with IrDA as some phones don't like
# speeds higher than this
# Hardware flow control:
# Use hardware flow control with cable, Bluetooth and USB but not with IrDA.
crtscts # serial cable, Bluetooth and USB, on some occations with IrDA too
#nocrtscts # IrDA
# Ignore carrier detect signal from the modem:
# local
# IP addresses:
# - accept peers idea of our local address and set address peer as 10.0.0.1
# (any address would do, since IPCP gives 0.0.0.0 to it)
# - if you use the 10. network at home or something and pppd rejects it,
# change the address to something else
# :10.0.0.1
# Add the ppp interface as default route to the IP routing table
defaultroute
# pppd must not propose any IP address to the peer!
noipdefault
# Username and password:
# If username and password are required by the APN, put here the username
# and put the username-password combination to the secrets file:
# /etc/ppp/pap-secrets for PAP and /etc/ppp/chap-secrets for CHAP
# authentication. See pppd man pages for details.
# Example, Radiolinja operator pap-secrets:
# "username" * "password" *
user "username"
ipparam umts
# Accept peers idea of our local address
# ipcp-accept-local
# Newer pppd's also support replacing the default route, if one is
# already present, when the GPRS connetion should be set as the default route
# to the network
#replacedefaultroute
# DNS servers from the phone:
# some phones support this, some don't.
usepeerdns
# ppp compression:
# ppp compression may be used between the phone and the pppd, but the
# serial connection is usually not the bottleneck in GPRS, so the
# compression is useless (and with some phones need to disabled before
# the LCP negotiations succeed).
# novj
# nobsdcomp
# novjccomp
# nopcomp
# noaccomp
# The persist tries to reopen the connection if it is dropped. This
# is usefull for example with a Nokia 7650 which only manages to
# 'dial' with every second attempt or when the network likes to drop the
# connection every now and then. It's not fun when the over-night
# 'apt-get dist-upgrade -d -y' fails constantly...
#persist
#maxfail 99
# Asyncmap:
# some phones may require this option.
#asyncmap 0xa0000
# No magic:
# some phones may require this option.
#nomagic
# Require PAP authentication:
# some phones may require this option.
#require-pap
/etc/ppp/peers/umts-disconnect-chat#!/bin/sh
#
# $Id: gprs-disconnect-chat,v 1.3 2004/07/08 22:40:47 mcfrisk Exp $
#
# File:
# gprs-disconnect-chat
# umts-wvdial.conf
# send break
exec /usr/sbin/chat -V -s -S \
ABORT "BUSY" \
ABORT "ERROR" \
ABORT "NO DIALTONE" \
SAY "\nSending break to the modem\n" \
"" "\K" \
"" "\K" \
"" "\K" \ # gprs-wvdial.conf
#
# Description:
# Wvdial settings for different GPRS phones and operators. See wvdial man pages
# for more help. Below are the service specific settings, which should be given
# by the operator - at least the
#
# Set PDP (Packet Data Protocol) context CID (Context ID) = 1 (an index sort of
# since a phone may have many different GPRS settings), protocol = IP,
# APN (Access Point Name) = "internet":
# AT+CGDCONT=1,"IP","internet","",0,0
#
# Set CID=1 QoS (Quality of Service) requirements from the network, not
# supported by Nokia phones:
# AT+CGQREQ=1,0,0,0,0,0
#
# Set CID=1 minimum acceptable QoS parameters, not supported by Nokia phones:
# AT+CGQMIN=1,0,0,0,0,0
#
# Call CID=1 which activate PDP context one and perform GPRS attach:
# ATD*99***1#
#
# Some phones seem to have only one CID, in which case the CID can be omitted
# when calling:
# ATD*99#
#
# Init4 = AT+CGQREQ=1,0,0,0,0,0
# Init5 = AT+CGQMIN=1,0,0,0,0,0
[Dialer radiolinja_usb_orange_spv]
#Modem = /dev/ttyUSB0
#Baud = 115200
Init1 = ATH
Init2 = ATE1
# Init3 = AT+CGDCONT=1,"IP","internet","",0,0a
Init3 = AT+CGDCONT=1,"IP","internet","",0,0
# Some phones like the NEC DB7000 don't like empty strings, so an address must
# be provided
#Init3 = AT+CGDCONT=1,"IP","internet","0.0.0.0",0,0
# Some phones don't like the quality of service parameters:
# Init4 = AT+CGQREQ=1,0,0,0,0,0
# Init5 = AT+CGQMIN=1,0,0,0,0,0
Dial Command = ATD
Phone = *99#
# Phone = ATD*99***1#
Username = jmeno
Password = heslo
[Dialer umts_usb_spv]
#Modem = /dev/ttyUSB0
#Baud = 115200
Init1 = ATZ
# Init2 = AT Q0 V1 E1 50=0 &C1 &D2 +FCLASS=0
Init2 = AT+CGDCONT=1,"PPP","internet.t-mobile.cz","0,0",0,0
Init3 = ATX3
#Init4 = AT+CPIN=3051
# Init3 = AT+CGDCONT=1,"IP","internet","",0,0a
# Init3 = AT+CGDCONT=1,"PPP","internet.t-mobile.cz","0,0",0,0
# Some phones like the NEC DB7000 don't like empty strings, so an address must
# be provided
#Init3 = AT+CGDCONT=1,"IP","internet","0.0.0.0",0,0
# Some phones don't like the quality of service parameters:
# Init4 = AT+CGQREQ=1,0,0,0,0,0
# Init5 = AT+CGQMIN=1,0,0,0,0,0
Dial Command = ATDT
Phone = *99#
# Phone = ATD*99***1#
Username = jmeno
Password = heslo
"" "+++ATH" \
"" "+++ATH" \
"" "+++ATH" \
SAY "\nPDP context detached\n"
/etc/ppp/peers/umts-wvdial.conf# gprs-wvdial.conf
#
# Description:
# Wvdial settings for different GPRS phones and operators. See wvdial man pages
# for more help. Below are the service specific settings, which should be given
# by the operator - at least the
#
# Set PDP (Packet Data Protocol) context CID (Context ID) = 1 (an index sort of
# since a phone may have many different GPRS settings), protocol = IP,
# APN (Access Point Name) = "internet":
# AT+CGDCONT=1,"IP","internet","",0,0
#
# Set CID=1 QoS (Quality of Service) requirements from the network, not
# supported by Nokia phones:
# AT+CGQREQ=1,0,0,0,0,0
#
# Set CID=1 minimum acceptable QoS parameters, not supported by Nokia phones:
# AT+CGQMIN=1,0,0,0,0,0
#
# Call CID=1 which activate PDP context one and perform GPRS attach:
# ATD*99***1#
#
# Some phones seem to have only one CID, in which case the CID can be omitted
# when calling:
# ATD*99#
#
# Init4 = AT+CGQREQ=1,0,0,0,0,0
# Init5 = AT+CGQMIN=1,0,0,0,0,0
[Dialer radiolinja_usb_orange_spv]
#Modem = /dev/ttyUSB0
#Baud = 115200
Init1 = ATH
Init2 = ATE1
# Init3 = AT+CGDCONT=1,"IP","internet","",0,0a
Init3 = AT+CGDCONT=1,"IP","internet","",0,0
# Some phones like the NEC DB7000 don't like empty strings, so an address must
# be provided
#Init3 = AT+CGDCONT=1,"IP","internet","0.0.0.0",0,0
# Some phones don't like the quality of service parameters:
# Init4 = AT+CGQREQ=1,0,0,0,0,0
# Init5 = AT+CGQMIN=1,0,0,0,0,0
Dial Command = ATD
Phone = *99#
# Phone = ATD*99***1#
Username = jmeno
Password = heslo
[Dialer umts_usb_spv]
#Modem = /dev/ttyUSB0
#Baud = 115200
Init1 = ATZ
# Init2 = AT Q0 V1 E1 50=0 &C1 &D2 +FCLASS=0
Init2 = AT+CGDCONT=1,"PPP","internet.t-mobile.cz","0,0",0,0
Init3 = ATX3
#Init4 = AT+CPIN=3051
# Init3 = AT+CGDCONT=1,"IP","internet","",0,0a
# Init3 = AT+CGDCONT=1,"PPP","internet.t-mobile.cz","0,0",0,0
# Some phones like the NEC DB7000 don't like empty strings, so an address must
# be provided
#Init3 = AT+CGDCONT=1,"IP","internet","0.0.0.0",0,0
# Some phones don't like the quality of service parameters:
# Init4 = AT+CGQREQ=1,0,0,0,0,0
# Init5 = AT+CGQMIN=1,0,0,0,0,0
Dial Command = ATDT
Phone = *99#
# Phone = ATD*99***1#
Username = jmeno
Password = heslo
-----
-> v terminálu: pppd call umts
-> Ctrl+c se vypne...
-> když to blbne, vyrvat a narvat do USB a znovu pppd call umts
už nevím, kde jsem to sebral, ale funguje to na X kompech spolehlivě, tak ať vám to slouží