SUSE 10.1 and Iptables

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
SUSE now logs iptables hits to /var/log/firewall.
This may be of interest to you:

#@(#) iplogs for root 30 JUL 2006
# Must be run as root
# There is an obscure bug somewhere.  This not ready for general use.
# This was writen for SUSE 10.1 with kernel 2.6.16  
# You will have to modify it.

# The iptables logs are in /var/log/firewall

grep "linux kernel" /var/log/firewall|grep PROTO|while read a1 a2 a3 a4 a5 \
a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16 a17 a18 a19 a20

  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




This may also be of interest:

#@(#) Print todays IPTables logs.  Must be run as root.
#@(#) 26 MAY  2006

date | while read a1 month date a4 a5

    iplogs |grep "$month $date"




 Felix Tilley
 Colonel Fanatic Legions
 Senior LARTvocate
 Fanatic Legions

Re: SUSE 10.1 and Iptables

On Sun, 30 Jul 2006 16:27:18 -0700, Felix Tilley wrote:

Quoted text here. Click to load it

I screwed up with the EOL.  You will have to edit it.


Site Timeline