NoPaste

Beispiel ppp-Konfiguration (3 Files)

von TTShadoX

SNIPPET_TEXT:
  1. #
  2. # /etc/ppp/pap-secrets
  3. #
  4. # This is a pap-secrets file to be used with the AUTO_PPP function of
  5. # mgetty. mgetty-0.99 is preconfigured to startup pppd with the login option
  6. # which will cause pppd to consult /etc/passwd (and /etc/shadow in turn)
  7. # after a user has passed this file. Don't be disturbed therfore by the fact
  8. # that this file defines logins with any password for users. /etc/passwd
  9. # (again, /etc/shadow, too) will catch passwd mismatches.
  10. #
  11. # This file should block ALL users that should not be able to do AUTO_PPP.
  12. # AUTO_PPP bypasses the usual login program so its necessary to list all
  13. # system userids with regular passwords here.
  14. #
  15. # ATTENTION: The definitions here can allow users to login without a
  16. # password if you don't use the login option of pppd! The mgetty Debian
  17. # package already provides this option; make sure you don't change that.
  18.  
  19. # INBOUND connections
  20.  
  21. # Every regular user can use PPP and has to use passwords from /etc/passwd
  22. *       hostname        ""      *
  23.  
  24. # UserIDs that cannot use PPP at all. Check your /etc/passwd and add any
  25. # other accounts that should not be able to use pppd!
  26. guest   hostname        "*"     -
  27. master  hostname        "*"     -
  28. root    hostname        "*"     -
  29. support hostname        "*"     -
  30. stats   hostname        "*"     -
  31.  
  32. # OUTBOUND connections
  33.  
  34. # Here you should add your userid password to connect to your providers via
  35. # PAP. The * means that the password is to be used for ANY host you connect
  36. # to. Thus you do not have to worry about the foreign machine name. Just
  37. # replace password with your password.
  38. # If you have different providers with different passwords then you better
  39. # remove the following line.
  40.  
  41. #       *       password
  42.  
  43. "1und1/0000-000@online.de"   1und1    "kennwort"
  44. "000000000000000000000#0001" t-online "kennwort"
  45.  
  46.  
  47.  
  48. ---------- /etc/ppp/peers/1und1-v525 ------------------------------------------
  49.  
  50. # example configuration for a dialup connection authenticated with PAP or CHAP
  51. #
  52. # This is the default configuration used by pon(1) and poff(1).
  53. # See the manual page pppd(8) for information on all the options.
  54.  
  55. # MUST CHANGE: replace myusername@realm with the PPP login name given to
  56. # your by your provider.
  57. # There should be a matching entry with the password in /etc/ppp/pap-secrets
  58. # and/or /etc/ppp/chap-secrets.
  59. user "1und1/0000-000@online.de"
  60.  
  61. # MUST CHANGE: replace ******** with the phone number of your provider.
  62. # The /etc/chatscripts/pap chat script may be modified to change the
  63. # modem initialization string.
  64. connect "/usr/sbin/chat -v -f /etc/chatscripts/pap -T 019102345"
  65.  
  66. # Serial device to which the modem is connected.
  67. /dev/ttyACM0
  68.  
  69. # Speed of the serial line.
  70. 38400
  71.  
  72. # Assumes that your IP address is allocated dynamically by the ISP.
  73. noipdefault
  74. # Try to get the name server addresses from the ISP.
  75. usepeerdns
  76. # Use this connection as the default route.
  77. defaultroute
  78.  
  79. # Makes pppd "dial again" when the connection is lost.
  80. nopersist
  81.  
  82. # Do not ask the remote to authenticate.
  83. noauth
  84.  
  85.  
  86.  
  87. --------- /etc/chatscripts/pap ------------------------------------------------
  88.  
  89. # You can use this script unmodified to connect to sites which allow
  90. # authentication via PAP, CHAP and similar protocols.
  91. # This script can be shared among different pppd peer configurations.
  92. # To use it, add something like this to your /etc/ppp/peers/ file:
  93. #
  94. # connect "/usr/sbin/chat -v -f /etc/chatscripts/pap -T PHONE-NUMBER"
  95. # user YOUR-USERNAME-IN-PAP-SECRETS
  96. # noauth
  97.  
  98. # Uncomment the following line to see the connect speed.
  99. # It will be logged to stderr or to the file specified with the -r chat option.
  100. #REPORT         CONNECT
  101.  
  102. ABORT           BUSY
  103. ABORT           VOICE
  104. ABORT           "NO CARRIER"
  105. ABORT           "NO DIALTONE"
  106. ABORT           "NO DIAL TONE"
  107. ""              ATZ
  108. OK              ATDT\T
  109. CONNECT         "\c"

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN