Berkeley CSUA MOTD:Entry 22817
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/04/04 [General] UID:1000 Activity:popular
4/4     

2001/10/24-25 [Computer/SW/Languages/Misc] UID:22817 Activity:moderate
10/24   Using Check-point FW1, i have a 1 hour time-out which is very annoying
        to me.  i would like to eliminate it or make it VERY high.  Is this a
        really dumb thing to do, or is it only a slight risk for a lot of
        benefit?
        \_ You mean the TCP session idle timeout for NAT sessions or sessions
           for which FW1 is supposed ot keep state? I don't know about FW1 but
           IP Filter commonly used on *BSD has this timeout set to a really
           large value, something like 24 hours or so. The Linux 2.2 ipchains
           by default sets a very large timeout value too. I don't think this
           is big security risk but if you have a very large number of idle
           connections (e.g. thousands..), the software might run out of
           entries in its session state table.
           \_ earlier versions of IPFilter had a limit of 1024 state table
              entries--it's now been fixed.  We have the same problem with
              FW-1;  basically, it only comes into play when you have a
              connection that's idle for over 1 hour.  The idiotic thing
              with this value is that it's a global setting, and can't be
              done application-specific (ObFW1SucksPlug).  I don't believe
              there's not much of a security risk;  part of the reason it
              was done was to prevent idle connection hijacking.  You can
              get around it by running a simple script that echoes a single
              character on the target host every x minutes, assuming it's
              a login session.  If it's not (something like database,
              whatever) just set it to a reasonable level (2-3 hours) if
              you really need to.  -John
2025/04/04 [General] UID:1000 Activity:popular
4/4     

You may also be interested in these entries...
2012/4/27-6/4 [Computer/SW/Languages/Misc, Computer/SW/Unix] UID:54372 Activity:nil
4/27    I wrote a little shell script to collect iostat data:
        #!/bin/bash
        DATE=`date +%m%d`
        DATADIR=/var/tmp/user
        OUTPUTFILE=$DATADIR/$DATE.out
        while true
	...
2012/5/8-6/4 [Computer/SW/Unix] UID:54383 Activity:nil
5/8     Hello everyone!  This is Josh Hawn, CSUA Tech VP for Spring 2012.
        About 2 weeks ago, someone brought to my attention that our script
        to periodically merge /etc/motd.public into /etc/motd wasn't
        running.  When I looked into it, the cron daemon was running, but
        there hadn't been any root activity in the log since April 7th.  I
        looked into it for a while, but got lost in other things I was
	...
2011/10/26-12/6 [Computer/SW/Unix] UID:54202 Activity:nil
10/24  What's an easy way to see if say column 3 of a file matches a list of
       expressions in a file? Basically I want to combine "grep -f <file>"
       to store the patterns and awk's $3 ~ /(AAA|BBB|CCC)/ ... I realize
       I can do this with "egrep -f " and use regexp instead of strings, but
       was wondering if there was some magic way to do this.
       \_ UNIX has no magic. Make a shell script to produce the ask or egrep
	...
2011/7/30-8/10 [Computer/SW/Languages/Misc] UID:54148 Activity:nil 66%like:54150
7/29    Happy Sysadmin Day
        \_ our "sysadmin" today deleted /home. When we asked her why
           she said she didn't do it. When I checked the sudo logs,
           I found these two commands in order:
               COMMAND=/bin/rm -r /home testuser
               COMMAND=/bin/rm -r /home/testuser
	...
2011/5/19-7/13 [Computer/SW/Languages/Misc] UID:54115 Activity:nil
5/19    If script A runs, and calls script B ..... is it possible for me to exit\
        script A based on results of script B and not continue?
        \_ assume any shell
        \_ Yes.
           \_ without passing the result to some stupid temp file?
              \_ It sounds like you want "scriptb || exit", which will run
	...
2010/12/11-2011/2/19 [Computer/SW/Languages/Perl] UID:53984 Activity:nil
12/11   Anyone have experience with Perl PDF::API2 or PDF::API3?  Can you
        point me to a good tutorial for creating a simple document (a small
        table of 2-3 rows and a single image)?
	...