I already can successfully run pfil and ipfilter by
modifying iu.ap in the source code. The problem is
because my e1000g interface is not listed there.
Thanks to the all who respond to my mail.
Below is my cookbook
COMPILE AND INSTALL FIREWALL USING IPFILTER
# ls pfil-2.1.2.tar.gz
pfil-2.1.2.tar.gz
# cd pfil
# echo "#e1000g -1 0 pfil" >> SunOS/iu.ap
# /usr/ccs/bin/make package
# pkgadd -d /tmp/pfil.pkg
-Check the file /etc/opt/pfil/iu.ap. It should
contain one line for
each network interface type
# reboot -- -r
-Modify /etc/init.d/pfil so pfil for e1000g will
automatically start at boot
# cat /etc/init.d/pfil
#!/bin/sh
PFILAP=/etc/opt/pfil/iu.ap
fixif()
{
ifconfig $1 2>/dev/null 1>&2
if [ $? -ne 0 ] ; then
ifconfig $1 plumb
ifconfig $1 unplumb
fi
}
case "$1" in
start)
if [ ! -f /etc/ipf.conf -a ! -f
/etc/opt/ipf/ipf.conf ] ; then
exit 0;
fi
iflist="`echo /etc/hostname.*[0-9]
2>/dev/null`"
if [ "$iflist" !=
'/etc/hostname.*[0-9]' ] ; then
(
y=xxx
x=$IFS
for i in
/etc/hostname.*[0-9]; do
ORIGIFS="$IFS"
IFS="$IFS."
set -- $i
IFS="$ORIGIFS"
ifname="$2"
if [ $ifname
!= $y ] ; then
y=$ifname
fixif
$ifname
fi
done
)
fi
echo > /dev/pfil
autopush -f ${PFILAP} 2>/dev/null 1>&2
ifconfig e1000g0 modinsert [EMAIL PROTECTED]
ifconfig e1000g1 modinsert [EMAIL PROTECTED]
;;
*)
echo "Usage: $0 start" >&2
exit 1
;;
esac
exit 0
BUILD IPFILTER
-Make sure you use solaris built-in make and Forte C
Compiler downloaded from http://www.sun.com/download
# cd ip_fil4.1.1
# /usr/ccs/bin/make solaris
# cd SunOS5
# /usr/ccs/bin/make package
__________________________________
Do you Yahoo!?
Yahoo! Domains � Claim yours for only $14.70/year
http://smallbusiness.promotions.yahoo.com/offer