Table of Contents

Сервис PPP

http://ru.wikipedia.org/wiki/PPP_(сетевой_протокол)

Создание локальной базы данных пользователей для PPP

Debian/Ubuntu pppd

root@gate:~# cat /etc/ppp/chap-secrets
user1 * password1 192.168.100+X.101
user2 * password2 192.168.100+X.102

FreeBSD

[gate:~] # cat /etc/ppp/ppp.secret
user1 ppassword1 192.168.100+X.101
user2 ppassword2 192.168.100+X.102

Настройка PPP для PPPoE

FreeBSD

[gate:~] # cat /etc/ppp/ppp.conf
inet:
 enable mschapv2
 set ifaddr 192.168.100+X.1 192.168.100+X.2-192.168.100+X.2
# set dns 192.168.X.10
# accept dns
 set timeout 0

CentOS SL

[root@gate ~]# cat /etc/ppp/pppoe-server-options
require-mschap-v2
# ms-dns 192.168.X.10

Настройка PPP на использование RADIUS

Сервис FreeRADIUS

FreeBSD

[gate:~] # rm /etc/ppp/ppp.secret

[gate:~] # cat /etc/radius.conf
auth server.corpX.un testing123 3 2
acct server.corpX.un testing123 3 2
[gate:~] # cat /etc/ppp/ppp.conf
...
 set timeout 0
 set radius /etc/radius.conf

Debian

Пока, не заработало

# apt install libradcli4

# cd /etc/radcli/

Ubuntu

gate# rm /etc/ppp/chap-secrets

ubuntu14# apt install radiusclient1

ubuntu16# apt install libfreeradius-client-dev
или хватит
ubuntu16# apt install libfreeradius-client2

root@gate:~# cat /etc/radiusclient/radiusclient.conf
...
authserver    server.corpX.un
...
acctserver    server.corpX.un
...
#radius_deadtime       0
...
root@gate:~# cat /etc/radiusclient/servers
server.corpX.un testing123
ubuntu16# touch /etc/radiusclient/port-id-map

root@gate:~# cat /etc/ppp/pppoe-server-options
+chap
plugin radius.so