We picked up a Watchguard Firebox FB-10R from RE-PC (Tukwila) for 15 bucks. There is almost always some kind of auction on Ebay selling a Firebox FB-10. The motherboard on ours, it turns out, was damaged. Now the Firebox FB-10R is just a regular PC clone. It has three 3COM 3C509 NICs in it. We […]
Recycling a Watchguard Firebox FB10
Installing a TFTP Server on Red Hat 8.0
In this story we showed how to upgrade IOS on a Cisco using a TFTP server available from Cisco that ran on Windows. Well, just suppose you wanted to load a new IOS image from a TFTP server on a GNU/Linux box. We will use Red Hat 8.0 to provide a TFTP server. First, install […]
Firewall on a Floppy
Check out floppyfw for a simple firewall and IP sharing device. No hard drive is needed, and 16 megs of RAM is more than enough. The instructions on the site and in the comments in the config files are quite easy to follow. One somewhat tricky problem is if you are using a network card […]
Some Useful RFCs
HTTP: RFC 2068 POP3: RFC 1725 SMTP: RFC 821 FTP: RFC 959
Installing Network Probe
Network Probe is a free network monitor and protocol analyzer that runs on Windows NT/2K/XP, Linux, FreeBSD, Solaris (Intel), and Mac OS X. We downloaded the Linux version by filling out the form here. The form wasn’t too intrusive, and the email with the download information came back quickly. We used version 0.4 for this […]
Setting Up Network Load Balancing on Windows 2000 Advanced Server
Network load balancing is a service that comes with Windows 2000 Advanced Server (not plain old Windows 2000). In this article we will set up Network Load Balancing on a cluster of two systems and test via the telnet service. The Network Load Balancing service is unlike other popular load balancing schemes like Red Hat […]
Using the WLBS CLI tool to Control Network Load Balancing on Windows 2000 Advanced Server
In order to use the WLBS CLI, you need to enable remote control: The WLBS CLI lives as wlbs.exe in system32. Query the cluster: C:\>wlbs query 10.50.100.10 /passw WLBS Cluster Control Utility V2.3. (c) 1997-99 Microsoft Corporation Password: Accessing cluster ‘10.50.100.10’ (10.50.100.40): Host 7 (10.50.100.17) reported: converged Host 1 (10.50.100.11) reported: converged as DEFAULT Host […]
Initial MRTG Configuration
MRTG is a monitoring tool for traffic loads on network-links. It will create HTML pages with visual representation of both the current and historical load on the device. The server we will use for this article is the Gentoo box we built in this article. With Gentoo, we simply run emerge and a bunch of […]
Creating a PPP Connection to a Cisco Aux Port
In this article, we set up MRTG to monitor an old Cisco 1720 router. Now, it is nice to have *two* interfaces on a lab router so that you can route between two physical interfaces. We tried adding a second FastEthernet module instead of the T1 module we have, but the firmware was too old. […]
Using the Ping -f Option to Test for Lost Packets
There is a cool option on some versions of ping. With the -f option, a dot is printed for each ping sent, and a backspace is printed when a ping is received. This gives you an instant visualization of the lost packets. Hit ctrl-c to end the task, and you will then see the latency […]
AreWeDown Trace/Latency Tool
We wrote up a tool that will generate a latency and trace report based on your IP address. Note that this is the IP address that the web server detects your client has. First it pings your IP address with 50 pings or 5 seconds worth of pings, whatever is the most restrictive. If 50 […]
Solving Network Congestion Issues With Cisco Traffic Shaping
In this article we will show how to monitor network health from the client perspective using our AreWeDown tool. We will then disrupt communication from the client perspective to the server by using a ping flood, and will solve the problem using traffic shaping. Let’s start out with a healthy network: | 2005-08-06 08:13:50 | […]
Extracting NT user and group information using Perl.
We need an easy way to gather group and user information from our PDC in a format that will be easy to automate on our Linux box. [Check out nt2linux also. We like the flexibility of scripting our own stuff, but nt2linux might work for you.] Here is a filter we whipped up in perl: […]
Migrating dates to MySQL format
If you are used to entering dates in the format DDMMYY, or have existing databases in this format, a quick perl script can migrate these for you. MySQL uses the format of YYYYMMDD. Actually, this makes a lot of sense when sorting left to right. The format for Excel spreadsheets (at least default) is this […]
Bashing Perl
Perl can make quite a useful addition to bash. Typically, sed would be used to massage strings; however, the regular expressions support in perl is more flexible. Say we have a directory with a bunch of files similar to this: [u-1@srv-1 ~/bp]$ ls april04stuff.html april14stf.html jl11stuff.html may12stf.html may13stf.html We decide that we want all files […]
Perl File Tests
There are quite a few simple file tests you can use while waltzing around your filesystem with perl. Here are a list of tests. Let’s run the test from the command line. To test if a file exists: srv-44 tmp # mkdir -p /tmp/perltest srv-44 tmp # cd /tmp/perltest srv-44 perltest # cat /dev/null > […]
Creating Date/Time Stamps With Perl
If you wish to use perl to create a date/time stamp, well, there are a few gotchas. We’ll show you one way to navigate the gotchas in this article. See this page for the technical details of the perl localtime function. Interestingly, we will focus on the date format of this very article. 🙂 This […]
Reading and Writing Files With Perl
Here is how you can use perl to read from one file and write to another: open(FILEREAD, “< file.read.name”); open(FILEWRITE, “> file.write.name”); while (<FILEREAD>){ print FILEWRITE; } close FILEWRITE; close FILEREAD; This will assign the file handle FILEREAD to the file file.read.name and start reading it in line by line in the while loop. The […]
Creating Calendars With Perl
In this article we created archived log files. Well, it would be nice to have a way to grab the daily log files off of an HTML document. Here is a perl script that does this: #!/usr/bin/perl for ($month=1;$month<13;$month++){ system(“cal -1 $month 2003 > calout”); open(CAL, “< calout”); print “<pre>”; while (<CAL>){ $last=$_; if($last=~/[A-Z]/){ if($last=~/\d\d\d\d/){ […]
Grabbing output of system commands with perl
I often have to snag the output of system commands and parse them with perl. Well, Urbana turned me on to a method of grabbing the output that is much easier than directing the output of the system command to a file and re-opening the file. Just use a pipe: #!/usr/bin/perl open (PINGTEST, “/bin/ping -c […]