The configuration of this post is CentOS5 32bit, the process of configuring the PPTP is not written, if you do not please search the blog itself, the following post the integration Freeradius need to be configured:
PPTP Client Configuration section
The code is as follows |
|
wget http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/radiusclient-0.3.2-0.2.el5.rf.i386.rpm Rpm-i radiusclient-0.3.2-0.2.el5.rf.i386.rpm |
Vim/etc/radiusclient/servers
The code is as follows |
|
#Server Name or Client/server pair Key #---------------- --------------- #portmaster. Elemental.net Hardlyasecret #portmaster2. Elemental.net Donttellanyone Your_radius_server_hostname_or_ip Your_radius_server_secret |
Vim/etc/radiusclient/radiusclient.conf
The code is as follows |
|
Auth_order radius,local Login_tries 4 Login_timeout 60 Nologin/etc/nologin Issue/etc/radiusclient/issue www.111cn.net Authserver radius_server_ip_or_hostname:1812 Acctserver radius_server_ip_or_hostname:1813 Servers/etc/radiusclient/servers Dictionary/etc/radiusclient/dictionary Login_radius/usr/sbin/login.radius Seqfile/var/run/radius.seq Mapfile/etc/radiusclient/port-id-map Default_realm Radius_timeout 10 Radius_retries 3 Login_local/bin/login cd/etc/radiusclient/ wget Http://safesrv.net/public/dictionary.microsoft.zip Unzip Dictionary.microsoft.zip |
Vim/etc/radiusclient/dictionary
Add the following fields:
The code is as follows |
|
Include/etc/radiusclient/dictionary.microsoft Include/etc/radiusclient/dictionary.ascend Include/etc/radiusclient/dictionary.compat Include/etc/radiusclient/dictionary.merit |
Vim/etc/ppp/options.pptpd
Join:
The code is as follows |
|
Plugin radius.so Plugin radattr.so Service pptpd Restart Chkconfig pptpd on |
Freeradius Add Authentication Client
Vim/etc/raddb/clients.conf
code is as follows |
|
Client VPN Server IP here { secret = YOUR secret here sh ortname = Yourvpn nastype = Other } |