User Tools

Site Tools


сервис_ppp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
сервис_ppp [2018/03/19 17:32]
val [CentOS SL]
сервис_ppp [2026/04/28 15:36] (current)
val [Debian]
Line 4: Line 4:
  
 ===== Создание локальной базы данных пользователей для PPP ===== ===== Создание локальной базы данных пользователей для PPP =====
 +
 +==== Debian/​Ubuntu pppd ====
 +<​code>​
 +root@gate:​~#​ cat /​etc/​ppp/​chap-secrets
 +</​code><​code>​
 +user1 * password1 192.168.100+X.101
 +user2 * password2 192.168.100+X.102
 +</​code>​
  
 ==== FreeBSD ==== ==== FreeBSD ====
Line 14: Line 22:
 </​code>​ </​code>​
  
-==== Linux pppd ==== 
-<​code>​ 
-root@gate:​~#​ cat /​etc/​ppp/​chap-secrets 
-</​code><​code>​ 
-user1 * ppassword1 192.168.100+X.101 
-user2 * ppassword2 192.168.100+X.102 
-</​code>​ 
  
 ===== Настройка PPP для PPPoE ===== ===== Настройка PPP для PPPoE =====
Line 49: Line 50:
 [[Сервис FreeRADIUS]] [[Сервис FreeRADIUS]]
  
-==== FreeBSD ​====+==== Debian ​==== 
 <​code>​ <​code>​
-[gate:~] rm /​etc/​ppp/​ppp.secret+gate# apt install libradcli4
  
-[gate:~] # cat /etc/radius.conf+gate# cat /etc/ppp/​pppoe-server-options
 </​code><​code>​ </​code><​code>​
-auth server.corpX.un testing123 3 2 +... 
-acct server.corpX.un testing123 3 2+plugin radius.so 
 +radius-config-file /​etc/​radcli/​radiusclient.conf
 </​code><​code>​ </​code><​code>​
-[gate:~] # cat /etc/ppp/ppp.conf+gate# cat /etc/radcli/radiusclient.conf 
 +</​code><​code>​ 
 +seqfile /​var/​run/​radius.seq 
 +mapfile /​etc/​radcli/​port-id-map 
 +authserver ​     server 
 +acctserver ​     server 
 +servers ​        /​etc/​radcli/​servers 
 +dictionary ​     /​etc/​radcli/​dictionary 
 +default_realm 
 +radius_timeout ​ 10 
 +radius_retries ​ 3 
 +bindaddr ​       * 
 +</​code><​code>​ 
 +gate# cat /​etc/​radcli/​servers 
 +</​code><​code>​ 
 +server testing123 
 +</​code><​code>​ 
 +gate# cat /etc/hosts
 </​code><​code>​ </​code><​code>​
 ... ...
- set timeout 0 +192.168.X.10 server
- set radius /etc/radius.conf+
 </​code>​ </​code>​
 +
  
 ==== Ubuntu ==== ==== Ubuntu ====
 <​code>​ <​code>​
-root@gate:~# rm /​etc/​ppp/​chap-secrets+gate# rm /​etc/​ppp/​chap-secrets
  
 ubuntu14# apt install radiusclient1 ubuntu14# apt install radiusclient1
  
-ubuntu16#​apt install libfreeradius-client-dev+ubuntu16# apt install libfreeradius-client-dev
 или хватит или хватит
-ubuntu16#​apt install libfreeradius-client2+ubuntu16# apt install libfreeradius-client2
  
 root@gate:​~#​ cat /​etc/​radiusclient/​radiusclient.conf root@gate:​~#​ cat /​etc/​radiusclient/​radiusclient.conf
Line 97: Line 117:
 </​code>​ </​code>​
  
 +==== FreeBSD ====
 +<​code>​
 +[gate:~] # rm /​etc/​ppp/​ppp.secret
 +
 +[gate:~] # cat /​etc/​radius.conf
 +</​code><​code>​
 +auth server.corpX.un testing123 3 2
 +acct server.corpX.un testing123 3 2
 +</​code><​code>​
 +[gate:~] # cat /​etc/​ppp/​ppp.conf
 +</​code><​code>​
 +...
 + set timeout 0
 + set radius /​etc/​radius.conf
 +</​code>​
сервис_ppp.1521469926.txt.gz · Last modified: 2018/03/19 17:32 by val