Решил попробывать к работающему PPTP добавить PPPoE, установил пакет, настроил конфиг:
Код: Выделить всё
logfile /var/log/pppoe-server.log
auth
login
default-asyncmap
ms-dns 78.29.2.23
ms-dns 78.29.2.24
plugin radius.so
plugin radattr.so
Код: Выделить всё
rad_recv: Access-Request packet from host 127.0.0.1 port 45663, id=74, length=135
Service-Type = Framed-User
Framed-Protocol = PPP
User-Name = "testvpn"
MS-CHAP-Challenge = 0xc2848390b86fdfd40ef60435d25c8a22
MS-CHAP2-Response = 0xbd00143bdacde2afcdd59fce0fb56ed29f170000000000000000a46bc27663b346d4fbb8a11961170a70c9cc4282bae35b80
NAS-IP-Address = 127.0.0.1
NAS-Port = 1
+- entering group authorize {...}
++[preprocess] returns ok
Exec-Program output: Cleartext-Password := "1122"
Exec-Program-Wait: value-pairs: Cleartext-Password := "1122"
Exec-Program: returned: 0
++[abills_preauth] returns ok
++[chap] returns noop
[mschap] Found MS-CHAP attributes. Setting 'Auth-Type = mschap'
++[mschap] returns ok
[suffix] No '@' in User-Name = "testvpn", looking up realm NULL
[suffix] No such realm "NULL"
++[suffix] returns noop
[eap] No EAP-Message, not doing EAP
++[eap] returns noop
++[unix] returns notfound
[files] users: Matched entry DEFAULT at line 172
++[files] returns ok
Exec-Program output: Acct-Interim-Interval = 60, Session-Timeout = 816781, Octets-Direction = 2, Framed-IP-Address = 172.16.0.77, Session-Octets-Limit = 0, Framed-IP-Netmask = 255.255.255.255,
Exec-Program-Wait: value-pairs: Acct-Interim-Interval = 60, Session-Timeout = 816781, Octets-Direction = 2, Framed-IP-Address = 172.16.0.77, Session-Octets-Limit = 0, Framed-IP-Netmask = 255.255.255.255,
Exec-Program: returned: 0
++[abills_auth] returns ok
++[expiration] returns noop
++[logintime] returns noop
[pap] Found existing Auth-Type, not changing it.
++[pap] returns noop
Found Auth-Type = MSCHAP
+- entering group MS-CHAP {...}
[mschap] Told to do MS-CHAPv2 for testvpn with NT-Password
[mschap] adding MS-CHAPv2 MPPE keys
++[mschap] returns ok
+- entering group post-auth {...}
++[exec] returns noop
Sending Access-Accept of id 74 to 127.0.0.1 port 45663
Framed-Protocol = PPP
Framed-Compression = Van-Jacobson-TCP-IP
Acct-Interim-Interval = 60
Session-Timeout = 816781
Octets-Direction = 2
Framed-IP-Address = 172.16.0.77
Session-Octets-Limit = 0
Framed-IP-Netmask = 255.255.255.255
MS-CHAP2-Success = 0xbd533d35443232383842314439333337333545393737414536303638363746313342413145443845443241
MS-MPPE-Recv-Key = 0x92a9858caa467248e713f769a733ca21
MS-MPPE-Send-Key = 0x831695e86ff1ef4f6a8c16b54090e831
MS-MPPE-Encryption-Policy = 0x00000001
MS-MPPE-Encryption-Types = 0x00000006
Finished request 1.
Going to the next request
Waking up in 4.9 seconds.
rad_recv: Accounting-Request packet from host 127.0.0.1 port 58405, id=75, length=99
Acct-Session-Id = "4A8F9913482900"
User-Name = "testvpn"
Acct-Status-Type = Start
Service-Type = Framed-User
Framed-Protocol = PPP
Acct-Authentic = RADIUS
NAS-Port-Type = Virtual
Framed-IP-Address = 172.16.0.77
NAS-IP-Address = 127.0.0.1
NAS-Port = 1
Acct-Delay-Time = 0
+- entering group preacct {...}
++[preprocess] returns ok
Exec-Program output:
Exec-Program: returned: 0
++[abills_acc] returns ok
[acct_unique] Hashing 'NAS-Port = 1,Client-IP-Address = 127.0.0.1,NAS-IP-Address = 127.0.0.1,Acct-Session-Id = "4A8F9913482900",User-Name = "testvpn"'
[acct_unique] Acct-Unique-Session-ID = "8178ae2041d5cd61".
++[acct_unique] returns ok
[suffix] No '@' in User-Name = "testvpn", looking up realm NULL
[suffix] No such realm "NULL"
++[suffix] returns noop
++[files] returns noop
+- entering group accounting {...}
expand: /var/log/freeradius/radacct/%{Client-IP-Address}/detail-%Y%m%d -> /var/log/freeradius/radacct/127.0.0.1/detail-20090822
[detail] /var/log/freeradius/radacct/%{Client-IP-Address}/detail-%Y%m%d expands to /var/log/freeradius/radacct/127.0.0.1/detail-20090822
expand: %t -> Sat Aug 22 13:06:59 2009
++[detail] returns ok
++[unix] returns ok
expand: /var/log/freeradius/radutmp -> /var/log/freeradius/radutmp
expand: %{User-Name} -> testvpn
++[radutmp] returns ok
expand: %{User-Name} -> testvpn
attr_filter: Matched entry DEFAULT at line 12
++[attr_filter.accounting_response] returns updated
Sending Accounting-Response of id 75 to 127.0.0.1 port 58405
Finished request 2.
Cleaning up request 2 ID 75 with timestamp +43
Going to the next request