Stuff…

I know I will forget.

Stuff… header image 4

Entries from January 2009

DRBD mirroring

January 31st, 2009 · No Comments

Not tried this yet, but, would like to soon.  Just a bit of a reminder for me to try it out.
URL: http://www.drbd.org/
DRBD® refers to block devices designed as a building block to form high availability (HA) clusters. This is done by mirroring a whole block device via an assigned network. It is shown as network raid-1- DRBD.

[Read more →]

Tags: Linux · Networking · Operating System

Remove ^M’s from a file or more

January 26th, 2009 · No Comments

How to remove ^M from within a file:

perl -pi -e ‘y/\015//d’filename

[Read more →]

Tags: Coding · One Liners · Operating System

Adding RBL checks on RAQ550/sendmail

January 23rd, 2009 · 1 Comment

Needed to add RBL checking into sendmail as the machine was under attack by some smtp botnet.  RAQ550s had no inbuilt RBL support so had to update the sendmail.cf manually.
URL: http://www.cobaltuserslist.com/CobaltUsersList/Sun-Cobalt-Users-List-76800.html
The example is a bit old… the RBLs I used are: cbl.abuseat.org , bl.spamcop.net, sbl.spamhaus.org
Cobalt list post:

RBL (Realtime Blackhole List) filtering allows your sendmail installation
to [...]

[Read more →]

Tags: Linux · Operating System · Protocols · SMTP · Uncategorized

netstat handy commands

January 23rd, 2009 · No Comments

These were found in a google cached page:
URL:  http://www.cyberls.com/forum/index.php?t=tree&th=52&
List of connected ips to port 80 : netstat -apn|grep :80|awk ‘{print $5}’ | awk -F\: ‘{print $1} ‘> /tmp/iplist
List of connected ips in a sort way so that you can find no of conn from each : netstat -apn|grep :80|awk ‘{print $5}’ |sort
List of establish connections [...]

[Read more →]

Tags: Linux · Networking · Operating System

Test for open relays

January 14th, 2009 · No Comments

Occasionally you may want to test your mail server to see if it accepts unauthenticated mail to be relayed.
These URLs allow you to do this:

http://www.abuse.net/relay.html
http://www.dnsgoodies.com/
http://www.checkor.com/

[Read more →]

Tags: Protocols · SMTP