а без этого гемора - просто юзай ипн с $conf{IPN_STATIC_IP}=1 в связке с дв. Ипну похрен всякие там радиусы и наличие сессии в мониторинге - он всё равно будет считать на ип усера... а при необходимости (например уходе в минус) - пристрелит пппдпиши скрипт каким-то образом контролирующий радиус и делающий наприме killall pppd в случае его смерти
Дублирующие порты
та ничё не наблюдается - не поленился проверил... да - не подключается - потому что винда не хочет принимать дубликатный ип на ифейс (а из под линуха - так и прекрасно подключается и работает) грил же - гже-то что-то криво настроено. Вот лог такого "подключения"Гм, независимо от типа подключения (PPPoE или VPN), если клиент прописывает у себя ip такой же как и при подключении, то данная ошибка наблюдается
Код: Выделить всё
Oct 22 09:04:44 abills pppoe-server[16419]: Session 124 created for client 00:19:5b:fe:48:02 (10.67.15.124) on
eth0 using Service-Name ''
Oct 22 09:04:44 abills pppd[16419]: Plugin /etc/ppp/plugins/rp-pppoe.so loaded.
Oct 22 09:04:44 abills pppd[16419]: RP-PPPoE plugin version 3.3 compiled against pppd 2.4.4
Oct 22 09:04:44 abills pppd[16419]: Plugin radius.so loaded.
Oct 22 09:04:44 abills pppd[16419]: RADIUS plugin initialized.
Oct 22 09:04:44 abills pppd[16419]: Plugin radattr.so loaded.
Oct 22 09:04:44 abills pppd[16419]: RADATTR plugin initialized.
Oct 22 09:04:44 abills pppd[16419]: pppd options in effect:
Oct 22 09:04:44 abills pppd[16419]: debug # (from /etc/ppp/pppoe-server-options)
Oct 22 09:04:44 abills pppd[16419]: nodetach # (from command line)
Oct 22 09:04:44 abills pppd[16419]: logfile /var/log/pppoe.log # (from /etc/ppp/pppoe-server-options)
Oct 22 09:04:44 abills pppd[16419]: dump # (from /etc/ppp/pppoe-server-options)
Oct 22 09:04:44 abills pppd[16419]: nomp # (from /etc/ppp/pppoe-server-options)
Oct 22 09:04:44 abills pppd[16419]: plugin /etc/ppp/plugins/rp-pppoe.so # (from /etc/ppp/pppoe-server-
options)
Oct 22 09:04:44 abills pppd[16419]: plugin radius.so # (from /etc/ppp/pppoe-server-options)
Oct 22 09:04:44 abills pppd[16419]: plugin radattr.so # (from /etc/ppp/pppoe-server-options)
Oct 22 09:04:44 abills pppd[16419]: require-mschap-v2 # (from /etc/ppp/pppoe-server-options)
Oct 22 09:04:44 abills pppd[16419]: refuse-pap # (from /etc/ppp/pppoe-server-options)
Oct 22 09:04:44 abills pppd[16419]: refuse-chap # (from /etc/ppp/pppoe-server-options)
Oct 22 09:04:44 abills pppd[16419]: refuse-eap # (from /etc/ppp/pppoe-server-options)
Oct 22 09:04:44 abills pppd[16419]: eth0 # (from command line)
Oct 22 09:04:44 abills pppd[16419]: rp_pppoe_service # (from command line)
Oct 22 09:04:44 abills pppd[16419]: rp_pppoe_sess 124:00:19:5b:fe:48:02 # (from command line)
Oct 22 09:04:44 abills pppd[16419]: eth0 # (from command line)
Oct 22 09:04:44 abills pppd[16419]: rp_pppoe_service # (from command line)
Oct 22 09:04:44 abills pppd[16419]: rp_pppoe_sess 124:00:19:5b:fe:48:02 # (from command line)
Oct 22 09:04:44 abills pppd[16419]: noaccomp # (from command line)
Oct 22 09:04:44 abills pppd[16419]: default-asyncmap # (from command line)
Oct 22 09:04:44 abills pppd[16419]: mru 1452 # (from /etc/ppp/pppoe-server-options)
Oct 22 09:04:44 abills pppd[16419]: mtu 1452 # (from /etc/ppp/pppoe-server-options)
Oct 22 09:04:44 abills pppd[16419]: nopcomp # (from command line)
Oct 22 09:04:44 abills pppd[16419]: lcp-echo-failure 3 # (from /etc/ppp/pppoe-server-options)
Oct 22 09:04:44 abills pppd[16419]: lcp-echo-interval 20 # (from /etc/ppp/pppoe-server-options)
Oct 22 09:04:44 abills pppd[16419]: novj # (from command line)
Oct 22 09:04:44 abills pppd[16419]: novjccomp # (from command line)
Oct 22 09:04:44 abills pppd[16419]: ms-dns xxx # [don't know how to print value] # (from /etc/p
pp/pppoe-server-options)
Oct 22 09:04:44 abills pppd[16419]: 192.168.1.1:10.67.15.124 # (from command line)
Oct 22 09:04:44 abills pppd[16419]: noccp # (from /etc/ppp/pppoe-server-options)
Oct 22 09:04:44 abills pppd[16419]: nobsdcomp # (from command line)
Oct 22 09:04:44 abills pppd[16419]: nodeflate # (from command line)
Oct 22 09:04:44 abills pppd[16419]: nopredictor1 # (from /etc/ppp/pppoe-server-options)
Oct 22 09:04:44 abills pppd[16419]: noipx # (from /etc/ppp/pppoe-server-options)
Oct 22 09:04:44 abills pppd[16419]: pppd 2.4.4 started by root, uid 0
Oct 22 09:04:44 abills pppd[16419]: using channel 368
Oct 22 09:04:44 abills pppd[16419]: Using interface ppp9
Oct 22 09:04:44 abills pppd[16419]: Connect: ppp9 <--> eth0
Oct 22 09:04:44 abills pppd[16419]: sent [LCP ConfReq id=0x1 <mru 1452> <auth chap MS-v2> <magic 0x146964be>]
Oct 22 09:04:44 abills pppd[16419]: rcvd [LCP ConfAck id=0x1 <mru 1452> <auth chap MS-v2> <magic 0x146964be>]
Oct 22 09:04:46 abills pppd[16419]: rcvd [LCP ConfReq id=0x1 <mru 1480> <magic 0x6ef12084> <callback CBCP>]
Oct 22 09:04:46 abills pppd[16419]: sent [LCP ConfRej id=0x1 <callback CBCP>]
Oct 22 09:04:46 abills pppd[16419]: rcvd [LCP ConfReq id=0x2 <mru 1480> <magic 0x6ef12084>]
Oct 22 09:04:46 abills pppd[16419]: sent [LCP ConfAck id=0x2 <mru 1480> <magic 0x6ef12084>]
Oct 22 09:04:46 abills pppd[16419]: sent [LCP EchoReq id=0x0 magic=0x146964be]
Oct 22 09:04:46 abills pppd[16419]: sent [CHAP Challenge id=0x4d <3918343d36f5341989af63d9205093aa>, name = "a
bills"]
Oct 22 09:04:46 abills pppd[16419]: rcvd [LCP Ident id=0x3 magic=0x6ef12084 "MSRASV5.20"]
Oct 22 09:04:46 abills pppd[16419]: rcvd [LCP Ident id=0x4 magic=0x6ef12084 "MSRAS-0-STUDENT"]
Oct 22 09:04:46 abills pppd[16419]: rcvd [LCP EchoRep id=0x0 magic=0x6ef12084]
Oct 22 09:04:46 abills pppd[16419]: rcvd [CHAP Response id=0x4d <75b46be187bbfd83c63fc25ab5442a920000000000000
000aaf29db9734e99e8dff92af489552578e3367eeb5ce2391000>, name = "ran"]
Oct 22 09:04:46 abills pppd[16419]: RADATTR plugin wrote 13 line(s) to file /var/run/radattr.ppp9.
Oct 22 09:04:46 abills pppd[16419]: sent [CHAP Success id=0x4d "S=AF888AFAA315C21C497E8B3BB559B5411531CA08"]
Oct 22 09:04:46 abills pppd[16419]: peer from calling number 00:19:5B:FE:48:02 authorized
Oct 22 09:04:46 abills pppd[16419]: sent [IPCP ConfReq id=0x1 <addr 192.168.1.1>]
Oct 22 09:04:46 abills pppd[16419]: rcvd [CCP ConfReq id=0x5 <mppe -H -M -S -L -D -C>]
Oct 22 09:04:46 abills pppd[16419]: Unsupported protocol 'Compression Control Protocol' (0x80fd) received
Oct 22 09:04:46 abills pppd[16419]: sent [LCP ProtRej id=0x2 80 fd 01 05 00 0a 12 06 00 00 00 00]
Oct 22 09:04:46 abills pppd[16419]: rcvd [IPCP ConfReq id=0x6 <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>]
Oct 22 09:04:46 abills pppd[16419]: sent [IPCP ConfRej id=0x6 <ms-wins 0.0.0.0> <ms-wins 0.0.0.0>]
Oct 22 09:04:46 abills pppd[16419]: rcvd [IPCP ConfAck id=0x1 <addr 192.168.1.1>]
Oct 22 09:04:46 abills pppd[16419]: rcvd [IPCP ConfReq id=0x7 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.
0>]
Oct 22 09:04:46 abills pppd[16419]: sent [IPCP ConfNak id=0x7 <addr 10.16.0.1> <ms-dns1 192.168.1.1> <ms-dns3
192.168.1.4>]
Oct 22 09:04:46 abills pppd[16419]: rcvd [IPCP ConfReq id=0x8 <addr 10.16.0.1> <ms-dns1 192.168.1.1> <ms-dns3
192.168.1.4>]
Oct 22 09:04:46 abills pppd[16419]: sent [IPCP ConfAck id=0x8 <addr 10.16.0.1> <ms-dns1 192.168.1.1> <ms-dns3
192.168.1.4>]
Oct 22 09:04:46 abills pppd[16419]: Script /etc/ppp/ip-pre-up started (pid 16439)
Oct 22 09:04:46 abills pppd[16419]: Script /etc/ppp/ip-pre-up finished (pid 16439), status = 0x0
Oct 22 09:04:46 abills pppd[16419]: local IP address 192.168.1.1
Oct 22 09:04:46 abills pppd[16419]: remote IP address 10.16.0.1
Oct 22 09:04:47 abills pppd[16419]: Script /etc/ppp/ip-up started (pid 16447)
Oct 22 09:04:47 abills pppd[16419]: rcvd [IPCP TermReq id=0x9 "n\37777777761 \37777777604\000<\37777777715t\00
0\000\0004"]
Oct 22 09:04:47 abills pppd[16419]: IPCP terminated by peer (nM-q M-^D^@<M-Mt^@^@^@4)
Oct 22 09:04:47 abills /etc/ppp/ip-up.d/freeswan: this script needs to be run from ip-up or ip-down
Oct 22 09:04:47 abills pppd[16419]: Connect time 0.1 minutes.
Oct 22 09:04:47 abills pppd[16419]: Sent 0 bytes, received 16 bytes.
Oct 22 09:04:47 abills pppd[16419]: sent [IPCP TermAck id=0x9]
Oct 22 09:04:47 abills pppd[16419]: Script /etc/ppp/ip-up finished (pid 16447), status = 0x0
Oct 22 09:04:47 abills pppd[16419]: Script /etc/ppp/ip-down started (pid 16461)
Oct 22 09:04:47 abills pppd[16419]: Script /etc/ppp/ip-down finished (pid 16461), status = 0x0
Oct 22 09:04:47 abills pppd[16419]: rcvd [LCP TermReq id=0xa "n\37777777761 \37777777604\000<\37777777715t\000
\000\000\000"]
Oct 22 09:04:47 abills pppd[16419]: IPCP terminated by peer (nM-q M-^D^@<M-Mt^@^@^@4)
Oct 22 09:04:47 abills /etc/ppp/ip-up.d/freeswan: this script needs to be run from ip-up or ip-down
Oct 22 09:04:47 abills pppd[16419]: Connect time 0.1 minutes.
Oct 22 09:04:47 abills pppd[16419]: Sent 0 bytes, received 16 bytes.
Oct 22 09:04:47 abills pppd[16419]: sent [IPCP TermAck id=0x9]
Oct 22 09:04:47 abills pppd[16419]: Script /etc/ppp/ip-up finished (pid 16447), status = 0x0
Oct 22 09:04:47 abills pppd[16419]: Script /etc/ppp/ip-down started (pid 16461)
Oct 22 09:04:47 abills pppd[16419]: Script /etc/ppp/ip-down finished (pid 16461), status = 0x0
Oct 22 09:04:47 abills pppd[16419]: rcvd [LCP TermReq id=0xa "n\37777777761 \37777777604\000<\37777777715t\000
\000\000\000"]
Oct 22 09:04:47 abills pppd[16419]: LCP terminated by peer (nM-q M-^D^@<M-Mt^@^@^@^@)
Oct 22 09:04:47 abills pppd[16419]: sent [LCP TermAck id=0xa]
Oct 22 09:04:47 abills pppoe-server[3726]: Sent PADT
Oct 22 09:04:47 abills pppd[16419]: Terminating on signal 15
Oct 22 09:04:50 abills pppd[16419]: Connection terminated.
Oct 22 09:04:50 abills pppd[16419]: Connect time 0.1 minutes.
Oct 22 09:04:50 abills pppd[16419]: Sent 4 bytes, received 16 bytes.
Oct 22 09:04:50 abills pppd[16419]: Modem hangup
Oct 22 09:04:50 abills pppd[16419]: RADATTR plugin removed file /var/run/radattr.ppp9.
Oct 22 09:04:50 abills pppd[16419]: Exit.
Oct 22 09:04:50 abills pppoe-server[3726]: Session 124 closed for client 00:19:5b:fe:48:02 (10.67.15.124) on e
th0
