
On Mon, Jun 12, 2000 at 20:41 +0200, Winfried Trautsch wrote:
On 12 Jun. 2000 at 09:48 Gerhard Sittig wrote:
SuSEfirewall complaints about "no such command", obviously when executing FW_DEV_WORLD_eth1:0="62.153.66.51 255.255.255.248".
Try asking your shell's manpage. I guess colons aren't supposed to appear in variable's names.
I escaped the colon - all the same.
That's why I wrote this: <cite> One solution seems to be substituting special characters in the device name, but this had to be done for LHS (variable names) only -- the RHS still needs an unmodified value. </cite> Escaping the colon is not sufficiant (especially when you don't know how many times the parameters get passed down the chain from the rc.config(?) parameter bundle to the shell assigning the value and evaluating it -- how is the variable's name generated?). If "substituting" is not what you want, try "replacing" it. :) You didn't get the first message: A colon is something that doesn't fit into a variable's name! You want to fiddle with the firewall script like this (don't have it around here, just guessing and stealing from i4l ...). Replace these phrases eval I4L_IDLETIME=\$I4L_IDLETIME$I with something like eval I4L_IDLETIME=\$I4L_IDLETIME$( echo $I | tr '-:' '__' ) when $I was your device with "non var letters" in it. Or stuff the things into variables once and use it a few times: DEV_RHS=$DEVICE DEV_LHS=$( echo $DEV_RHS | tr '-:' '__' ) eval SCRIPTVAR=\$PREFIX$DEV_LHS
Background: Some IRC-Servers reject the connection, if it comes from a nameserver. As the primary nameserver for my domain runs on the firewall, I had to put up another IP-Adress for DNS.
That's where I would even think about moving the DNS server away from the firewall and instead hide it inside _behind_ a filter. Or at least don't expose the primary NS this way and just put a caching secondary there. I really would think more than twice before putting "real" functionality on any firewall except for filters and logging mechanisms. virtually yours 82D1 9B9C 01DC 4FB4 D7B4 61BE 3F49 4F77 72DE DA76 Gerhard Sittig true | mail -s "get gpg key" Gerhard.Sittig@gmx.net -- If you don't understand or are scared by any of the above ask your parents or an adult to help you.