Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Oct 2000 01:08:30 -0400
From:      Bill Fumerola <billf@chimesnet.com>
To:        cjclark@alum.mit.edu
Cc:        Milo Bloom <mbloom@cinci.rr.com>, Peter Pentchev <roam@orbitel.bg>, redwards@meccamediagroup.com, freebsd-security@FreeBSD.ORG
Subject:   Re: Dynamic rc.firewall
Message-ID:  <20001014010830.C37870@jade.chc-chimes.com>
In-Reply-To: <20001013213431.T25121@149.211.6.64.reflexcom.com>; from cjclark@reflexnet.net on Fri, Oct 13, 2000 at 09:34:31PM -0700
References:  <20001013131528.A17444@ringwraith.office1.bg> <5.0.0.25.2.20001013032255.00a8ee40@127.0.0.1> <20001013131528.A17444@ringwraith.office1.bg> <20001013132743.B17444@ringwraith.office1.bg> <3.0.5.32.20001013073440.009093f0@pop-server.cinci.rr.com> <20001013213431.T25121@149.211.6.64.reflexcom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Oct 13, 2000 at 09:34:31PM -0700, Crist J . Clark wrote:

> >     # set these to your outside interface network and netmask and ip
> >     oif="ex0"                # card name
> >     onet="24.129.15.0"       # whatever your assigned range will be
> >     omask="255.255.255.0"
> >     oip="`ifconfig ex0 | grep inet | awk '{ print $2 }'`"
> > 
> > Hope this helps. Let me (or the list) know how that works for you.
> 
> Wouldn't,
> 
>   oip="`ifconfig ex0 | awk /inet / '{ print $2 }'`"
> 
> Make a little more sense than the gratuitous fgrep?

Are /usr/bin/awk or /usr/bin/fgrep even available when rc.firewall gets called?

Note my stress on calling them by their full path..

-- 
Bill Fumerola - Network Architect, BOFH / Chimes, Inc.
                billf@chimesnet.com / billf@FreeBSD.org





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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001014010830.C37870>