"Brian D. Winters" wrote:
> heading does not constitute a careful reading. :) If you bother to
> keep going, the paragraph explains that tcprulescheck uses the
> contents of the environment variables TCPREMOTEIP, TCPREMOTEHOST, and
> TCPREMOTEINFO to determine which entry in the cdb to return. If all
> three are unset, you get the default rule back. If you don't want the
> default rule, set one or more of them.
> Apparently your shell doesn't support that syntax. (Maybe you use
> (t)csh?) What you need to do is set the environment variable
> TCPREMOTEIP to the address you want to test, and then run
> "tcprulescheck /etc/tcp.smtp.cdb". In (t)csh, the syntax is:
>
> setenv TCPREMOTEIP 203.34.190.170
> tcprulescheck /etc/tcpserver/tcp.smtp.cdb
Ah, okay. Sorry, I'm not very coherent with shells :-(
However, I've tried this in another way (export
TCPREMOTEIP=203.34.190.170), in a previous post.
Paul Jarc wrote:
> setting the environment variable. Hmm... have you tried setting all
> three variables?
I have now:
# export TCPREMOTEIP=203.34.190.170
# echo $TCPREMOTEIP
203.34.190.170
# export TCPREMOTEHOST=fornax.net
# echo $TCPREMOTEHOST
fornax.net
# export TCPREMOTEINFO=list
# echo $TCPREMOTEINFO
list
# /usr/local/bin/tcprulescheck /etc/tcp.smtp.cdb
default:
allow connection
Did I get that right? I'm hope that's what $TCPREMOTEHOST and
$TCPREMOTEINFO should be.
Cheers,
--
Andrew Hill