N.B. commentare un'opzione con il
cancelletto (#) e' equivalente a toglierla
quindi la doppia negazione #nocomando equivale all'affermazione del
comando
potrebbe essere necessario modificare i file seguenti in base alle
proprie esigenze. Quindi per qualsiasi spiegazione aggiuntiva
si rimanda alla guida di pppd
user@ubuntu:~$ man pppd
( si ricorda che la funzione di ricerca all'interno di man e'
richiamata con
/nomedacercare
prossima occorrenza di nomedacercare con n, precedente con N
per uscire :q
)
Potete trovare alcuni file di esempio sulla configurazione di PPP in
/usr/share/doc/ppp/examples
Editare i file come root quindi: sudo nome_editor file_da_editare ( Es.
sudo nano /etc/ppp/options )
/etc/ppp/options
# example configuration for the
kernel space PPP over ATM driver
#
# See the manual page pppd(8) for information on all the options.
# MUST CHANGE: Uncomment the following line, replacing the
user@provider.net
# by the DSL user name given to your by your DSL provider.
# There should be a matching entry with the password in
/etc/ppp/pap-secrets
# and/or /etc/ppp/chap-secrets.
# E' necessario sostituire user@provider.it con il proprio Nome utente
# ( solitamente e' in quella forma ).
user "user@provider.it"
# Load the PPPoA plugin.
# If needed, change the VP.VC pair to match the ones used by your ISP.
# sostituite VP.VC con il VP.VC del vostro provider
plugin pppoatm.so
VP.VC
# Enable this option if your ISP uses PPPoA with LLC encapsulation.
#llc-encaps
# 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.
# Comment out if you already have the correct default route installed.
defaultroute
# Makes pppd "dial again" when the connection is lost.
persist
# Do not ask the remote to authenticate.
#noauth
# Do not try to negotiate compression.
#nopcomp
#noccp
#novj
#lcp-max-configure 50
#refuse-pap
#name any
Come ha detto prima
# There should be a matching entry with the password in
/etc/ppp/pap-secrets
# and/or /etc/ppp/chap-secrets.
quindi
/etc/ppp/pap-secrets
user@provider.it[TAB]*[TAB]password[TAB]*[ENTER]
/etc/ppp/chap-secrets
user@provider.it[TAB]*[TAB]password[TAB]*[ENTER]
come prima user@provider.it sostituito con il vostro username
password con la propria password.
Al posto di [TAB] bisogna premere il tasto Tab sulla tastiera
Al posto di [ENTER] bisogna premere il tasto Enter (Invio) sulla
tastiera
in /etc/ppp/options abbiamo scelto
# Try to get the name server addresses from the ISP.
usepeerdns
questo implica che se riesce dovrebbe scrivere automaticamente gli IP
dei Resolver in /etc/ppp/resolv.conf ma se non riesce o se l'ISP
non supporta questo servizio dovete inserirli voi a mano ( la prima
volta ).
/etc/ppp/resolv.conf
nameserver XX.XX.XX.XX
nameserver XX.XX.XX.XX
le X vanno sostituite con l'indirizzo IP del vostro DNS
/etc/ppp/peers/provider
# These are the options to dial out
to your default service provider.
# Please customize them correctly. Only the "provider" file will be
# handled by poff and pon (unless with extra command line arguments).
# You usually need this if there is no PAP authentication
# noauth
# The chat script (be sure to edit that file, too!)
# connect "/usr/sbin/chat -v -f /etc/chatscripts/provider"
# Set up routing to go through this PPP link
defaultroute
#If defaultroute is set and replacedefaultroute is also set, pppd
replaces an
#existing default route with the new default route.
#Se anche voi, come me, solitamente vi collegate ad internet attraverso
un
#router/computer che condivide la connessione a internet decommentate
l'opzione
#che segue.
#replacedefaultroute
# Default modem (you better replace this with /dev/ttySx!)
# /dev/modem
# Speed
# 38400
# Keep modem up even if connection fails
persist