Академический Документы
Профессиональный Документы
Культура Документы
ssh server
LAMP server
example:
auto eth0
iface eth0 inet static
address 192.168.0.240
netmask 255.255.255.0
gateway 192.168.0.1
edit /etc/resolvconf/resolv.conf.d/head
example:
domain dummy.net
nameserver 192.168.0.201
nameserver 192.168.0.202
- install freeradius
- configure freeradius
mysql -uroot -p
CREATE DATABASE radius;
exit
mysql -uroot -p
GRANT ALL ON radius.* TO radius@localhost IDENTIFIED BY
"radiuspassword";
GRANT ALL ON radius.* to radius@'192.168.0.%' IDENTIFIED BY
"radiuspassword";
USE radius
INSERT INTO nas VALUES (NULL , '192.168.0.250',
'radiusClient', 'other', NULL , 'radiusSecret', NULL , NULL , 'RADIUS Client');
INSERT INTO nas VALUES (NULL , '127.0.0.1',
'voucherBox', 'other', NULL , 'radiusSecret', NULL , NULL , 'RADIUS Client');
FLUSH PRIVILEGES;
exit
mv clients.conf clients.conf.ori
touch clients.conf
- configure apache
CLI:
__createVouchers.php -n 10 -v 1
__createVouchers.php -n 10 -v 7
__createVouchers.php -n 10 -v 31
GUI:
(TODO)
- test vouchers
check vouchers: