PPP sur easynet : la config de David ROCHER --- /usr/local/bin/ppcall --- #!/bin/sh if [ $# = "1" ] then target=$1 else target=easynet fi exec /usr/sbin/pppd connect "/usr/sbin/chat -f /etc/ppp/Links/$target/chat" ipparam $target \ oipdefault defaultroute 57600 /dev/ttyS0 --- /usr/local/bin/ppcall --- il supporte le multilinks (tres utile ;-). le chat script associe au link Easynet est : --- /etc/ppp/Links/easynet/chat --- REPORT CONNECT ABORT BUSY ABORT ERROR ABORT "NO DIALTONE" ABORT "NO CARRIER" "" AT&F&K3S25=20%E1%X4W2 OK\r ATDT0561163866 CONNECT "" ogin: sword: --- /etc/ppp/Links/easynet/chat --- le numero de telephone est celui du POP de Toulouse et la chaine d'init est pour un Olitec fax pocket 33.6. de plus, j'ai les options suivates pour pppD: --- /etc/ppp/options --- asyncmap 0 crtscts lock modem -pap lcp-echo-interval 30 lcp-echo-failure 4 -ipx-protocol --- /etc/ppp/options --- le parametre ipparam permet aux scripts ip-up et ip-down appeles par pppd de faire des actions specifiques au up-link : --- /etc/ppp/ip-up --- #!/bin/sh # # This script is called with the following arguments: # Arg Name Example # $1 Interface name ppp0 # $2 The tty ttyS1 # $3 The link speed 38400 # $4 Local IP number 12.34.56.78 # $5 Peer IP number 12.34.56.99 # $6 IP param un petit texte # The environment is cleared before executing this script # so the path must be reset PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin export PATH # log le debut de la connexion echo "$6 up at `date "+%X"`" >> /etc/ppp/connect-errors # modifie les parametres du resolver if [ -f /etc/ppp/Links/$6/resolv.conf ]; then cp -fp /etc/ppp/Links/$6/resolv.conf /etc/resolv.conf fi # execute des commandes specifiques if [ -x /etc/ppp/Links/$6/actions ]; then /etc/ppp/Links/$6/actions fi # last line --- /etc/ppp/ip-up --- --- /etc/ppp/ip-down --- #!/bin/sh # # This script is called with the following arguments: # Arg Name Example # $1 Interface name ppp0 # $2 The tty ttyS1 # $3 The link speed 38400 # $4 Local IP number 12.34.56.78 # $5 Peer IP number 12.34.56.99 # $6 IP param un petit texte # The environment is cleared before executing this script # so the path must be reset PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin export PATH # log la fin de la connection echo "$6 down at `date "+%X"`" >> /etc/ppp/connect-errors # retablit les parametres par defaut if [ -f /etc/ppp/Links/resolv.conf ]; then cp -fp /etc/ppp/Links/resolv.conf /etc/resolv.conf fi # last line --- /etc/ppp/ip-down --- pour les Easynet, le script actions est : --- /etc/ppp/Links/easynet/actions --- #!/bin/bash # le mail sortant avec sendmail /usr/sbin/sendmail -q # le mail entrant avec fetchmail /bin/su - -c "/usr/bin/fetchmail" # les news avec leafnode /bin/su news -c "/usr/sbin/fetch" --- /etc/ppp/Links/easynet/actions --- RQ: pour sendmail, il faut utiliser le mode expensive pour le SNTP. pour plus d'infos, voir le Guide du Routard et la doc m4 de sendmail. --- /etc/mail/sendmail.mc --- VERSIONID(`@(#)sendmail.mc 8.8.7 (Savage) 09/04/97') OSTYPE(debian) FEATURE(nodns) FEATURE(nocanonify) FEATURE(always_add_domain) FEATURE(local_procmail) FEATURE(use_ct_file) FEATURE(use_cw_file) FEATURE(smrsh, `/usr/sbin/smrsh') define(`confDEF_CHAR_SET', `ISO-8859-1') define(`confSMTP_LOGIN_MSG', `$j') define(`confTO_QUEUEWARN', `1d') define(`confCON_EXPENSIVE', `True') define(`SMTP_MAILER_FLAGS', `e') define(`SMART_HOST', `esmtp:mail.easynet.fr') MAILER(local) MAILER(smtp) --- /etc/mail/sendmail.mc --- le resolver est mis a jour par ip-up et ip-down. celui pour easynet est : --- /etc/ppp/Links/easynet/resolv.conf --- domain easynet.fr nameserver 195.114.64.193 nameserver 193.131.248.2 --- /etc/ppp/Links/easynet/resolv.conf --- ceci permet une connexion direct chez easynet. les points sensibles sont la chaine d'init du modem, le login/password du chat script.