Damien Stuart
781218e7e1
Bumped version to rc3 (even though we may go straight to release) and lib rev to 3.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@298 510a4753-2344-4c79-9c09-4d669213fbeb
2010-10-31 01:45:28 +00:00
Damien Stuart
d84112adca
Update added HAVE_ERRNO_H 1 to win32/config.h.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@297 510a4753-2344-4c79-9c09-4d669213fbeb
2010-10-31 01:36:25 +00:00
Damien Stuart
a3bafdb364
Needed to bump libfko revision to 2 do identify as part of newer dist.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@295 510a4753-2344-4c79-9c09-4d669213fbeb
2010-10-30 16:19:54 +00:00
Damien Stuart
3c83e899cb
Put the usleep back pcap_capture (oops).
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@293 510a4753-2344-4c79-9c09-4d669213fbeb
2010-10-23 17:34:47 +00:00
Damien Stuart
ce6fe8c705
Tweaks to the fwknop.spec file
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@291 510a4753-2344-4c79-9c09-4d669213fbeb
2010-10-21 02:39:57 +00:00
Damien Stuart
bbe8c9d7a1
Set pcap non-block mode back on unless it is a freebsd system. Server verbose output no longer shows access key or GPG password.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@290 510a4753-2344-4c79-9c09-4d669213fbeb
2010-10-21 01:53:04 +00:00
Damien Stuart
4f504848a0
Fixed handling of man page generation in Makefile.am so it works from alternate build directories.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@289 510a4753-2344-4c79-9c09-4d669213fbeb
2010-10-17 02:52:21 +00:00
Damien Stuart
f1e82bc7ae
Minor fwknopd man page tweak.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@288 510a4753-2344-4c79-9c09-4d669213fbeb
2010-08-29 02:06:13 +00:00
Damien Stuart
1381f18374
Made autoconf print an error message indicating ipf is not supported if it is specified. Changelog updates.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@287 510a4753-2344-4c79-9c09-4d669213fbeb
2010-08-29 01:50:58 +00:00
Damien Stuart
6bcebe565c
Made fw_cleanup not remove rules from the expired rule set. Added code to read in any existing expired rules into the rule_map at startup.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@286 510a4753-2344-4c79-9c09-4d669213fbeb
2010-08-29 01:32:04 +00:00
Damien Stuart
ff9dad6fd9
Wrapped #ifdef around a linux-specific chunk.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@285 510a4753-2344-4c79-9c09-4d669213fbeb
2010-08-27 22:09:36 +00:00
Damien Stuart
c4c158c1ba
Missed a config file update on the last check-in.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@284 510a4753-2344-4c79-9c09-4d669213fbeb
2010-08-26 22:56:47 +00:00
Damien Stuart
cdff077bb6
Added rule expire and purge for ipfw. Almost there...
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@283 510a4753-2344-4c79-9c09-4d669213fbeb
2010-08-24 03:09:35 +00:00
Damien Stuart
51c21b318f
Start of addition of access requests via ipfw.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@282 510a4753-2344-4c79-9c09-4d669213fbeb
2010-08-23 02:43:43 +00:00
Michael Rash
b0de05c70a
minor off-by-one fix for home directory path separator
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@281 510a4753-2344-4c79-9c09-4d669213fbeb
2010-08-14 01:26:42 +00:00
Michael Rash
ea19245f99
minor bug fix to account for PATH_SEP being defined as a character instead of a string
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@280 510a4753-2344-4c79-9c09-4d669213fbeb
2010-08-12 02:19:03 +00:00
Damien Stuart
838b80fd7d
Refactored firewall rule code to separate files by firewall type. Stubbed in ipfw and ipf firewall types. Updated autoconf to set a firewall type and path depending on configure arguments.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@279 510a4753-2344-4c79-9c09-4d669213fbeb
2010-08-10 02:29:09 +00:00
Damien Stuart
c1f67b900d
Uncommented call to check_firewall_rules (left in while debugging freebsd build).
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@278 510a4753-2344-4c79-9c09-4d669213fbeb
2010-08-08 19:01:36 +00:00
Damien Stuart
dcd6106a4b
Oops left out new header for last update.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@277 510a4753-2344-4c79-9c09-4d669213fbeb
2010-08-08 18:56:53 +00:00
Damien Stuart
6126b7b7ca
Updates to accomodate building and compiling on FreeBSD systems.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@276 510a4753-2344-4c79-9c09-4d669213fbeb
2010-08-08 18:53:35 +00:00
Damien Stuart
51adbe26a2
Tweaks to autoconf files.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@275 510a4753-2344-4c79-9c09-4d669213fbeb
2010-08-01 02:13:03 +00:00
Damien Stuart
55e9fe41e1
Added some OpenWRT-related files to the extras directory.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@274 510a4753-2344-4c79-9c09-4d669213fbeb
2010-07-31 19:11:22 +00:00
Damien Stuart
9c2cd267bf
Fixed issue with spaces in in access.conf comma-separated values. Fixed issue with GPG signature check being forced when GPG_REMOTE_ID is set and GPG_REQUIRE_SIG was "N". Updated dependency in the spec file. Updates to ChangeLog.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@273 510a4753-2344-4c79-9c09-4d669213fbeb
2010-07-31 18:04:08 +00:00
Michael Rash
7dc24c133e
Bug fix for USE_NDBM variable so that client-only builds work. The specific
...
error before the patch along with the command line invocation of the
"configure" script appear below:
$ ./configure --prefix=/usr --disable-server
[...]
configure: error: conditional "USE_NDBM" was never defined.
Usually this means the macro was only invoked conditionally.
git-svn-id: file:///home/mbr/svn/fwknop/trunk@272 510a4753-2344-4c79-9c09-4d669213fbeb
2010-07-29 11:01:53 +00:00
Damien Stuart
35f71a82fd
Added extras directory. Bumped version in autoconf to 1.0.0rc2.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@271 510a4753-2344-4c79-9c09-4d669213fbeb
2010-07-25 15:40:51 +00:00
Damien Stuart
94130067a6
Cleaned out some old commented-out sections configure.ac and fixed an issue where exteranl file checks would fail when running configure in cross-compiler environment. No code changes made.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@269 510a4753-2344-4c79-9c09-4d669213fbeb
2010-07-19 02:39:26 +00:00
Damien Stuart
3111e5868b
Removed a debug print statement.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@268 510a4753-2344-4c79-9c09-4d669213fbeb
2010-07-18 01:56:19 +00:00
Damien Stuart
bf8586922e
Added check to make sure a firewall program is set.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@267 510a4753-2344-4c79-9c09-4d669213fbeb
2010-07-16 20:47:50 +00:00
Damien Stuart
aa0cc1c699
Per Franck Joncourt - Corrected misspelled word in fwknopd man page and access.conf.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@266 510a4753-2344-4c79-9c09-4d669213fbeb
2010-07-16 20:14:35 +00:00
Damien Stuart
b0886a1d49
Updates and clean-up to address the many compiler warnings when compiled with -Wall. Also some autoconf updates
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@265 510a4753-2344-4c79-9c09-4d669213fbeb
2010-07-16 14:28:32 +00:00
Damien Stuart
c3da912fc2
Updated the version number in the win32 config.h copy
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@264 510a4753-2344-4c79-9c09-4d669213fbeb
2010-07-16 01:09:11 +00:00
Damien Stuart
8cfa222761
Fixed some misplaced dependencies in the fwknop.spec file.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@263 510a4753-2344-4c79-9c09-4d669213fbeb
2010-07-16 00:39:17 +00:00
Damien Stuart
4c995c146b
Almost all he conf variables have a default value if they are not there (or set). All the entries in the initial fwknop.conf file are not commented out adn can be override as needed.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@262 510a4753-2344-4c79-9c09-4d669213fbeb
2010-07-15 01:38:16 +00:00
Michael Rash
d904f5637f
removed additional wait() call from run_extcmd(), updated --fw-list to just use system() to execute the iptables listing commands
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@261 510a4753-2344-4c79-9c09-4d669213fbeb
2010-07-14 02:58:51 +00:00
Michael Rash
6f4ff9cb69
added --fw-list arg to the fwknopd daemon to list all current firewall rules for any running fwknopd process
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@260 510a4753-2344-4c79-9c09-4d669213fbeb
2010-07-13 04:09:07 +00:00
Michael Rash
ed9170e506
- added is_valid_dir() utility function for checking directory stat()/existence (this
...
is used for gpg keyring path validation).
git-svn-id: file:///home/mbr/svn/fwknop/trunk@259 510a4753-2344-4c79-9c09-4d669213fbeb
2010-07-12 01:48:49 +00:00
Damien Stuart
f03b2786eb
Added the fwknopd_errors.[ch] files which provides the get_errstr() and fwknopd_errstr() functions. The get_errstr() function takes and error_code, tries to determine the type, then calls the appropriate xxx_errstr function to return a description string. Fixed some minor errors in the libfko API docs.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@258 510a4753-2344-4c79-9c09-4d669213fbeb
2010-07-11 20:16:32 +00:00
Damien Stuart
390ea80df7
Moved force set of verify flag on remote_id value to before decryption phase.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@257 510a4753-2344-4c79-9c09-4d669213fbeb
2010-07-11 14:04:23 +00:00
Damien Stuart
3c5c8f1da7
Reverted last libfko change. Added set verify_sig flag when remote_ids are specified.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@256 510a4753-2344-4c79-9c09-4d669213fbeb
2010-07-11 13:55:44 +00:00
Damien Stuart
647fc3e64d
Removed checks for sig verification flag on gpg_sig info related functions.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@255 510a4753-2344-4c79-9c09-4d669213fbeb
2010-07-11 13:36:18 +00:00
Michael Rash
eed35a8f1c
minor update to check the gpg keyring path setting in access stanzas only if a decrypt password is specified
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@254 510a4753-2344-4c79-9c09-4d669213fbeb
2010-07-11 12:37:31 +00:00
Michael Rash
05fdf6f319
minor macro update to define the default gpg keyring
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@253 510a4753-2344-4c79-9c09-4d669213fbeb
2010-07-11 02:49:12 +00:00
Michael Rash
688ae8d4f0
Updated to define a default gpg keyring path of /root/.gnupg, and if the GPG_HOME_DIR variable
...
is not defined in the fwknopd.conf file or the access.conf file, then this default will take
over.
git-svn-id: file:///home/mbr/svn/fwknop/trunk@252 510a4753-2344-4c79-9c09-4d669213fbeb
2010-07-11 02:45:38 +00:00
Damien Stuart
a0b813ca55
Reworked how man pages are generated. Now, man pages in the client and server directory are "fwknop(d).8.in" and a target was added to Makefile.am to create the man pages while doing variable substitutions based on directives specified via the configure script. Minor tweak to fwknop.spec file.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@251 510a4753-2344-4c79-9c09-4d669213fbeb
2010-07-11 01:27:12 +00:00
Damien Stuart
492b1db861
Slightly revamped how signals were setup.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@250 510a4753-2344-4c79-9c09-4d669213fbeb
2010-07-10 16:41:52 +00:00
Damien Stuart
4a85c6fd25
Modified top-level Makefile.am so the legacy perl stuff is not packaged into the distribution tar file. More cleanup of the fwknopd man page.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@249 510a4753-2344-4c79-9c09-4d669213fbeb
2010-07-10 00:48:41 +00:00
Damien Stuart
153d1ec962
Added AC_SYS_LARGE_FILE to configure.ac
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@248 510a4753-2344-4c79-9c09-4d669213fbeb
2010-07-09 18:18:41 +00:00
Damien Stuart
9c6377aff6
Manpage updates
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@247 510a4753-2344-4c79-9c09-4d669213fbeb
2010-07-09 02:09:22 +00:00
Damien Stuart
b83733f00d
Renamed the legacy perl verison of fwknop.spec to fwkop-legacy.spec to resolve rpmbuild confusion when using the -tx options.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@246 510a4753-2344-4c79-9c09-4d669213fbeb
2010-07-08 02:07:35 +00:00
Damien Stuart
a80b392d27
Fixed another oops in the spec file.
...
git-svn-id: file:///home/mbr/svn/fwknop/trunk@245 510a4753-2344-4c79-9c09-4d669213fbeb
2010-07-08 02:02:12 +00:00