![pppd 未向对等方发送身份验证请求](https://linux22.com/image/738213/pppd%20%E6%9C%AA%E5%90%91%E5%AF%B9%E7%AD%89%E6%96%B9%E5%8F%91%E9%80%81%E8%BA%AB%E4%BB%BD%E9%AA%8C%E8%AF%81%E8%AF%B7%E6%B1%82.png)
我正在测试 pppd 拨入 4g 网络。我想看到我这边向服务器发送身份验证请求。因此,我在本地 pppd 配置中添加了“auth”和“require-pap”。但无论我尝试什么,我的 pppd 似乎始终没有发送带有所需选项的 ConfReq。但是,它总是发送 [LCP ConfReq id=0x1]。
我该如何理解这一点?我可以命令 pppd 发送身份验证请求吗?
pppd 配置
15200
connect '/usr/sbin/chat -v -E -f /etc/ppp/peers/modem1_connect.chat'
lock
local
proxyarp
noipx
allow-ip *
debug
auth
require-pap
pap-max-authreq 10
pap-restart 3
pap-timeout 0
maxfail 5
maxconnect 0
chap-interval 0
chap-max-challenge 10
chap-restart 3
lcp-echo-failure 0
lcp-echo-interval 0
lcp-max-configure 10
lcp-max-failure 10
lcp-max-terminate 3
lcp-restart 3
noccp
vj-max-slots 8
deflate 0
bsdcomp 0
connect-delay 1000
holdoff 0
ipcp-accept-local
ipcp-accept-remote
ipcp-max-configure 10
ipcp-max-failure 10
ipcp-max-terminate 10
ipcp-restart 3
noipv6
defaultroute
pppd 日志:
pppd: pppd 2.4.7 started by root, uid 0
chat: timeout set to 5 seconds
chat: abort on (BUSY)
chat: abort on (NO CARRIER)
chat: abort on (ERROR)
chat: abort on (NO DIALTONE)
chat: send (AT^M)
chat: expect (OK)
chat: AT^M^M
chat: OK
chat: -- got it
chat: send (ATZ^M)
chat: expect (OK)
chat: ^M
chat: ATZ^M^M
chat: OK
chat: -- got it
chat: send (ATE1^M)
chat: expect (OK)
chat: ^M
chat: ^M
chat: OK
chat: -- got it
chat: send (AT+CPIN=0000^M)
chat: expect (ERROR)
chat: ^M
chat: AT+CPIN=0000^M^M
chat: ERROR
chat: -- got it
chat: send (^M)
chat: send (AT+CGDCONT=1,"IP","honeywell001.shapn"^M)
chat: expect (OK)
chat: ^M
chat: ^MAT+CGDCONT=1,"IP","honeywell001.shapn"^M^M
chat: OK
chat: -- got it
chat: send (ATDT*99***1#^M)
chat: timeout set to 15 seconds
chat: expect (CONNECT)
chat: ^M
chat: ATDT*99***1#^M^M
chat: CONNECT
chat: -- got it
pppd: Script /usr/sbin/chat -v -E -f /etc/ppp/peers/modem1_connect.chat finished (pid 31057), status = 0x0
pppd: Serial connection established.
pppd: using channel 11
pppd: Using interface ppp0
pppd: Connect: ppp0 <--> /dev/ttyACM0
pppd: sent [LCP ConfReq id=0x1 <mru 1400> <asyncmap 0x0> <magic 0x68c09343> <pcomp> <accomp>]
pppd: rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0xb9107ff4> <pcomp> <accomp>]
pppd: sent [LCP ConfAck id=0x1 <asyncmap 0x0> <auth pap> <magic 0xb9107ff4> <pcomp> <accomp>]
pppd: rcvd [LCP ConfAck id=0x1 <mru 1400> <asyncmap 0x0> <magic 0x68c09343> <pcomp> <accomp>]
pppd: sent [PAP AuthReq id=0x1 user="Honeywell001" password=<hidden>]
pppd: rcvd [PAP AuthAck id=0x1 ""]
pppd: PAP authentication succeeded
pppd: sent [IPCP ConfReq id=0x1 <compress VJ 07 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
pppd: rcvd [IPCP ConfReq id=0x1]
pppd: sent [IPCP ConfNak id=0x1 <addr 0.0.0.0>]
pppd: rcvd [IPCP ConfRej id=0x1 <compress VJ 07 01> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
pppd: sent [IPCP ConfReq id=0x2 <addr 0.0.0.0>]
pppd: rcvd [IPCP ConfReq id=0x2 <addr 10.10.1.22>]
pppd: sent [IPCP ConfAck id=0x2 <addr 10.10.1.22>]
pppd: rcvd [IPCP ConfNak id=0x2 <addr 10.10.1.22>]
pppd: sent [IPCP ConfReq id=0x3 <addr 10.10.1.22>]
pppd: rcvd [IPCP ConfAck id=0x3 <addr 10.10.1.22>]
pppd: Cannot determine ethernet address for proxy ARP
pppd: local IP address 10.10.1.22
pppd: remote IP address 10.10.1.22
pppd: Script /etc/ppp/ip-up started (pid 31067)
pppd: Script /etc/ppp/ip-up finished (pid 31067), status = 0x0
谢谢!-woody