[Comm] Не работает совсем PPTPD+freeradius
Vasiliy Fedorov
=?iso-8859-1?q?linux_=CE=C1_liktv=2Eru?=
Пн Июн 20 17:07:33 MSD 2005
Здравствуйте!
Установил ppp-2.4.2-alt6, ppp-radius из исходников, pptdp 1.1.4-alt3.b4 -
какой шел с дистрибутивом такой и стоит. FreeRadius 1.0.2 поставил, настроил
- работает.
PPTPD настроил на использование файла паролей CHAP - всё работает как надо.
Потом захотел я сделать аутентификацию через RADIUS,
в /etc/ppp/options.pptpd написал plugin radius.so.
Так вот, pptpd (или pppd) ни одного запроса RADIUSу не посылают (виндосовский
RRAS нормально работает в тоже время):
freeradius пишет:
Module: Instantiated detail (reply_log)
Initializing the thread pool...
Listening on authentication *:1812
Listening on accounting *:1813
Listening on proxy *:1814
Ready to process requests.
и все.
настройка freeradius такая:
clients.conf
clients 127.0.0.1 {
secret = secret
shortname = localhost
}
в /etc/radiusclient/server прописано
127.0.0.1 secret
Вот содержимое лога /var/log/daemon/info
Jun 20 17:52:56 linuxsrv pptpd[11446]: MGR: Launching /usr/sbin/pptpctrl to
handle client
Jun 20 17:52:56 linuxsrv pptpd[11446]: CTRL: local address = 10.0.0.8
Jun 20 17:52:56 linuxsrv pptpd[11446]: CTRL: remote address = 10.0.0.4
Jun 20 17:52:56 linuxsrv pptpd[11446]: CTRL: pppd speed = 115200
Jun 20 17:52:56 linuxsrv pptpd[11446]: CTRL: pppd options file
= /etc/ppp/options.pptpd
Jun 20 17:52:56 linuxsrv pptpd[11446]: CTRL: Client 10.0.0.2 control
connection started
Jun 20 17:52:56 linuxsrv pptpd[11446]: CTRL: Received PPTP Control Message
(type: 1)
Jun 20 17:52:56 linuxsrv pptpd[11446]: CTRL: Made a START CTRL CONN RPLY
packet
Jun 20 17:52:56 linuxsrv pptpd[11446]: CTR6 linuxsrv pptpd[11446]: CTRL: Sent
packet to client
Jun 20 17:52:56 linuxsrv pptpd[11446]: CTRL: Received PPTP Control Message
(type: 7)
Jun 20 17:52:56 linuxsrv pptpd[11446]: CTRL: Set parameters to 1525 maxbps, 64
window size
Jun 20 17:52:56 linuxsrv pptpd[11446]: CTRL: Made a OUT CALL RPLY packet
Jun 20 17:52:56 linuxsrv pptpd[11446]: CTRL: Starting call (launching pppd,
opening GRE)
Jun 20 17:52:56 linuxsrv pptpd[11446]: CTRL: pty_fd = 5
Jun 20 17:52:56 linuxsrv pptpd[11446]: CTRL: tty_fd = 6
Jun 20 17:52:56 linuxsrv pptpd[11446]: CTRL: I wrote 32 bytes to the client.
Jun 20 17:52:56 linuxsrv pptpd[11446]: CTRL: Sent packet to client
Jun 20 17:52:56 linuxsrv pptpd[11447]: CTRL (PPPD Launcher): Connection speed
= 115200
Jun 20 17:52:56 linuxsrv pptpd[11447]: CTRL (PPPD Launcher): local address =
10.0.0.8
Jun 20 17:52:56 linuxsrv pptpd[11447]: CTRL (PPPD Launcher): remote address =
10.0.0.4
Jun 20 17:52:56 linuxsrv pppd[11447]: Plugin radius.so loaded.
Jun 20 17:52:56 linuxsrv pppd[11447]: RADIUS plugin initialized.
Jun 20 17:52:56 linuxsrv pptpd[11446]: CTRL: Received PPTP Control Message
(type: 15)
Jun 20 17:52:56 linuxsrv pptpd[11446]: CTRL: Got a SET LINK INFO packet with
standard ACCMs
Jun 20 17:52:56 linuxsrv pppd[11447]: pppd 2.4.2 started by root, uid 0
Jun 20 17:52:56 linuxsrv pppd[11447]: using channel 35
Jun 20 17:52:56 linuxsrv pppd[11447]: Using interface ppp0
Jun 20 17:52:56 linuxsrv pppd[11447]: Connect: ppp0 <--> /dev/pts/10
Jun 20 17:52:56 linuxsrv pppd[11447]: sent [LCP ConfReq id=0x1 <asyncmap 0x0>
<auth chap MD5> <magic 0x6880ac09> <pcomp> <accomp>]
Jun 20 17:52:56 linuxsrv pppd[11447]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0>
<auth chap MD5> <magic 0x6880ac09> <pcomp> <accomp>]
Jun 20 17:52:58 linuxsrv pppd[11447]: rcvd [LCP ConfReq id=0x1 <magic
0x6e5c1896> <pcomp> <accomp>]
Jun 20 17:52:58 linuxsrv pppd[11447]: sent [LCP ConfAck id=0x1 <magic
0x6e5c1896> <pcomp> <accomp>]
Jun 20 17:52:58 linuxsrv pppd[11447]: sent [LCP EchoReq id=0x0
magic=0x6880ac09]
Jun 20 17:52:58 linuxsrv pppd[11447]: sent [CHAP Challenge id=0xc8
<878be8a15c64536d8766bf23a3895ec9>, name = "pptpd"]
Jun 20 17:52:58 linuxsrv pptpd[11446]: CTRL: Received PPTP Control Message
(type: 15)
Jun 20 17:52:58 linuxsrv pppd[11447]: rcvd [LCP EchoRep id=0x0
magic=0x6e5c1896]
Jun 20 17:52:58 linuxsrv pppd[11447]: rcvd [CHAP Response id=0xc8
<f359233b0e09f5c2cee471949c3ce96b>, name = "vasa"]
Jun 20 17:52:58 linuxsrv pppd[11447]: sent [CHAP Failure id=0xc8
"\030\37777777663\031"]
Jun 20 17:52:58 linuxsrv pppd[11447]: sent [LCP TermReq id=0x2 "Authentication
failed"]
Jun 20 17:52:58 linuxsrv pptpd[11446]: CTRL: Received PPTP Control Message
(type: 15)
Jun 20 17:52:58 linuxsrv pptpd[11446]: CTRL: Got a SET LINK INFO packet with
standard ACCMs
Jun 20 17:52:58 linuxsrv pppd[11447]: rcvd [LCP TermAck id=0x2 "Authentication
failed"]
Jun 20 17:52:58 linuxsrv pppd[11447]: Connection terminated.
Jun 20 17:52:58 linuxsrv pppd[11447]: Exit.
Jun 20 17:52:58 linuxsrv pptpd[11446]: CTRL: Closing child BCrelay with pid 0
Jun 20 17:52:58 linuxsrv pptpd[11446]: CTRL: Closing child ppp with pid 11447
Jun 20 17:52:58 linuxsrv pptpd[11446]: CTRL: Client 10.0.0.2 control
connection finished
Jun 20 17:52:58 linuxsrv pptpd[11446]: CTRL: Exiting now
Jun 20 17:52:58 linuxsrv pptpd[11368]: MGR: Reaped child 11446
лог /var/log/daemons/error
Jun 20 17:52:58 linuxsrv pptpd[11446]: CTRL: Ignored a SET LINK INFO packet
with real ACCMs!
Jun 20 17:52:58 linuxsrv pppd[11447]: rc_own_ipaddress: couldn't get own IP
address
Jun 20 17:52:58 linuxsrv pptpd[11446]: GRE: read(fd=5,buffer=804e6e0,len=8196)
from PTY failed: status = -1 error = Input/output error
Jun 20 17:52:58 linuxsrv pptpd[11446]: CTRL: PTY read or GRE write failed
(pty,gre)=(5,6)
Что я сделал неправильно - не пойму. Да и раньше я это не настраивал никогда
на linuxe. В общем помогите, кто может.
--
С уажением,
Василий Федоров.
Подробная информация о списке рассылки community