889 Commits

Author SHA1 Message Date
Michael Rash
165e618bad Added fuzzing encoding tests that remove the 2nd and 3rd colons 2012-10-25 21:55:01 -04:00
Michael Rash
f6b0d23c1c Added fuzzing spa packet generation for invalid encodings
This commit adds the ability to generate SPA packets that are valid except for
the last encoding step before encryption.  This is independent of supplying
invalid data for SPA packet fields.  To invoke the test suite in this mode,
do something like:

 # ./test-fwknop.pl --enable-perl-module-pkt-gen  --fuzzing-test-tag "encoded_colon1_missing"  --fuzzing-class encoding

This assumes that lib/fko_encode.c has been patched to subvert the encoding
step itself before encryption.  In this case, the first colon after the random
value is removed.
2012-10-25 21:37:52 -04:00
Michael Rash
b3889289b3 added non-base64 user character fuzzing SPA packets 2012-10-25 00:42:02 -04:00
Michael Rash
d16643affa added extra_timestamp_digit fuzzing SPA packets 2012-10-25 00:29:01 -04:00
Michael Rash
e8312c26b9 added colon_1_to_a fuzzing SPA packets 2012-10-25 00:24:19 -04:00
Michael Rash
de512e7d8f added fuzzing/README file 2012-10-25 00:20:55 -04:00
Michael Rash
6a649e26e7 easier SPA fuzzing packet generation and importing 2012-10-25 00:20:08 -04:00
Michael Rash
627035fb22 Patch from Franck Joncourt for setting permissions via open()
[client+server] Applied patch from Franck Joncourt to remove unnecessary
chmod() call when creating client rc file and server replay cache file.
The permissions are now set appropriately via open(), and at the same
time this patch fixes a potential race condition since the previous code
used fopen() followed by chmod().
2012-10-23 21:47:56 -04:00
Michael Rash
52d023ec60 added validate_username() call to SPA packet encoding routine 2012-10-22 20:31:31 -04:00
Michael Rash
23eefbdefa added MIPS compilation bug for todo.org tracking 2012-10-22 20:30:42 -04:00
Michael Rash
691d9503ee added test/fuzzing/ directory for fuzzing data and patches 2012-10-19 22:14:24 -04:00
Michael Rash
95001b7da8 minor ChangeLog updates 2012-10-19 22:11:27 -04:00
Michael Rash
54297086ba fixed --enable-recompile argument for OpenBSD 2012-10-18 23:10:02 -04:00
Michael Rash
3eaa7dcb5f added libfko validate_username() for decrypted SPA data 2012-10-18 23:01:54 -04:00
Michael Rash
692e336880 added 'Rejected' messages to test output for bogus SPA packet perl FKO tests 2012-10-18 22:24:48 -04:00
Michael Rash
d5c3fc4b1c removed non-SPA packet lines 2012-10-18 22:24:11 -04:00
Michael Rash
cc58adc7fc added bogus_spa_packets file for perl FKO fuzzing tests 2012-10-18 22:08:38 -04:00
Michael Rash
b218977c61 continued validation code driven by perl FKO module 2012-10-16 21:23:43 -04:00
Michael Rash
e0d86f9a33 [libfko] validation of NAT access strings
Added validation of NAT access strings in the various NAT modes in libfko.
This applies to both the client and server, and test suite support was added
as well.
2012-10-15 20:52:23 -04:00
Michael Rash
bf22778ada added perl FKO module client timeout test 2012-10-13 14:08:38 -04:00
Michael Rash
1910cd1ecf additional perl FKO module access message test strings 2012-10-13 11:38:23 -04:00
Michael Rash
e24cfd014d added perl FKO module cmd mode tests 2012-10-13 11:31:31 -04:00
Michael Rash
5112704ed9 started on fuzzing tests with the perl FKO module 2012-10-12 23:52:14 -04:00
Michael Rash
402c7033d5 force usernames to be alpha numeric chars and dashes 2012-10-12 23:51:28 -04:00
Michael Rash
c047dca50d minor todo.org update to set icmp type/code task to completed 2012-10-11 23:50:16 -04:00
Michael Rash
e4751d1c20 added icmp type/code blurb 2012-10-11 23:40:04 -04:00
Michael Rash
67f5d1f1e9 Applied perl FKO module libfko path patch from Franck Joncourt
Applied patch from Franck Joncourt to have the perl FKO module link
against libfko in the local directory (if it exists) so that it doesn't
have to have libfko completely installed in /usr/lib/.  This allows the
test suite to run FKO tests without installing libfko.

Added the ability to the test suite to compile, install, and run some
basic tests against the perl FKO module.
2012-10-11 23:36:50 -04:00
Michael Rash
6f356a9684 Added Sean Greven for his FreeBSD port 2012-10-08 22:06:33 -04:00
Michael Rash
d0189b6b7e minor addition of newline before each chain list in --fw-list mode 2012-10-07 15:11:53 -04:00
Michael Rash
845f81804f added test/conf/tcp_server_fwknopd.conf file 2012-10-05 16:12:03 -04:00
Michael Rash
66741b3d81 Added a test for SPA over TCP 2012-10-04 21:05:55 -04:00
Michael Rash
ecce80b92b [client] for spoofed SPA packets over ICMP, switche back to sending over echo reply 2012-10-04 21:05:22 -04:00
Michael Rash
aceb501eca minor replay warning msg fix to not include newlines (better for syslog) 2012-10-03 22:58:06 -04:00
Michael Rash
229a36625b Better IP spoofing support (udpraw and icmp)
- [client] Added '-P udpraw' to allow the client to send SPA packets over
  UDP with a spoofed source IP address.  This is in addition to the
  original 'tcpraw' and 'icmp' protocols that also support a spoofed
  source IP.
- [server] Bug fix to accept SPA packets over ICMP if the fwknop client
  is executed with '-P icmp' and the user has the required privileges.
2012-10-03 22:56:10 -04:00
Michael Rash
bb1743d25d [server] Switched upstart config to use 'expect' section
This change allows fwknopd to write syslog messages to traditional syslog files
while running under upstart.  Not forking into the background resulted in
messages meant for syslog were captured under /var/log/upstart/fwknop.log.
2012-10-02 23:22:15 -04:00
Michael Rash
1828f51b90 [server] GPG_ALLOW_NO_PW + no KEY bug fix
Bug fix to allow GPG_ALLOW_NO_PW to result in not also having to specify a
Rijndael key.
2012-10-02 23:20:47 -04:00
Michael Rash
2aff47c7a2 minor fwknopd man page fixes 2012-10-01 22:49:45 -04:00
Michael Rash
1f4ca20f76 [server] upstart config change to start on network device up
For the upstart config make sure only start fwknopd after a non-loopback
network interface is brought up.  Also added a commented post-start script
to send an email whenever fwknopd is (re)started.
2012-09-29 21:58:04 -04:00
Michael Rash
e37409c250 Added blurb about the new upstart config 2012-09-27 22:01:54 -04:00
Michael Rash
f7472bec0f Added upstart config for Ubuntu systems
fwknop can be easily managed with upstart with the addition of this config.
Here is an example:

 # service fwknop start
 fwknop start/running, process 4269
2012-09-27 21:58:38 -04:00
Michael Rash
91e7b21054 added log output for the sniffing interface 2012-09-27 21:57:39 -04:00
Michael Rash
4c852c133b [todo] client/server tests 2012-09-24 22:15:33 -04:00
Michael Rash
61021e0f23 minor print status update in --Anonymize mode 2012-09-24 22:15:01 -04:00
Michael Rash
96609e280c added mbr@cipherdyne.org to bug email list 2012-09-24 21:33:41 -04:00
Michael Rash
05eb19738a added the OpenBSD port from Vlad 2012-09-13 21:25:43 -04:00
Michael Rash
2b09f048f7 (Vlad Glagolev) Submitted an OpenBSD port for fwknop-2.0.3
(Vlad Glagolev) Submitted an OpenBSD port for fwknop-2.0.3, and this has
been checked in under extras/openbsd/.
2012-09-13 21:24:54 -04:00
Michael Rash
f8374c8aef [server] (Vlad Glagolev) Submitted a patch to fix command exec mode
(Vlad Glagolev) Submitted a patch to fix command exec mode
under SPA message type validity test.  Support for command exec mode was
also added to the test suite.
2012-09-11 21:54:26 -04:00
Michael Rash
591416e23b [server] bug fix in --disable-file-cache mode
Applied patch from Vlad Glagolev to fix ndbm/gdbm usage when --disable-file-cache
is used for the autoconf configure script.  This functionality was broken in
be4193d734850fe60f14a26b547525ea0b9ce1e9 through improper handling of #define
macros from --disable-file-cache.
2012-09-10 21:47:48 -04:00
Michael Rash
7bd0da29c4 minor spelling typo fixes 2012-09-04 22:04:48 -04:00
Michael Rash
c560dc503a minor spelling typo fixes 2012-09-04 21:47:30 -04:00