IPFW Rules and Games
Bob Hall
rjhjr at cox.net
Fri Nov 2 19:02:43 PDT 2007
On Fri, Nov 02, 2007 at 10:59:04PM +0100, deeptech71 at gmail.com wrote:
> > onet=`ifconfig xl0 | grep "inet " | awk '{print $6}'`
> I'm not sure about this. Isn't the sixth word the broadcast address
> (ending with .255)?
It's correct. I've been using this in my firewall file since FBSD
4.something. No problems. By default, awk uses spaces as column
delimiters. The line containing "inet " starts with eight spaces. Try it
and see what happens.
More information about the freebsd-questions
mailing list