Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.79 KB | None | 0 0
  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 therefore 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 it's 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. "user1" * "user1" *
  43.  
  44. # PPP options for the PPPoE server
  45. # LIC: GPL
  46. auth
  47. debug
  48. #plugin /etc/ppp/plugins/rp-pppoe.so
  49. require-pap
  50. login
  51. mtu 500
  52. mru 500
  53. ktune
  54. proxyarp
  55. lcp-echo-interval 10
  56. lcp-echo-failure 2
  57. nobsdcomp
  58. noccp
  59. novj
  60. noipx
  61.  
  62. sudo pppoe-server -C dummyppoe -I enp0s8 -L 10.0.0.1 -l -R 10.0.0.2 -N 265 -O /etc/ppp/pppoe-server-options
  63.  
  64. nmcli con edit type pppoe con-name "Dummy PPP"
  65.  
  66. set pppoe.username user1
  67. set pppoe.password user1
  68. save
  69. quit
  70.  
  71. sudo nmcli device connect enp0s3
  72.  
  73. May 31 11:53:27 ppp-server pppoe-server[3059]: Session 18 created for client 08:00:27:d0:71:55 (10.0.0.19) on enp0s8 using Service-Name ''
  74. May 31 11:53:27 ppp-server pppd[3059]: pppd 2.4.7 started by user, uid 0
  75. May 31 11:53:27 ppp-server pppd[3059]: using channel 60
  76. May 31 11:53:27 ppp-server pppd[3059]: Using interface ppp0
  77. May 31 11:53:27 ppp-server pppd[3059]: Connect: ppp0 <--> /dev/pts/2
  78. May 31 11:53:27 ppp-server systemd-udevd[3061]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
  79. May 31 11:53:27 ppp-server pppd[3059]: rcvd [LCP ConfReq id=0x1 <mru 1492> <magic 0x8877ed71>]
  80. May 31 11:53:27 ppp-server pppd[3059]: sent [LCP ConfReq id=0x1 <mru 1492> <auth pap> <magic 0xf28cfd90>]
  81. May 31 11:53:27 ppp-server pppd[3059]: sent [LCP ConfAck id=0x1 <mru 1492> <magic 0x8877ed71>]
  82. May 31 11:53:27 ppp-server pppd[3059]: rcvd [LCP ConfAck id=0x1 <mru 1492> <auth pap> <magic 0xf28cfd90>]
  83. May 31 11:53:27 ppp-server pppd[3059]: sent [LCP EchoReq id=0x0 magic=0xf28cfd90]
  84. May 31 11:53:27 ppp-server systemd-timesyncd[603]: Network configuration changed, trying to establish connection.
  85. May 31 11:53:27 ppp-server networkd-dispatcher[1011]: WARNING:Unknown index 63 seen, reloading interface list
  86. May 31 11:53:27 ppp-server pppd[3059]: rcvd [PAP AuthReq id=0x1 user="user1" password=<hidden>]
  87. May 31 11:53:27 ppp-server pppd[3059]: Initializing PAM (3) for user user1
  88. May 31 11:53:27 ppp-server pppd[3059]: ---> PAM INIT Result = 0
  89. May 31 11:53:27 ppp-server pppd[3059]: Attempting PAM authentication
  90. May 31 11:53:27 ppp-server systemd-timesyncd[603]: Synchronized to time server 91.189.89.198:123 (ntp.ubuntu.com).
  91. May 31 11:53:28 ppp-server pppd[3059]: PAM Authentication failed: 7: Authentication failure
  92. May 31 11:53:28 ppp-server pppd[3059]: PAP peer authentication failed for user1
  93. May 31 11:53:28 ppp-server pppd[3059]: Connection terminated.
  94. May 31 11:53:28 ppp-server pppoe[3063]: read (asyncReadFromPPP): Session 18: Input/output error
  95. May 31 11:53:28 ppp-server systemd-timesyncd[603]: Network configuration changed, trying to establish connection.
  96. May 31 11:53:28 ppp-server pppd[3059]: Exit.
  97. May 31 11:53:28 ppp-server pppoe-server[2786]: Session 18 closed for client 08:00:27:d0:71:55 (10.0.0.19) on enp0s8
  98. May 31 11:53:28 ppp-server pppoe-server[2786]: Sent PADT
  99. May 31 11:53:28 ppp-server pppoe-server[2786]: PADT for session 18 received from 08:00:27:D0:71:55; should be from 00:00:00:00:00:00
  100. May 31 11:53:28 ppp-server systemd-timesyncd[603]: Synchronized to time server 91.189.89.198:123 (ntp.ubuntu.com).
  101.  
  102. 287 296.597405 PcsCompu_d0:71:55 PcsCompu_7b:9e:7b PPP PAP 60 Authenticate-Request (Peer-ID='user1', Password='user1')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement