root/fwknop/tags/fwknop-1.8.4-pre1/ChangeLog

Revision 816, 24.7 kB (checked in by mbr, 1 year ago)
  • Added --interface command line argument to install.pl to allow the

sniffing interface to be specified from the command line. Also updated
install.pl to enforce a 10-try maximum for attempting to accept a valid
interface name from the command line (LANG env issues can exist
sometimes).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 fwknop-1.8.4 (11//2007):
2     - Added the ability to force the fwknopd and knoptm daemons to restart
3       themselves (via knopwatchd) after a configurable timeout (see the
4       ENABLE_VOLUNTARY_EXITS and EXIT_INTERVAL variables in the
5       /etc/fwknop/fwknop.conf file). This feature is for those that want
6       fwknopd to go through its initialization routine periodically just in
7       case there is a logic (or other) bug that might result in fwknopd not
8       accepting a valid SPA packet. NOTE: This feature is disabled by default,
9       and is not normally needed since fwknopd is quite stable in most
10       deployments.
11     - Minor bugfix to have knopwatchd generate syslog messages whenever an
12       fwknop daemon needs to be restarted.
13     - Added --interface command line argument to install.pl to allow the
14       sniffing interface to be specified from the command line. Also updated
15       install.pl to enforce a 10-try maximum for attempting to accept a valid
16       interface name from the command line (LANG env issues can exist
17       sometimes).
18
19 fwknop-1.8.3 (11/17/2007):
20     - Updated external IP resolution to point to http://www.whatismyip.org,
21       and added http://www.cipherdyne.org/cgi/clientip.cgi as a backup site
22       for fwknop IP resolution.
23     - Added storage of source IP along with SPA MD5 sum. This allows the user
24       to infer which networks are more hostile if an SPA packet is replayed.
25     - Added SPA packet hex dumps in 'fwknopd --debug' mode so that the
26       integration of third-party encryption algorithms is easier to
27       troubleshoot. Sean Greven contributed a patch for this.
28     - Reinstated the legacy port knocking mode. It appears that all encrypted
29       output from the updated Crypt::Rijndael module is at least 32 bytes
30       long, so port knocking sequences are now 32 bytes long as well (they
31       were previously 16 bytes long in old versions of fwknop).
32     - Bugfix to ensure the key length is at least 8 chars in --get-key mode.
33     - Minor update to remove init message on OS X install.
34     - Updated install.pl to set the LANG environmental variable to
35       "en_US.UTF-8". This should fix the problem where the output of ifconfig
36       was not interpreted correctly if the locale LANG setting is not English.
37     - Implemented verbose email alerting by setting the ALERTING_METHODS
38       variable to "verbose". This instructs fwknopd to generate a new email
39       message for each message that it normally logs vis syslog (this feature
40       is not the default, and must be manually enabled).
41
42 fwknop-1.8.2 (09/15/2007):
43     - Added fwknopd server support for Mac OS X. The Darwin uname return
44       string is detected and this enables Darwin-specific installation code in
45       install.pl.
46     - Updated to not print sensitive key/password information in --debug mode
47       with fwknopd.
48     - Bugfix for install.pl on Windows 2003 Server running under Cygwin where
49       'uname -o' output is reported 'Gygwin' for some reason.
50     - Added --Cygwin-install command line argument to install.pl to force
51       client-only fwknop install on Cygwin systems.
52     - Added --OS-type command line argument to install.pl to allow the user to
53       force the installation type.
54     - Updated to version 1.04 of Crypt::Rijndael. This fixes incompatibilities
55       between SPA packets between 64-bit and 32-bit platorms.
56     - Bugfix to enforce a maximum of 20 tries to read a password from stdin.
57     - Applied TCP options parsing fix from psad for invalid zero or one length
58       fields that break TLV encoding (this is for fwknopd, and only applies to
59       the legacy port knocking mode).
60     - Added code to fwknopd to check to see if there are any state tracking
61       rules in place within the local iptables or ipfw policy.
62     - Made syslog identity, facility, and priority configurable (applied code
63       from the psad project).
64     - Implemented --fw-list for ipfw firewalls.
65     - Bugfix for knoptm removing ipfw rules too quickly after not timing out
66       previously instantiated rules properly.
67     - Implemented smarter cache removal strategy in knoptm so that rules that
68       are manually removed from the running iptables or ipfw policy are also
69       removed from the cache.
70     - Added /var/log/fwknop/errs/fwknopd.{warn,die} tracking to the fwknopd
71       daemon for the PCAP modes of collecting packet data. Added
72       knoptm{warn,die} files for knoptm as well.
73     - Bugfix to import the GnuPG::Interface module in --get-key mode.
74     - Bugfix to send source IP as a part of the command message in command
75       mode so that REQUIRE_SOURCE_ADDRESS controls can be applied.
76     - Added --Test-mode to fwknop client so that SPA packets can be built but
77       never sent over the network.
78
79 fwknop-1.8.1 (06/06/2007):
80     - Bugfix to ensure that the "keep-state" directive is added to firewall
81       rules on systems running the ipfw firewall.
82     - Added the --Save-packet and --Save-packet-file command line arguments
83       to the fwknop client. These options instruct fwknop to save a copy of
84       an encrypted SPA packet before it is sent across the network.
85     - Bugfix to find minimal unused ipfw rule number for ipfw firewalls. This
86       fixes an issue where ipfw rules added by fwknopd could be inserted at
87       the same position as rules from an existing ipfw policy. While ipfw
88       allows duplicate rules, whenever such a rule is deleted by its rule
89       number all matching rules are deleted.
90
91 fwknop-1.8 (06/03/2007):
92     - Added support for ipfw firewalls (found on *BSD systems).  The
93       IPTables::Parse and IPTables::ChainMgr modules are not installed on
94       such systems.
95     - Added gpg-agent support for both the fwknop client and fwknopd SPA
96       server.
97     - Updated client-only installation mode to restrict perl module
98       installation to those module that are actually required by the fwknop
99       client. This results in clean installs of the fwknop client on Windows
100       systems running Cygwin.
101     - Added --Defaults to install.pl so that fwknop can be installed without
102       prompting the user to answer any questions. This is to make it easier
103       to install fwknop on the Source Mage Linux distro.
104     - Consolidated daemon config files into the fwknop.conf file (except for
105       the access.conf file). This simplifies the configuration of fwknop.
106     - Added recursive variable resolution in the parsing routines for the
107       fwknop.conf file. This allows variable values to contain embedded
108       variables.
109     - Added init script for FreeBSD systems.
110     - Added --BSD-install command line argument to install.pl. This is not
111       normally necessary since the installer should detect installations on
112       *BSD systems, but this option can force this behavior.
113     - Updated knopmd and knopwatchd to use safe_malloc() instead of malloc().
114     - Bugfix to never time out rules from SOURCE blocks with FW_ACCESS_TIMEOUT
115       set to zero
116
117 fwknop-1.0.1 (01/09/2007):
118     - Updated fwknopd to allow the GPG_REMOTE_ID variable to have the value
119       "ANY" to allow a SOURCE block to match on arbitrary remote gpg signing
120       keys (Leland Weathers).
121     - Bugfix to allow OPEN_PORTS to be omitted in access.conf in favor of
122       having only PERMIT_CLIENT_PORTS enabled (reported by Raul Siles).
123     - Added the cd_rpmbuilder script to make it easy to build RPM's out of
124       CipherDyne projects by automatically downloading the project .tar.gz and
125       .spec files from http://www.cipherdyne.org/.
126
127 fwknop-1.0 (11/05/2006):
128     - Bugfix for OpenSSH-4.3p2 patch to make sure to include the spa.h header
129       file.
130     - Bugfix for access hashes accumluating when multiple ports are requested
131       to be opened by a client.
132     - Better validation of IPT_AUTO_CHAIN variable so that the from_chain
133       cannot be identical to the to_chain.
134     - Bugfix in RPM to install List::MoreUtils.
135     - Bugfix so that the MD5 sum for an SPA packet is not examined for each
136       SOURCE block.  This fixes a problem where an SPA packet could appear to
137       be replayed if multiple SOURCE blocks are defined in
138       /etc/fwknop/access.conf.
139     - Refactored main SPA access loop so that it is clearer how and when SPA
140       clients are granted access.
141     - Better handling of GnuPG key identifier strings (they can now contain
142       spaces, and syslog messages wrap the identifiers with double quotes).
143     - Added source IP address to command string in the SPA packet so that
144       the REQUIRE_SOURCE_ADDRESS criteria can be applied by the fwknopd
145       server.
146     - Added --Show-last-cmd and --Show-host-cmd args to fwknop so that the
147       last fwknop command and the last fwknop host commands can be viewed.
148     - Added the svn revision number to --Version and --help output.
149
150 fwknop-0.9.9 (10/15/2006):
151     - Added REQUIRE_SOURCE_ADDRESS (disabled by default) to force fwknop
152       clients to know their source IP address (i.e. -s cannot be used).  So,
153       either fwknop clients have to use -R to resolve their externally
154       routable address, or they must just know what it is.
155     - Updated to Net-RawIP-0.21_03 for compatibility with gcc-4.x compilers.
156     - Added List-MoreUtils-0.22 which is a dependency of the new Net::RawIP
157       module.
158     - Bugfix to restore "start" functionality in Gentoo init script.
159     - Bugfix to use the IPT_OUTPUT_FILE and IPT_ERROR_FILE configuration
160       variables in fwknopd.
161     - Added KNOPTM_IPT_OUTPUT_FILE and KNOPTM_IPT_ERROR_FILE variables
162       specifically for the knoptm daemon so that it can use IPTables::ChainMgr
163       completely independently of fwknopd (this removes a potential race
164       condition between fwknopd and knoptm).
165
166 fwknop-0.9.8 (09/17/2006):
167     - Added the ability to ignore old SPA packets through use of the
168       client-side time stamp.  This means that an attacker cannot intercept an
169       SPA packet, prevent it from being forwarded to its intended destination,
170       and then put the packet on the wire at some time outside of the allowed
171       time window.  There are two new configuration options in fwknop.conf
172       "ENABLE_SPA_PACKET_AGING" and "MAX_SPA_PACKET_AGE" that control the
173       length of the acceptable time window (2 minutes by default).  This
174       requires some level of synchronization between the fwknop client and the
175       fwknopd server, but this is not onerous through the use of NTP.  This
176       feature is enabled by default, and the idea for it was contributed by
177       Sebastien J.
178     - Completely re-worked IPTables::ChainMgr to support the return of
179       iptables error messages that are collected via stderr.  This is critical
180       to fixing any bugs where fwknopd could die as a result of a poorly
181       crafted iptables command.
182       but no information would be returned to the user.
183     - Added the ability to specify the position for both the jump rule into
184       the fwknopd chains as well as the position for new rules within the
185       fwknopd chains via the -I argument to iptables.  This fixes a bug where
186       the user was given the impression that the IPTABLES_AUTO_RULENUM would
187       accomplish this (IPTABLES_AUTO_RULENUM has been removed).
188     - Updated fwknopd to require < 1500 byte payload length before attempting
189       to decrypt.  Also, GnuPG decrypts are not attempted unless the encrypted
190       payload is at least 400 bytes long (this is conservative since even
191       encrypting a single byte with a 1024-bit key will result in about 340
192       bytes of encrypted data).
193     - Added the --gpg-default-key option to have fwknop use the default GnuPG
194       key that is defined in the ~/.gnupg/options file.
195     - Added the --URL command line argument so that a URL other than the
196       default http://www.whatismyip.com/ can be provided by the user for
197       external IP resolution (suggested by Sebastien J.).
198     - Updated to be more rigorous with md5 sums; we now require that the
199       md5_base64() function actually returns a non-null result.
200     - Bugfix to make sure that only the users associated with the a specific
201       REQUIRE_USERNAME value (in a specific SOURCE block in access.conf) are
202       granted the appropriate access even if a valid encrypted packet is
203       constructed from a different user name (by an fwknop client).
204     - Populated the _debug option in the IPTables::ChainMgr module, and also
205       added a _verbose option so that the specific iptables commands can
206       actually be seen as IPTables::ChainMgr functions are called.
207     - Added code to install.pl to update command paths in fwknop.conf and
208       knopwatchd.conf if any of the paths are broken (i.e. the local system
209       does not conform to the default paths).  By default this only happens if
210       the user does not want old configs to be merged, but to override this
211       use the new --path-update command line argument to install.pl.
212     - Added the --Skip-mod-install command line argument to install.pl to
213       allow all perl module installs to be skipped.
214     - Added the --force-mod-regex command line argument to install.pl to allow
215       a regex match on perl module names to force matching modules to be
216       installed.
217     - Minor bugfix to generate better (i.e. closer to those that Firefox
218       generates) http requests to http://www.whatismyip.com/).
219     - Adapted Mate Wierdl's RPM patch from the psad project so that the fwknop
220       RPM builds on x86_64 systems.
221     - Removed iptables requirement in RPM spec file because fwknop may be
222       installed on a system just to run the fwknop client.
223     - Updated to email username mismatch errors.
224
225 fwknop-0.9.7 (08/04/2006):
226     - Added fwknop_serv to function as minimal TCP server over which SPA
227       packets can be sent.  This allows SPA to be compatible with the Tor
228       network, which requires that a virtual circuit is established before
229       traffic can be sent.
230     - Updated to Crypt::CBC-2.18 after a vulnerability was discovered in
231       previous versions of Crypt::CBC that caused weak ciphertext to be
232       generated for algorithms that have blocksizes greater than 8 bytes (such
233       as Rijndael used by fwknop).  Manually specifying initialization vectors
234       is not necessary now.
235     - Updated SSH patch to support OpenSSH-4.3p2.
236     - Bugfix to make sure to create /var/* directories if they don't exist
237       (such as when /var is a tmpfs).
238     - Bugfix (Dwayne Rightler) to restore -w IP lookup functionality after
239       format change on data returned by whatismyip.com.
240     - Bugfix to wrap SPA Rijndael decryption with eval{} so that fwknopd does
241       not die if there are problems trying to decrypt data.  This is necessary
242       because of the security vulnerability fix in Crypt::CBC that creates
243       some incompatibilities in different versions of Crypt::CBC.
244     - Added "--L-host" command line argument so that the arguments used for
245       multiple hosts are preserved and can be recalled.
246     - Changed default user-agent setting for whatismyip.com lookups to
247       Firefox/1.0.5.4; there is no need to gratuitously advertise fwknop
248       traffic.
249     - Updated GunPG HOWTO to provide a step-by-step guide to getting fwknop
250       Single Packet Authorization working with GnuPG.
251     - Updated to derive perl module versions from the VERSION files within
252       each of the perl module source directories.
253
254 fwknop-0.9.6 (01/13/2006):
255     - Added GPG based authentication capability for SPA packets.  This new
256       mode can be configured to require that a GPG message be signed with a
257       particular key or set of keys.
258     - In GPG mode, the fwknop client now prints GPG errors to stdout if not
259       running with --gpg-no-batch-mode.
260     - Added the ability to require that the client know the UNIX crypt()
261       password associated with a username on the server side.  This
262       functionality is enabled on the fwknop client with the "--Server-auth
263       crypt" command line argument, and the REQUIRE_AUTH_METHOD variable in
264       /etc/fwknop/access.conf on the fwknopd server.
265     - Added patch against OpenSSH-4.2p1 to integrate SPA mode.  This patch
266       adds a "-K <fwknop cmd line>" argument to the SSH client so that
267       fwknop can be executed directly before an SSH connection is made.
268     - Separated server and client portions of fwknop into "fwknopd" and
269       fwknop repectively.  This will allow better portability to be
270       developed since the client and server pieces can be developed more
271       independently.  NOTE: With so many changes, it is probably a good idea
272       to not preserve old fwknop configs via install.pl.
273     - Renamed all relevant fwknopd command and file paths to support new
274       fwknopd server component.
275     - Added --quiet mode (this is used by default in the OpenSSH patch).
276     - Removed legacy port knocking installation in install.pl (fwknopfifo,
277       and fwdata file) unless the data collection mode is set to syslog or
278       syslog-ng for legacy iptables log messages.
279     - Added inode checking for PCAP_PKT_FILE. This helps to ensure that log
280       rotation schemes don't interfere with reading packets out of the file
281       since this check is size independent.
282     - Bugfix for Makefile debug mode.
283     - Added compilation check for perl programs in install.pl before
284       installation into the filesystem.
285     - Bugfix for knopwatchd to make sure it can actually restart all running
286       daemons properly.
287     - Added --force-mod command line argument to install.pl to allow the user
288       to force all perl modules to be be installed regardless of whether a
289       module exists in the system perl lib tree.
290     - Added --no-save-args to fwknop so that existing .fwknop.run file can
291       be preserved (helps to testing new features of fwknop client).
292     - Removed useless --encrypt command line argument (only the old shared
293       port knock sequences are not encrypted).
294
295 fwknop-0.9.5 (10/02/2005):
296     - Added the ability to resolve the external IP associated with the
297       local network via http://www.whatismyip.com.  This is a more secure
298       method of accomplishing what the -s option performs.  The new
299       command line option is --whatismyip (or just -w).
300     - Updated fwknop to communicate with knoptm via a UNIX domain socket
301       instead of the previous file-based communication.
302     - Updated to flush the fwknop iptables chains at start time.
303     - Bugfix for removing the wrong hash key in the knoptm IP cache.
304
305 fwknop-0.9.4 (09/17/2005):
306     - Bugfix for knoptm timing out new entries based on old time values
307       (this caused new rules to timed out too quickly).
308     - Added support for multiple users in REQUIRE_USERNAME keyword in
309       access.conf.
310     - Added the ability to display raw encrypted packet data in client
311       mode with --verbose.
312     - Created fwknop RPM for RPM-based Linux distributions.
313     - Bugfix for inappropriate redirects in command mode where the command
314       already contained a redirect.
315
316 fwknop-0.9.3 (08/27/2005):
317     - Added an on-disk cache of md5 sums so that the md5 sum check can
318       survive restarts of fwknop.
319     - Updated install.pl to be more friendly to Mac OS X (Blair Zajac).
320     - Updated to allow access.conf variables to have values instead of just
321       being defined.
322     - Started on additional server authentication mode code (re-worked MD5
323       sum calculation to allow packet format to be extended by taking into
324       account the fwknop version number).
325
326 fwknop-0.9.2 (08/06/2005):
327     - Added FILE_PCAP data collection method when running in server mode.
328       This is a more general way of getting packets than the ULOG_PCAP
329       mode since then a normal ethernet sniffer can be used to build the
330       file.
331     - Added the ability to re-open a pcap file if its size shrinks (i.e.
332       it gets rotated out or something).
333     - Bugfix for multiple rules with the same timestamp not being timed out
334       by knoptm.
335     - Integrated spoofing capability directly within fwknop (instead of
336       using the knopspoof command) through the use of "require Net::RawIP".
337     - Better multi-protocol support in server mode.  Tcp and icmp packets
338       are properly decoded now.
339
340 fwknop-0.9.1 (07/29/2005):
341     - Added the ability to specify multiple ports/protocols to access on a
342       server with the --Access command line option.
343     - Added the ability to spoof SPA packets over icmp and tcp protocols.
344     - Added the ability to restrict access at the server to only those
345       ports defined in the OPEN_PORTS keyword.  This option is controled by
346       a new keyword "PERMIT_CLIENT_PORTS".
347     - Bugfix for MD5 sum not being properly calculated over decrypted data.
348       This allowed old packets that contained additional garbage data to
349       be replayed against an fwknop server.
350     - Updated to fall back to getpwuid() if getlogin() fails (Blair Zajac).
351     - Added --ipt-list to list all current rules in the FWKNOP iptables
352       chains.
353     - Added --ipt-flush to flush all current rules in the FWKNOP iptables
354       chains.
355     - Bugfix for the installer dying if ~/lib already exists (Blair Zajac).
356     - Updated to delay the loading of server perl modules (Net::Pcap, etc.)
357       only if we are running in server mode.
358     - Bugfix for module directory paths in install.pl.
359
360 fwknop-0.9.0 (05/29/2005):
361     - Added new authorization mode that uses Net::Pcap to read packets
362       out of a file that is written to by the ulogd pcap writer (also
363       stubbed in code to sniff packets directly off the wire).  This
364       authorization mode only requires single packets, and has many
365       characteristics that are better than simple port knocking, including
366       being non-replayable, and much more data can be sent.  This mode
367       is now the default for both the server and the client.
368     - Made the execution of knopmd optional depending on whether AUTH_MODE
369       is a pcap mode (e.g. ULOG_PCAP or PCAP).
370     - Added --Spoof-src argument so that encrypted packets can be spoofed
371       via /usr/sbin/knopspoof.
372     - Added /usr/sbin/knoptm so that firewall rules can be timed-out when
373       the server is running in PCAP mode even if new packets don't appear
374       on the wire.
375     - Updated fwknop man page to talk about the new pcap-based
376       authorization mode.
377
378 fwknop-0.5.0 (03/19/2005):
379     - Added ALERTING_METHOD to allow syslog and/or email reporting to be
380       disabled (there is a dedicated file /etc/fwknop/alert.conf that
381       governs this behavior, and both fwknop and knopwatchd reference this
382       file).
383     - Bugfix for distinguishing OPT field associated with --log-tcp-options
384       vs. --log-ip-options.
385     - Added install_perl_module() install.pl from psad to provide a
386       consistent installation interface.
387     - Applied patch to only install perl modules that are not already
388       installed (Blair Zajac).
389     - Added --last-cmd option to allow fwknop to be executed with command
390       line arguments from the previous execution (they are saved in
391       ~/.fwknop.run).
392     - Added --Home-dir option to allow the home directory to be manually
393       specified.
394     - Re-worked get_homedir() to be more friendly to systems that do not
395       necessarily have /etc/passwd (e.g. OS X).
396     - Added configuration preservation and querying for which syslog
397       daemon is running to install.pl.  These features were adapted from the
398       psad installer (http://www.cipherdyne.org/psad).
399     - Added IPTables::ChainMgr.  Fwknop uses this module to maintain
400       dedicated chains to which access rules are added.
401     - Added IPTables::Parse, which is used internally by IPTables::ChainMgr.
402     - Added __WARN__ and __DIE__ handlers so errors can easily be collected.
403
404 fwknop-0.4.2 (09/27/2004):
405     - Added init script for Fedora systems.
406     - Added --Kill, --Restart, and --Status modes (this fixes the generic
407       init script which depends on these arguments).
408
409 fwknop-0.4.1 (09/14/2004):
410     - Bugfix for legacy posf code in fwknop and variable in fwknop.conf.
411
412 fwknop-0.4 (09/10/2004):
413     - Added ability to specify multiple IPs/networks in a single SOURCE
414       definition.
415     - Better examples section in the fwknop manpage.
416     - Bugfix to make sure EMAIL_ADDRESSES variable does not contain commas
417       (any commas are translated into spaces).
418     - Added LICENSE file.
419
420 fwknop-0.3 (08/21/2004):
421     - Bugfix for tracking knock sequences by source IP address.
422     - Bugfix for knock sequence timeouts.
423     - Removed old passive OS fingerprinting code in favor of the p0f
424       strategy.
425     - Added support for taking encryption keys from a file specified on
426       the command line.
427     - Update to send "sequence decrypt failed" email message only if
428       decryption failed for all encrypt sequence SOURCE blocks.
429
430 fwknop-0.2 (07/31/2004):
431     - Implemented remote username checking in encrypted sequences.
432     - Added support for icmp in knock sequences.
433     - Added protocol rotation option for encrypted sequences.
434     - Added code for multiple SOURCE access blocks with the same source
435       net/IP.
436     - Added KNOCK_LIMIT access control variable to limit the number of
437       times a particular knock sequence is honored.
438     - Added email alerts.
439
440 fwknop-0.1 (07/08/2004):
441     - Initial release.
Note: See TracBrowser for help on using the browser.