All of lore.kernel.org
 help / color / mirror / Atom feed
* iptables grep problems
@ 2003-02-03 13:14 saint
  2003-02-03 13:29 ` Andre Costa
  0 siblings, 1 reply; 8+ messages in thread
From: saint @ 2003-02-03 13:14 UTC (permalink / raw)
  To: Netfilter Mailing List

Hi all,

It seems I'm in a bit of a bother.  Here's my problem:
I have a semi-permanent IP address provided by my ISP
and I can't do one of two things:
1. use eth0, and
2. use a combination of grep, awk, & ifconfig.

Normally, if I issue this from the bash shell:

$ifconfig eth0 | grep 'inet addr' | awk '{print $2}'

I get the intended result i.e the external interface's IP address.
So why can't I get anything when I put this in the firewall script?
Actually, I do get something: ERRORS!

If someone would kindly help me with this problem
and relieve my suffering it'll be very much appreciated.

Thanks.

Santos.
Still learning.



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-02-04  1:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-03 13:14 iptables grep problems saint
2003-02-03 13:29 ` Andre Costa
     [not found]   ` <1044281797.9025.60.camel@juna.cypherworld.org>
     [not found]     ` <20030203124402.62d81f9e.brblueser@uol.com.br>
     [not found]       ` <1044284315.9027.64.camel@juna.cypherworld.org>
     [not found]         ` <20030203130900.75c2bf9a.brblueser@uol.com.br>
2003-02-03 15:50           ` Consequences saint
2003-02-03 17:57             ` Consequences Darrell Dieringer
2003-02-04  1:15               ` Consequences saint
2003-02-03 18:26             ` Consequences Joel Newkirk
2003-02-04  0:59               ` Consequences saint
     [not found]             ` <20030203144552.40a47171.brblueser@uol.com.br>
2003-02-04  1:29               ` Consequences saint

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.