Ho provato a configurare una connessione analogica ad Internet con il provider email.it usando il programma pppconfig ma non riesco neanche a "telefonare". Tramite la GUI di pppconfig, ho creato i seguenti file:
- Codice: Seleziona tutto
PLUTO:/etc/chatscripts# cat provider
# This is the chat script used to dial out to your default service provider.
# Please customize the entries enclosed in parenthesis to match your setup.
# Only the "provider" file will be handled by poff and pon (unless with
# extra command line arguments).
#
# Remember to edit /etc/ppp/peers/provider accordingly.
#
# ATZW2 as a default init string
# - On all hayes compatible modems, W2 will correctly report the connect
# speed.
#
ABORT BUSY
ABORT "NO CARRIER"
ABORT VOICE
ABORT "NO DIALTONE"
"" ATZW2
OK ATDT<put phone number here>
ogin <put login name here>
word \q<put password here>
- Codice: Seleziona tutto
PLUTO:/etc/chatscripts# cat email.it
# This chatfile was generated by pppconfig 2.3.11.
# Please do not delete any of the comments. Pppconfig needs them.
#
# ispauth PAP
# abortstring
ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED
# modeminit
'' ATZ
# ispnumber
OK-AT-OK "ATDP7022852801"
# ispconnect
CONNECT \d\c
# prelogin
# ispname
# isppassword
# postlogin
# end of pppconfig stuff
e
- Codice: Seleziona tutto
PLUTO:/etc/ppp/peers# cat provider
# example configuration for a dialup connection authenticated with PAP or CHAP
#
# This is the default configuration used by pon(1) and poff(1).
# See the manual page pppd(8) for information on all the options.
# MUST CHANGE: replace myusername@realm with the PPP login name given to
# your by your provider.
# There should be a matching entry with the password in /etc/ppp/pap-secrets
# and/or /etc/ppp/chap-secrets.
user "myusername@realm"
# MUST CHANGE: replace ******** with the phone number of your provider.
# The /etc/chatscripts/pap chat script may be modified to change the
# modem initialization string.
connect "/usr/sbin/chat -v -f /etc/chatscripts/pap -T ********"
# Serial device to which the modem is connected.
/dev/modem
# Speed of the serial line.
115200
# Assumes that your IP address is allocated dynamically by the ISP.
noipdefault
# Try to get the name server addresses from the ISP.
usepeerdns
# Use this connection as the default route.
defaultroute
# Makes pppd "dial again" when the connection is lost.
persist
# Do not ask the remote to authenticate.
noauth
- Codice: Seleziona tutto
PLUTO:/etc/ppp/peers# cat email.it
# This optionfile was generated by pppconfig 2.3.11.
#
#
hide-password
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/email.it"
debug
/dev/modem
115200
defaultroute
noipdefault
user "[email protected]"
remotename email.it
ipparam email.it
Quando, pero`, faccio per collegarmi ad Internet con il comando pon email.it, non si connette in quanto, esaminando il suo log, si scopre che:
- Codice: Seleziona tutto
PLUTO:/etc/ppp/peers# plog
Jul 3 17:44:38 localhost chat[7279]: -- got it
Jul 3 17:44:38 localhost chat[7279]: send (ATDP7022852801^M)
Jul 3 17:44:39 localhost chat[7279]: expect (CONNECT)
Jul 3 17:44:39 localhost chat[7279]: ^M
Jul 3 17:44:39 localhost chat[7279]: ATDP7022852801^M^M
Jul 3 17:44:43 localhost chat[7279]: NO DIALTONE
Jul 3 17:44:43 localhost chat[7279]: -- failed
Jul 3 17:44:43 localhost chat[7279]: Failed (NO DIALTONE)
Jul 3 17:44:43 localhost pppd[7278]: Connect script failed
Jul 3 17:44:44 localhost pppd[7278]: Exit.
Dove sbaglio?
GRAZIE
CIAO