FreeBSD: Proper buildworld technique

Follow all these steps in this exact order…this is from hard-won experience!!! 1. cvsup the correct /usr/src – example cvsup files can usually be found in /root/sup. Normally we follow the security releases e.g. RELENG 6_2 rather than stable e.g. RELENG_6 2. read /usr/src/UPDATING to make sure nothing bad is going to happen. 3. rm ...

Routing Hackers To /dev/null (Blackhole)

Add: route add -host attacker_ip -blackhole Remove: route delete -host attacker_ip -blackhole The above will route all traffic from the “attacker_ip” to a blackhole. This is useful when you see someone relentlessly attacking any daemon on your server (ssh, http, ftp, etc). [ad#Google Adsense]

Decrypt SMIME E-Mails – BlackBerry/iPhone

I, and most everyone I deal with, use SMIME e-mail certificates from Verisign/Thawte/Home Brew. Unfortunately, these e-mails can not be viewed on an BlackBerry (without BES) or iPhone. I overcame this by creating an alias on my server that would receive e-mails, decrypt them, and send them back to me -> UNENCRYPTED. [NOTE: If you ...

FreeBSD: Aliasing IPs

[ad#Google Adsense] Edit /etc/rc.conf The primary IP of the machine will be defined by a line that looks similar to this: ifconfig_rl0=”inet netmask″ To add additional IPs you simply: ifconfig_rl0_alias0=”inet netmask″ ifconfig_rl0_alias1=”inet netmask″ [ad#Google Adsense]

FreeBSD: Moving To A Larger Harddrive

[ad#Google Adsense] Moving to a Larger Hard Drive Applicable to: FreeBSD 4.3 and Higher This Sheet describes the procedure I used to move my company’s FreeBSD system to a larger hard drive. 1. Verify that the system supports two hard drives. If not, rebuild the kernel with support for two hard drives: # ATA and ...

Resume SCP / SSH Downloads

Works most of the time: rsync –archive -partial -progress –rsh=ssh