nawirb wrote:
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

Some points may be incorrect, see below.


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
^ here, the # means it's commented out. If you want it to work, you must make sure there is no # in the line.

# /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

Not for *each possible* interface type. The ones already there are commented out samples. You should only have the lines corresponding to the ones actually present in your system (maybe that's what you meant, I just wasn't sure :-)


# reboot -- -r

-Modify /etc/init.d/pfil so pfil for e1000g will
automatically start at boot

I don't see why you had to modify this. I never had to. Just modifying configuration files (iu.ap) and following the installation steps should be enough.


# cat /etc/init.d/pfil
fixif()
[snip script]

BUILD IPFILTER
-Make sure you use solaris built-in make and Forte C
Compiler downloaded from http://www.sun.com/download

You need Sun make, but not not Forte. It works very well with GCC.

# cd ip_fil4.1.1
# /usr/ccs/bin/make solaris
# cd SunOS5
# /usr/ccs/bin/make package

HTH,

Laurent
--
A hundred thousand lemmings can't be wrong!

Reply via email to