LINUX.ORG.RU
ФорумAdmin

freeradius + pppd plugin


0

0

Настроил freeradius так, что в работе с отладочной прогой radtest он отвечает на запросы, т.е. база фунциклирует, далее моя задача сделать так, чтобы когда мои клиенты коннектятся к pptpd, далее делает свою работу pppd (в /etc/ppp/options я добавил строчку plugin radius.so - предварительно собрав руками посл. версию ppp с соотв. плагином). Всё, как только я делаю запись в /etc/ppp/options и пытаюсь приконнектиться, коннект не идёт... При этом радиус запущен с ключами xyz и он ничего не выдаёт, т.е. не говорит что кто-то что-то от него просит, messages и debug ничего интересного не говорят, какие можно еще предпринять способы отладки для выяснения причины?

Ответ на: комментарий от anonymous

>что пишет?

Nov 25 08:59:09 router pptpd[19881]: MGR: Launching /usr/local/sbin/pptpctrl to handle client
Nov 25 08:59:09 router pptpd[19881]: CTRL: local address = 10.10.10.254
Nov 25 08:59:09 router pptpd[19881]: CTRL: remote address = 10.10.10.1
Nov 25 08:59:09 router pptpd[19881]: CTRL: pppd options file = /etc/ppp/options.pptpd
Nov 25 08:59:09 router pptpd[19881]: CTRL: Received PPTP Control Message (type: 1)
Nov 25 08:59:09 router pptpd[19881]: CTRL: Made a START CTRL CONN RPLY packet
Nov 25 08:59:09 router pptpd[19881]: CTRL: I wrote 156 bytes to the client.
Nov 25 08:59:09 router pptpd[19881]: CTRL: Sent packet to client
Nov 25 08:59:09 router pptpd[19881]: CTRL: Received PPTP Control Message (type: 7)
Nov 25 08:59:09 router pptpd[19881]: CTRL: Set parameters to 100000000 maxbps, 64 window size
Nov 25 08:59:09 router pptpd[19881]: CTRL: Made a OUT CALL RPLY packet
Nov 25 08:59:09 router pptpd[19881]: CTRL: pty_fd = 4
Nov 25 08:59:09 router pptpd[19881]: CTRL: tty_fd = 5
Nov 25 08:59:09 router pptpd[19881]: CTRL: I wrote 32 bytes to the client.
Nov 25 08:59:09 router pptpd[19881]: CTRL: Sent packet to client
Nov 25 08:59:09 router pptpd[19882]: CTRL (PPPD Launcher): program binary = /usr/sbin/pppd
Nov 25 08:59:09 router pptpd[19882]: CTRL (PPPD Launcher): local address = 10.10.10.254
Nov 25 08:59:09 router pptpd[19882]: CTRL (PPPD Launcher): remote address = 10.10.10.1
Nov 25 08:59:09 router pptpd[19881]: CTRL: Reaping child PPP[19882]
Nov 25 08:59:09 router pptpd[19881]: CTRL: Exiting now
Nov 25 08:59:09 router pptpd[19387]: MGR: Reaped child 19881

Прописал и в /etc/ppp/options и в /etc/ppp/options.pptp 
plugin radius.so

После этого я не смог подконнектиться к серваку, вот как только убираю эти строчки,

Nov 25 09:02:38 router pptpd[19972]: MGR: Launching /usr/local/sbin/pptpctrl to handle client
Nov 25 09:02:38 router pptpd[19972]: CTRL: local address = 10.10.10.254
Nov 25 09:02:38 router pptpd[19972]: CTRL: remote address = 10.10.10.2
Nov 25 09:02:38 router pptpd[19972]: CTRL: pppd options file = /etc/ppp/options.pptpd
Nov 25 09:02:38 router pptpd[19972]: CTRL: Received PPTP Control Message (type: 1)
Nov 25 09:02:38 router pptpd[19972]: CTRL: Made a START CTRL CONN RPLY packet
Nov 25 09:02:38 router pptpd[19972]: CTRL: I wrote 156 bytes to the client.
Nov 25 09:02:38 router pptpd[19972]: CTRL: Sent packet to client
Nov 25 09:02:38 router pptpd[19972]: CTRL: Received PPTP Control Message (type: 7)
Nov 25 09:02:38 router pptpd[19972]: CTRL: Set parameters to 100000000 maxbps, 64 window size
Nov 25 09:02:38 router pptpd[19972]: CTRL: Made a OUT CALL RPLY packet
Nov 25 09:02:38 router pptpd[19972]: CTRL: pty_fd = 4
Nov 25 09:02:38 router pptpd[19972]: CTRL: tty_fd = 5
Nov 25 09:02:38 router pptpd[19972]: CTRL: I wrote 32 bytes to the client.
Nov 25 09:02:38 router pptpd[19972]: CTRL: Sent packet to client
Nov 25 09:02:38 router pptpd[19973]: CTRL (PPPD Launcher): program binary = /usr/sbin/pppd
Nov 25 09:02:38 router pptpd[19973]: CTRL (PPPD Launcher): local address = 10.10.10.254
Nov 25 09:02:38 router pptpd[19973]: CTRL (PPPD Launcher): remote address = 10.10.10.2
Nov 25 09:02:38 router pppd[19973]: using channel 7
Nov 25 09:02:38 router pppd[19973]: sent [LCP ConfReq id=0x1 <mru 1000> <asyncmap 0x0> <auth chap MD5> <magic 0x399b4a0f> <pcomp> <accomp>]
Nov 25 09:02:38 router pptpd[19972]: CTRL: Received PPTP Control Message (type: 15)
Nov 25 09:02:38 router pptpd[19972]: CTRL: Got a SET LINK INFO packet with standard ACCMs
Nov 25 09:02:38 router pppd[19973]: rcvd [LCP ConfReq id=0x0 <mru 1400> <magic 0xdbc78cb> <pcomp> <accomp> <callback CBCP>]
Nov 25 09:02:38 router pppd[19973]: sent [LCP ConfRej id=0x0 <callback CBCP>]
Nov 25 09:02:38 router pppd[19973]: rcvd [LCP ConfReq id=0x1 <mru 1400> <magic 0xdbc78cb> <pcomp> <accomp>]
Nov 25 09:02:38 router pppd[19973]: sent [LCP ConfAck id=0x1 <mru 1400> <magic 0xdbc78cb> <pcomp> <accomp>]
Nov 25 09:02:40 router pppd[19973]: sent [LCP ConfReq id=0x1 <mru 1000> <asyncmap 0x0> <auth chap MD5> <magic 0x399b4a0f> <pcomp> <accomp>]
Nov 25 09:02:40 router pppd[19973]: rcvd [LCP ConfAck id=0x1 <mru 1000> <asyncmap 0x0> <auth chap MD5> <magic 0x399b4a0f> <pcomp> <accomp>]
Nov 25 09:02:40 router pptpd[19972]: CTRL: Received PPTP Control Message (type: 15)
Nov 25 09:02:40 router pppd[19973]: sent [LCP EchoReq id=0x0 magic=0x399b4a0f]
Nov 25 09:02:40 router pppd[19973]: sent [CHAP Challenge id=0x9c <5a424dbb297119e889ed8640f9b145bb28bb9b>, name = "pptpd"]
Nov 25 09:02:40 router pppd[19973]: rcvd [LCP code=0xc id=0x2 0d bc 78 cb 4d 53 52 41 53 56 35 2e 31 30]
Nov 25 09:02:40 router pppd[19973]: sent [LCP CodeRej id=0x2 0c 02 00 12 0d bc 78 cb 4d 53 52 41 53 56 35 2e 31 30]
Nov 25 09:02:40 router pppd[19973]: rcvd [LCP code=0xc id=0x3 0d bc 78 cb 4d 53 52 41 53 2d 30 2d 4b 41 4e 35 33 30 30]
Nov 25 09:02:40 router pppd[19973]: sent [LCP CodeRej id=0x3 0c 03 00 17 0d bc 78 cb 4d 53 52 41 53 2d 30 2d 4b 41 4e 35 33 30 30]
Nov 25 09:02:40 router pppd[19973]: rcvd [LCP EchoRep id=0x0 magic=0xdbc78cb]
Nov 25 09:02:40 router pppd[19973]: rcvd [CHAP Response id=0x9c <c6892a283e9df87463816c4e07130d09>, name = "kaN5300"]
Nov 25 09:02:40 router pppd[19973]: sent [CHAP Success id=0x9c "Access granted"]
Nov 25 09:02:40 router pppd[19973]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 10.10.10.254>]
Nov 25 09:02:40 router pppd[19973]: rcvd [CCP ConfReq id=0x4 <mppe +H -M -S -L -D +C>]
Nov 25 09:02:40 router pppd[19973]: sent [CCP ConfReq id=0x1]
Nov 25 09:02:40 router pppd[19973]: sent [CCP ConfRej id=0x4 <mppe +H -M -S -L -D +C>]
Nov 25 09:02:40 router pppd[19973]: rcvd [IPCP ConfReq id=0x5 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-wins 0.0.0.0> <ms-dns3 0.0.0.0> <ms-wins 0.0.0.0>]
Nov 25 09:02:40 router pppd[19973]: sent [IPCP ConfRej id=0x5 <ms-dns1 0.0.0.0> <ms-wins 0.0.0.0> <ms-dns3 0.0.0.0> <ms-wins 0.0.0.0>]
Nov 25 09:02:40 router pppd[19973]: rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
Nov 25 09:02:40 router pppd[19973]: sent [IPCP ConfReq id=0x2 <addr 10.10.10.254>]
Nov 25 09:02:40 router pppd[19973]: rcvd [CCP ConfAck id=0x1]
Nov 25 09:02:40 router pppd[19973]: rcvd [CCP TermReq id=0x6 0d bc 78 cb 00 3c cd 74 00 00 02 dc]
Nov 25 09:02:40 router pppd[19973]: sent [CCP TermAck id=0x6]
Nov 25 09:02:40 router pppd[19973]: rcvd [IPCP ConfReq id=0x7 <addr 0.0.0.0>]
Nov 25 09:02:40 router pppd[19973]: sent [IPCP ConfNak id=0x7 <addr 10.10.10.2>]
Nov 25 09:02:40 router pppd[19973]: rcvd [IPCP ConfAck id=0x2 <addr 10.10.10.254>]
Nov 25 09:02:40 router pppd[19973]: rcvd [IPCP ConfReq id=0x8 <addr 10.10.10.2>]
Nov 25 09:02:40 router pppd[19973]: sent [IPCP ConfAck id=0x8 <addr 10.10.10.2>]
Nov 25 09:02:43 router pppd[19973]: sent [CCP ConfReq id=0x1]
Nov 25 09:02:43 router pppd[19973]: rcvd [CCP TermAck id=0x1]
Nov 25 09:02:43 router pppd[19973]: sent [CCP TermReq id=0x2"No compression negotiated"]
Nov 25 09:02:43 router pppd[19973]: rcvd [CCP TermAck id=0x2"No compression negotiated"]

kaN5300
() автор топика
Ответ на: комментарий от kaN5300

Вот еще выдернул из мйл-листа

> Has anybody linked ppp-daemon to freeradius server. > The 2.4.2b3 release of ppp has its own radiusclient, but it doesn't work. > If some ideas, please post. > Regards.

Use PortSlave

Что за портслейв, зачем он нужен?

kaN5300
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.