Date: Mon, 6 Jan 2003 15:04:47 -0300 (ART) From: Fernando Gleiser <fgleiser@cactus.fi.uba.ar> To: Jonathan Belson <jon@witchspace.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: [Q] ipfw and 'me' Message-ID: <20030106150333.B53038-100000@cactus.fi.uba.ar> In-Reply-To: <3E19C280.8030201@witchspace.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 6 Jan 2003, Jonathan Belson wrote: > Jack L. Stone wrote: > > The best way to do this is to use "awk" to determine and set a variable for > > the external IP every time it changes and then refer to that variable in > > your rules. > > ifconfig | grep ^xl0 -1 | tail -n 1 | awk '{ print $2 }' > > Any neater way? :-) yes :) ifconfig xl0 | awk '/^\tinet / {print $2}' Fer > > > --Jon > > http://www.witchspace.com > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030106150333.B53038-100000>