root/fwknop/tags/fwknop-1.9.6/ChangeLog

Revision 1173, 46.7 kB (checked in by mbr, 3 months ago)

implemented UDP source port randomization by default, and added --Source-port in the fwknop client to override this

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 fwknop-1.9.6 (07/18/2008):
2     - SPA packets are base64-encoded by the fwknop client, and this encoding
3       pads data with '=' chars until the total length of the encoded data is a
4       multiple of four.  This characteristic can be used within a Snort rule
5       to assist in the detection of SPA communications.  The 1.9.6 release of
6       fwknop strips out these padding characters before the client sends an
7       SPA packet, and the fwknopd server adds them back in (to form a multiple
8       of four) before base64 decoding the packet data.  This reduces the level
9       of identifying information in SPA packets and therefore makes it more
10       difficult to detect the usage of SPA for service access.  For reference,
11       a Snort rule that would detect SPA packets via the trailing '=' chars
12       (previous to this release) would be:
13
14         alert udp any any -> any 62201 (msg:"fwknop SPA traffic"; \
15         dsize:>150; pcre:"/==$/"; sid:20080001; rev:1;)
16
17     - According to the 'file' command (via it's 'magic') database, files that
18       are encrypted with GnuPG begin with 0x8502, and this is true for SPA
19       packets generated by fwknop (previous to this release).  In
20       fwknop-1.9.6, the "hQ" prefix is removed by the fwknop client and added
21       back in by the fwknopd server if it doesn't exist.  This measure is
22       another effort to make SPA packets more difficult to detect on the wire,
23       such as with the following Snort rule:
24
25         alert udp any any -> any 62201 (msg:"fwknop GnuPG encrypted SPA
26         traffic"; content:"hQ"; depth:2; dsize:>1000; sid:20080003; rev:1;)
27
28     - Updated the fwknop client to randomize the UDP source port for default
29       SPA packet generation.  There is also a new command line argument
30       --Source-port <port> to allow the user to manually set the source port
31       on the fwknop client command line.  A lot more attention is given now to
32       source ports after the Dan Kaminsky DNS caching exploit, and it turns
33       out that even on Linux that the kernel did not randomize UDP source
34       ports until the 2.6.24 kernel.  Of course, any userspace process is free
35       to request a random port itself, but if a userspace application did not
36       build this in then it would be up to the kernel to assign a source port.
37       In the case of Linux, here are two links that show the change to the
38       kernel code as well as the ChangeLog entry for UDP source port
39       randomization:
40
41         http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;\
42         a=commit;h=32c1da70810017a98aa6c431a5494a302b6b9a30
43         http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.24
44
45     - (Test suite): Added the ability to explicitly run major classes of tests
46       with two new command line arguments to the fwknop_test.pl script:
47       --test-include <test>, and --test-exclude <test>.  In each case the
48       <test> string is used as a sub-string match against the main identifying
49       string for the name of the test.  For example, to run all tests for
50       replay attacks, use "--test-include Replay", and for all port
51       randomization tests use "--test-include random".  To see all possible
52       classes of tests, run the test suite without any command line arguments
53       and examine the test.log file.
54     - (Test suite): Added tests for the legacy shared and encrypted port
55       knocking modes.
56     - (Legacy port knocking mode): Updated to not require iptables log
57       messages to be written to the fwknopfifo named pipe and just parse the
58       /var/log/messages file directly by default.  This can be configured via
59       two new variables ENABLE_SYSLOG_FILE and IPT_SYSLOG_FILE (similarly to
60       the psad project).  In support of this feature, install.pl now does not
61       create the fwknopfifo or reconfigure the syslog daemon unless the
62       --install-syslog-fifo argument is used, and the knopmd does not have to
63       run.
64     - (Legacy port knocking mode): Added the ability to re-open the
65       /var/log/messages file if it is rotated by an external program such as
66       logrotate.
67     - (Test suite): Bugfix to use --fw-type argument on fwknopd command line.
68       This fixes various tests on Mac OS X and FreeBSD systems running ipfw.
69     - Minor bugfix to require a space character after variable names when
70       parsing the fwknop.conf file via knopmd and knopwatchd (implemented in
71       fwknop_funcs.c)
72
73 fwknop-1.9.5 (06/08/2008):
74     - Updated to Class::MethodMaker 2.11 from CPAN.  This helps with systems
75       running perl-5.10.0 and greater (such as Fedora 9).
76     - Added the LOCALE variable to fwknop.conf and made the "C" locale set by
77       default so that gpg process output would always be correctly
78       interpreted.
79     - Updated to Net::RawIP 0.23 from 0.21_03 and removed List::MoreUtils
80       since Net::RawIP no longer requires it
81     - Updated to Crypt::Rijndael 1.06 from 1.04.
82     - Updated to Crypt::CBC 2.29 from 2.19.
83     - Updated to GnuPG::Interface 0.36 from 0.34.
84     - Removed legacy knopmd.conf file since knopmd uses the fwknop.conf file
85       instead.  Also, note that knopmd only runs in the legacy port knocking
86       mode to collect iptables log information from syslog.  The default
87       authentication/authorization method used by fwknop is SPA which exhibits
88       far better security properties than port knocking (see
89       http://www.cipherdyne.org/fwknop/docs/SPA.html).
90
91 fwknop-1.9.4 (06/01/2008):
92     - Added two new port randomization options.  The first instructs the
93       fwknop client to select a random port between 10,000 and 65,535 as the
94       destination port over which to send an SPA packet.  This feature is
95       enabled with a new command line argument "--rand-port" like so:
96
97       $ fwknop -A tcp/22 --rand-port -R -D 11.1.1.1
98
99       On the fwknopd server side, the default PCAP_FILTER setting of "udp port
100       62201" should be changed to "udp dst portrange 10000-65535" so that
101       fwknopd can sniff SPA packets that are sent over randomized destination
102       ports.  Randomizing the destination port makes it more difficult to
103       write IDS signatures to detect fwknop SPA communications.
104
105       The second port randomization technique uses a new SPA message type to
106       tell the fwknopd daemon to create a NAT rule for access to a local
107       socket via the iptables INPUT chain.  This allows an SSH client to meet
108       the local SSHD daemon running on the fwknopd server system by SSH'ing to
109       the random port.  This functionality is implemented via two new command
110       line arguments on the fwknop client command line: "--NAT-rand-port" to
111       instruct fwknop to select a random port over which the follow-on
112       connection will be made), and "--NAT-local" (to instruct the fwknopd
113       server that new firewall rules should NAT an incoming connection to the
114       randomly selected port).  Here is an example:
115
116       $ fwknop -A tcp/22 --NAT-rand-port --NAT-local -R -D 11.1.1.1
117
118       Now the fwknop client will select a random port to NAT the incoming
119       connection.  So say it selects port 31001 (as indicated by the output of
120       fwknop on the command line as displayed below) - then you would SSH to
121       this port to access the real SSH daemon on the system where fwknopd is
122       running:
123
124       [+] Sending 206 byte message to 127.0.0.1 over udp/46245...
125       Requesting NAT access to tcp/22 on 127.0.0.1 via port 31001
126
127       $ ssh -p 31001 <user>@11.1.1.1
128
129       Note that in this case it is not necessary to use --NAT-access since the
130       fwknopd daemon knows that access is requested to a local service (so an
131       internal IP address does not have to be specified).
132
133     - Added the ability to specify the port that SPA packets are sent over
134       with the fwknop client by using the syntax "<host|IP>:<port>".  So, for
135       example, to have the client send an SPA packet to 11.1.1.1 over UDP port
136       12345 (instead of the default of 62201), one could use the following
137       command:
138
139       $ fwknop -A tcp/22 -R -D 11.1.1.1:12345
140
141     - Bugfix to add a check for "keep-state" in ipfw policies in addition to
142       the existing "check-state" check (noticed by Sebastien Jeanquier).
143     - Updated the install.pl script to try to determine the OS type as early
144       as possible during the install process.
145     - Added the MIN_SPA_PKT_LEN variable with 150 (bytes) as the default.
146       This allows fwknopd to ignore packets that are not at least this many
147       bytes (including packet headers) before any decryption attempt is made.
148     - Added --time-offset-plus and --time-offset-minus args to the fwknop
149       client command line.  This allows the time stamp within an SPA packet to
150       be influenced without setting the system clock (which normal users
151       cannot usually do).  This is useful for when the client and server
152       systems have clocks that are out of sync.
153     - Bugfix on Ubuntu systems to make sure that the fwknop init script is
154       installed with a priority of 99 instead of 20 - this puts fwknop as late
155       as possible within the boot sequence so that the system is ready to run
156       fwknop.
157     - Bugfix to not open ports that are not specifically requested in an SPA
158       packet even if those ports are listed in the OPEN_PORTS variable in the
159       access.conf file.
160     - Updated to version 5.47 of the Digest::SHA module.
161     - Updated to version 0.7 of the IPTables::ChainMgr module (includes
162       perldoc documentation).
163     - Updated to version 0.6 of the IPTables::Parse module (includes perldoc
164       documentation).
165     - Added NAT, port randomization, and and time offset option discussions to
166       fwknop(8) man page.
167
168 fwknop-1.9.3 (04/05/2008):
169     - Added MASQUERADE and SNAT support to complement inbound DNAT connections
170       for SPA packets that request --Forward-access to internal systems.  This
171       functionality is only enabled when both ENABLE_IPT_FORWARDING and
172       ENABLE_IPT_SNAT are set, and is configured by two new variables
173       IPT_MASQUERADE_ACCESS and IPT_SNAT_ACCESS which define the iptables
174       interface to creating SNAT rules.  The SNAT supplements of DNAT rules
175       are not usually necessary because internal systems usually have a route
176       back out to the Internet, but this feature accommodates those systems
177       that do not have such a route.  By default, the MASQUERADE target is
178       used if ENABLE_IPT_SNAT is enabled because this means that the external
179       IP does not have to be manually defined.  However, the external IP can
180       be defined by the SNAT_TRANSLATE_IP variable.
181     - Added hex_dump() feature for fwknop client so that raw encrypted SPA
182       packet data can be displayed in --verbose mode.
183     - When ENABLE_IPT_FORWARDING is set, added a check for the value of the
184       /proc/sys/net/ipv4/ip_forward file to ensure that the local system
185       allows packets to be forwarded.  Unless ENABLE_PROC_IP_FORWARD is
186       disabled, then fwknopd will automatically set the ip_forward file to "1"
187       if it is set to "0" (again, only if ENABLE_IPT_FORWARDING is enabled).
188     - Minor bugfix to remove sys_log() call in legacy port knocking mode.
189     - Minor bugfix to expand both the Id and Revision tags via the
190       svn:keywords directive.
191
192 fwknop-1.9.2 (03/12/2008):
193     - Crypt::CBC adds the string "Salted__" to the beginning of the encrypted
194       text (at least for how fwknop interfaces with Crypt::CBC), so the fwknop
195       client was updated to delete the encoded version of this string
196       "U2FsdGVkX1" before sending a Rijndael-encrypted SPA packet on the wire.
197       The fwknopd server will add this string back in before decrypting.  This
198       makes it harder to write an IDS signature that looks for fwknop traffic;
199       e.g. look for the default prefix string "U2FsdGVkX1" over UDP port 62201,
200       which would work for fwknop clients < 1.9.2 (as long as the port number
201       is not changed with --Server-port).
202     - Added more granular source IP and allowed IP tests so that access to
203       particular internal IP addresses can be excluded in --Forward-access
204       mode.  A new keyword "INTERNAL_NET_ACCESS" is now parsed from the
205       access.conf file in order to implemented these restrictions.
206     - (SPAPICT Group) Added BLACKLIST functionality to allow source IP
207       addresses to easily be excluded from the authentication process.
208     - (Grant Ferley) Submitted patch to handle SIGCHLD in IPTables::ChainMgr.
209     - (Grant Ferley) Submitted patch to handle Linux "cooked" interfaces for
210       packet capture (e.g. PPPoE interfaces).
211     - (SPAPICT Group) Applied modified version of the client-defined access
212       timeout patches submitted by the PICT SPA Group.  There are two new
213       message types to facilitate client timeouts; one for normal access mode,
214       and the other for the FORWARD access mode.  In the access.conf file,
215       there is also a new variable "PERMIT_CLIENT_TIMEOUT" to allow each
216       SOURCE stanza to allow client-defined timeouts or not.
217     - (SPAPICT Group) Submitted patches to include support for the SHA1 digest
218       algorithm for SPA packet replay attack detection.  I modified these
219       patches for maximum configurability (see the --digest-alg argument on
220       the fwknop command line), and the ability to use the SHA256 algorithm as
221       well.  The default path to the /var/log/fwknop/md5sums file has been
222       changed to /var/log/fwknop/digest.cache, and the default digest
223       algorithm is now SHA256 (but this is tunable via the DIGEST_TYPE
224       variable in the fwknop.conf file).
225     - Added the Digest::SHA perl module in support of the SHA1 and SHA256
226       digest algorithms for replay attack detection and SPA message integrity.
227     - Added full packet hex dumps (including packet headers) to fwknopd in
228       --debug --verbose mode.  This is to help diagnose packet sniffing issues
229       over the loopback interface on Mac OS X (first reported by Sebastien
230       Jeanquier).
231     - (Test suite) Bugfix to ensure that the FWKNOP_DIR variable is set to the
232       local output/ directory in several of the test config files in the
233       test/conf/ directory.
234     - (Test suite) Added several tests for configurable digest algorithms in
235       support for the SHA256, SHA1, and MD5 digest changes made by the SPAPICT
236       Group.
237     - Updated the fwknop client to always call encode_base64() with the string
238       to encode along with a second null-string argument to force all encoded
239       data to not include line breaks.
240     - Bugfix in install.pl to not test for the iptable command on non-Linux
241       systems, and to not test for the ipfw command on systems that are Linux.
242     - (Test suite) Updated to include the /proc/config.gz file so that the
243       kernel config can be reviewed (not all Netfilter hooks are necessarily
244       compiled in).
245
246 fwknop-1.9.1 (01/26/2008):
247     - Added ENABLE_OUTPUT_ACCESS keyword to access.conf file parsing. This
248       provides a similar configuration gate for the iptables OUTPUT chain to
249       the ENABLE_FORWARD_ACCESS keyword, and adds the abiliy to control which
250       access.conf SOURCE blocks interface to the OUTPUT chain.
251     - Better installation support for various Linux distributions including
252       Fedora 8 and Ubuntu.  The current runlevel is now acquired via the
253       "runlevel" command instead of attempting to read /etc/inittab (which
254       does not even exist on Ubuntu 7.10), and there are new command line
255       arguments --init-dir, --init-name, and --runlevel to allow the init
256       directory, init script name, and the runlevel to be manually specified
257       on the install.pl command line.
258     - Added command line argument display to fwknop client --verbose mode.
259     - Updated the test suite to include OUTPUT chain tests, reference
260       access.conf files in the test/conf/ directory, and perform SPA packet
261       format validation tests by parsing fwknopd output.
262     - Updated fwknopd to use always use the -c argument on the knoptm command
263       line (this makes sure that the test suite usage of fwknopd causes knoptm
264       to reference the correct configuration).
265     - Updated IPTables::ChainMgr to print iptables command output to stdout or
266       stderr if running in debug or verbose mode.
267     - Added --Exclude-mod-regex to install.pl so that the installation of
268       particular perl modules that match the supplied regex can be skipped.
269     - Added SIGALRM wrapper to the test suite since some libpcap and system
270       combinations break the ability of fwknopd to sniff packets.
271     - Added srand() call to the fwknop client (this is useful for older
272       versions of perl which do not automatically call srand() at the first
273       rand() call if srand() was not already called).
274     - Added a test to the test suite for sniffing packets over the loopback
275       interface.
276     - Added SPA packet aging test to the test suite to ensure that packet
277       expirations work properly (this feature protects against MITM attacks
278       where a valid SPA packet is stopped by an inline attacker and
279       retransmitted at a later time to acquire access).
280     - Added a file (test.log) to collect test suite console output.
281     - Added --Prepare-results argument to test suite to anonymize test results
282       and create a tarball that can be emailed to a third party to assist in
283     - Added full firewall policy dumps and the collection of system specifics
284       to the test suite. This makes it easy to send the output directory and
285       the test.log file to developers to assist in debugging (no information
286       is sent anywhere except as part of a manual process of course, and
287       addresses can be anonymized with --Prepare-results - loopback addresses
288       are not modified).
289     - Added --fw-del-ip <IP> argument to fwknopd so that a specific IP address
290       can be removed from the local firewall policy (this is used by the test
291       suite to ensure that if a test for removed firewall rules fails then
292       subsequent tests will not also fail because they are no longer tracked
293       by a running knoptm instance).
294     - Added a test to the test suite to collect fwknopd syslog output.  This
295       is useful to see if a mechanism such as SELinux is deployed in a manner
296       that prevents normal fwknop communications.
297     - Bugfix to track MD5 digest for SPA command mode packets.
298     - Bugfix in fwknopd to not open ports listed in OPEN_PORTS in the absence
299       of the PERMIT_CLIENT_PORTS directive when an SPA packet contains a
300       request for access to a port not listed in OPEN_PORTS.
301       debugging fwknop if there are any issues.
302     - Added --verbose flag to fwknopd commands issued by the test suite so
303       that more data is collected for debugging analysis.
304     - Added GnuPG tests to the test suite with dedicated keys (for use only
305       with the test suite) in the test/conf/client-gpg and
306       test/conf/server-gpg directories.
307     - Added digest file validation to test suite to make sure that fwknopd
308       correctly tracks SPA packet MD5 digests.
309     - Updated to search state tracking rule in any iptables chain (many
310       iptables policies have user-defined chains that can be a bit complicated
311       to parse).
312     - Updated install.pl to be more strict in stopping any running fwknopd
313       processes.
314
315 fwknop-1.9.0 (12/15/2007):
316     - Added a test suite so that fwknop and fwknopd functionality can be
317       automatically tested over the loopback interface (see the fwknop_test.pl
318       script in the test/ directory).
319     - Major update to allow SPA packets to create DNAT connections to internal
320       systems through the FORWARD chain (iptables only).  This is useful to
321       connect through to internal systems (that may be running on non-routable
322       IP addresses) via a border firewall or router that is running fwknopd to
323       create inbound DNAT rules.
324     - Added support for the iptables OUTPUT chain via two new variable in the
325       fwknop.conf file: ENABLE_IPT_OUTPUT and IPT_OUTPUT_ACCESS. This is
326       useful for iptables firewalls that are not running the conntrack modules
327       and that have a restrictive OUTPUT chain (so SYN/ACK responses are not
328       allowed out without an explicit ACCEPT rule).
329     - Added the ability to force the fwknopd and knoptm daemons to restart
330       themselves (via knopwatchd) after a configurable timeout (see the
331       ENABLE_VOLUNTARY_EXITS and EXIT_INTERVAL variables in the
332       /etc/fwknop/fwknop.conf file). This feature is for those that want
333       fwknopd to go through its initialization routine periodically just in
334       case there is a logic (or other) bug that might result in fwknopd not
335       accepting a valid SPA packet. NOTE: This feature is disabled by default,
336       and is not normally needed since fwknopd is quite stable in most
337       deployments.
338     - Major update to perform all firewall rule expirations with knoptm, which
339       is now started in all data collection modes.  Older versions of fwknopd
340       maintained its own firewall rule expiration code for the FILE_PCAP,
341       ULOG_PCAP, and KNOCK modes, so two mechanisms were being maintained for
342       the same purpose.  The 1.9.0 release fixes this oversight.
343     - Minor bugfix to have knopwatchd generate syslog messages whenever an
344       fwknop daemon needs to be restarted.
345     - Added --interface command line argument to install.pl to allow the
346       sniffing interface to be specified from the command line. Also updated
347       install.pl to enforce a 10-try maximum for attempting to accept a valid
348       interface name from the command line (LANG env issues can exist
349       sometimes).
350     - Updated SPA packet format for server_auth and forward_info elements;
351       the internal MD5 sum is now always the last field in an SPA packet. This
352       makes extensions of the SPA protocol much easier, and the generation of
353       SPA packets more elegant. Also, SPA packet validation has been improved
354       to ensure that fields that are supposed to be digits really only contain
355       integer data.
356     - Added ENABLE_FORWARD_ACCESS variable to the access.conf file, and added
357       ENABLE_IPT_FORWARDING to the fwknop.conf file. These variables provide
358       the per-SOURCE ability to create DNAT connnections through the FORWARD
359       chain..
360     - Replaced the IPT_AUTO_CHAIN1 variable with IPT_INPUT_ACCESS and
361       IPT_FORWARD_ACCESS in fwknop.conf.
362     - Added --Forward-access argument to the fwknop client.
363     - Added client version number to syslog messages generated by fwknopd when
364       a valid SPA packet is received.
365     - Added human readable timestamp to MD5 cache. Here is an example of the
366       update format:
367         127.0.0.1 X6WF2C29kEgAv4aDJ8TDeQ [Wed Nov 28 09:24:46 2007]
368     - Added --Count argument to fwknopd so that it calls exit() when the
369       specified number of packets is monitored.
370     - Added --no-logs argument to knoptm in support of the test suite so that
371       no emails are generated.
372     - Bugfix in fwknopd to account for non-Ethernet link layer header over
373       *BSD loopback interfaces.
374     - Added --Save-dst argument to the fwknop client to add a priority file to
375       store client command line arguments (~/.fwknop.save). This file is only
376       overwritten when --Save-dst is used.
377     - Added fwknopd --fw-del-chains to allow the fwknopd iptables chains to
378       easily be deleted.
379     - Minor fwknopd bugfix to set process exit status to 0 when --Kill is
380       used.
381
382 fwknop-1.8.3 (11/17/2007):
383     - Updated external IP resolution to point to http://www.whatismyip.org,
384       and added http://www.cipherdyne.org/cgi/clientip.cgi as a backup site
385       for fwknop IP resolution.
386     - Added storage of source IP along with SPA MD5 sum. This allows the user
387       to infer which networks are more hostile if an SPA packet is replayed.
388     - Added SPA packet hex dumps in 'fwknopd --debug' mode so that the
389       integration of third-party encryption algorithms is easier to
390       troubleshoot. Sean Greven contributed a patch for this.
391     - Reinstated the legacy port knocking mode. It appears that all encrypted
392       output from the updated Crypt::Rijndael module is at least 32 bytes
393       long, so port knocking sequences are now 32 bytes long as well (they
394       were previously 16 bytes long in old versions of fwknop).
395     - Bugfix to ensure the key length is at least 8 chars in --get-key mode.
396     - Minor update to remove init message on OS X install.
397     - Updated install.pl to set the LANG environmental variable to
398       "en_US.UTF-8". This should fix the problem where the output of ifconfig
399       was not interpreted correctly if the locale LANG setting is not English.
400     - Implemented verbose email alerting by setting the ALERTING_METHODS
401       variable to "verbose". This instructs fwknopd to generate a new email
402       message for each message that it normally logs vis syslog (this feature
403       is not the default, and must be manually enabled).
404
405 fwknop-1.8.2 (09/15/2007):
406     - Added fwknopd server support for Mac OS X. The Darwin uname return
407       string is detected and this enables Darwin-specific installation code in
408       install.pl.
409     - Updated to not print sensitive key/password information in --debug mode
410       with fwknopd.
411     - Bugfix for install.pl on Windows 2003 Server running under Cygwin where
412       'uname -o' output is reported 'Gygwin' for some reason.
413     - Added --Cygwin-install command line argument to install.pl to force
414       client-only fwknop install on Cygwin systems.
415     - Added --OS-type command line argument to install.pl to allow the user to
416       force the installation type.
417     - Updated to version 1.04 of Crypt::Rijndael. This fixes incompatibilities
418       between SPA packets between 64-bit and 32-bit platorms.
419     - Bugfix to enforce a maximum of 20 tries to read a password from stdin.
420     - Applied TCP options parsing fix from psad for invalid zero or one length
421       fields that break TLV encoding (this is for fwknopd, and only applies to
422       the legacy port knocking mode).
423     - Added code to fwknopd to check to see if there are any state tracking
424       rules in place within the local iptables or ipfw policy.
425     - Made syslog identity, facility, and priority configurable (applied code
426       from the psad project).
427     - Implemented --fw-list for ipfw firewalls.
428     - Bugfix for knoptm removing ipfw rules too quickly after not timing out
429       previously instantiated rules properly.
430     - Implemented smarter cache removal strategy in knoptm so that rules that
431       are manually removed from the running iptables or ipfw policy are also
432       removed from the cache.
433     - Added /var/log/fwknop/errs/fwknopd.{warn,die} tracking to the fwknopd
434       daemon for the PCAP modes of collecting packet data. Added
435       knoptm{warn,die} files for knoptm as well.
436     - Bugfix to import the GnuPG::Interface module in --get-key mode.
437     - Bugfix to send source IP as a part of the command message in command
438       mode so that REQUIRE_SOURCE_ADDRESS controls can be applied.
439     - Added --Test-mode to fwknop client so that SPA packets can be built but
440       never sent over the network.
441
442 fwknop-1.8.1 (06/06/2007):
443     - Bugfix to ensure that the "keep-state" directive is added to firewall
444       rules on systems running the ipfw firewall.
445     - Added the --Save-packet and --Save-packet-file command line arguments
446       to the fwknop client. These options instruct fwknop to save a copy of
447       an encrypted SPA packet before it is sent across the network.
448     - Bugfix to find minimal unused ipfw rule number for ipfw firewalls. This
449       fixes an issue where ipfw rules added by fwknopd could be inserted at
450       the same position as rules from an existing ipfw policy. While ipfw
451       allows duplicate rules, whenever such a rule is deleted by its rule
452       number all matching rules are deleted.
453
454 fwknop-1.8 (06/03/2007):
455     - Added support for ipfw firewalls (found on *BSD systems).  The
456       IPTables::Parse and IPTables::ChainMgr modules are not installed on
457       such systems.
458     - Added gpg-agent support for both the fwknop client and fwknopd SPA
459       server.
460     - Updated client-only installation mode to restrict perl module
461       installation to those module that are actually required by the fwknop
462       client. This results in clean installs of the fwknop client on Windows
463       systems running Cygwin.
464     - Added --Defaults to install.pl so that fwknop can be installed without
465       prompting the user to answer any questions. This is to make it easier
466       to install fwknop on the Source Mage Linux distro.
467     - Consolidated daemon config files into the fwknop.conf file (except for
468       the access.conf file). This simplifies the configuration of fwknop.
469     - Added recursive variable resolution in the parsing routines for the
470       fwknop.conf file. This allows variable values to contain embedded
471       variables.
472     - Added init script for FreeBSD systems.
473     - Added --BSD-install command line argument to install.pl. This is not
474       normally necessary since the installer should detect installations on
475       *BSD systems, but this option can force this behavior.
476     - Updated knopmd and knopwatchd to use safe_malloc() instead of malloc().
477     - Bugfix to never time out rules from SOURCE blocks with FW_ACCESS_TIMEOUT
478       set to zero
479
480 fwknop-1.0.1 (01/09/2007):
481     - Updated fwknopd to allow the GPG_REMOTE_ID variable to have the value
482       "ANY" to allow a SOURCE block to match on arbitrary remote gpg signing
483       keys (Leland Weathers).
484     - Bugfix to allow OPEN_PORTS to be omitted in access.conf in favor of
485       having only PERMIT_CLIENT_PORTS enabled (reported by Raul Siles).
486     - Added the cd_rpmbuilder script to make it easy to build RPM's out of
487       CipherDyne projects by automatically downloading the project .tar.gz and
488       .spec files from http://www.cipherdyne.org/.
489
490 fwknop-1.0 (11/05/2006):
491     - Bugfix for OpenSSH-4.3p2 patch to make sure to include the spa.h header
492       file.
493     - Bugfix for access hashes accumluating when multiple ports are requested
494       to be opened by a client.
495     - Better validation of IPT_AUTO_CHAIN variable so that the from_chain
496       cannot be identical to the to_chain.
497     - Bugfix in RPM to install List::MoreUtils.
498     - Bugfix so that the MD5 sum for an SPA packet is not examined for each
499       SOURCE block.  This fixes a problem where an SPA packet could appear to
500       be replayed if multiple SOURCE blocks are defined in
501       /etc/fwknop/access.conf.
502     - Refactored main SPA access loop so that it is clearer how and when SPA
503       clients are granted access.
504     - Better handling of GnuPG key identifier strings (they can now contain
505       spaces, and syslog messages wrap the identifiers with double quotes).
506     - Added source IP address to command string in the SPA packet so that
507       the REQUIRE_SOURCE_ADDRESS criteria can be applied by the fwknopd
508       server.
509     - Added --Show-last-cmd and --Show-host-cmd args to fwknop so that the
510       last fwknop command and the last fwknop host commands can be viewed.
511     - Added the svn revision number to --Version and --help output.
512
513 fwknop-0.9.9 (10/15/2006):
514     - Added REQUIRE_SOURCE_ADDRESS (disabled by default) to force fwknop
515       clients to know their source IP address (i.e. -s cannot be used).  So,
516       either fwknop clients have to use -R to resolve their externally
517       routable address, or they must just know what it is.
518     - Updated to Net-RawIP-0.21_03 for compatibility with gcc-4.x compilers.
519     - Added List-MoreUtils-0.22 which is a dependency of the new Net::RawIP
520       module.
521     - Bugfix to restore "start" functionality in Gentoo init script.
522     - Bugfix to use the IPT_OUTPUT_FILE and IPT_ERROR_FILE configuration
523       variables in fwknopd.
524     - Added KNOPTM_IPT_OUTPUT_FILE and KNOPTM_IPT_ERROR_FILE variables
525       specifically for the knoptm daemon so that it can use IPTables::ChainMgr
526       completely independently of fwknopd (this removes a potential race
527       condition between fwknopd and knoptm).
528
529 fwknop-0.9.8 (09/17/2006):
530     - Added the ability to ignore old SPA packets through use of the
531       client-side time stamp.  This means that an attacker cannot intercept an
532       SPA packet, prevent it from being forwarded to its intended destination,
533       and then put the packet on the wire at some time outside of the allowed
534       time window.  There are two new configuration options in fwknop.conf
535       "ENABLE_SPA_PACKET_AGING" and "MAX_SPA_PACKET_AGE" that control the
536       length of the acceptable time window (2 minutes by default).  This
537       requires some level of synchronization between the fwknop client and the
538       fwknopd server, but this is not onerous through the use of NTP.  This
539       feature is enabled by default, and the idea for it was contributed by
540       Sebastien J.
541     - Completely re-worked IPTables::ChainMgr to support the return of
542       iptables error messages that are collected via stderr.  This is critical
543       to fixing any bugs where fwknopd could die as a result of a poorly
544       crafted iptables command.
545       but no information would be returned to the user.
546     - Added the ability to specify the position for both the jump rule into
547       the fwknopd chains as well as the position for new rules within the
548       fwknopd chains via the -I argument to iptables.  This fixes a bug where
549       the user was given the impression that the IPTABLES_AUTO_RULENUM would
550       accomplish this (IPTABLES_AUTO_RULENUM has been removed).
551     - Updated fwknopd to require < 1500 byte payload length before attempting
552       to decrypt.  Also, GnuPG decrypts are not attempted unless the encrypted
553       payload is at least 400 bytes long (this is conservative since even
554       encrypting a single byte with a 1024-bit key will result in about 340
555       bytes of encrypted data).
556     - Added the --gpg-default-key option to have fwknop use the default GnuPG
557       key that is defined in the ~/.gnupg/options file.
558     - Added the --URL command line argument so that a URL other than the
559       default http://www.whatismyip.com/ can be provided by the user for
560       external IP resolution (suggested by Sebastien J.).
561     - Updated to be more rigorous with md5 sums; we now require that the
562       md5_base64() function actually returns a non-null result.
563     - Bugfix to make sure that only the users associated with the a specific
564       REQUIRE_USERNAME value (in a specific SOURCE block in access.conf) are
565       granted the appropriate access even if a valid encrypted packet is
566       constructed from a different user name (by an fwknop client).
567     - Populated the _debug option in the IPTables::ChainMgr module, and also
568       added a _verbose option so that the specific iptables commands can
569       actually be seen as IPTables::ChainMgr functions are called.
570     - Added code to install.pl to update command paths in fwknop.conf and
571       knopwatchd.conf if any of the paths are broken (i.e. the local system
572       does not conform to the default paths).  By default this only happens if
573       the user does not want old configs to be merged, but to override this
574       use the new --path-update command line argument to install.pl.
575     - Added the --Skip-mod-install command line argument to install.pl to
576       allow all perl module installs to be skipped.
577     - Added the --force-mod-regex command line argument to install.pl to allow
578       a regex match on perl module names to force matching modules to be
579       installed.
580     - Minor bugfix to generate better (i.e. closer to those that Firefox
581       generates) http requests to http://www.whatismyip.com/).
582     - Adapted Mate Wierdl's RPM patch from the psad project so that the fwknop
583       RPM builds on x86_64 systems.
584     - Removed iptables requirement in RPM spec file because fwknop may be
585       installed on a system just to run the fwknop client.
586     - Updated to email username mismatch errors.
587
588 fwknop-0.9.7 (08/04/2006):
589     - Added fwknop_serv to function as minimal TCP server over which SPA
590       packets can be sent.  This allows SPA to be compatible with the Tor
591       network, which requires that a virtual circuit is established before
592       traffic can be sent.
593     - Updated to Crypt::CBC-2.18 after a vulnerability was discovered in
594       previous versions of Crypt::CBC that caused weak ciphertext to be
595       generated for algorithms that have blocksizes greater than 8 bytes (such
596       as Rijndael used by fwknop).  Manually specifying initialization vectors
597       is not necessary now.
598     - Updated SSH patch to support OpenSSH-4.3p2.
599     - Bugfix to make sure to create /var/* directories if they don't exist
600       (such as when /var is a tmpfs).
601     - Bugfix (Dwayne Rightler) to restore -w IP lookup functionality after
602       format change on data returned by whatismyip.com.
603     - Bugfix to wrap SPA Rijndael decryption with eval{} so that fwknopd does
604       not die if there are problems trying to decrypt data.  This is necessary
605       because of the security vulnerability fix in Crypt::CBC that creates
606       some incompatibilities in different versions of Crypt::CBC.
607     - Added "--L-host" command line argument so that the arguments used for
608       multiple hosts are preserved and can be recalled.
609     - Changed default user-agent setting for whatismyip.com lookups to
610       Firefox/1.0.5.4; there is no need to gratuitously advertise fwknop
611       traffic.
612     - Updated GunPG HOWTO to provide a step-by-step guide to getting fwknop
613       Single Packet Authorization working with GnuPG.
614     - Updated to derive perl module versions from the VERSION files within
615       each of the perl module source directories.
616
617 fwknop-0.9.6 (01/13/2006):
618     - Added GPG based authentication capability for SPA packets.  This new
619       mode can be configured to require that a GPG message be signed with a
620       particular key or set of keys.
621     - In GPG mode, the fwknop client now prints GPG errors to stdout if not
622       running with --gpg-no-batch-mode.
623     - Added the ability to require that the client know the UNIX crypt()
624       password associated with a username on the server side.  This
625       functionality is enabled on the fwknop client with the "--Server-auth
626       crypt" command line argument, and the REQUIRE_AUTH_METHOD variable in
627       /etc/fwknop/access.conf on the fwknopd server.
628     - Added patch against OpenSSH-4.2p1 to integrate SPA mode.  This patch
629       adds a "-K <fwknop cmd line>" argument to the SSH client so that
630       fwknop can be executed directly before an SSH connection is made.
631     - Separated server and client portions of fwknop into "fwknopd" and
632       fwknop repectively.  This will allow better portability to be
633       developed since the client and server pieces can be developed more
634       independently.  NOTE: With so many changes, it is probably a good idea
635       to not preserve old fwknop configs via install.pl.
636     - Renamed all relevant fwknopd command and file paths to support new
637       fwknopd server component.
638     - Added --quiet mode (this is used by default in the OpenSSH patch).
639     - Removed legacy port knocking installation in install.pl (fwknopfifo,
640       and fwdata file) unless the data collection mode is set to syslog or
641       syslog-ng for legacy iptables log messages.
642     - Added inode checking for PCAP_PKT_FILE. This helps to ensure that log
643       rotation schemes don't interfere with reading packets out of the file
644       since this check is size independent.
645     - Bugfix for Makefile debug mode.
646     - Added compilation check for perl programs in install.pl before
647       installation into the filesystem.
648     - Bugfix for knopwatchd to make sure it can actually restart all running
649       daemons properly.
650     - Added --force-mod command line argument to install.pl to allow the user
651       to force all perl modules to be be installed regardless of whether a
652       module exists in the system perl lib tree.
653     - Added --no-save-args to fwknop so that existing .fwknop.run file can
654       be preserved (helps to testing new features of fwknop client).
655     - Removed useless --encrypt command line argument (only the old shared
656       port knock sequences are not encrypted).
657
658 fwknop-0.9.5 (10/02/2005):
659     - Added the ability to resolve the external IP associated with the
660       local network via http://www.whatismyip.com.  This is a more secure
661       method of accomplishing what the -s option performs.  The new
662       command line option is --whatismyip (or just -w).
663     - Updated fwknop to communicate with knoptm via a UNIX domain socket
664       instead of the previous file-based communication.
665     - Updated to flush the fwknop iptables chains at start time.
666     - Bugfix for removing the wrong hash key in the knoptm IP cache.
667
668 fwknop-0.9.4 (09/17/2005):
669     - Bugfix for knoptm timing out new entries based on old time values
670       (this caused new rules to timed out too quickly).
671     - Added support for multiple users in REQUIRE_USERNAME keyword in
672       access.conf.
673     - Added the ability to display raw encrypted packet data in client
674       mode with --verbose.
675     - Created fwknop RPM for RPM-based Linux distributions.
676     - Bugfix for inappropriate redirects in command mode where the command
677       already contained a redirect.
678
679 fwknop-0.9.3 (08/27/2005):
680     - Added an on-disk cache of md5 sums so that the md5 sum check can
681       survive restarts of fwknop.
682     - Updated install.pl to be more friendly to Mac OS X (Blair Zajac).
683     - Updated to allow access.conf variables to have values instead of just
684       being defined.
685     - Started on additional server authentication mode code (re-worked MD5
686       sum calculation to allow packet format to be extended by taking into
687       account the fwknop version number).
688
689 fwknop-0.9.2 (08/06/2005):
690     - Added FILE_PCAP data collection method when running in server mode.
691       This is a more general way of getting packets than the ULOG_PCAP
692       mode since then a normal ethernet sniffer can be used to build the
693       file.
694     - Added the ability to re-open a pcap file if its size shrinks (i.e.
695       it gets rotated out or something).
696     - Bugfix for multiple rules with the same timestamp not being timed out
697       by knoptm.
698     - Integrated spoofing capability directly within fwknop (instead of
699       using the knopspoof command) through the use of "require Net::RawIP".
700     - Better multi-protocol support in server mode.  Tcp and icmp packets
701       are properly decoded now.
702
703 fwknop-0.9.1 (07/29/2005):
704     - Added the ability to specify multiple ports/protocols to access on a
705       server with the --Access command line option.
706     - Added the ability to spoof SPA packets over icmp and tcp protocols.
707     - Added the ability to restrict access at the server to only those
708       ports defined in the OPEN_PORTS keyword.  This option is controled by
709       a new keyword "PERMIT_CLIENT_PORTS".
710     - Bugfix for MD5 sum not being properly calculated over decrypted data.
711       This allowed old packets that contained additional garbage data to
712       be replayed against an fwknop server.
713     - Updated to fall back to getpwuid() if getlogin() fails (Blair Zajac).
714     - Added --ipt-list to list all current rules in the FWKNOP iptables
715       chains.
716     - Added --ipt-flush to flush all current rules in the FWKNOP iptables
717       chains.
718     - Bugfix for the installer dying if ~/lib already exists (Blair Zajac).
719     - Updated to delay the loading of server perl modules (Net::Pcap, etc.)
720       only if we are running in server mode.
721     - Bugfix for module directory paths in install.pl.
722
723 fwknop-0.9.0 (05/29/2005):
724     - Added new authorization mode that uses Net::Pcap to read packets
725       out of a file that is written to by the ulogd pcap writer (also
726       stubbed in code to sniff packets directly off the wire).  This
727       authorization mode only requires single packets, and has many
728       characteristics that are better than simple port knocking, including
729       being non-replayable, and much more data can be sent.  This mode
730       is now the default for both the server and the client.
731     - Made the execution of knopmd optional depending on whether AUTH_MODE
732       is a pcap mode (e.g. ULOG_PCAP or PCAP).
733     - Added --Spoof-src argument so that encrypted packets can be spoofed
734       via /usr/sbin/knopspoof.
735     - Added /usr/sbin/knoptm so that firewall rules can be timed-out when
736       the server is running in PCAP mode even if new packets don't appear
737       on the wire.
738     - Updated fwknop man page to talk about the new pcap-based
739       authorization mode.
740
741 fwknop-0.5.0 (03/19/2005):
742     - Added ALERTING_METHOD to allow syslog and/or email reporting to be
743       disabled (there is a dedicated file /etc/fwknop/alert.conf that
744       governs this behavior, and both fwknop and knopwatchd reference this
745       file).
746     - Bugfix for distinguishing OPT field associated with --log-tcp-options
747       vs. --log-ip-options.
748     - Added install_perl_module() install.pl from psad to provide a
749       consistent installation interface.
750     - Applied patch to only install perl modules that are not already
751       installed (Blair Zajac).
752     - Added --last-cmd option to allow fwknop to be executed with command
753       line arguments from the previous execution (they are saved in
754       ~/.fwknop.run).
755     - Added --Home-dir option to allow the home directory to be manually
756       specified.
757     - Re-worked get_homedir() to be more friendly to systems that do not
758       necessarily have /etc/passwd (e.g. OS X).
759     - Added configuration preservation and querying for which syslog
760       daemon is running to install.pl.  These features were adapted from the
761       psad installer (http://www.cipherdyne.org/psad).
762     - Added IPTables::ChainMgr.  Fwknop uses this module to maintain
763       dedicated chains to which access rules are added.
764     - Added IPTables::Parse, which is used internally by IPTables::ChainMgr.
765     - Added __WARN__ and __DIE__ handlers so errors can easily be collected.
766
767 fwknop-0.4.2 (09/27/2004):
768     - Added init script for Fedora systems.
769     - Added --Kill, --Restart, and --Status modes (this fixes the generic
770       init script which depends on these arguments).
771
772 fwknop-0.4.1 (09/14/2004):
773     - Bugfix for legacy posf code in fwknop and variable in fwknop.conf.
774
775 fwknop-0.4 (09/10/2004):
776     - Added ability to specify multiple IPs/networks in a single SOURCE
777       definition.
778     - Better examples section in the fwknop manpage.
779     - Bugfix to make sure EMAIL_ADDRESSES variable does not contain commas
780       (any commas are translated into spaces).
781     - Added LICENSE file.
782
783 fwknop-0.3 (08/21/2004):
784     - Bugfix for tracking knock sequences by source IP address.
785     - Bugfix for knock sequence timeouts.
786     - Removed old passive OS fingerprinting code in favor of the p0f
787       strategy.
788     - Added support for taking encryption keys from a file specified on
789       the command line.
790     - Update to send "sequence decrypt failed" email message only if
791       decryption failed for all encrypt sequence SOURCE blocks.
792
793 fwknop-0.2 (07/31/2004):
794     - Implemented remote username checking in encrypted sequences.
795     - Added support for icmp in knock sequences.
796     - Added protocol rotation option for encrypted sequences.
797     - Added code for multiple SOURCE access blocks with the same source
798       net/IP.
799     - Added KNOCK_LIMIT access control variable to limit the number of
800       times a particular knock sequence is honored.
801     - Added email alerts.
802
803 fwknop-0.1 (07/08/2004):
804     - Initial release.
Note: See TracBrowser for help on using the browser.