APG ( automated password generator ) runs slow on CentOS

I use apg to generate random password all the time. On a new vpn server I built, apg was taking a long time to generate a pass, I traced it back to “not enough entropy”

You can see how much entropy you have with this command:

cat /proc/sys/kernel/random/entropy_avail

It should be at least in the hundreds, if its not you can use rng-tools to help you out.

sudo yum install rng-tools
echo “rngd -r /dev/urandom -o /dev/random -f -t 3″ >> /etc/rc.local
rngd -r /dev/urandom -o /dev/random -f -t 3

that should generate enough entropy and you can go back to doing some real work :)

Repadmin commands to monitor your Windows 2008 Active Directory

Repadmin /replsummary /bysrc /sort:delta
Repadmin /showrepl /verbose /all /conn
repadmin /latency
repadmin /checkprop /intersite

and if you wanted to sync your AD …

repadmin /syncall /e

TCPdump – sniff all traffic

Another one of those switches I always forget …

 

sudo tcpdump -i interface -nnXSs 0

VMware – remove host currently has no management network redundancy error

Using my poor mans VM lab I always get this error when I am rebuilding the lab …
I always end up forgetting it and have to dig this great post : http://yuridejager.wordpress.com/2009/10/16/remove-the-host-currently-has-no-management-network-redundancy-warning-from-your-whitebox-ha-enabled-esx-cluster/

This is my own little reminder, kudos to Yuri ….

the solution is to add “das.ignoreRedundantNetWarning = true” under ha advanced settings and disable/enable HA

Configure SSH on a Cisco ASA

Generate RSA key

crypto key generate rsa modulus 2048

Set Authentication to LOCAL

aaa authentication ssh console LOCAL

Create an ssh user :

username USER pass PASS