Chris Ross wrote:
On Jun 9, 2005, at 07:24, Darren Reed wrote:
Hmmm, I don't think I ever solved this problem for Tru64.
You want it there when you boot up, right ?
If so, then this is just a matter of editting /etc/rc and adding
the right commands in there.
Actually, Tru64 is a /etc/init.d system, much like Solaris' through
9.
So, if you make an /etc/init.d/ipfilter, and then link the /etc/rcN.d/
scripts to it (named "Sfoo" and "Kfoo" where the right foo sorts
them into place), you should be able to configure it that way.
Does ipfilter already ship with an init.d type script? Would it need
to be changed any for Tru64?
- Chris
Darren thank you for your answer. as you suggested i created a script to
load ipfilter on system boot. works fine now.
greetings,
Stoyan
#!/sbin/sh
#
# 2005, filibeto.org; Stoyan Angelov
#
# ipfilter startup/reload script for Tru64 5.1B
#
IPF_RULES=/etc/ipf.rules
#IPNAT_RULES=/etc/ipnat.rules
if [ ! -f ${IPF_RULES} ]; then
echo "ipfilter configuration file missing: ${IPF_RULES}"
exit 0
fi
case "$1" in
start)
cmdtext="enabling"
/sbin/sysconfig -c ipfilter
/sbin/ipf -Fa -f ${IPF_RULES}
# /sbin/ipnat -CF -f ${IPNAT_RULES}
;;
reload)
cmdtext="reloading"
/sbin/ipf -Fa -f ${IPF_RULES}
# /sbin/ipnat -CF -f ${IPNAT_RULES}
;;
*)
echo "Usage: $0 {start|reload}"
exit 1
;;
esac
echo "$cmdtext ipfilter"
exit 0