diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-17 01:04:17 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-17 01:04:17 +0000 |
commit | c3b707c026782768bd8c0e6ae6b574fe8a36802d (patch) | |
tree | 5ca6782031b1546c788290cc0b95524369ff01ea /doc | |
download | kmyfirewall-c3b707c026782768bd8c0e6ae6b574fe8a36802d.tar.gz kmyfirewall-c3b707c026782768bd8c0e6ae6b574fe8a36802d.zip |
Added old abandoned KDE3 version of kmyfirewall
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmyfirewall@1091559 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'doc')
-rw-r--r-- | doc/Makefile | 718 | ||||
-rw-r--r-- | doc/Makefile.am | 5 | ||||
-rw-r--r-- | doc/kmyfirewall/Makefile | 599 | ||||
-rw-r--r-- | doc/kmyfirewall/Makefile.am | 3 | ||||
-rw-r--r-- | doc/kmyfirewall/index.docbook | 1598 |
5 files changed, 2923 insertions, 0 deletions
diff --git a/doc/Makefile b/doc/Makefile new file mode 100644 index 0000000..4709b04 --- /dev/null +++ b/doc/Makefile @@ -0,0 +1,718 @@ +# Makefile.in generated by automake 1.9.6 from Makefile.am. +# KDE tags expanded automatically by am_edit - $Revision: 483858 $ +# doc/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + +srcdir = . +top_srcdir = .. + +pkgdatadir = $(datadir)/kmyfirewall-1.1.0 +pkglibdir = $(libdir)/kmyfirewall-1.1.0 +pkgincludedir = $(includedir)/kmyfirewall-1.1.0 +top_builddir = .. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = /usr/bin/install -c -p +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = i686-pc-linux-gnu +host_triplet = i686-pc-linux-gnu +target_triplet = i686-pc-linux-gnu +subdir = doc +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/admin/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +SOURCES = +DIST_SOURCES = +#>- RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ +#>- html-recursive info-recursive install-data-recursive \ +#>- install-exec-recursive install-info-recursive \ +#>- install-recursive installcheck-recursive installdirs-recursive \ +#>- pdf-recursive ps-recursive uninstall-info-recursive \ +#>- uninstall-recursive +#>+ 6 +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ + html-recursive info-recursive install-data-recursive \ + install-exec-recursive install-info-recursive \ + install-recursive installcheck-recursive installdirs-recursive \ + pdf-recursive ps-recursive uninstall-info-recursive \ + uninstall-recursive nmcheck-recursive bcheck-recursive +ETAGS = etags +CTAGS = ctags +DIST_SUBDIRS = $(SUBDIRS) +#>- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +#>+ 1 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST) +ACLOCAL = ${SHELL} /home/animal/devel/KDE-SVN/kmyfirewall-1.1.0/admin/missing --run aclocal-1.9 +AMDEP_FALSE = # +AMDEP_TRUE = +AMTAR = ${SHELL} /home/animal/devel/KDE-SVN/kmyfirewall-1.1.0/admin/missing --run tar +AR = ar +ARTSCCONFIG = /usr/bin/artsc-config +AUTOCONF = $(SHELL) $(top_srcdir)/admin/cvs.sh configure || touch configure +AUTODIRS = +AUTOHEADER = ${SHELL} /home/animal/devel/KDE-SVN/kmyfirewall-1.1.0/admin/missing --run autoheader +AUTOMAKE = ${SHELL} /home/animal/devel/KDE-SVN/kmyfirewall-1.1.0/admin/missing --run automake-1.9 +AWK = mawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -g3 -fno-inline -Wformat-security -Wmissing-format-attribute +CONF_FILES = $(top_srcdir)/./admin/configure.in.min $(top_srcdir)/configure.in.in +CPP = gcc -E +CPPFLAGS = -DQT_THREAD_SUPPORT -D_REENTRANT +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -fno-builtin -g3 -fno-inline -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common +CYGPATH_W = echo +DCOPIDL = /usr/bin/dcopidl +DCOPIDL2CPP = /usr/bin/dcopidl2cpp +DCOPIDLNG = /usr/bin/dcopidlng +DCOP_DEPENDENCIES = $(DCOPIDL) $(DCOPIDLNG) +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +ENABLE_PERMISSIVE_FLAG = -fpermissive +EXEEXT = +F77 = +FFLAGS = +FRAMEWORK_COREAUDIO = +GMSGFMT = /usr/bin/msgfmt +GREP = /bin/grep +HAVE_GCC_VISIBILITY = 0 +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} $(INSTALL_STRIP_FLAG) +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s +KCFG_DEPENDENCIES = $(KCONFIG_COMPILER) +KCONFIG_COMPILER = /usr/bin/kconfig_compiler +KDECONFIG = /usr/bin/kde-config +KDE_CHECK_PLUGIN = $(KDE_PLUGIN) -rpath $(libdir) +KDE_EXTRA_RPATH = +KDE_INCLUDES = -I/usr/include/kde +KDE_LDFLAGS = -L/usr/lib +KDE_MT_LDFLAGS = +KDE_MT_LIBS = -lpthread +KDE_NO_UNDEFINED = -Wl,--no-undefined -Wl,--allow-shlib-undefined +KDE_PLUGIN = -avoid-version -module -no-undefined $(KDE_NO_UNDEFINED) $(KDE_RPATH) $(KDE_MT_LDFLAGS) +KDE_RPATH = -R $(libdir) -R $(kde_libraries) -R $(qt_libraries) +KDE_USE_CLOSURE_FALSE = +KDE_USE_CLOSURE_TRUE = # +KDE_USE_FINAL_FALSE = +KDE_USE_FINAL_TRUE = # +KDE_USE_FPIE = -fPIE +KDE_USE_NMCHECK_FALSE = +KDE_USE_NMCHECK_TRUE = # +KDE_USE_PIE = -pie +KDE_XSL_STYLESHEET = /usr/share/apps/ksgmltools2/customization/kde-chunk.xsl +LDFLAGS = +LDFLAGS_AS_NEEDED = +LDFLAGS_NEW_DTAGS = +LIBCOMPAT = +LIBCRYPT = -lcrypt +LIBDL = -ldl +LIBJPEG = -ljpeg +LIBOBJS = +LIBPNG = -lpng -lz -lm +LIBPTHREAD = -lpthread +LIBRESOLV = -lresolv +LIBS = +LIBSM = -lSM -lICE +LIBSOCKET = +LIBTOOL = $(SHELL) $(top_builddir)/libtool --silent +LIBUCB = +LIBUTIL = -lutil +LIBZ = -lz +LIB_KAB = -lkab +LIB_KABC = -lkabc +LIB_KDECORE = -lkdecore +LIB_KDED = +LIB_KDEPIM = -lkdepim +LIB_KDEPRINT = -lkdeprint +LIB_KDEUI = -lkdeui +LIB_KDNSSD = -lkdnssd +LIB_KFILE = -lkio +LIB_KFM = +LIB_KHTML = -lkhtml +LIB_KIMPROXY = -lkimproxy +LIB_KIO = -lkio +LIB_KJS = -lkjs +LIB_KNEWSTUFF = -lknewstuff +LIB_KPARTS = -lkparts +LIB_KSPELL = -lkspell +LIB_KSYCOCA = -lkio +LIB_KUNITTEST = -lkunittest +LIB_KUTILS = -lkutils +LIB_POLL = +LIB_QPE = +LIB_QT = -lqt-mt $(LIBZ) $(LIBPNG) -lXext $(LIB_X11) $(LIBSM) -lpthread +LIB_SMB = -lsmb +LIB_X11 = -lX11 $(LIBSOCKET) +LIB_XEXT = -lXext +LIB_XRENDER = +LN_S = ln -s +LTLIBOBJS = +MAKEINFO = ${SHELL} /home/animal/devel/KDE-SVN/kmyfirewall-1.1.0/admin/missing --run makeinfo +MAKEKDEWIDGETS = +MCOPIDL = /usr/bin/mcopidl +MEINPROC = /usr/bin/meinproc +MOC = /usr/share/qt3/bin/moc +MSGFMT = /usr/bin/msgfmt +NOOPT_CFLAGS = -O0 +NOOPT_CXXFLAGS = -O0 +OBJEXT = o +PACKAGE = kmyfirewall-1.1.0 +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PERL = /usr/bin/perl +PKG_CONFIG = /usr/bin/pkg-config +QTE_NORTTI = +QT_INCLUDES = -I/usr/include/qt3 +QT_LDFLAGS = +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +TOPSUBDIRS = KMFIPTInterface KMFSysTray doc kmyfirewall pics templates +UIC = /usr/share/qt3/bin/uic -L $(kde_widgetdir) -nounload +UIC_TR = tr2i18n +USER_INCLUDES = +USER_LDFLAGS = +USE_EXCEPTIONS = -fexceptions +USE_RTTI = +USE_THREADS = +VERSION = 3.5.8 +WOVERLOADED_VIRTUAL = -Woverloaded-virtual +XGETTEXT = /usr/bin/xgettext +XMKMF = +XMLLINT = /usr/bin/xmllint +X_EXTRA_LIBS = +X_INCLUDES = -I. +X_LDFLAGS = +X_PRE_LIBS = +X_RPATH = +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +all_includes = -I/usr/include/kde -I/usr/include/qt3 -I. +all_libraries = +am__fastdepCC_FALSE = # +am__fastdepCC_TRUE = +am__fastdepCXX_FALSE = # +am__fastdepCXX_TRUE = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = /usr/bin +build = i686-pc-linux-gnu +build_alias = +build_cpu = i686 +build_os = linux-gnu +build_vendor = pc +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = i686-pc-linux-gnu +host_alias = +host_cpu = i686 +host_os = linux-gnu +host_vendor = pc +htmldir = ${docdir} +include_ARTS_FALSE = # +include_ARTS_TRUE = +include_x11_FALSE = # +include_x11_TRUE = +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = /home/animal/devel/KDE-SVN/kmyfirewall-1.1.0/admin/install-sh +kde_appsdir = /usr/share/applnk +kde_bindir = /usr/bin +kde_confdir = /etc/kde3 +kde_datadir = /usr/share/apps +kde_htmldir = /usr/share/doc/kde/HTML +kde_icondir = /usr/share/icons +kde_includes = /usr/include/kde +kde_kcfgdir = ${datadir}/config.kcfg +kde_libraries = /usr/lib +kde_libs_htmldir = /usr/share/doc/kde/HTML +kde_libs_prefix = /usr +kde_locale = /usr/share/locale +kde_mimedir = /usr/share/mimelnk +kde_moduledir = /usr/lib/kde3 +kde_qtver = 3 +kde_servicesdir = /usr/share/services +kde_servicetypesdir = /usr/share/servicetypes +kde_sounddir = /usr/share/sounds +kde_styledir = ${libdir}/kde3/plugins/styles +kde_templatesdir = /usr/share/templates +kde_wallpaperdir = /usr/share/wallpapers +kde_widgetdir = /usr/lib/kde3/plugins/designer +kdeinitdir = $(kde_moduledir) +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = mkdir -p -- +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr +program_transform_name = s,x,x, +psdir = ${docdir} +qt_includes = /usr/include/qt3 +qt_libraries = /usr/lib +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +sysconfdir = ${prefix}/etc +target = i686-pc-linux-gnu +target_alias = +target_cpu = i686 +target_os = linux-gnu +target_vendor = pc +unsermake_enable_pch_FALSE = +unsermake_enable_pch_TRUE = # +x_includes = . +x_libraries = /usr/lib +xdg_appsdir = ${datadir}/applications/kde +xdg_directorydir = ${datadir}/desktop-directories +xdg_menudir = ${sysconfdir}/xdg/menus +KDE_LANG = en +KDE_DOCS = AUTO +#>- SUBDIRS = $(AUTODIRS) +#>+ 1 +SUBDIRS =. kmyfirewall +#>- all: all-recursive +#>+ 1 +all: docs-am all-recursive + +.SUFFIXES: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) +#>- @for dep in $?; do \ +#>- case '$(am__configure_deps)' in \ +#>- *$$dep*) \ +#>- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ +#>- && exit 0; \ +#>- exit 1;; \ +#>- esac; \ +#>- done; \ +#>- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \ +#>- cd $(top_srcdir) && \ +#>- $(AUTOMAKE) --gnu doc/Makefile +#>+ 12 + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu doc/Makefile + cd $(top_srcdir) && perl admin/am_edit doc/Makefile.in +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool +uninstall-info-am: + +# This directory's subdirectories are mostly independent; you can cd +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# (1) if the variable is set in `config.status', edit `config.status' +# (which will cause the Makefiles to be regenerated when you run `make'); +# (2) otherwise, pass the desired values on the `make' command line. +$(RECURSIVE_TARGETS): + @failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +mostlyclean-recursive clean-recursive distclean-recursive \ +maintainer-clean-recursive: + @failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + rev=''; for subdir in $$list; do \ + if test "$$subdir" = "."; then :; else \ + rev="$$subdir $$rev"; \ + fi; \ + done; \ + rev="$$rev ."; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done && test -z "$$fail" +tags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + done +ctags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + done + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done + list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test -d "$(distdir)/$$subdir" \ + || $(mkdir_p) "$(distdir)/$$subdir" \ + || exit 1; \ + distdir=`$(am__cd) $(distdir) && pwd`; \ + top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ + (cd $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$top_distdir" \ + distdir="$$distdir/$$subdir" \ + distdir) \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-recursive +all-am: Makefile +installdirs: installdirs-recursive +installdirs-am: +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +#>- clean: clean-recursive +#>+ 1 +clean: kde-rpo-clean clean-recursive + +#>- clean-am: clean-generic clean-libtool mostlyclean-am +#>+ 1 +clean-am: clean-bcheck clean-generic clean-libtool mostlyclean-am + +distclean: distclean-recursive + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-libtool \ + distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +info: info-recursive + +info-am: + +install-data-am: + +install-exec-am: + +install-info: install-info-recursive + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: uninstall-info-am + +uninstall-info: uninstall-info-recursive + +.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \ + clean clean-generic clean-libtool clean-recursive ctags \ + ctags-recursive distclean distclean-generic distclean-libtool \ + distclean-recursive distclean-tags distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-exec install-exec-am install-info \ + install-info-am install-man install-strip installcheck \ + installcheck-am installdirs installdirs-am maintainer-clean \ + maintainer-clean-generic maintainer-clean-recursive \ + mostlyclean mostlyclean-generic mostlyclean-libtool \ + mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \ + uninstall uninstall-am uninstall-info-am + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: + +#>+ 2 +KDE_DIST=Makefile.in Makefile.am + +#>+ 2 +docs-am: + +#>+ 15 +force-reedit: + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu doc/Makefile + cd $(top_srcdir) && perl admin/am_edit doc/Makefile.in + + +#>+ 21 +clean-bcheck: + rm -f *.bchecktest.cc *.bchecktest.cc.class a.out + +bcheck: bcheck-recursive + +bcheck-am: + @for i in ; do \ + if test $(srcdir)/$$i -nt $$i.bchecktest.cc; then \ + echo "int main() {return 0;}" > $$i.bchecktest.cc ; \ + echo "#include \"$$i\"" >> $$i.bchecktest.cc ; \ + echo "$$i"; \ + if ! $(CXX) $(DEFS) -I. -I$(srcdir) -I$(top_builddir) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(KDE_CXXFLAGS) --dump-class-hierarchy -c $$i.bchecktest.cc; then \ + rm -f $$i.bchecktest.cc; exit 1; \ + fi ; \ + echo "" >> $$i.bchecktest.cc.class; \ + perl $(top_srcdir)/admin/bcheck.pl $$i.bchecktest.cc.class || { rm -f $$i.bchecktest.cc; exit 1; }; \ + rm -f a.out; \ + fi ; \ + done + + +#>+ 3 +final: + $(MAKE) all-am + +#>+ 3 +final-install: + $(MAKE) install-am + +#>+ 3 +no-final: + $(MAKE) all-am + +#>+ 3 +no-final-install: + $(MAKE) install-am + +#>+ 3 +kde-rpo-clean: + -rm -f *.rpo + +#>+ 3 +nmcheck: +nmcheck-am: nmcheck diff --git a/doc/Makefile.am b/doc/Makefile.am new file mode 100644 index 0000000..6812bd2 --- /dev/null +++ b/doc/Makefile.am @@ -0,0 +1,5 @@ + +KDE_LANG = en +KDE_DOCS = AUTO +SUBDIRS = $(AUTODIRS) + diff --git a/doc/kmyfirewall/Makefile b/doc/kmyfirewall/Makefile new file mode 100644 index 0000000..3d26eea --- /dev/null +++ b/doc/kmyfirewall/Makefile @@ -0,0 +1,599 @@ +# Makefile.in generated by automake 1.9.6 from Makefile.am. +# KDE tags expanded automatically by am_edit - $Revision: 483858 $ +# doc/kmyfirewall/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + +srcdir = . +top_srcdir = ../.. + +pkgdatadir = $(datadir)/kmyfirewall-1.1.0 +pkglibdir = $(libdir)/kmyfirewall-1.1.0 +pkgincludedir = $(includedir)/kmyfirewall-1.1.0 +top_builddir = ../.. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = /usr/bin/install -c -p +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = i686-pc-linux-gnu +host_triplet = i686-pc-linux-gnu +target_triplet = i686-pc-linux-gnu +subdir = doc/kmyfirewall +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/admin/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +SOURCES = +DIST_SOURCES = +#>- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +#>+ 1 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST) +ACLOCAL = ${SHELL} /home/animal/devel/KDE-SVN/kmyfirewall-1.1.0/admin/missing --run aclocal-1.9 +AMDEP_FALSE = # +AMDEP_TRUE = +AMTAR = ${SHELL} /home/animal/devel/KDE-SVN/kmyfirewall-1.1.0/admin/missing --run tar +AR = ar +ARTSCCONFIG = /usr/bin/artsc-config +AUTOCONF = $(SHELL) $(top_srcdir)/admin/cvs.sh configure || touch configure +AUTODIRS = +AUTOHEADER = ${SHELL} /home/animal/devel/KDE-SVN/kmyfirewall-1.1.0/admin/missing --run autoheader +AUTOMAKE = ${SHELL} /home/animal/devel/KDE-SVN/kmyfirewall-1.1.0/admin/missing --run automake-1.9 +AWK = mawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -g3 -fno-inline -Wformat-security -Wmissing-format-attribute +CONF_FILES = $(top_srcdir)/./admin/configure.in.min $(top_srcdir)/configure.in.in +CPP = gcc -E +CPPFLAGS = -DQT_THREAD_SUPPORT -D_REENTRANT +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -fno-builtin -g3 -fno-inline -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common +CYGPATH_W = echo +DCOPIDL = /usr/bin/dcopidl +DCOPIDL2CPP = /usr/bin/dcopidl2cpp +DCOPIDLNG = /usr/bin/dcopidlng +DCOP_DEPENDENCIES = $(DCOPIDL) $(DCOPIDLNG) +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +ECHO = echo +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +ENABLE_PERMISSIVE_FLAG = -fpermissive +EXEEXT = +F77 = +FFLAGS = +FRAMEWORK_COREAUDIO = +GMSGFMT = /usr/bin/msgfmt +GREP = /bin/grep +HAVE_GCC_VISIBILITY = 0 +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} $(INSTALL_STRIP_FLAG) +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s +KCFG_DEPENDENCIES = $(KCONFIG_COMPILER) +KCONFIG_COMPILER = /usr/bin/kconfig_compiler +KDECONFIG = /usr/bin/kde-config +KDE_CHECK_PLUGIN = $(KDE_PLUGIN) -rpath $(libdir) +KDE_EXTRA_RPATH = +KDE_INCLUDES = -I/usr/include/kde +KDE_LDFLAGS = -L/usr/lib +KDE_MT_LDFLAGS = +KDE_MT_LIBS = -lpthread +KDE_NO_UNDEFINED = -Wl,--no-undefined -Wl,--allow-shlib-undefined +KDE_PLUGIN = -avoid-version -module -no-undefined $(KDE_NO_UNDEFINED) $(KDE_RPATH) $(KDE_MT_LDFLAGS) +KDE_RPATH = -R $(libdir) -R $(kde_libraries) -R $(qt_libraries) +KDE_USE_CLOSURE_FALSE = +KDE_USE_CLOSURE_TRUE = # +KDE_USE_FINAL_FALSE = +KDE_USE_FINAL_TRUE = # +KDE_USE_FPIE = -fPIE +KDE_USE_NMCHECK_FALSE = +KDE_USE_NMCHECK_TRUE = # +KDE_USE_PIE = -pie +KDE_XSL_STYLESHEET = /usr/share/apps/ksgmltools2/customization/kde-chunk.xsl +LDFLAGS = +LDFLAGS_AS_NEEDED = +LDFLAGS_NEW_DTAGS = +LIBCOMPAT = +LIBCRYPT = -lcrypt +LIBDL = -ldl +LIBJPEG = -ljpeg +LIBOBJS = +LIBPNG = -lpng -lz -lm +LIBPTHREAD = -lpthread +LIBRESOLV = -lresolv +LIBS = +LIBSM = -lSM -lICE +LIBSOCKET = +LIBTOOL = $(SHELL) $(top_builddir)/libtool --silent +LIBUCB = +LIBUTIL = -lutil +LIBZ = -lz +LIB_KAB = -lkab +LIB_KABC = -lkabc +LIB_KDECORE = -lkdecore +LIB_KDED = +LIB_KDEPIM = -lkdepim +LIB_KDEPRINT = -lkdeprint +LIB_KDEUI = -lkdeui +LIB_KDNSSD = -lkdnssd +LIB_KFILE = -lkio +LIB_KFM = +LIB_KHTML = -lkhtml +LIB_KIMPROXY = -lkimproxy +LIB_KIO = -lkio +LIB_KJS = -lkjs +LIB_KNEWSTUFF = -lknewstuff +LIB_KPARTS = -lkparts +LIB_KSPELL = -lkspell +LIB_KSYCOCA = -lkio +LIB_KUNITTEST = -lkunittest +LIB_KUTILS = -lkutils +LIB_POLL = +LIB_QPE = +LIB_QT = -lqt-mt $(LIBZ) $(LIBPNG) -lXext $(LIB_X11) $(LIBSM) -lpthread +LIB_SMB = -lsmb +LIB_X11 = -lX11 $(LIBSOCKET) +LIB_XEXT = -lXext +LIB_XRENDER = +LN_S = ln -s +LTLIBOBJS = +MAKEINFO = ${SHELL} /home/animal/devel/KDE-SVN/kmyfirewall-1.1.0/admin/missing --run makeinfo +MAKEKDEWIDGETS = +MCOPIDL = /usr/bin/mcopidl +MEINPROC = /usr/bin/meinproc +MOC = /usr/share/qt3/bin/moc +MSGFMT = /usr/bin/msgfmt +NOOPT_CFLAGS = -O0 +NOOPT_CXXFLAGS = -O0 +OBJEXT = o +PACKAGE = kmyfirewall-1.1.0 +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +PERL = /usr/bin/perl +PKG_CONFIG = /usr/bin/pkg-config +QTE_NORTTI = +QT_INCLUDES = -I/usr/include/qt3 +QT_LDFLAGS = +RANLIB = ranlib +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +TOPSUBDIRS = KMFIPTInterface KMFSysTray doc kmyfirewall pics templates +UIC = /usr/share/qt3/bin/uic -L $(kde_widgetdir) -nounload +UIC_TR = tr2i18n +USER_INCLUDES = +USER_LDFLAGS = +USE_EXCEPTIONS = -fexceptions +USE_RTTI = +USE_THREADS = +VERSION = 3.5.8 +WOVERLOADED_VIRTUAL = -Woverloaded-virtual +XGETTEXT = /usr/bin/xgettext +XMKMF = +XMLLINT = /usr/bin/xmllint +X_EXTRA_LIBS = +X_INCLUDES = -I. +X_LDFLAGS = +X_PRE_LIBS = +X_RPATH = +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_F77 = +all_includes = -I/usr/include/kde -I/usr/include/qt3 -I. +all_libraries = +am__fastdepCC_FALSE = # +am__fastdepCC_TRUE = +am__fastdepCXX_FALSE = # +am__fastdepCXX_TRUE = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = /usr/bin +build = i686-pc-linux-gnu +build_alias = +build_cpu = i686 +build_os = linux-gnu +build_vendor = pc +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = i686-pc-linux-gnu +host_alias = +host_cpu = i686 +host_os = linux-gnu +host_vendor = pc +htmldir = ${docdir} +include_ARTS_FALSE = # +include_ARTS_TRUE = +include_x11_FALSE = # +include_x11_TRUE = +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = /home/animal/devel/KDE-SVN/kmyfirewall-1.1.0/admin/install-sh +kde_appsdir = /usr/share/applnk +kde_bindir = /usr/bin +kde_confdir = /etc/kde3 +kde_datadir = /usr/share/apps +kde_htmldir = /usr/share/doc/kde/HTML +kde_icondir = /usr/share/icons +kde_includes = /usr/include/kde +kde_kcfgdir = ${datadir}/config.kcfg +kde_libraries = /usr/lib +kde_libs_htmldir = /usr/share/doc/kde/HTML +kde_libs_prefix = /usr +kde_locale = /usr/share/locale +kde_mimedir = /usr/share/mimelnk +kde_moduledir = /usr/lib/kde3 +kde_qtver = 3 +kde_servicesdir = /usr/share/services +kde_servicetypesdir = /usr/share/servicetypes +kde_sounddir = /usr/share/sounds +kde_styledir = ${libdir}/kde3/plugins/styles +kde_templatesdir = /usr/share/templates +kde_wallpaperdir = /usr/share/wallpapers +kde_widgetdir = /usr/lib/kde3/plugins/designer +kdeinitdir = $(kde_moduledir) +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = mkdir -p -- +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr +program_transform_name = s,x,x, +psdir = ${docdir} +qt_includes = /usr/include/qt3 +qt_libraries = /usr/lib +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +sysconfdir = ${prefix}/etc +target = i686-pc-linux-gnu +target_alias = +target_cpu = i686 +target_os = linux-gnu +target_vendor = pc +unsermake_enable_pch_FALSE = +unsermake_enable_pch_TRUE = # +x_includes = . +x_libraries = /usr/lib +xdg_appsdir = ${datadir}/applications/kde +xdg_directorydir = ${datadir}/desktop-directories +xdg_menudir = ${sysconfdir}/xdg/menus +KDE_LANG = en +KDE_DOCS = AUTO +#>- all: all-am +#>+ 1 +all: docs-am all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) +#>- @for dep in $?; do \ +#>- case '$(am__configure_deps)' in \ +#>- *$$dep*) \ +#>- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ +#>- && exit 0; \ +#>- exit 1;; \ +#>- esac; \ +#>- done; \ +#>- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/kmyfirewall/Makefile'; \ +#>- cd $(top_srcdir) && \ +#>- $(AUTOMAKE) --gnu doc/kmyfirewall/Makefile +#>+ 12 + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/kmyfirewall/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu doc/kmyfirewall/Makefile + cd $(top_srcdir) && perl admin/am_edit doc/kmyfirewall/Makefile.in +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool +uninstall-info-am: +tags: TAGS +TAGS: + +ctags: CTAGS +CTAGS: + + +#>- distdir: $(DISTFILES) +#>+ 1 +distdir: distdir-nls $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile +installdirs: +install: install-am +install-exec: install-exec-am +install-data: install-data-am +#>- uninstall: uninstall-am +#>+ 1 +uninstall: uninstall-docs uninstall-nls uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +#>- clean: clean-am +#>+ 1 +clean: kde-rpo-clean clean-am + +#>- clean-am: clean-generic clean-libtool mostlyclean-am +#>+ 1 +clean-am: clean-docs clean-bcheck clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-libtool + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +#>- install-data-am: +#>+ 1 +install-data-am: install-docs install-nls + +install-exec-am: + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-info-am + +.PHONY: all all-am check check-am clean clean-generic clean-libtool \ + distclean distclean-generic distclean-libtool distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-data install-data-am install-exec install-exec-am \ + install-info install-info-am install-man install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ + uninstall-info-am + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: + +#>+ 2 +KDE_DIST=Makefile.in index.docbook Makefile.am + +#>+ 24 +index.cache.bz2: $(srcdir)/index.docbook $(KDE_XSL_STYLESHEET) index.docbook + @if test -n "$(MEINPROC)"; then echo $(MEINPROC) --check --cache index.cache.bz2 $(srcdir)/index.docbook; $(MEINPROC) --check --cache index.cache.bz2 $(srcdir)/index.docbook; fi + +docs-am: index.cache.bz2 + +install-docs: docs-am install-nls + $(mkinstalldirs) $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/kmyfirewall + @if test -f index.cache.bz2; then \ + echo $(INSTALL_DATA) index.cache.bz2 $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/kmyfirewall/; \ + $(INSTALL_DATA) index.cache.bz2 $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/kmyfirewall/; \ + elif test -f $(srcdir)/index.cache.bz2; then \ + echo $(INSTALL_DATA) $(srcdir)/index.cache.bz2 $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/kmyfirewall/; \ + $(INSTALL_DATA) $(srcdir)/index.cache.bz2 $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/kmyfirewall/; \ + fi + -rm -f $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/kmyfirewall/common + $(LN_S) $(kde_libs_htmldir)/$(KDE_LANG)/common $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/kmyfirewall/common + +uninstall-docs: + -rm -rf $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/kmyfirewall + +clean-docs: + -rm -f index.cache.bz2 + + +#>+ 13 +install-nls: + $(mkinstalldirs) $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/kmyfirewall + @for base in index.docbook ; do \ + echo $(INSTALL_DATA) $$base $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/kmyfirewall/$$base ;\ + $(INSTALL_DATA) $(srcdir)/$$base $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/kmyfirewall/$$base ;\ + done + +uninstall-nls: + for base in index.docbook ; do \ + rm -f $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/kmyfirewall/$$base ;\ + done + + +#>+ 5 +distdir-nls: + for file in index.docbook ; do \ + cp $(srcdir)/$$file $(distdir); \ + done + +#>+ 15 +force-reedit: + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/kmyfirewall/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu doc/kmyfirewall/Makefile + cd $(top_srcdir) && perl admin/am_edit doc/kmyfirewall/Makefile.in + + +#>+ 21 +clean-bcheck: + rm -f *.bchecktest.cc *.bchecktest.cc.class a.out + +bcheck: bcheck-am + +bcheck-am: + @for i in ; do \ + if test $(srcdir)/$$i -nt $$i.bchecktest.cc; then \ + echo "int main() {return 0;}" > $$i.bchecktest.cc ; \ + echo "#include \"$$i\"" >> $$i.bchecktest.cc ; \ + echo "$$i"; \ + if ! $(CXX) $(DEFS) -I. -I$(srcdir) -I$(top_builddir) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(KDE_CXXFLAGS) --dump-class-hierarchy -c $$i.bchecktest.cc; then \ + rm -f $$i.bchecktest.cc; exit 1; \ + fi ; \ + echo "" >> $$i.bchecktest.cc.class; \ + perl $(top_srcdir)/admin/bcheck.pl $$i.bchecktest.cc.class || { rm -f $$i.bchecktest.cc; exit 1; }; \ + rm -f a.out; \ + fi ; \ + done + + +#>+ 3 +final: + $(MAKE) all-am + +#>+ 3 +final-install: + $(MAKE) install-am + +#>+ 3 +no-final: + $(MAKE) all-am + +#>+ 3 +no-final-install: + $(MAKE) install-am + +#>+ 3 +kde-rpo-clean: + -rm -f *.rpo + +#>+ 3 +nmcheck: +nmcheck-am: nmcheck diff --git a/doc/kmyfirewall/Makefile.am b/doc/kmyfirewall/Makefile.am new file mode 100644 index 0000000..4169155 --- /dev/null +++ b/doc/kmyfirewall/Makefile.am @@ -0,0 +1,3 @@ +KDE_LANG = en +KDE_DOCS = AUTO + diff --git a/doc/kmyfirewall/index.docbook b/doc/kmyfirewall/index.docbook new file mode 100644 index 0000000..2b16a0a --- /dev/null +++ b/doc/kmyfirewall/index.docbook @@ -0,0 +1,1598 @@ +<?xml version="1.0" ?> +<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.1.2-Based Variant V1.0//EN" "dtd/kdex.dtd" [ + <!ENTITY kmyfirewall '<application>KMyFirewall</application>'> + <!ENTITY kapp "&kmyfirewall;"><!-- replace kmyfirewall here --> + <!ENTITY % addindex "IGNORE"> + <!ENTITY % English "INCLUDE"><!-- change language only here --> + + + <!-- Do not define any other entities; instead, use the entities + from kde-genent.entities and $LANG/user.entities. --> +]> + +<!-- The language must NOT be changed here. --> + +<book lang="&language;"> + +<!-- This header contains all of the meta-information for the document such +as Authors, publish date, the abstract, and Keywords --> + +<bookinfo> +<title>The KMyFirewall Handbook</title> +<authorgroup> +<author> +<firstname>Christian</firstname> +<surname>Hubinger</surname> +<affiliation> +<address><email>chubinger@gmail.com</email></address> +</affiliation> +</author> +</authorgroup> + +<!-- TRANS:ROLES_OF_TRANSLATORS --> + +<copyright> +<year>2002-2005</year> +<holder>Christian Hubinger</holder> +</copyright> +<!-- Translators: put here the copyright notice of the translation --> +<!-- Put here the FDL notice. Read the explanation in fdl-notice.docbook + and in the FDL itself on how to use it. --> +<legalnotice>&FDLNotice;</legalnotice> + +<!-- Date and version information of the documentation +Don't forget to include this last date and this last revision number, we +need them for translation coordination ! +Please respect the format of the date (DD/MM/YYYY) and of the version +(V.MM.LL), it could be used by automation scripts. +Do NOT change these in the translation. --> + +<date>03/04/2005</date> +<releaseinfo>1.0</releaseinfo> + +<!-- Abstract about this handbook --> + +<abstract> +<para> +&kmyfirewall; - Firewall configuration tool +</para> +</abstract> + +<!-- This is a set of Keywords for indexing by search engines. +Please at least include KDE, the KDE package it is in, the name + of your application, and a few relevant keywords. --> + +<keywordset> +<keyword>KDE</keyword> +<keyword>kdeadmin</keyword> +<keyword>kdeextragear</keyword> +<keyword>KMyFirewall</keyword> +<keyword>iptables</keyword> +<keyword>firewall</keyword> +<keyword>security</keyword> +</keywordset> + +</bookinfo> + +<!-- The contents of the documentation begin here. Label +each chapter so with the id attribute. This is necessary for two reasons: it +allows you to easily reference the chapter from other chapters of your +document, and if there is no ID, the name of the generated HTML files will vary +from time to time making it hard to manage for maintainers and for the CVS +system. Any chapter labelled (OPTIONAL) may be left out at the author's +discretion. Other chapters should not be left out in order to maintain a +consistent documentation style across all KDE apps. --> + +<chapter id="introduction"> +<title>Introduction</title> + +<!-- The introduction chapter contains a brief introduction for the +application that explains what it does and where to report +problems. Basically a long version of the abstract. Don't include a +revision history. (see installation appendix comment) --> + +<sect1 id="about"> +<title>About</title> +<para> +&kmyfirewall; attempts to make it easier to setup firewalls for your computer network without limitating your configuration options. If you don't have the time and/or the interest to spend hours in front of your operating system manual just to setup a simple firewall that keeps the "bad" people out, &kmyfirewall; will help you to configure your computer within a few clicks. +</para> +<para> +It will be the right tool if you like to have a so called "Personal Firewall" running on your worstation but it will also help you to setup complex rulesets for your network routers. Each of it's two different Graphical ruleset editors try to provide the right tool for each group of users. +</para> +<para> +Entire rule sets can be saved, so you only have to configure your rule set one time and then you can use it on several computers giving each of them a similar configuration (p.e. school networks, office, university etc.). +</para> +</sect1> + +<sect1 id="note"> +<title>Note</title> +<para> +Programs can't do any magic so you still will have to know what your firewall should do to setup your rule set. +</para> +<para> +KMyFirewall tries to provide well designed default settings so that there should not be much to do anymore to provide a secure setup. But there is no way &kmyfirewall; can prevent you from openeing security holes in your setup! Please allways test rulesets you created before you use them for a production system. +</para> +</sect1> +<!-- +</chapter> +<chapter id="features"> +<title>Features</title> +<para></para> +--> +<sect1 id="common"> +<title>Features</title> + +<sect2 id="main-features"> +<title>Main Features</title> + +<orderedlist> +<listitem> + <para>Easy setup of a small but efficient "Personal Firewall".</para> +</listitem> +<listitem> + <para>Nice overview of the configuration.</para> +</listitem> +<listitem> + <para>Import/Export of rule sets to ease the setup of large networks.</para> +</listitem> +<listitem> + <para>Easy-to-use GUI interface for most common setups.</para> +</listitem> +<listitem> + <para>An advanced interface for complex rule sets as needed by routers</para> +</listitem> +<listitem> + <para>Preconfigured rulesets for most common setups.</para> +</listitem> +<listitem> + <para>Integrated Install scripts for automatic execution during booting.</para> +</listitem> +<listitem> + <para>Plugin framowork that allows easy and fast development of new features.</para> +</listitem> +<listitem> + <para>Plugin framowork that allows easy and fast development of new features.</para> +</listitem> +</orderedlist> + +</sect2> + +<sect2 id="generic-interface-features"> +<title>Generic Interface</title> +<para> +<orderedlist> +<listitem> + <para>Zone/Host based rule creation.</para> +</listitem> +<listitem> + <para>No portnumbers need to be known.</para> +</listitem> +<listitem> + <para>NAT and simple network router support.</para> +</listitem> +<listitem> + <para>Support for special hosts e.g. trusted banned etc.</para> +</listitem> +<listitem> + <para>Rule inheritance can be enabled/disabled for nested notwork zones.</para> +</listitem> +<listitem> + <para>Operating system and backend independet. (Currently only Linux is supported but OpenBSD should follow soon)</para> +</listitem> +</orderedlist> +</para> +</sect2> + +<sect2 id="ipt-interface-features"> +<title>IPTables Interface</title> +<para> +<orderedlist> +<listitem> + <para>XML based iptables command generation engine that allows to be extended by plugins providing a description about the new option.</para> +</listitem> +<listitem> + <para>State full packet filtering.</para> +</listitem> +<listitem> + <para>IP, MAC, Protocol, ROS and Interface based filtering</para> +</listitem> +<listitem> + <para>Limiting packet matches (avoids DoS attacks)</para> +</listitem> +<listitem> + <para>Logging of dropped packets</para> +</listitem> +<listitem> + <para>View running IP Tables configuration</para> +</listitem> +<listitem> + <para>NAT (SNAT, DNAT) configuration (Masquerading)</para> +</listitem> +<listitem> + <para>User defined Chains</para> +</listitem> +<listitem> + <para>MANGLE configuration</para> +</listitem> +<listitem> + <para>Undo/Redo</para> +</listitem> +</orderedlist> + +</para> +</sect2> +</sect1> +</chapter> + + + +<chapter id="theory"> +<title>Just a bit of Theory</title> + +<sect1 id="firewall-can-do"> +<title>What can a firewall do?</title> +<para> +As firewalling is a really complex topic I'd like to give you a briefly introduction about what firewalls are and how +IPTables firewalls work. +</para> +<para> +When you think of a firewall most people would say <quote>firewalls just restrict the network traffic</quote>, +but a modern firewall has more to do that just restricting the traffic which is of course it's main task. +</para> +<para>You can filter by having a look at the packet headers that store information about where the packet comes from, +which protocol is used etc. +</para> +<para> +The filtering possibilities provided by the IPTables are very powerful so it's even possible to +only let packets in that are know to belong to a connection you have made. This technology is called <quote>Connection Tracking</quote> +or <quote>Statefull Packet Filtering</quote>. +</para> +<para> +The second important feature a firewall has to provide is the possibility to log the network traffic. +This is a much more important part of it as you may think, because logfiles are give you a good view +about the activities in your network like who did what and when. +</para> +<para> +Logs are also really important when +the firewall got cracked and you want to know how. In that you would have a much harder life if you didn't +activeted the logging functions so that you can see what has happend and how the configuration be improved. +</para> +<para> +Most people think about firewalls just being used to block traffic from the Internet to your host, but you may also +configure your firewall to restrict the Internet access. Par example you may block some well known porn sites on your Children's PC +or you just want to allow e-mail and Web browsing in your office but you don't want your employees to be able to download files via FTP. +</para> +<para> +All the things described are really easy to implement with the IPTables once you have understood how they work. Please read +carefully through the next few chapters to learn how to efficiently use this Program to settup an firewall for your PC/Network. +</para> +</sect1> + +<sect1 id="firewall-cant-do"> +<title>A Note about Security in general</title> +<para> +A firewall can actually not guarantee 100% of security just because there may be bugs in the underlying software or the +configuration or even a hardware problem can be the <quote>open door</quote> for the bad guys. +</para> +<para> +It is also a common mistake to believe that a firewall is enough to provide security. +If you want to have a really high level of security you will need a whole <quote>Security Concept</quote> which +defined the basic rules for the network environment. This includes the used software, installing security updates to the running +software, a good documentation about how the security level is enforced in your network etc. +</para> +<para> +Here is an example what I mean by that. +</para> +<para> +Imagine you are running a public web server. To make it possible for the World to reach you you have to open the TCP port 80 for +incoming connections. By opening this port your computer is reachable through the Internet. You as the admin implemented a +really bomb save firewall configuration and you feel save because your firewall protects you. But certainly a securityhole in the webserver +application is found and made public in the Internet. If you didn't installed the security update because you forgot or it isn't available +yet a hacker may be able to use this securityhole (in the webserver not the firewall) to get access to your network. In this case the +firewall can't do anything against it because you allowed people to connect to your server. +</para> +<para> +I hope that this example makes it a little bit clearer what is meant when talking about a security concept. +To prevent these cases there are some basic rules to follow. +<orderedlist> +<listitem> + <para>Install updates to the software you are running.</para> +</listitem> +<listitem> + <para>Try to have a look at some security based websites to stay informed about whats going on out there.</para> +</listitem> +<listitem> + <para>Think about creating a security concept for your network.</para> +</listitem> +<listitem> + <para>Never ever trust your configuration blindly!</para> +</listitem> +<listitem> + <para>Watch your logfiles for strange activities.</para> +</listitem> +<listitem> + <para>Keep an eye on the legal users in your network, a lot of networks have been hacked because of users + that didn't follow the security concept and installed disallowed software, connect to the internet via modem or WLAN + so that your firewall is simply can't see those connections, or the installed software was a virus or hidden backdoor to the system.</para> +</listitem> +<listitem> + <para>Read books and all kind of documentation about this topic you can find.</para> +</listitem> +<listitem> + <para>Always remember there is no save host. Except it's offline...</para> +</listitem> +</orderedlist> +</para> +</sect1> + +<sect1 id="iptables-concept"> +<title>IPTables basics</title> +<para> +An IPTables based firewall is made of three different basic <quote>objects</quote>. +<orderedlist> +<listitem> + <para>Rules</para> +</listitem> +<listitem> + <para>Chains</para> +</listitem> +<listitem> + <para>Tables</para> +</listitem> +</orderedlist> +</para> +<para> +Please read through the next three chapters to get a short description about those +objects. Note that this is just a briefly introduction to the IPTables. For more detailed documentation have a look at the IPTables +Manpage or <ulink url="http://www.iptables.org">www.iptables.org</ulink>. +</para> + + +<sect2 id="rules"> +<title>Rules</title> +<para> +The lowest level objects are the <quote>rules</quote> that are performing the packetfiltering or manipulation. +A rule is made of several parts. +<orderedlist> +<listitem> + <para>The Table to which this rule should be added. If no table is defined the rule will be added to the <quote>filter</quote> table.</para> +</listitem> +<listitem> + <para>The Chain to which this rule should be added p.e INPUT or FORWARD</para> +</listitem> +<listitem> + <para>The filtering or manipulation instructions.</para> +</listitem> +<listitem> + <para>The target of the rule. This target decides what should be done with the packet if it matches the rule. + The most Important targets are <quote>DROP</quote>, which drops the packet without any further action, + <quote>ACCEPT</quote>, which will let the packet pass the firewall and the data is sent to the receiver and + <quote>LOG</quote> that simply writes some information (src. IP, ports etc.) about the packet that matches to the Syslog.</para> +</listitem> +</orderedlist> +</para> +</sect2> + +<sect2 id="chains"> +<title>Chains</title> +<para> +Those rules are organized in <quote>chains</quote> which are simple ordered list of rules. +There are some built-in chains that are always available for the user like the INPUT or the OUTPUT chain in +the filter table. +Built-in chains do also have a so called <quote>Default Target</quote> which decides what to do with a packet that didn't +match any of the rules defined in that chain. +</para> +<para> +For large configurations it's often required to settup rules for packets that are common in some pieces of their attributes. +When you setup a firewall that also provides routing functionality you may want to have different kind of rules for packets coming +from the internal network than for packets coming from the evil Internet. +</para> +<para> +To make it more easy to manage such configurations you have the possibility to create your own chains. +Those user defined chains don't have a <quote>Default Target</quote>. +</para> +<para> +User defined chains must be fed by rules that have the name of the user defined chain as their target. +When a packet passes the whole user defined chain without matching any of its rules the packet will +be sent back to the chain that fed this chain just right after the rule that sent the packet to the user defined chain. +</para> +<para> +The packets will be compared to the rules in the order as they are defined in the chain. This means +that the packet will no longer be tested if a rule before matched. So please pay attention to the order of the rules +as a wrong ruleorder may end up in an very hard to find bug in the configuration. +</para> +</sect2> + +<sect2> +<title>Tables</title> +<para> +Because of the lots of possibilities that IPTables rules give you to filter and/or mainpulate the packets +that are checked the chains themselves are organized in so called <quote>tables</quote>. +Each table has it's own set of built-in chains that are available for direct use. +</para> +<para> +There are three tables available <quote>filter</quote>, <quote>nat</quote> and <quote>mangle</quote>. +<orderedlist> +<listitem> + <para>The <quote>filter</quote> table that is used for packet filtering as we all think about when we are talking about firewalls</para> +</listitem> +<listitem> + <para>The <quote>nat</quote> table is made for all kind of <quote>Network Address Translation</quote> which is a technology + used to change the source and destination attributes of the packet. The well known <quote>IP Masquerading</quote> is the most common way to use this + feature.</para> +</listitem> +<listitem> + <para>The <quote>mangle</quote> table is designed to hold chains and rules that change other attributes of the packets or + sending them into the userspace to be processed by any other application. If you are not thinking about really complicated things + you shouldn't need to use this table.</para> +</listitem> +</orderedlist> +</para> +</sect2> +</sect1> +</chapter> + + +<chapter id="iptusage"> +<title>IPTables usage</title> +<para> +Here is a short reference for the iptables commandline program. I'll try to explain most of the important +options the iptables command allows. For more details please have a look at <ulink url="man:/usr/share/man/man8/iptables.8.gz">man iptables</ulink> +</para> +<para> +Some (quiet a lot) of the descriptions are copy and paste from the iptables manpage, because the manpage is really good and I just added my own explanations where I thought this should be clearer. I'd like to say thanks to the iptables developers for this fabulous manpage. +</para> + +<sect1 id="tableselection"> +<title>Selecting the Table</title> + +<para> +Each rule you like to add to your firewall needs to be inserted or appended into an existing chain in one of the three tables +<quote>filter</quote>, <quote>nat</quote> or <quote>mangle</quote>. Which of the tables are available depends on the configuration of your kernel. +</para> + +<para> +Lets have a look at the following iptables commandline: +</para> + +<para><command>iptables -t filter -A INPUT --source 192.168.0.1 -j DROP</command></para> + +<para> +As you can see the command has several parts to set the behavior of the rule. Lets start with <command>iptables -t <tablename> ...</command> +The option <quote>-t</quote> tells iptables to add the rule to a chain in the table <tablename>. If no -t option is defined the rule will be inserted +into the <quote>filter</quote> table which is the default. +</para> + +</sect1> + +<sect1 id="append"> +<title>Append, Insert and Delete</title> +<para><command>iptables -t filter -A INPUT ...</command></para> +<para> +The option <quote>-A INPUT</quote> tells the program to add the rule at the end of the<quote> INPUT</quote> chain. There are also the +options <quote>-I chain [rulenum] </quote> for inserting a rule, <quote>-R chain [rulenum]</quote> for replacing a rule and +<quote>-D chain rulenum</quote> for deleting a rule from a chain. +</para> +<para>&kapp; only uses the -A option in the generated script.</para> +</sect1> + +<sect1 id="options"> +<title>Defining Options</title> +<para> +For filtering and manipulation of packets you need to define which properties a packet must have +to be filtered/manipulated. This is done by passing one or more option names p.e. <quote> --source</quote> +and the value that should match <quote>192.168.0.1</quote> in that case. +</para> + +<para> +IPTables define quiet a lot of different options you can check for. Some of them are directly implemented in the iptables +program like the --source option but there are also some more complex options that need to load the needed modules into the kernel to +be available. Those options are defined like <command>... --match state --state RELATED,ESTABLISHED ...</command> The <quote>--match state</quote> +options lets the program look for an available option called <quote>state</quote> which is in this case the connection tracking module. +</para> + +<para> +The availability of those extended options depends on the configuration of your kernel and the available modules that can be loaded or are directly compiled into the kernel. +</para> +<para> +For a more detailed description of the options that can be used from within this program have a look at the chapter +<link linkend="rule_manupulation">Packet Filtering and Altering</link>. +</para> + + +</sect1> + +<sect1 id="targets"> +<title>Targets</title> + +<para><command>... -j LOG --log-prefix "KMF: "</command></para> + +<para> +The Target of a rule defines what to do if a packet matches the rule. The target is defined by the <command>-j <target> [target-options]</command> option +at the end of the filtering/manipulation options at the end of the rule. There are two different types of targets terminating and non-terminating. +If a target is terminating the packet will not be passed to rules after the matching one. +</para> + +<para>A good example for a terminating target is <command>... -j DROP</command>. +The DROP target that tell the kernel to drop (delete) the matching packet which means that it will not reach it's destination. And it's quiet logical that +you don't want to check the packet against the other (later in the chain) defined rule as you already know what to do with it. +</para> + +<para> +For a non-terminating target have a look at the code snip above. The here used LOG target lets the kernel log the packets matching this rule to +the syslog. It wouldn't be very useful if the packets would stop here therefore the packets continue the way through the kernel. +</para> +</sect1> +</chapter> + +<chapter id="rule_manupulation"> +<title>Filtering and Manipulation of Packets</title> + +<para> +Packet filtering and altering is the main task iptables have to perform and they are really good in it. But a highly configurable and flexible packetfilter is nothing trivial so please read this carefully before you start you experiments. +</para> +<para> +This chapter will show you how the different filter modules of the iptables are used in detail. It may look shocking but it's not that hard to understand and once you've got it, it' really easy to settup highly complex rulesets for big network routers or simple personal firewalls. +Some of these advanced filtering options (connection tracking, mac) need extra modules to be either loaded as module or directly compiled into the kernel. Have a look at the Kernel Compiling HOWTO for details about building a custom kernel. +</para> + +<sect1 id="src_dest_ip"> +<title>Source and destination IP</title> + +<para><command>iptables -A INPUT --source 12.168.120.15 -j ACCEPT</command></para> + +<para> +Source specification. Address can be either a network name, a hostname (please note that specifying any name to be resolved with a remote query such as DNS is a really bad idea), a network IP address (with /mask), or a plain IP address. The mask can be either a network mask or a plain number, specifying the number of 1's at the left side of the network mask. Thus, a mask of 24 is equivalent to <command>255.255.255.</command>. A <command>!</command> argument before the address specification inverts the sense of the address. The flag <command>--src</command> is an alias for this option. +</para> + +<para><command>iptables -A INPUT --destination ! 32.112.0.31/24 -j ACCEPT</command></para> + +<para> +Destination specification is similar in usage to the source option.</para> + +</sect1> + +<sect1 id="protocol"> +<title>Checking for the protocol</title> + +<para><command>iptables -A INPUT --protocol tcp -j ACCEPT</command></para> +<para><command>iptables -A INPUT --protocol ! udp -j LOG</command></para> + +<para> +The protocol of the rule or of the packet to check. The specified protocol can be one of <command>tcp</command>, <command>udp</command>, <command>icmp</command>, or all, or it can be a numeric value, representing one of these protocols or a different one. A protocol name from /etc/protocols is also allowed. A <command>!</command> argument before the protocol inverts the test. The number zero is equivalent to all. Protocol all will match with all protocols and is taken as default when this option is omitted. +</para> + + +<sect2 id="protocol_tcp"> +<title>TCP specific options</title> +<para> +TCP specific are all filter options that have a deeper look into the TCP header of the packet. This includes checking for source-, destination port, real tcp connection tracking, tcp flags etc. +</para> + +<sect3 id="protocol_tcp_ports"> +<title>TCP Source and destination ports</title> +<para><command>iptables -A INPUT --protocol tcp --source-port 22:12 -j LOG</command></para> +<para><command>iptables -A POSTROUTING --protocol tcp --destination-port ! 21232 -j DROP</command></para> + +<para> +Source/Destination port or port range specification. This can either be a service name or a port number. An inclusive range can also be specified, using the format <command>port:port</command>. If the first port is omitted, "0" is assumed; if the last is omitted, <command>65535</command> is assumed. If the second port greater then the first they will be swapped. The flag <command>--sport</command> is a convenient alias for this option. +</para> +</sect3> + + +<sect3 id="protocol_tcp_flags"> +<title>TCP Flags</title> + +<para><command>iptables -A INPUT --protocol tcp --tcp-flags ! SYN,ACK,FIN SYN,ACK -j LOG</command></para> +<para> +Match when the TCP flags are as specified. The first argument is the flags which we should examine, written as a comma-separated list, and the second argument is a comma-separated list of flags which must be set. Flags are: <command>SYN ACK FIN RST URG PSH ALL NONE </command>. Hence the command: +</para> + +<para> +<command>iptables -A FORWARD -p tcp --tcp-option SYN,ACK,FIN,RST SYN -j ACCEPT </command> will only match packets with the SYN flag set, and the ACK, FIN and RST flags unset. +</para> +</sect3> + +<sect3 id="protocol_tcp_option"> +<title>TCP Options</title> + +<para><command>iptables -A INPUT --protocol tcp --tcp-option 0 -j LOG</command></para> + +<para> +Match if the numeric TCP option is set in the tcp header. A <command>!</command> may be used to invert the match option. +</para> +</sect3> +</sect2> + +<sect2 id="protocol_UDP"> +<title>UDP specific options</title> + +<para> +UDP is the second big protocol in the internet. The main difference to TCP is that it does not provide a stateful connection to the peer host. In other words UDP packets are anonymous and easy to fake. On the other hand is it extremely fast (no overhead of establishing connections) and therefore it's used by lots of protocols. Most important UDP protocols are <command>DNS</command> (hostname <---> ip address ) and <command>NFS</command> (Standard *NIX filesharing protocol). +</para> + +<sect3 id="protocol_udp_ports"> +<title>UDP Source and destination ports</title> +<para><command>iptables -A INPUT --protocol udp --source-port 22:12 -j LOG</command></para> +<para><command>iptables -A POSTROUTING --protocol udp --destination-port ! 21232 -j DROP</command></para> + +<para> +Source/Destination port or port range specification. This can either be a service name or a port number. An inclusive range can also be specified, using the format <command>port:port</command>. If the first port is omitted, "0" is assumed; if the last is omitted, <command>65535</command> is assumed. If the second port greater then the first they will be swapped. The flag <command>--sport</command> is a convenient alias for this option. +</para> +</sect3> +</sect2> + +<sect2 id="icmp"> +<title>ICMP</title> +<para> +The Internet Control Message Protocol (ICMP) is the control and message protocol for the underlying IP protocol. Often needed messages and commands are defined in this protocol like <quote>host-unreachable</quote> when an ip address was not found,<quote>echo-request</quote> the normal ping and <quote>source-quench</quote> tells the receiver to slow down the traffic -> !!!Denial of Service!!!, +</para> + +<sect3 id="icmp_type"> +<title>ICMP type</title> + +<para><command>iptables -A INPUT --protocol icmp --icmp-type echo-request -j LOG</command></para> + +<para> +This allows specification of the ICMP type, which can be a numeric ICMP type, or one of the ICMP type names shown by the command: <command>iptables -p icmp -h </command>. +</para> + +</sect3> +</sect2> + +<sect2 id="multiport"> +<title>Multiport Match Extension</title> +<para> +The Multiport match extension allows you to define a comma-separated list of up to 15 ports in an TCP or UDP specific rule. This is mostly useful to save some typing by specifying mor that one port per rule. +</para> + +<sect3 id="source_multiport"> +<title>Source Ports</title> + +<para><command>iptables -A INPUT --protocol tcp --match multiport --source-ports 22,21,20,80 -j LOG</command></para> + +<para> +This rule will match all tcp packets that have a source port contained in the given port list. +</para> + +</sect3> + +<sect3 id="destination_multiport"> +<title>Destination Ports</title> + +<para><command>iptables -A INPUT --protocol udp --match multiport --destination-ports 20,80,10 -j LOG</command></para> + +<para> +This rule will match all udp packets that have a destination port contained in the given port list. +</para> +</sect3> + +<sect3 id="equal_multiport"> +<title></title> + +<para><command>iptables -A INPUT --protocol tcp --match multiport --ports 20,50,1660 -j LOG</command></para> + +<para> +Match if the both the source and destination ports are equal to each other and to one of the given ports. +</para> + +</sect3> +</sect2> +</sect1> + +<sect1 id="interfaces"> +<title>Incoming and Outgoing Interface</title> + +<para><command>iptables -A INPUT --in-interface eth0 -j LOG</command></para> + +<para> +Name of an interface via which a packet is going to be received (only for packets entering the <command>INPUT</command>, <command>FORWARD</command> and <command>PREROUTING</command> chains). When the "!" argument is used before the interface name, the sense is inverted. If the interface name ends in a "+", then any interface which begins with this name will match. If this option is omitted, any interface name will match. +</para> + +<para><command>iptables -A OUTPUT --out-interface ! ippp1 -j DROP</command></para> + +<para> +Name of an interface via which a packet is going to be sent (for packets entering the <command>FORWARD</command>, <command>OUTPUT</command> and <command>POSTROUTING</command> chains). When the "!" argument is used before the interface name, the sense is inverted. If the interface name ends in a "+", then any interface which begins with this name will match. If this option is omitted, any interface name will match. +</para> + +</sect1> + +<sect1 id="src_mac"> +<title>Source MAC</title> + +<para> +<command>iptables -A INPUT --match mac --mac-source 12:E4:86:FA:5C:54 -j ACCEPT</command> +</para> + +<para> +Match source MAC address. It must be of the form XX:XX:XX:XX:XX:XX. Note that this only makes sense for packets coming from an Ethernet device and entering the <command>PREROUTING</command>, <command>FORWARD</command> or <command>INPUT</command> chains. +</para> + +<para> +This options is very useful for protection against man-in-the-middle attacks, because it is possible to combine it + with the <command>--source</command> option and so protection against arp-spoofing may be provided. +</para> + +</sect1> + + +<sect1 id="limit"> +<title>Limit matches</title> + +<para> +This module matches at a limited rate using a token bucket filter. A rule using this extension will match until this limit is reached (unless the `!' flag is used). It can be used in combination with the <command>LOG</command> target to give limited logging, for example. +</para> + +<para><command>iptables -A INPUT --match limit --limit 10/second --limit-burst 5 -j ACCEPT</command></para> +<para><command>iptables -A INPUT --match limit --limit 2/hour --limit-burst 10 -j LOG</command></para> + +</sect1> + +<sect1 id="state"> +<title>Statefull Packet Filtering</title> + +<para><command>iptables -A INPUT --match state --state RELATED,ESTABLISHED -j ACCEPT</command></para> + +<para> +Where state is a comma separated list of the connection states to match. Possible states are <command>INVALID</command> meaning that the packet is associated with no known connection, <command>ESTABLISHED</command> meaning that the packet is associated with a connection which has seen packets in both directions, <command>NEW</command> meaning that the packet has started a new connection, or otherwise associated with a connection which has not seen packets in both directions, and <command>RELATED</command> meaning that the packet is starting a new connection, but is associated with an existing connection, such as an FTP data transfer, or an ICMP error. +</para> + +</sect1> + +<sect1 id="tos"> +<title>TOS - Type of Service</title> + +<para> +This module matches the 8 bits of Type of Service field in the IP header (ie. including the precedence bits). +</para> + +<para><command>iptables -A INPUT --match tos --tos Minimize-Delay -j ACCEPT</command></para> + +<para> +The argument is either a standard name, or a numeric value to match. Run <command>iptables -m tos -h</command> +to see the list of allowed names). +</para> + +</sect1> + +</chapter> + + +<chapter id="using-kapp"> +<title>Using &kapp;</title> + +<!-- This chapter should tell the user how to use your app. You should use as +many sections (Chapter, Sect1, Sect3, etc...) as is necessary to fully document +your application. --> + +<sect1 id="kapp-overview"> +<title>Overview - GUI Interfaces</title> +<para>&kapp; ships with two different GUI interfaces.</para> + +<sect2 id="kapp-interfaces-generic"> +<title>Generic Interface</title> + +<para>The Generic Interface is an abstract view on what kind of netwok traffic may or may not pass yout computer. The rules are generated by a compiler plugin so that it is possible to generate scripts for other plattforms p.e. OpenBSD/pf then GNU/Linux/iptables (well currently just the iptables compiler is implemented. Let me know if you are interrested in implementing that :)).</para> +</sect2> + +<sect2 id="kapp-interfaces-ipt"> +<title>IPTables Interface</title> + +<para>The IPTables interfaces tries to represent a 1-1 look at the iptables rule set your configuration will create. Therefore it is ment to be used by experienced system administrators in order to setup very fine graduaded rulesets. Becaus of the tight relation this GUI has to the netfilter/iptables framework it can only be used on GNU/Linux workstations as the document can not be compiled into any other rule description language.</para> + +</sect2> + + + +</sect1> + + +<sect1 id="getting-started"> +<title>Getting Started</title> +<para> +The easiest way to start is to create a new Document <keycombo><keycap>Ctrl</keycap><keycap>n</keycap></keycombo> +and use the Wizard to setup the basic rules for your new firewall. +For a simple <quote>Personal Firewall</quote> the default configuration should be quiet usable as it is designed to +let everything out of your Box (Table: Filter, Chain: OUTPUT, Target: ACCEPT) and only lets packets is that +are related with connections you established. +</para> +<para> +This configuration is a good starting point for your firewall if you don't need any kind of routing or packet mangling because +it deactivates the routing functionality in your kernel and only the filter table is used. +</para> +<para> +The Wizard can not be used to change an existing configuration it's simply made for setting up a basic ruleset that can be +changed by using the <quote>Rule Editor</quote> and the <quote>Chain Editor</quote>. +</para> +<para> +For more complex rulesets as needed by routes or firewalls that protect a whole network, you need to use the +<quote>Advanced Interface</quote> to setup the firewall. +The document generated by the <quote>Advanced Interface</quote> is an empty ruleset! In other words there +are no rules defined to filter any kind of packets. +</para> +</sect1> + + +</chapter> +<!-- + +<chapter id="commands"> +<title>Command Reference</title> + +<sect1 id="kapp-mainwindow"> +<title>The main KMyFirewall window</title> +<para></para> + +<sect2> +<title>The File Menu</title> +<para> +<variablelist> +<varlistentry> +<term><menuchoice> +<shortcut> +<keycombo><keycap>Ctrl</keycap><keycap>n</keycap></keycombo> +</shortcut> +<guimenu>File</guimenu> +<guimenuitem>New</guimenuitem> +</menuchoice></term> +<listitem><para><action>Creates a new document</action></para></listitem> +</varlistentry> +<varlistentry> +<term><menuchoice> +<shortcut> +<keycombo><keycap>Ctrl</keycap><keycap>s</keycap></keycombo> +</shortcut> +<guimenu>File</guimenu> +<guimenuitem>Save</guimenuitem> +</menuchoice></term> +<listitem><para><action>Saves the document</action></para></listitem> +</varlistentry> +<varlistentry> +<term><menuchoice> +<shortcut> +<keycombo><keycap>Ctrl</keycap><keycap>q</keycap></keycombo> +</shortcut> +<guimenu>File</guimenu> +<guimenuitem>Quit</guimenuitem> +</menuchoice></term> +<listitem><para><action>Quits</action> &kapp;</para></listitem> +</varlistentry> +</variablelist> +</para> + +</sect2> + +</sect1> +</chapter> + +--> + +<chapter id="developers"> +<title>Developer's Guide to &kapp;</title> + +<para> +As you can see this thing gets quiet big so every kind of help (coding,docs,translations) +is very welcome. Please don't hesitate to contact me <email>chubinger@gmail.com</email> +if you have some ideas, patches, wishes or whatever. +</para> + +<sect1 id="developers-plugins"> +<title>&kapp; Plugin framework</title> +<para> +&kapp; extensively uses KDE's KParts/XMLGUI technology to provide an easy to and robust plugin infrastructure. Allmost every function is performed by dynamicaly loaded plugins in order to make it easy manage the code and write extentions. Especially the IPTables interface uses plugins to embeed the different iptables rule options edit dialogs. +</para> +</sect1> + +<sect1 id="developers-plugins-ruleoptions"> +<title>Rule- option/targetoptin Plugins (IPTables interface only)</title> +<para>As the iptables command utility is really fast developing and every few week new options are added, all ruleoption handling is outsourced to small easy to write plugins.</para> +<para>The underlieing document format is designed flexible enougth to allow the implementaiton of any command option iptables knows (or will know, if i didn't forget anything).</para> +<para>The rule creation engine can be extend by registering new option/targetoption types defined in small XML files that are parsed at startup. And the editor GUI can embeed the edit widgets needed to configure the ruleoption.</para> + + +<sect2 id="developers-plugins-ruleoptions-parts"> +<title>Parts of an Ruleoption/targetoption Plugin</title> +<itemizedlist> +<listitem><para>A XML file named p.e. kmfruleoption_mac_option.xml</para></listitem> +<listitem><para>A desktop file p.e. kmfruleoptionedit_mac.desktop that registeres the plugin within the KDE services framework.</para></listitem> +<listitem><para>An KParts Plugin component/class that derives form either KMFRuleOptionEditInterface or KMFRuleTargetOptionEditInterface named p.e. KMFRuleOptionEditMAC </para></listitem> +<listitem><para>A Class deriving from QWidget that may be loaded into the editor view when editing that option.</para> +<para>Most likely you'll use QTDesigner to design the GUI. If you do this you need to inherit from the generated class.</para></listitem> +</itemizedlist> +</sect2> + +<sect2 id="developers-plugins-ruleoptions-parts-xmlruledefinition"> +<title>XML File describing the rule option</title> +<para>The xml file gets loaded during application startup and registers the specified rule option in the engine. Have a look at some of the other XML files installed in $KDE-PREFIX/share/apps/kmyfirewall/ruleoptions for some more example of how to define the needed options.</para> +<programlisting> + +<!DOCTYPE kmyfirewall-kmfruleoptiondefinition> +<ruleoptiondefinitionset> +<ruleoptiondefinition name="mac_opt" guiName="MAC Address"> + <option guiName="" command="--match mac" /> + <option guiName="MAC:" command="--mac-source" /> +</ruleoptiondefinition> +</ruleoptiondefinitionset> + +</programlisting> +</sect2> + +<sect2 id="developers-plugins-ruleoptions-parts-desktopfile"> +<title>The .desktop file</title> +<para>This file is installed into the services directory and makes the plugin available for the KDE plugin framework</para> +<para>The important thing here is that you set Type=Service and the right SeviceType. The application only searches for plugins with SeviceType=KMyFirewall/RuleOptionEdit or SeviceType=KMyFirewall/RuleTargetOptionEdit.</para> +<para>The line X-KDE-Library=libkmfruleoptionedit_mac lets the KDE plugin framework know which library defines the functionality.</para> + +<programlisting> +[Desktop Entry] +Encoding=UTF-8 +Type=Service +Name=KMyFirewall MAC option edit +Name[da]=KMyFirewall MAC redigeringstilvalg +Comment=Plugin for edition MAC address based iptables rule options +Comment[da]=Plugin ril at redigere MAC adressebaserede regeltilvalg for iptables +X-KDE-Library=libkmfruleoptionedit_mac +ServiceTypes=KMyFirewall/RuleOptionEdit +</programlisting> +</sect2> + +<sect2 id="developers-plugins-ruleoptions-parts-makefileam"> +<title>The Makefile.am</title> +<para>Make shure that you add the option -module $(KDE_PLUGIN) to the <library_name>_LDFLAGS. Otherwise the plugin can not be loaded at runtime.</para> +<programlisting> +INCLUDES = -I../kmfwidgets -I../../ipteditor -I$(srcdir)/../interfaces $(all_includes) +METASOURCES = AUTO +kde_module_LTLIBRARIES = libkmfruleoptionedit_mac.la + +libkmfruleoptionedit_mac_la_LDFLAGS = -module $(KDE_PLUGIN) $(all_libraries) +libkmfruleoptionedit_mac_la_LIBADD = ../../core/libkmfcore.la ../../interfaces/libkmfinterfaces.la $(LIB_KPARTS) +noinst_HEADERS = kmfruleoptioneditmac.h kmfruleeditmac.h + +libkmfruleoptionedit_mac_la_SOURCES = kmfruleoptioneditmac.cpp kmfruleeditmac.cpp kmyfirewallruleeditormac.ui + +partdesktopdir = $(kde_servicesdir) +partdesktop_DATA = kmfruleoptionedit_mac.desktop + +install-data-local: + $(mkinstalldirs) $(DESTDIR)$(kde_datadir)/kmyfirewall/ruleoptions/ + $(INSTALL_DATA) $(srcdir)/kmfruleoption_mac_option.xml $(DESTDIR)$(kde_datadir)/kmyfirewall/ruleoptions/kmfruleoption_mac_option.xml + +uninstall-local: + -rm -f $(DESTDIR)$(kde_datadir)/kmyfirewall/ruleoptions/kmfruleoption_mac_option.xml + +</programlisting> +</sect2> + +<sect2 id="developers-plugins-ruleoptions-parts-kpartclass"> +<title>KParts Plugin component/class</title> +<para>This class defines the plugin that will be loaded at application startup.</para> +<para>kmfruleoptioneditmac.h</para> +<programlisting> +/*************************************************************************** + Copyright (C) 2004 Christian Hubinger + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ +// Author: Christian Hubinger <chubinger@gmail.com>, (C) 2004 +#ifndef KMFRULEOPTIONEDITMAC_H +#define KMFRULEOPTIONEDITMAC_H + +#include "../../interfaces/kmfruleoptioneditinterface.h" + +// KDE includes +#include <kparts/part.h> +#include <kparts/plugin.h> +#include <kparts/factory.h> +#include <kxmlgui.h> + +#include <qstring.h> +#include <qptrlist.h> + +class IPTRule; +class KMFRuleEditMac; +/** +@author Christian Hubinger +*/ +class KMFRuleOptionEditMAC : public KMFRuleOptionEditInterface { + Q_OBJECT +public: + KMFRuleOptionEditMAC(QObject *parent = 0, const char *name = 0); + + ~KMFRuleOptionEditMAC(); + void loadRule( IPTRule* rule ); + QWidget* editWidget(); + const QString& optionEditName() const; + const QString& description() const; + +private slots: + void slotAddRuleOption(QString*, QPtrList< QString >* ); + void slotAddTargetOption(QString*, QPtrList< QString >* ); + void slotShowOverview(); + +private: + KMFRuleEditMac *m_edit; + IPTRule *m_rule; + +}; + +class KInstance; + +class KMFRuleOptionEditMACFactory : public KLibFactory { + Q_OBJECT +public: + KMFRuleOptionEditMACFactory( QObject *parent = 0, const char *name = 0 ); + virtual ~KMFRuleOptionEditMACFactory() { + }; + virtual QObject* createObject( QObject* parent = 0, const char* pname = 0, + const char* name = "QObject", + const QStringList &args = QStringList() ); + +}; + +</programlisting> + +<para>kmfruleoptioneditmac.cpp</para> +<programlisting> + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ +#include "kmfruleoptioneditmac.h" + +// QT includes +#include <qstring.h> + +// KDE includes +#include <kdebug.h> +#include <klocale.h> + +// Project includes +#include "../../core/iptrule.h" +#include "../../interfaces/kmfruleeditinterface.h" +#include "kmfruleeditmac.h" + +// Constructor get out plugin into a valid state +KMFRuleOptionEditMAC::KMFRuleOptionEditMAC(QObject *parent, const char *name) + : KMFRuleOptionEditInterface(parent, name) { + + // Initialise the editor class + m_edit = new KMFRuleEditMac( 0 , "Edit", 0 ); + // hide it for now + m_edit->hide(); + + // Connect the Signals for the editor class to our slots passing them to the app + connect( m_edit,SIGNAL(sigAddRuleOpt(QString*, QPtrList< QString >* ) ), + this,SLOT( slotAddRuleOption(QString*, QPtrList< QString >* ) ) ); + // + //connect( m_edit,SIGNAL(sigAddTargetOpt(QString*, QPtrList< QString >* ) ), + // this,SLOT( slotAddTargetOption(QString*, QPtrList< QString >* ) ) ); + connect( m_edit,SIGNAL(sigHideMe() ), + this,SLOT( slotShowOverview() ) ); +} + +KMFRuleOptionEditMAC::~KMFRuleOptionEditMAC() {} + +// Slot to pass the Signals to the app +void KMFRuleOptionEditMAC::slotAddRuleOption(QString* name, QPtrList< QString >* values ) { + if ( KMFRuleEditInterface* ruleedit = dynamic_cast<KMFRuleEditInterface*> ( parent() ) ) { + ruleedit->addRuleOption( name, values ); + } else { + kdDebug() << "KMFRuleOptionEditMAC::slotAddRuleOption(): parent() not of type KMFRuleEditInterface" << endl; + } +} +void KMFRuleOptionEditMAC::slotAddTargetOption(QString* name, QPtrList< QString >* values ) { + if ( KMFRuleEditInterface* ruleedit = dynamic_cast<KMFRuleEditInterface*> ( parent() ) ) { + ruleedit->addRuleTargetOption( name, values ); + } else { + kdDebug() << "KMFRuleOptionEditMAC::slotAddTargetOption(): parent() not of type KMFRuleEditInterface" << endl; + } +} + +// Make the editor hide the plugin widget +void KMFRuleOptionEditMAC::slotShowOverview() { + if ( KMFRuleEditInterface* ruleedit = dynamic_cast<KMFRuleEditInterface*> ( parent() ) ) { + ruleedit->showOverview(); + } else { + kdDebug() << "KMFRuleOptionEditMAC::slotShowOverview(): parent() not of type KMFRuleEditInterface" << endl; + } +} + + +// Get info for GUI about the plugin +const QString& KMFRuleOptionEditMAC::optionEditName() const { + return *( new QString( i18n("MAC Option") ) ); +} +const QString& KMFRuleOptionEditMAC::description() const { + return *( new QString( i18n("This plugin manages the MAC address based options of iptables.") ) ); +} + +// We must implement this as it is called from the underliening rule editor +void KMFRuleOptionEditMAC::loadRule( IPTRule* rule ) { + if ( !rule ) { + kdDebug() << "KMFRuleOptionEditMAC::loadRule( IPTRule* rule ) - rule == 0" <<endl; + return; + } + m_edit->loadRule( rule ); + m_rule = rule; +} + +// return a pointer to our editor widget +QWidget* KMFRuleOptionEditMAC::editWidget() { + if ( ! m_edit ) { + kdDebug() << "KMFRuleOptionEditMAC::editWidget() - m_edit == 0" << endl; + return 0; + } + return m_edit; +} + +// It's usually safe to leave the factory code alone.. with the +// notable exception of the KAboutData data +#include <kaboutdata.h> +#include <klocale.h> + +// KInstance* KMFRuleOptionEditMACFactory::s_instance = 0L; +// KAboutData* KMFRuleOptionEditMACFactory::s_about = 0L; + +KMFRuleOptionEditMACFactory::KMFRuleOptionEditMACFactory( QObject* parent, const char* name ) + : KLibFactory( parent, name ) { +} + +QObject* KMFRuleOptionEditMACFactory::createObject( QObject* parent, const char* name, + const char*, const QStringList & ) { + QObject * obj = new KMFRuleOptionEditMAC( parent, name ); + emit objectCreated( obj ); + return obj; +} + +extern "C" { + void* init_libkmfruleoptionedit_mac() { + return new KMFRuleOptionEditMACFactory; + } +} +#include "kmfruleoptioneditmac.moc" +</programlisting> +</sect2> + +<sect2 id="developers-plugins-ruleoptions-parts-editwidget"> +<title>The editor widget class</title> +<para>This class defines a widget that can configure the specific rule option.</para> + +<para>kmfruleeditmac.h</para> + +<programlisting> +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ +/* +Author: Christian Hubinger <chubinger@gmail.com>, (C) 2001-2004 +*/ + + +#ifndef KMFRULEEDITMAC_H +#define KMFRULEEDITMAC_H + +#include "kmyfirewallruleeditormac.h" + +#include <qvariant.h> +#include <qdialog.h> +#include <qptrlist.h> + +class IPTRule; +class KMFErrorHandler; +class KMFCheckInput; +class KMFError; + +class KMFRuleEditMac : public KMyFirewallRuleEditorMac { + Q_OBJECT + +public: + KMFRuleEditMac( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); + ~KMFRuleEditMac(); + + void loadRule( IPTRule* ); + +public slots: + void accept(); + void slotHelp(); + void reject(); + +protected: + bool event( QEvent* ); + +private: + KMFCheckInput *m_check_input; + KMFErrorHandler *m_err_handler; + KMFError *m_err; + IPTRule* m_rule; + +signals: + void sigAddRuleOpt( QString*, QPtrList<QString>* ); + void sigHideMe(); +}; + +#endif // KMFRULEEDITMAC_H + +</programlisting> + +<para>kmfruleeditmac.cpp</para> + +<programlisting> +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ +/* +Author: Christian Hubinger <chubinger@gmail.com>, (C) 2001-2004 +*/ + +#include "kmfruleeditmac.h" + +#include <qcheckbox.h> +#include <qframe.h> +#include <qlabel.h> +#include <qlineedit.h> +#include <qpushbutton.h> +#include <qlayout.h> +#include <qvariant.h> +#include <qtooltip.h> +#include <qwhatsthis.h> + +#include <kdebug.h> +#include <kmessagebox.h> +#include <klocale.h> +#include <kapplication.h> + +// project includes +#include "../../core/iptrule.h" +#include "../../core/iptchain.h" +#include "../../core/iptable.h" +#include "../../core/kmfdoc.h" +#include "../../core/kmfiptdoc.h" +#include "../../core/kmfcheckinput.h" +#include "../../core/kmferror.h" +#include "../../core/kmferrorhandler.h" + +/* + * Constructs a KMFRuleEditMac which is a child of 'parent', with the + * name 'name' and widget flags set to 'f' + * + * The dialog will by default be modeless, unless you set 'modal' to + * TRUE to construct a modal dialog. + */ +KMFRuleEditMac::KMFRuleEditMac( QWidget* parent, const char* name, WFlags fl ) + : KMyFirewallRuleEditorMac( parent, name, fl ) { + m_err_handler = new KMFErrorHandler( "KMFRuleEditMac" ); + m_check_input = new KMFCheckInput(); + m_err = new KMFError(); + + +} + +/* + * Destroys the object and frees any allocated resources + */ +KMFRuleEditMac::~KMFRuleEditMac() { + // no need to delete child widgets, Qt does it all for us +} + +/* + * Main event handler. Reimplemented to handle application + * font changes + */ +bool KMFRuleEditMac::event( QEvent* ev ) { + bool ret = QWidget::event( ev ); + if ( ev->type() == QEvent::ApplicationFontChange ) {} + return ret; +} + +void KMFRuleEditMac::loadRule( IPTRule * rule ) { + kdDebug() << "void KMFRuleEditMac::loadRule( IPTRule * rule )" << endl, + c_src_mac->setChecked( false ); + c_inv_src_mac->setChecked( false ); + t_src_mac1 ->clear(); + t_src_mac2 ->clear(); + t_src_mac3 ->clear(); + t_src_mac4 ->clear(); + t_src_mac5 ->clear(); + t_src_mac6 ->clear(); + m_rule = rule; + QString line = ""; + + IPTRuleOption* opt = 0; + opt = m_rule->getOptionForName("mac_opt"); + if ( opt ) { + QStringList args = opt->getValues(); + QString src, dest; + line = *args.at(1); + if ( line.isEmpty() || line == "UNDEFINED" ) + return; + if ( line.startsWith( "! " ) ) { + line = line.right( line.length() - 2 ); + c_inv_src_mac->setChecked( true ); + } + int num = 1; + QString part = ""; + c_src_mac->setChecked( true ); + while ( !line.isEmpty() ) { + int pos = -1; + pos = line.find( ":" ); + if ( pos < 0 ) { + part = line; + line = ""; + } else { + part = line.left( pos ); + line = line.right( line.length() - ( pos + 1 ) ); + } + switch ( num ) { + case 1: + t_src_mac1 -> setText( part ); + break; + case 2: + t_src_mac2 -> setText( part ); + break; + case 3: + t_src_mac3 -> setText( part ); + break; + case 4: + t_src_mac4 -> setText( part ); + break; + case 5: + t_src_mac5 -> setText( part ); + break; + case 6: + t_src_mac6 -> setText( part ); + break; + } + num++; + } + } +} + + +void KMFRuleEditMac::accept() { + kdDebug() << "KMFRuleEditMac::accept()" << endl; + m_rule->chain()->table()->kmfDoc()->startTransaction(); + m_rule->saveState(); + QString tok1 = t_src_mac1->text().upper(); + QString tok2 = t_src_mac2->text().upper(); + QString tok3 = t_src_mac3->text().upper(); + QString tok4 = t_src_mac4->text().upper(); + QString tok5 = t_src_mac5->text().upper(); + QString tok6 = t_src_mac6->text().upper(); + + if ( c_src_mac->isChecked() && ( tok1.isEmpty() || tok2.isEmpty() || tok3.isEmpty() || tok4.isEmpty() || tok5.isEmpty() || tok6.isEmpty() ) ) { + const QString & msg = i18n( "One ore more of the fields are empty. Please fill out all fields to define a valid MAC address." ); + KMessageBox::error( this, msg ); + m_rule->chain()->table()->kmfDoc()->endTransaction(); + return ; + } + + QString mac = ""; + + if ( c_src_mac->isChecked() ) { + mac = tok1 + ":" + tok2 + ":" + tok3 + ":" + tok4 + ":" + tok5 + ":" + tok6; + m_check_input->checkInput( mac, "MAC", m_err ); + if ( ! m_err_handler->showError( m_err ) ) { + m_rule->chain()->table()->kmfDoc()->endTransaction(); + return ; + } + } + + QPtrList<QString>* values = new QPtrList<QString>; + QString* op = new QString( "mac_opt" ); + if ( c_src_mac->isChecked() && !mac.isEmpty() ) { + kdDebug() << "Add new mac option" << endl; + QString* src_mac = new QString( mac ); + if ( c_inv_src_mac->isChecked() ) { + src_mac->prepend( "! " ); + } + values->append( new QString( "bool:on" ) ); + values->append( src_mac ); + } + emit sigAddRuleOpt( op, values ); + m_rule->chain()->table()->kmfDoc()->endTransaction(); + emit sigHideMe(); +} + +void KMFRuleEditMac::slotHelp() { + kdDebug() << "void KMFRuleEditMac::slotHelp()" << endl; + kapp->invokeHelp( "src_mac" ); +} +void KMFRuleEditMac::reject() { + kdDebug() << "void KMFRuleEditMac::reject()" << endl; + emit sigHideMe(); +} +#include "kmfruleeditmac.moc" + +</programlisting> +</sect2> +</sect1> + +<!-- Use refentries to describe APIs. Refentries are fairly complicated and you +should consult the docbook reference for further details. The example below was +taken from that reference and shortened a bit for readability. --> + +</chapter> + +<!-- <chapter id="faq"> +<title>Questions and Answers</title> --> + +<!-- (OPTIONAL but recommended) This chapter should include all of the silly +(and not-so-silly) newbie questions that fill up your mailbox. This chapter +should be reserved for BRIEF questions and answers! If one question uses more +than a page or so then it should probably be part of the +"Using this Application" chapter instead. You should use links to +cross-reference questions to the parts of your documentation that answer them. +This is also a great place to provide pointers to other FAQ's if your users +must do some complicated configuration on other programs in order for your +application work. --> +<!-- +&reporting.bugs; +&updating.documentation; + +<qandaset id="faqlist"> +<qandaentry> +<question> +<para>My Mouse doesn't work. How do I quit &kapp;?</para> +</question> +<answer> +<para>You silly goose! Check out the <link linkend="commands">Commands +Section</link> for the answer.</para> +</answer> +</qandaentry> +<qandaentry> +<question> +<para>Why can't I twiddle my documents?</para> +</question> +<answer> +<para>You can only twiddle your documents if you have the foobar.lib +installed.</para> +</answer> +</qandaentry> +</qandaset> +</chapter> +--> +<chapter id="credits"> + +<!-- Include credits for the programmers, documentation writers, and +contributors here. The license for your software should then be included below +the credits with a reference to the appropriate license file included in the KDE +distribution. --> + +<title>Credits and License</title> +<para> +Program and Documentation copyright 2002 Christian Hubinger <email>chubinger@gmail.com</email> +</para> + +<!-- TRANS:CREDIT_FOR_TRANSLATORS --> + +&underFDL; <!-- FDL: do not remove. Commercial development should --> +&underGPL; <!-- GPL License --> + +</chapter> + +<appendix id="installation"> +<title>Installation</title> + +<sect1 id="getting-kmyfirewall"> +<title>How to obtain KMyFirewall</title> + +<para> +&kmyfirewall; has it's on homepage at +<ulink url="http://kmyfirewall.sourceforge.net">http://kmyfirewall.sourceforge.net</ulink>. +You may find a downloadlink and some more information about it there. +</para> + +</sect1> + +<sect1 id="requirements"> +<title>Requirements</title> + +<!-- +List any special requirements for your application here. This should include: +.Libraries or other software that is not included in kdesupport, +kdelibs, or kdebase. +.Hardware requirements like amount of RAM, disk space, graphics card +capabilities, screen resolution, special expansion cards, etc. +.Operating systems the app will run on. If your app is designed only for a +specific OS, (you wrote a graphical LILO configurator for example) put this +information here. +--> + +<para> +To run KMyFirewall you need to have at least KDE3 and iptables installed. +So you can only use KMyFirewall on Linux systems. +</para> + +<itemizedlist> +<listitem><para>iptables >= 1.2.x</para></listitem> +<listitem><para>linux >= 2.4.x (versions > 2.4.17 are recommended)</para></listitem> +<listitem><para>KDE >= 3.x</para></listitem> +</itemizedlist> + +<para> +&kmyfirewall; itself can be found +on <ulink url="http://kmyfirewall.sourceforge.net">The &kmyfirewall; home page</ulink>. +</para> + +<para> +There you'll also find a list of important changes and know bugs. </para> +</sect1> + +<sect1 id="compilation"> +<title>Compilation and Installation</title> + +<para> +In order to compile and install &kmyfirewall; on your system, type the following in the base +directory of the extracted tarball: +<screen width="40"> +<prompt>%</prompt><userinput>./configure --prefix=/kde-install-path/ --with-qt-dir=/qt-install-path/</userinput> +<prompt>%</prompt><userinput>make</userinput> +<prompt>%</prompt><userinput>(as root) make install</userinput> +</screen> +</para> + +<para>Since &kmyfirewall; uses autoconf and automake you should not have trouble compiling it. +Should you run into problems please report them to the author.</para> + +</sect1> + +<!-- +<sect1 id="configuration"> +<title>Configuration</title> + +<para> + +</para> + +</sect1> +--> + +</appendix> + +&documentation.index; +</book> + +<!-- +Local Variables: +mode: sgml +sgml-minimize-attributes:nil +sgml-general-insert-case:lower +sgml-indent-step:0 +sgml-indent-data:nil +End: +--> + + + + + + + + + + + + + |