Re: VPN+BISP+POPTOP+radpppd
А теперь короткое описание как правильно прикрутить под Linux VPN !
portslave + pptpd + radius mini HOWTO
-------------------------------------------------------------------------------
"Alexandr D. Kanevskiy" <kad@interdon.net>
Now under ASPLinux you can use pptpd with radius auth/accounting.
What you need:
ppp-2.4.1-3.asp.i386.rpm
(ftp.asp-linux.com.ua:/pub/people/kad/pppd/ or you can get it from ASPLinux 7.2)
pptpd-1.1.2-1.asp.i386.rpm
(you can get it from ftp.asp-linux.com.ua:/pub/people/kad/pptp/)
portslave-2001.12.16-1.asp.i386.rpm
(ftp.asp-linux.com.ua:/pub/people/kad/portslave/)
/etc/pptp.conf:
option /etc/ppp/pptp.options
localip 192.168.236.133
pppd /usr/sbin/pptp-portslave
/etc/ppp/pptp.options:
deflate 15,15
nodefaultroute
lock
proxyarp
lcp-echo-interval 10
lcp-echo-failure 7
login
auth
require-pap
refuse-chap
proxyarp
asyncmap 0
noipx
nomp
nomultilink
ms-dns 192.168.236.130
ms-dns 192.168.236.131
/etc/portslave/pslave.conf: (config it as usual, only one imortant thing)
s{0-63}.tty pts/{0-63}
/usr/sbin/pptp-portslave (comes from pptpd-1.1.2-1.asp RPM):
#!/bin/bash
export PORTSLAVELOGNAME="AutoPPP"
export PORTSLAVE_SESSION=`date +%s``printf "%X" $RANDOM`
export PORTSLAVE_START_TIME=`date +%s`
export PORTSLAVE_DO_ACCT="1"
exec /usr/sbin/pppd $* plugin /usr/lib/libpsr.so
I test it from my notebook and it works well:
Wed Dec 26 02:11:13 2001: Auth: Login OK: [kadhome] (from nas owl/S7) socket
0 (0 sec)