Tuesday, August 26, 2003

Ever wanted to setup a policy routing on a cisco router? This page CacheFlow: Support - CacheFlow Configuration Notes: Transparent Mode Caching - Cisco Routers: "ip policy route-map" has the best example I've seen yet!

Boy, this is about as much as anyone will ever want to know about PIX firewalls, but I found it to be an excellent primer: Cisco PIX 500 Series Firewalls Using nat, global, static, conduit, and access-list Commands and Port Redirection on PIX - Cisco Systems

Monday, August 25, 2003

Wow...microsoft does it again. I wonder if they have to get approval from Billy to make such sweeping changes to my windows configuration via the auto-update feature or maybe someone just "thought" it would be a good idea to TURN-ON the firewall in XP. I've already had to touch 3 PC's in the last 24 hours because their file sharing no longer worked. You would think that a Billion dollar company might actually test something before they roll it out to several million users...or at least let the users know about the change. Thanks again MS...

Google Search: awk: syntax error near

It figures...i spent an hour troubleshooting why this AWK script was bombing out and it was because Solaris keeps a non-working version around just to frustrate people...I should have been using the newer nawk. The script is pretty cool. Here it is:

This script will scan a file looking for a trigger string. If it finds that trigger string, it will scan the rest of the file looking for a pair of strings indicating a field and a value. The intention is that the first string (the trigger) indicates that the file is of the right type, and the pair of strings allow you to select the field of interest, and the value you want to see.
When the script finds a file containing the trigger string, followed by the field with the right value, it will output a command to copy the file. The idea is that you can run this script to find and copy all the files containing the trigger and the right value for the chosen field. The script also outputs debugging information (or progress information) as comments to the shell script. This will work in UNIX, but not in DOS. In DOS, you will have to disable the debugging lines.

This script is written with options for DOS or UNIX, and you can extend that to create a different command for your system. It assumes that multiple files matching the criteria should be appended to the output.

To run it in a UNIX environment, you would use a command like:

awk -f scan.awk trigger=aaa field=bbbb value=cccc * | /bin/sh
In DOS, you would have to use a command like:
awk -f scan.awk trigger=aaa field=bbbb value=cccc *.* > tmp.bat
then run tmp.bat to actually copy the files.

#File: scan.awk
#?? SCAN.AWK
#
#?v Written 2001-03-24
#?v By Rob Ewan
#
# This is an AWK program to scan for files containing two triggers. It will
# output a list of the files which it finds.
#
#? Usage:
#? AWK -f scan.awk file(s)
#? Options:
#? trigger=string To specify the trigger sequence
#? field=string To specify the field name of interest
#? value=string To specify the field value of interest
#? os=dos/unix To specify the operating system (DOS/UNIX)
#?

# Put initialization code here
BEGIN {
fileName = "";
# Set some default values
trigger = "Return-Path";
field = "Subject";
value = "Post.Office";
os = "unix";
}

# When we see the next file
fileName != FILENAME {
# Set up processing for next file
fileName = FILENAME;
print "# Starting a new file: " fileName;
# Have not found the trigger yet
foundTrigger = 0;
# Have not marked the file for copying yet
markedFile = 0;
}

# If this line contains the trigger, start looking for field and value
$0 ~ trigger {
print "# Found trigger: " $0;
foundTrigger = 1;
}

# If we found the trigger, and this line contains the field and value
foundTrigger && $0 ~ field ": *" value {
print "# Found field: " $0;
# If we have not already marked this file for copying
if (!markedFile) {
# Generate OS-specific command to copy the contents
if (os == "unix") {
print "rm " fileName " >>" value "." trigger;
} else if (os == "dos") {
print "type " fileName " >>" value "." trigger;
} else {
print fileName;
}
# Mark the file to prevent copying it twice
markedFile = 1;
}
}

# Put the closing code here
END {
# Nothing to do
}

This software, Secure IE, looks like it might help a lot with internet surfing problems. I'll have to run it when I get home but my work computer did not show too well.

McAfee Security - Computer Virus Software and Internet Security For Your PC - Wow who would have guested what a big deal sobig would be...I had 16,000 emails in my inbox when I got to work. Thankfully, I had left my email program running so they were already downloaded. I just created a rule/filter in outlook2K to permanantly delete any email that had the subject lines lised in the above web page. voila! They were gone. Most were missing the attachment anyway since the virus protection stripped them off but it still let the email through...someone is showing us the flaws in the interent and itnernet email. so far, they have been nice to us. This worm expires on sept 10th...what if someone really wanted to do some damage...

Sunday, August 24, 2003

blog*spot - blog hosting look like a neet site!