The Makefile is not really BSD compatible, but IMspector can build with
gmake, just :
1. Change the Prefix so it goes to the right place
DESTDIR = /
PREFIX = /usr/local
2. comment the following line as it states in the Makefile
##########
# If using FreeBSD or OpenBSD COMMENT the below lines
#LIBS = -ldl
3. change #include <iconv.h> to #include </usr/local/include/iconv.h> in
imspector.h
4. icq plug-in will not compile, but I didn't care so just disable it in the
Makefile, here is the error if someone cares to correct it
g++ -Wall -O2 -fPIC -I/usr/include -DHAVE_SSL icqprotocolplugin.cpp -c
icqprotocolplugin.cpp: In function 'int getmessage(char**, char*, int,
std::string&, int&, int&)':
icqprotocolplugin.cpp:676: error: invalid conversion from 'char**' to 'const
char**'
icqprotocolplugin.cpp:676: error: initializing argument 2 of 'size_t
libiconv(void*, const char**, size_t*, char**, size_t*)'
gmake: *** [icqprotocolplugin.o] Error 1
then you can do
gmake
gmake install
Edit the file in /usr/local/etc/imspector/imspector.conf and fix the
imspector libdir to /usr/local/lib/imspector
Start imspector with. imspector -d -c
/usr/local/etc/imspector/imspector.conf
Add the redirect rule to /etc/pf.conf:
rdr on vr1 proto tcp from vr1:network to any port 1863 -> localhost port
16667
Here vr1 is the int_if, and imspector is running on the FW so redirect to
localhost port 16667.
And success, data is logged in /var/log/imspector
--
Kerem Erciyes
Sistem Danismani
http://proje.keremerciyes.com
kerem.erciyes@...
+90 532 737 05 83
|