segunda-feira, 27 de outubro de 2014

HOW TO INSTALL IVIEW CYBEROAM, AND MANAGER LOGS OF ALOT DIFERENTS BRAND OF FIREWALL (POST 16)

Tested on  ubuntu 12.04

COMPONENTS INSTALED:
apt-get install openjdk-6-jdk openjdk-6-jre
apt-get install default-jre
apt-get install postgresql-8.4 postgresql-contrib-8.4 postgresql-doc
apt-get install syslog-ng


wget http://downloads.sourceforge.net/project/cyberoam-iview/iVew-Beta/iView-0.127/iView-linux-0.127-Setup.bin

chmod 755 iView-linux-0.127-Setup.bin


CONFIGURING SYSLOG:

vi /etc/syslog-ng/syslog-ng.conf

options { long_hostnames(off);sync(0);
stats(43200); dns_cache(yes); use_fqdn(no);
keep_hostname(yes); use_dns(yes);
};

source gateway {unix-stream("/dev/log");
internal();udp(ip(0.0.0.0) port(514));
};

source tcpgateway {unix-stream("/dev/log");internal();
tcp(ip(0.0.0.0) port(514) max_connections(1000));
};

destination hosts { file("/var/log/syslog-ng/$HOST/$FACILITY"
owner(root) group(root) perm(0600) dir_perm(0700)create_dirs(yes));
};

log { source(gateway); destination(hosts);
};

log { source(tcpgateway); destination(hosts);
};

/etc/init.d/syslog-ng restart

NECESSARY CHANGES :

ln -s /etc/init.d/postgresql /etc/init.d/postgresql-8.4
ln -s /var/lib/postgresql/8.4/main /var/lib/postgresql/8.4/main/data

 
mkdir /iviewdb/
chown -R postgres.postgres /iviewdb

su - postgres

/usr/lib/postgresql/8.4/bin/initdb -D /iviewdb


vi /etc/postgresql/8.4/main/pg_hba.conf

Database administrative login by UNIX sockets
local all postgres trust

TYPE DATABASE USER CIDR-ADDRESS METHOD

“local” is for Unix domain socket connections only
local all all trust
IPv4 local connections:
host all all 127.0.0.1/32 trust
IPv6 local connections:
host all all ::1/128 trust

/etc/init.d/postgresql restart

./iView-linux-0.127-Setup.bin


Set the patch of folder to install   iView
/var/iview/
Set the patch of folder  to save the logs of  iView
: /var/iview/iviewarchived/
Path values
IVIEW_HOME:/var/iview/
ARCHIVE_HOME: /var/iview/iviewarchived/
Checking kernel version compatibility …Done
Enter Postgresql 8.4 Home directory path
(Absolute path of directory that contains PostgreSQL data folder)
:/var/lib/postgresql/8.4/main/
Checking PG_version (PG 8.4 is required)...Done
searching psql client…Done
Enter JAVA 1.5 Home path
:/usr/lib/jvm/java-6-openjdk/
Setting up JAVA for Cyberoam-iView (jdk 1.5 or greater is required)Java…Done
Creating IVIEW_HOME directory…Done
Copying GUI files…Done
Copying system files…Done
Updating PostgreSQL database parameters according to hardware configuration…Done
Setup starting service postgre
./iview_linux_installer/setup: line 373: /etc/init.d/postgresql-8.4: No such file or directory
please wait creating database
25%
50%
75%
100%...Done
Updating Cyberoam-iView parameters in database…Done

Set  password padrão do Cyberoam-iView administrator é identify by  “admin”
Administrator Username is: admin
Specify Password:
Re-enter Password:
Administrator’s Email id

<MAIL>@DOMAIN
Registering Cyberoam-iView as a service…Done
Starting iviewd service

/etc/init.d/iviewd status
iView Web application is Running
iView Syslog server is Running




For access use: http://hostnamyip:8000



source: http://billeter.blogspot.com.br/2011/10/cyberoam-iview-debian-6.html?showComment=1414080455224#c342097946736502625

http://techsupport1978.wordpress.com/2014/01/01/cyberoam-iview-open-source-logging-and-reporting-solution/

Um comentário: