Beispiel ppp-Konfiguration (3 Files)
von TTShadoX- SNIPPET_TEXT:
-
- #
- # /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 therfore 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 its 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
- "1und1/0000-000@online.de" 1und1 "kennwort"
- "000000000000000000000#0001" t-online "kennwort"
- ---------- /etc/ppp/peers/1und1-v525 ------------------------------------------
- # 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 "1und1/0000-000@online.de"
- # 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 019102345"
- # Serial device to which the modem is connected.
- /dev/ttyACM0
- # Speed of the serial line.
- 38400
- # 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.
- nopersist
- # Do not ask the remote to authenticate.
- noauth
- --------- /etc/chatscripts/pap ------------------------------------------------
- # You can use this script unmodified to connect to sites which allow
- # authentication via PAP, CHAP and similar protocols.
- # This script can be shared among different pppd peer configurations.
- # To use it, add something like this to your /etc/ppp/peers/ file:
- #
- # connect "/usr/sbin/chat -v -f /etc/chatscripts/pap -T PHONE-NUMBER"
- # user YOUR-USERNAME-IN-PAP-SECRETS
- # noauth
- # Uncomment the following line to see the connect speed.
- # It will be logged to stderr or to the file specified with the -r chat option.
- #REPORT CONNECT
- ABORT BUSY
- ABORT VOICE
- ABORT "NO CARRIER"
- ABORT "NO DIALTONE"
- ABORT "NO DIAL TONE"
- "" ATZ
- OK ATDT\T
- CONNECT "\c"
Quellcode
Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN