OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Jaron Omega (jaronaf-inet.net)
Date: Sat Mar 02 2002 - 22:37:10 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    On Sat, Mar 02, 2002 at 10:40:33PM -0500, Scott M. Nolde wrote:
    > George.Gilesmcmail.vanderbilt.edu(George.Gilesmcmail.vanderbilt.edu)2002.03.01 07:52:26 +0000:
    > > How do you get ipfw to pick-up DHCP value for oif in the rc.firewall script
    > > ?
    > >
    > This is what I do:
    > onet=`/sbin/ifconfig dc0 | grep -w inet | awk '{print $2}' | awk -F. \
    > '{print $1 "." $2 "." $3 ".0"}'`

    or so you don't call the same command twice..

    onet=`/sbin/ifconfig dc0 | grep inet\ | awk '{split($2, x, /\./); printf("%s.%s.%s.0", x[1], x[2], x[3])}'`

    Jaron Omega
    jaron{af-inet.net,sock-stream.net}

    To Unsubscribe: send mail to majordomoFreeBSD.org
    with "unsubscribe freebsd-security" in the body of the message