bash script for iptables
From: Felix Tilley (ftilley_at_localhost.localdomain)
Date: 07/23/04
- Next message: Michael Heiming: "Re: Open Source Leaving Microsoft Sitting on the Fence?"
- Previous message: Felix Tilley: "iptables script"
- Next in thread: William Park: "Re: bash script for iptables"
- Reply: William Park: "Re: bash script for iptables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 22 Jul 2004 21:06:37 -0700
!/bin/bash
# 10 JUN 2004
# Must be run as root
grep "localhost kernel" /var/log/syslog|grep PROTO|while read a1 a2 a3 a4 a5 \
a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16 a17 a18 a19 a20
do
if test $a16 = "PROTO=UDP"
then echo $a1 $a2 $a3 "-0700" $a9 $a10 $a16 $a17 $a18
else echo $a1 $a2 $a3 "-0700" $a9 $a10 $a17 $a18 $a19
fi
done
-- Felix Tilley Rank: MAJ Fanatic Lartvocate FL# 555-LART
- Next message: Michael Heiming: "Re: Open Source Leaving Microsoft Sitting on the Fence?"
- Previous message: Felix Tilley: "iptables script"
- Next in thread: William Park: "Re: bash script for iptables"
- Reply: William Park: "Re: bash script for iptables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]