IDS on Voyage linux Tuesday, Oct 30 2012 

Configuring PC Engine running Voyage Linux as IDS

====install from linux

running ubuntu live

errors:
find proper /dev/sda  by using (ubuntu>Preferences>Disk Utility)
errors:
This disk is currently in use – repartitioning is probably a bad idea.

! may have to unmount volume first

solve: $sudo passwd root
logout, login as root

—add additional programs using apt

>apt-get update
>apt-get install nano

—change hostname

/etc/hostname
/etc/init.d/hostname.sh

—change IPs by editing the

/etc/network/interfaces

#eg:
#auto eth2
#iface eth2 inet dhcp
#
#auto eth3
#iface eth3 inet static
# address 10.1.40.1
# netmask 255.255.255.0
# broadcast 10.1.40.255

After changes you will need:
/etc/init.d/networking restart

—snort—
/etc/snort
snort.conf

#var RULE_PATH /etc/snort/rules
#output alert_syslog: host=10.10.50.200, LOG_AUTH LOG_ALERT
#include $RULE_PATH/unicast.rules

rules/unicast.rules

# Ignore traffic from the following hosts
#pass ip [10.10.102.159,10.10.50.55] any -> any any
# Alert on ICMP traffic
#alert icmp any any -> any any (sid:500;)

—syslog—
/etc/syslog.conf

#restart syslog
/etc/init.d/sysklogd restart

Advertisements

yes – the command Friday, Jul 24 2009 

Found this while searching for how to copy files and choose ‘No to all’ in linux (no overwrite).

 >yes n | cp -R -i /sourcedir/* /destdir

yes simply repeats a phrase (y by default) ad infinitum.
So here we just use a copy statment, forcing it to prompt before overwriting and (via yes) say no.

Thanks Glenn Arndt from Indianapolis!

(not realated, but also of interest: How to find – Size of a directory & Free disk space)
     >du – Finding the size of a directory
     >df’ – finding the disk free space / disk usage

How to reset the nagiosadmin password Friday, Jan 2 2009 

How to reset the nagiosadmin password

 sudo htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin

don’t forget the sudo. http://xkcd.com/149/

 

[edit: originally published Thursday, Apr 17 2008 – moved after restructure]

Next Page »