Monthly Archives: February 2016

Ubuntu Server 14.04.1 LTS Install & Configure FreeRadius

OS: Ubuntu Server 14.04.1 LTS

VMware Player (LAN Bridge Connection)

Daloradius 0.9.9

LAMP

Hardware used:

AP TPLink, Model TL- MR3420

1. Installing LAMP

– Ubuntu Server, after installation: sudo apt-get update & sudo apt-get upgrade need to be apply.

– Apache2: sudo apt-get install apache2

– PHP5: sudo apt-get install php5 & restart apache2: sudo service apache2 restart

– MySql server: sudo apt-get install mysql-server

When it asks for root password, give any password of your choice and note it.
Now we need to install another packet, so that Php5 and Mysql can understand each other.

sudo apt-get install php5-mysql

sudo service apache2 restart

Obs! A small error will appear to fix that, insert

ServerName localhost

in either httpd.conf or apache2.conf in /etc/apache2 and restart apache the notice will disappear.

If you have a name inside /etc/hostname you can also use that name instead of localhost.

Continue reading

config syslog-ng source all ipaddress

edit syslog-ng.config

nano /etc/syslog-ng/syslog-ng.conf

add end file

source s_fortigate {
udp(ip(0.0.0.0) port(514));
tcp(ip(0.0.0.0) port(514));
};
destination d_fortigate {
file(
“/var/log/fortigate/$HOST-$YEAR$MONTH$DAY.log”
perm(644)
create_dirs(yes)
);
};
log { source(s_fortigate); destination(d_fortigate); };

# or —————————————
source s_net { udp(ip(0.0.0.0) port(514)); };
#destination d_router { file(“/var/log/syslog”); };
destination d_router { file(“/var/log/router/$HOST-$YEAR$MONTH$DAY.log”); };

log { source(s_net); destination(d_router); };

New chmod 644
chmod 644 /var/log/syslog