Angelo’s blog

A systems administrator’s diary
  • rss
  • Home
  • About me
  • Computers
  • Bibliography
  • Guides
    • IPSec VPN using FreeBSD
    • Setting up OpenVPN using radius on FreeBSD
    • Protect OWA using a reverse proxy
    • Monitoring a Windows machine with extended counters
    • Setting up a pacemaker cluster on CentOS/RHEL
    • Protect OWA using a reverse proxy #2
  • Resume

FreeBSD running on CF card

angelo | December 6, 2007

hsz3060_com_d_en_sff.jpgMy firewall/asterisk/mail scanner is a Compaq Deskpro EN/SFF, a very small Pentium III 500 box, with 256MB RAM and a 13GB ATA disk. I am very happy with it, since it scans inbound and outbound email all day using amavisd-new, spamassassin and ClamAV, and at the same time I can call through asterisk without a glitch. And it also runs OpenVPN server, DHCP server, BIND, NTP daemon, IPv6 tunnel, PF firewall with QoS, etc. And all that with only 30W power consumption! On auction sites, they go for around 25-30 EUR a piece. You don’t get a Cisco router with that flexibility and features for that price :)

The thing that annoyed me, was the fact that the disk made an annoying high-pitch sound. I could replace it with another drive, perhaps a 2.5″ laptop harddisk, to reduce the noise, but eventually, I decided to go for a CF-card. The CF thing was kind of new to me, but after reading for a while, it looks like the CF card with an adapter just shows up as an IDE disk, and that’s it, bootable and all.So I went out and bought a CF to IDE adapter and an 8GB Sandisk CompactFlash Extreme III card. The adapter is quite cool, you can mount it in a floppy bay, or you can mount it at the back of you PC between the PCI slots, so you can just eject the card from the back or the front. (Well, looking up the product I bought on John’s site reveals more similar adapters to me, I think afterwards this adapter would have been cheaper, even though I’m not sure if it would fit in the small form factor PC.)

I installed the card, and after some fiddling with cables and jumpers, FreeBSD saw it as my second disk. I then stopped all network services, created a new slice on it and created partitions/labels with sysinstall. I then did a dump/restore to copy the partitions from the old disk to the new disk. After that was done (took quite a while, played some CoD4 while waiting), I rebooted the machine using only the CF card, fixed the missing /tmp filesystem, and rebooted again, and that’s it, the machine was op and running again! The only way to tell it’s running is the light on the front of the machine, because it’s now dead silent :)

And the performance is not as bad as I thought. I used diskinfo to do some simple and naive tests. The old disk (12407MB <Maxtor 91301U3 FA570480> at ata0-master UDMA33) has seeks time of up to 22ms, and a tranfer rate of up to 24MB/s. The new disk (7815MB <SanDisk SDCFX3-8192 HDX 4.03> at ata1-master WDMA2) had seek times of under 0.5ms, and a steady transfer rate of 15MB/s. The CF card feels fast and snappy as well, probably because of the low seek times..

Comments
No Comments »
Categories
Hardware, Linux/Unix
Comments rss Comments rss
Trackback Trackback

Tiscali implements Digitalk

angelo | December 4, 2007

My ISP Tiscali (now together with the other dutch provider Telfort) have set up a new VoIP solution, called DigiTalk. They previously used SIPExpress. Now, my asterisk box would not register anymore. Well, that was partly my fault, because I put up records in my hosts file, staticly addressing their SIP Proxy. So now, when I called, I got a recording saying I should reboot my modem, bla bla.

After an evening of trial-and-error, and searching on the net, I have a working configuration again. My sip.conf: (my asterisk box is not behind NAT, and this is not my real phone number. My hosts file has no more related records anymore)

[general] 
bindport=5060 
bindaddr=0.0.0.0 
srvlookup=yes 
nat=no    

register => 0131234567:password:0131234567@tiscali    

[tiscali] 
type=friend 
insecure=very 
context=tiscali-in 
username=0131234567 
secret=password 
fromuser=0131234567 
authuser=0131234567 
fromdomain=tel.telefoniedienst.nl 
qualify=no 
host=tel.telefoniedienst.nl 
dtmfmode = rfc2833 
canreinvite=no 
canrevisit=no 
disallow=all 
allow=alaw 
allow=gsm 
allowsubscribe=no
Comments
No Comments »
Categories
Misc
Comments rss Comments rss
Trackback Trackback

Pages

  • Guides
    • IPSec VPN using FreeBSD
    • Monitoring a Windows machine with extended counters
    • Protect OWA using a reverse proxy
    • Protect OWA using a reverse proxy #2
    • Setting up a pacemaker cluster on CentOS/RHEL
    • Setting up OpenVPN using radius on FreeBSD

Categories

  • Games
  • Hardware
  • Linux/Unix
  • Mac
  • Microsoft
  • Misc
  • Security/privacy
  • Virtualization

Archives

  • February 2010
  • March 2009
  • November 2008
  • June 2008
  • February 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • May 2007
  • March 2007
  • February 2007
  • January 2007
  • December 2006
  • October 2006

Friends' sites

  • ErwinK’s site
  • Jef’s site
  • Judith’s site

Work

  • NetMatch
rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox