Hi Santos, if you're putting this into /etc/sysconfig/iptables (RH) or any other ruleset meant to be loaded with iptables-restore, you're out of luck: shell commands cannot be executed there. If not, then it's most likely a shell related problem (I mean: it shouldn't be iptable's fault); post the errors msgs here so that we can try to help you. Best, Andre On 04 Feb 2003 00:14:11 +1100 saint <nagajuna@optushome.com.au> wrote: > 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. > > -- Andre Oliveira da Costa