Installing and configuring daloRADIUS March 6th, 2010
With FreeRADIUS+MySQL installed, it’s now turn to install daloRADIUS; a web-based management system for FreeRADIUS. Before installation, ensure that Apache, PHP and MySQL have been installed and running. You’ll need PHP PEAR as well. Use the following command to install the required libs:
# apt-get install php-pear
# pear install DB
Get the latest version of daloRADIUS from http://sourceforge.net/projects/daloradius/files/. Extract the tarball to /var/www/daloradius. You’ll need to import daloRADIUS DB schema from /var/www/daloradius/contrib/db/mysql-daloradius.sql:
# mysql -u root -p radius < mysql-daloradius.sql
Even after importing the schema, there seems to be a missing table i.e. usergroup. Get the missing table schema from fr1-mysql-freeradius.sql in the same directory. Once the table has been imported, edit the /var/www/daloradius/library/daloradius.conf.php for DB access credentials.
Access the daloRADIUS installation via a web browser at http://<hostname>/daloradius. Login as administrator/radius.
You should now have a working daloRADIUS installation.
source here
Posted in debian, linux, Networking, ubuntu | No Comments »
Installing and configuring FreeRADIUS with MySQL authentication March 6th, 2010
Here’s a *near* step-by-step guide to setup FreeRADIUS with MySQL backed authentication done on Ubuntu 9.10 (Karmic). Start by installing the necessary deb files:
# apt-get install freeradius freeradius-mysql
Add the following lines to the /etc/freeradius/users file:
abc Cleartext-Password := “123″
Stop freeradius service just in case:
/etc/init.d/freeradius stop
Now test using the radtest client:
# radtest abc 123 localhost 1812 testing123
Sending Access-Request of id 149 to 127.0.0.1 port 1812
User-Name = “abc”
User-Password = “123″
NAS-IP-Address = 208.67.219.132
NAS-Port = 1812
rad_recv: Access-Accept packet from host 127.0.0.1 port 1812, id=149, length=20
Ensure that the response is “Access-Accept”. The following should be displayed at the server console: Read the rest of this entry »
FreeBSD Install vnStat: A Console-Based Network Traffic Monitor March 6th, 2010
ow do I install vnStat under FreeBSD 8 operating system to keep track of my network traffic?
From the man page:
vnStat is a console-based network traffic monitor. It keeps a log of hourly, daily and monthly network traffic for the selected interface(s). However, it isn’t a packet sniffer. The traffic information is analyzed from the proc(5) and sys filesystems depending on availability. That way vnStat can be used even without root permissions on most systems.
WARNING! These examples only works on FreeBSD operating systems. Linux specific installation instructions are here. Note that virtual and aliased interfaces cannot be monitored because the kernel doesn’t provide traffic information for that type of interfaces.Step #1: Update Ports Tree
You must update port tree by typing the following portsnap command:
# portsnap fetch update
Step #2: Install vnStat
Type the following command to find out exact port location:
# cd /usr/ports
# whereis vnstat
Sample outputs:
/usr/ports/net/vnstat
Install the vnstat, run:
# cd /usr/ports/net/vnsta
# make install clean
# rehash
Alternatively, you can install the binary package using the pkg_add command, enter:
# pkg_add -r -v vnstat
Sample outputs: Read the rest of this entry »
Domain Redirection Using a PHP Script March 6th, 2010
Q. How do I redirect my domain name using a php server side scripting under Apache web server?
A. Under PHP you need to use header() to send a raw HTTP header.
If you want to redirect a domain to some other URL, you can use the PHP script as below
<?php header("Location: http://example.com/"); exit(); ?>
See PHP Redirect To Another URL / Page Script FAQ for further information.
source here
Posted in php, web development | No Comments »
How do I install bindgraph to make pretty query statistics about BIND servers?
Bindgraph was derived from well-known mailgraph package. It is a tool that makes pretty graphs about queries (such as A, MX, AAAA, TXT and so on) sent to your BIND name server. It will create graph for:
+ Last Hours Graph
+ Day Graph
+ Week Graph
+ Month Graph
+ Year Graph
There are two steps to create graphs:
a] You need enable query logging under bind by updating named.conf file itself. You can log queries to /var/log/query.log file.
b] Create bindgraph.rrd database by enabling bindgraph service.
Install bindgraph
Type the following commands:
# portsnap fetch update
# cd /usr/ports/dns/bindgraph
# make install clean
Configure BIND (named) logging
Open named.conf file, enter: Read the rest of this entry »
Posted in feebsd, linux, Networking | No Comments »



