2 # NOTE: Quite a few patches and suggestions come from other sources, to whom
3 # I'm greatly indebted, even if no names are mentioned.
5 # Thanks to the Coombs Computing Unit at the ANU for their continued support
6 # in providing a very available location for the IP Filter home page and
9 # Thanks also to all those who have contributed patches and other code,
10 # and especially those who have found the time to port IP Filter to new
13 4.1.33 - Release 16 August 2009
15 2838417 tru64 compile is not error free
17 2837931 wrong mode selected in ipf program for hash-entries
19 2828188 soft lockups on Linux
21 2826168 load_http can make ippool core dump
23 2825150 IPL_LOGMAX used to index some arrays
25 2825084 ipv6 fragments should not be allowed past 64k
27 2824713 ipfstat top output alternates between entries and nothing
29 2824712 ipfstat top output is shows negative ttl
31 2820965 a single bad ipv6 extension header should not impact others
33 2818197 ignored fragment bits defined as being reserved
35 2817667 IPv6 fragment header verification needs attention
37 2817098 fr_getrulen() finds the wrong rule
39 2817096 fr_rulen is unused
41 2814988 4.1.32 RC5 does not compile on Tru64 5.1B-5
43 2825387 ipfilter 4-1-RELEASE won't build on RHEL 5.3 kernel 2.6.18..
45 2792185 no proxy modules are built on linux
47 2787359 ipmon prints loopback name incorrectly for linux
49 4.1.32 - Release 20 June 2009
51 2741019 Lingering states (Established/Listen - 5/0) in state table
53 2790920 Solaris U7 breaks ipfilter compilation
55 2790910 OOW issue on Solaris 10 v4.1.9
57 2706155 Reference to .symbol file missing in ipf.ko on FreeBSD/AMD64
59 2787870 4.1.32rc2 ipfstat -nio causes oops on Fedora 10
61 2785189 Networking stops on x86_64 RHEL ES4 U6 (2.6.9-67.ELsmp)
63 2706137 FreeBSD/AMD64 build is still broken in 4.1.32 RC5
65 2702887 use of PBR/fastroute causes panic with ipv6
67 2657365 IPFilter 4.1.32 RC4 fails to compile on FreeBSD7/AMD64
69 2671913 regression test in7 fails to execute
71 2650040 cannot compile updated kernel source for 4.10
73 2598625 parsing empty config file results in an error
75 2698656 test parsing empty config files
77 2597956 not all pointers in a clone are reset
79 2543934 nat_t gets assigned ifp too early
81 2539808 Compiling with Solaris10 patch 138889-03 fails
83 2535795 No need to always bump fr_ref
85 2535778 Bad IPv6 packets droped by default
87 4.1.32 RC1 - Release 1 January 2009
89 2031730 4.1.31 Nat drops fragmented packets after the first
91 2214661 ipf doesn't handle IPv6 fragments
93 2473273 NAT removed before RST/ICMP sent
95 2216500 fin_state serves no purpose
97 2424604 adding random MD5 data causes panic
99 2304435 Ineffecient lock usage in logging
101 2216491 fin_nat serves little purpose
103 1859718 IPF 4.1.28 repeated kernel panic Solaris 9 32bit
105 2055619 duplicating a free'd packet will fail
107 2042949 Excessive locking when creating nat_t
109 2035610 nat_update does not need to get locks
111 2214658 ipf mostly ignores locking in NetBSD
113 1979427 Memory leak in user utilities - token never freed (rel br)
115 * try to guess if SUNWspro wants -m64
117 2063742 4.1.30 breaks builds on Solaris 8
119 4.1.31 - Release 27 July 2008
121 * compiling arc4random.c is challenging on solaris 10 or solaris without gcc
123 * SunOS4 doesn't have a curproc, but it does have u.
125 * The fix for 2020447 generated random port numbers but not within the
126 range specified in the map rule. Add in a regression test to verify
127 that the "random" part works.
129 4.1.30 - Release 24 July 2008
131 2022104 solaris's driver.conf cannot set timeout values
133 2020447 IPFilter's NAT can undo name server random port selection
135 1988795 NetBSD doesn't build with kernel malloc stats
137 1988782 fr_movequeue can take a short cut
139 1988669 first nat creation failure prevents further success
141 1988668 hostmap searching does not work properly
143 * on some 64bit architectures (such as alpha), the addrfamily_t is packed
144 differently, throwing off the calculations for adf_len
146 * one too many READ_ENTERs in ip_sync code.
148 * clean up fr_fastroute a little by removing some #ifdefs and pushing the
149 code around a bit to use the same variables (NetBSD)
151 * more recent NetBSDs use VOP related macros differently
153 4.1.29 - Release 14 April 2008
155 * #ifdef warning fixes from Victor M Blood (FreeBSD) - #1821249
157 * An error in NAT'ing a packet that is being fed through the fastroute
158 code (i.e return-icmp/return-rst/to/dup-to) can lead to a memory leak
161 * NetBSD has removed rnh_walktree
163 * Remove exit/enter of ipf_global lock as they are now no longer held by
164 what calls fr_auth_ioctl()
166 * add in checks to see that a symbol is defined before using it in a test
167 case with C preprocessor #if statements
169 * add setting TCP TIME_WAIT timer to list of tuneables
171 * call of _pullup() high up in _icmp() means later checks for fin_dlen
172 that are less than 8 are not required.
174 * cleanup some errors in merging patches
176 * merge changes from netbsd for updated poll apis
178 * merge white space cleanup
180 * preserve and restore the fin_flx bits from the packet before it is
181 authorised to after it is.
183 * remove old comment that is no longer accurate
185 * sunos5x86 Makefile target has been removed from the Makefile
187 * try and optimise fr_movequeue and short cut some cases where there
188 is no requirement to change the position of the object on the list.
190 * update ip_compat.h for NetBSD changes with POLLWAKEUP
192 * use defined() in #if statements to make sure something has a value
195 1785476 more state entries might be created for single connection
197 1821247 holding ipf_global lock over call to fr_ioctlswitch() causes
198 a panic for FreeBSD with INVARIANTS - move holding locks in ioctl
199 processing to only where they are necessary.
201 1821358 errors can lead to mbufs not being freed
203 1825877 variables called min should be renamed to xmin
205 1835705 It is impossible to delete a state using SIOCDELST ioctl
207 1839009 Auth rules with both "quick" and "keep state" don't work
209 1839023 OS freeze: race condition in the auth code.
211 1839028 Potential problems in auth code
213 1855763 Fixed bug (#1838530) is reintoduced in the recent CVS commit
215 1872740 the ipfr_size tunable is ignored
217 1886836 open on devices not compiled in always succeed
219 1886965 sync code does not wakeup sleeping polls
221 1890025 sync code uses state table for nat objects
223 1915176 Use of "age X/Y" can lead to panic
225 4.1.28 - Release 16 October 2007
227 backout changes (B1) & (B2) as they've caused NAT entries to persist for
228 too long and possibly other side effects.
230 Still need to compile in our own radix.c for Solaris as the one in S10U4
231 has a different alignment of structure members (causes panic)
233 keep state doesn't work with multicast/broadcast packets (makes UPnP easier)
235 ippool -l may only lists every 2nd pool's contents
237 4.1.27 - Released 29 September 2007
239 SunOS5/replace script does not deal with i386 systems that have the
240 i86/amd64 directory pair.
242 make BSD/kupgrade try to build ip_rules.[ch] before complaining
244 Need to look for ipl.ko LKM on FreeBSD, not just ipf.ko
246 Cleanup SunOS5 Makefile pieces, removing CPU, sunos5x86; buildsunos needs
247 to drive 32bit cc builds differently for sparc/i386 now.
249 Update instructions for rebuilding FreeBSD kernels
251 Make the target "freebsd" work for building ipfilter
253 destroying NAT entries for blocked packets can lead to NAT table entry leak,
254 provide a counter of orphan'd NAT entries to track this problem.
256 4.1.26 - Released 24 September 2007
258 Fix build problem for Solaris prior to S10U4
260 4.1.25 - Released 20 September 2007
262 stepping through structures with ioctls can lead to the wrong things
263 being free'd and panics
265 if a NAT entry (such as an rdr) is created but the packet ends up being
266 blocked, tear down the NAT entry.
268 fix fragment cache preventing keep state from functioning
270 fix handling of \ to indicate a continued line in .conf files
272 include port ranges in the allowed input for ipf when using "port = ()"
274 only advance TCP state for packets on the leading edge of the window. (B1)
276 using ipnat -l can lead to memory corruption in high stress situations
278 track TCP sequence numbers with NAT so that it can do timeout advances
279 correctly inline with state
281 ICMP checksums for some redirect'd packets are not adjusted correctly.
283 IPv6 address components need to be explicitly cast to a 32bit pointer
284 boundary so that compilers don't try to access them as two 64bit
285 pieces (no guarantee is made that an Ipv6 address is on a 64bit
288 filling up the ipauth packet queue can lead to no more packets being
291 locking used to deref a nat entry causes a significant performance hit
293 m_pulldown isn't properly handled, leading to possible panics with ICMPv6
296 IPv6 fragment handling doesn't allow for "keep frag" to work
298 build on Solaris10 Update4 with pfhooks in the kernel
300 logging of Ipv6 packets with extension headers fix - Miroslaw Luc
302 4.1.24 - Released 8 July 2007
304 patch from Stuart Remphrey to address recursive mutex lock with TCP state
306 add hash table bucket stats display to ipnat -s
308 give ASSERT some teeth for user compiles
310 initialising ipf_global, ipf_frcache, ipf_mutex should all be done very
313 do some caddr_t cleanup, where possible
315 fr_ref no longer tracks the number of children rules in a group for head rules
317 make sure all BCOPY* have a value assigned to something
319 fix possible use of icmp pointer after pullup makes it invalid
321 resolve compile problems related to FreeBSD tree
323 4.1.23 - Released 31 May 2007
325 NAT was not always correctly fixing ICMP headers for errors
327 some TCP state steps when closing do not update timeouts, leading to
328 them being removed prematurely. (B2)
330 fix compilation problems for netbsd 4.99
332 protect enumeration of lists in the kernel from callout interrupts on
335 fix various problems with IPv6 header checks: TCP/UDP checksum validation
336 was not being done, fragmentation header parsed dangerously and routing
337 header prevented others from being seen
339 fix gcc 4.2 compiler warnings
341 fix TCP/UDP checksum calculation for IPv6
343 fix reference after free'ing ipftoken memory
345 4.1.22 - Released 13 May 2007
347 fix endless loop when flushing state/NAT by idle time
349 4.1.21 - Released 12 May 2007
351 show the number of states created against a rule with "-v" for ipfstat
353 fix build problems with FreeBSD
355 make it possible to flush the state table by idle time and TCP state
357 fix flushing out idle connections when state/NAT tables fill
359 print out the TCP state population with ipfstat/ipnat
361 stop creation of state table orphans via return-*/fastroute
363 fix printing out of rule groups - they now only appear once
365 4.1.20 - Released 30 April 2007
367 adjust TCP state numbers, making 11 closed (was 0) to better facilitate
368 detecting closing connections that we can wipe out when a SYN arrives
371 make it compile on Solaris10 Update3
373 structures used for ipf command ioctls weren't being freed in timeout
376 use NL_EXPIRE, not ISL_EXPIRE, for expiring NAT sessions
378 adjust TCP timeout values and introduce a time-wait specifc timeout
379 to get a better TCP FSM emulation and one that can hopefully do a better
380 job of cleaning up in a speedy fashion than previous
382 refactor the automatic flushing of TCP state entries when we fill up,
383 but use the same algorithm as before but now it hopefully works
385 only 2 out of 4 interface names were being changed by ipfs when
386 interface renaming was being used for state entries
388 add ipf_proxy_debug to ipf-T
390 matching of last fragments that had a number of bytes that wasn't a
393 some combinations of TCP flags are considered bad aren't picked up as such,
394 but these may be possible with T/TCP
396 4.1.19 - Released 22 February 2007
398 Fix up compilation problems with NetBSD and Solaris.
400 4.1.18 - Released 18 February 2007
402 fix compiling on Tru64
404 fix listing out filter rules with ipfstat (delete token at end of
405 the list and detect zero rule being returned.)
407 fix extended flushing of NAT tables (was clearing out state tables)
409 fix null-pointer deref in hash table lookup
411 fix NAT and stateful filtering with to/reply-to on destination interface
413 4.1.17 - Released 20 January 2007
415 make flushing pools that are still in use mark them for deletion and
416 have attempting to recreate them clear the delete flag
418 walking through the NAT tables with ioctls caused lock recursion
420 fix tracking TCP window scaling in the state code
422 4.1.16 - Released 20 December 2006
424 allow rdr rules to only differ on the new port number
426 when creating state entry orphans, leave them on the linked list but not
427 attached to the hash table and mark them visible as orphans in "ipfstat -sl"
429 log state removed when unloading differently to allow visible cues
431 return ipf ticks via SIOCGETGS for /dev/ipnat so "ipnat -l" can display ttl
433 abort logging a packet if the mbuf pointer is null when ipflog is called
435 Some NetBSD's have a selinfo.h instead of select.h
437 SIOCIPFFL was using copyoutptr and should have been using bcopy for /dev/ipauth
439 listing accounting rules using ioctl interface wasn't possible
441 fix leakage of state entries due to packets not matching up with NAT
443 improve ICMP error packet matching with state/NAT
445 fix problems with parsing and printing "-" as an interface name in ipnat.conf
447 4.1.15 - Released 03 November 2006
449 Add in automatic flushing of NAT, like state, table if it fills up too much
451 Update comments in the code for NAT checksum adjustments
453 Fix compiling on FreeBSD 5.4 and 6.0
455 prevent panics from read/write IOs trying to use uninitialised structures
457 Newer NetBSD should use malloc() instead of MALLOC() in the kernel where
458 the size is not staticly defined
460 Some gcc warning message cleanup from NetBSD
462 Missing include for <sys/filio.h> on Solaris for poll work
464 NetBSD now uses opt_ipfilter.h, not opt_ipfilter_log.h
466 4.1.14 - Released 04 October 2006
468 rewrite checksum alteration for ICMP packets being NAT'd to use a sane
469 algorithm that can be understood...now it needs better comments
471 fix 1 byte error in checksum validation perl script
473 remove unused files in lib directory
475 ipftest will say "bad-packet" if it has been freed rather than just "blocked"
477 make it possible to load IP address pools from external files in ippool.conf
479 update copyright messages in tools directory
481 consolidate ioctl hanlding source code into fil.c
483 make ipfstat, ippool, ipnat retrieve information via ioctls rather than /dev/kmem
485 4.1.13 - Released 4 April 2006
487 fix bug where null pointers introduced by proxies could cause a crash
489 pass out the rule flags with SIOCAUTHW
491 force loading NAT rules with bad proxy labels to cause an error
493 nat_state is used unsafely in calls to fr_addstate
495 make return-rst and return-icmp* work with auth rules
497 4.1.12 - Released 28 March 2006
499 poll support on FreeBSD/NetBSD needs to use selrecord/selwakeup
501 make the fastroute code used by ipftest invoke state/NAT
503 move verbose/debug macros out of fil.c and into ip_fil.h (for wider use)
505 remove unused code in fr_fastroute
507 fix NAT with rules that specify forward and reverise interfaces
509 add missing ipfsync_canread() and ipfsync_canwrite()
511 behaviour of \ on the end of a line in ipf.conf does not match older behaviour
513 remove duplicate statistics line output with "ipfstat -s"
515 4.1.11 - Released 19 March 2006
517 Patch for NAT with ipfsync from N. Ersen (SESCI) - www.enderunix.org
519 NetBSD coverity report fixes (from run 5)
521 Possible to reacquire ipf_auth without releasing it in some circumstances
523 Locking in FreeBSD's iplioctl for ipf_global isn't present like it shoudl be
525 Add poll support for platforms I can build on: NetBSD, FreeBSD, Solaris, Linux
527 Using auth rules to return "keep state" got broken with pushing fr_addstate
528 call into fr_firewall
530 all use of '!' in map/rdr rules to match use in ipf configs
532 add -L command line option to ipmon to set the default syslog facility
534 looking up a port number is more complex than needed in ipft_tx.c
536 allow lib/getport to work when neither tcp or udp are specified in a rule
538 remove some dead code from lib/addicmpc, lib/facpri.c, lib/icmpcode.c
540 program in some more cases where TCP packets fail an initial in-window
541 check but should be allowed to match
543 filter rule added with NAT/state handling of SIOCSTPUT doesn't properly
544 initialise all fields, making it possible to panic
546 simplify NAT ICMP error handling where it updates checksums
548 rename "min" variables to "xmin" on NetBSD to avoid problems with the
551 #ifdef's for NetBSD compile incorrect for pfil interface
553 support select/poll on NetBSD
555 copying out a packet with an auth rule fails (EFAULT) because the wrong
556 pointer is passed to copyoutptr
558 ip_len/ip_off where byte swapped twice instead of once for packets
559 going to be stored on the auth queue
561 change timeout queue manipulation functions to make fewer mutex calls
563 fix use of skip rules with groups
564 fix coding problems discovered by the coverity project for FreeBSD
566 update BPF program validation with FreeBSD changes
568 4.1.10 - Released 6 December 2005
570 Expand regression testing to cover more features
572 Add "coverage" build target for BSD
574 Fix building 64bit sparc target for Solaris
576 Add IPv6 mobility header to list of accepted keywords for V6 headers
578 Resolve locking problems on Solaris when sending RST/icmp packets
580 #ifdef's for IPFILTER_BPF need to check if words are defined before
581 using them in comparisons
583 Add checking for SACK permitted option in TCP SYN packets
585 Fix loading anonymous pools from inline rule configuration groups
587 Add -C command line option to ipftest
589 Include extra "const" from NetBSD
591 Don't require SIOCKSTLCK for SIOCSTPUT
593 Fix some use of "sticky" on NAT rules
595 Fix statistical counting of deleting state for TCP connections
597 Fix compile problems caused by changes to is_opt/is_optmsk in ip_sync.c
599 Fix TCP out-of-window (OOW) problems:
600 - window scaling turned off if one chose for its scale factor
601 - Microsoft Windows TCP sends the "next packet" to the right of the window
602 when using SACK and filling in a hole
604 4.1.9 - Released 13 August 2005
606 make ipfilter fix IPv4 header checksums for outgoing packets if BRIDGE_IPF
607 is defined when compiled.
609 move the definition of SIOCPROXY from ip_nat.h to ip_proxy.h
611 make the BSD/upgrade script more instructive about the requiements for
612 ip_rules.[ch] when it is run
614 register for interface events on FreeBSD (>5.2.1) and NetBSD so that
615 "ipf -y" is not not requried to tell ipfilter about interface changes.
617 for "quick" rules that do "keep state", move the state adding into the rule
618 evaluation so that we can detect it failing as rules are evaluated and
619 continue on to the next rather than wait until we're done and it's too late
620 to recover for more rule processing.
622 mark ICMP packets advertising an MTU that's too small as being bad
624 rework ipv6 header parsing to get better code reuse and fix logic errors
625 in dealing with ipv6 packets containing fragment headers. Also, where a
626 protocol handler was doing both v4 & v6, make a seperate function for each.
628 build for both amd64 and i86pc (32bit) on Solaris10 and later, if possible
630 include start of work to get IPFilter working on AIX 5.3
632 Use FI_ICMPERR flag rather than try to compute its equivalent all the time
634 Rewrork IPv6 extension header parsing to get better code reuse
636 Add missing timeout on Linux
638 Fix for locking when reading from ipsync (Frank Volf)
640 Fix insertion/appending of rules that use a collection number
642 Somehow turning up the spl knob to splnet disappeared on platforms that still
643 use the spl interface.
645 fix problems with "ipf -T" not listing multiple variables properly
647 4.1.8 - Released 29 March 2005
649 include path from Phil Dibowitz for sorting ipfstat -t output by source or
652 fix a bug in printing rules where interface names could not be printed,
653 even if they're in the rule structure.
655 fix BSD/kupgrade to correctly change ipfilter lkm Makefile for FreeBSD
657 add 2 new features to SIOCGNATL:
658 - if IPN_FINDFORWARD is set, check if the respective MAP is already
659 present in the outbound table
660 - if IPN_IN is set, search for a matching MAP entry instead of RDR
663 turn off function inlining for freebsd 5.3+
665 UDP doesn't pullup enough data which can sometimes cause a panic.
666 Fix other protocols, as required, where a similar problem may exist.
668 overhaul the timeout queue management, especially that for user defined queues
669 which are now only freed in an orderly manner.
671 4.1.7 - Released 13 March 2005
673 Using the GRE call field is almost impossible because it is unbalanced and
674 both call fields are not present in each v1 header.
676 Fix a problem where it was possible to load duplicate rules into ipf
678 patch from John Wehle to address problems with fastroute on solaris
680 Copying data out for ipf -z failed because it tried to copy out to an address
681 that is a kernel pointer in user space.
683 add "ip" timeout for both NAT & state that's for non-TCP/UDP/ICMP
685 synch up with NetBSD's changes
687 fix problems parsing long lines of text in the ftp proxy where they would not
688 be parsed properly and stop the session from working
690 enhance the PPTP proxy so that it tries to decode messages in the TCP stream
691 so it knows when to create and destroy the state/nat sessions for GRE. There
692 are also 4 new regression tests for it, testing map/rdr rules.
694 impose some limits on the size of data that can be moved with SIOCSTPUT in
695 the NAT code and also prevent a duplicate session entry from being created
698 add a new flag (IPN_FINDFORWARD) to NAT code that can be used with SIOCGNATL
699 to check if it is possible to create an outgoing transparent NAT mapping to
700 compliment the redirect being investigated.
702 Linux requires that the checksums in the IP header get adjusted
704 only resolve unknown interfaces in fr_stinsert, and nuke all interface pointers
705 in SIOCSTPUT to prevent bad data being loaded from userspace.
707 make the byte counting for state correct (was counting data from ICMP packet
710 print out the keyword "frag-body" if the flag is set.
712 fix ipfs loading/restoring NAT sessions
714 patch from Frank to correctly format IP addresses in ipfstat -t output
716 parsing port numbers in ipf/ipnat was confusing as the port number was returned
717 in an int that was also overloaded to be the suceess/failure. instead, change
718 the port using pass by reference and only use the return value for indicating
721 4.1.6 - Released 19 February 2005
723 add a new timeout number to NAT (fr_defnatipage) that is used for all
724 non-TCP/UDP/ICMP protocols - default 60 seconds.
726 buffer leak with bad nat - David Gueluy
728 fix memory leak with state entries created by proxies
730 eliminate copying too much data into a scan buffer
732 allow a trailing protocol name for map rules as well as rdr ones
734 fix bug in parsing of <= and > for NAT rules (two were crossed over)
736 FreeBSD's iplwrite hasn't kept pace with iplread's prototype
738 expand documention on the karma of using "auto" in ipnat map rules
740 add matching on IP protocol to ipnat map rules
742 allow ippool definitions to contain no addresses to start with
744 Linux NAT needs to modify the IP header checksum as it gets called after it
745 has been computed by IP.
747 UDP was missing a pullup for packet header information before examining
750 4.1.5 - Released 9 January 2005
752 all rules were being converted into "dup-to" rules in the kernel
754 fix two ftp proxy problems: 1st, buffer needs to be bigger for fitting in
755 complete RETR/CWD commands, 2nd is () use in 227 messages isn't copied
759 revert ip_off back to network byte order in the ICMP error packet that
762 4.1.4 - Released 9 January 2005
764 force NAT rules to only match ipv4 NAT rules (which all are, currently,
767 include state synchronisation fixes from Frank Volf
769 make the maximum log size for internally buffered log entries accessible
772 redesign start of fr_check() to avoid putting duplicate information in
773 ipfilter about how much data needs to be pulled up for a protocol to be
776 tidy up sending ICMP error messages - some bad inputs could result in
777 data not being freed and/or no error returned.
779 make the maximum size of the log buffer run-time tunable
781 fix bug in parsing TCP header when looking for MSS option that could make
784 change pool lookups that fail to find a match to return "no match"
787 add run-time tunable debugging for proxy support code and FTP proxy.
789 fix state table updates for entries where the first packet as an ICMPv6
792 fix hang when flushing state for v4/v6 and other (v6/v4) entries are present
795 attaching filtering to ipv6 pfil hook wasn't present for solaris
797 don't allow rules with "keep state" and "with oow"
799 move a bunch of userland only code from fil.c to ip_fil.c
801 make fr_coalesce() more resiliant to bad input, just returning an error
802 instead of crashing, making calling it easier in many places
804 When m_pulldown doesn't return NULL, it doesn't necessarily return a pointer
805 to the same mbuf passed in as the first arg.
807 remove fr_unreach and use ENETUNREACH by default.
809 printing out of tag data in ipf rules doesn't match input syntax
811 ipftest(1) man page update
813 ipfs command line option parsing still rejects some valid syntaxes
815 SIGHUP handling by ipmon was not as safe as it could be
817 fix various parsing regressions, including "<thishost>", "tcpudp", ordering
820 patches from Frank Volk: add udp_acktimeout to sysctl list for FreeBSD,
821 ICMP packet length not calculated correctly in send_icmp_err, reply-to
822 not printed by ipfstat, keep state with icmp passing (mtrr)
824 patches for return-rst and return-icmp from Attila Fueloep
825 (lichtscheu@gesindel.org)
827 4.1.3 - Released 18 July 2004
829 do some more fine tuning on NAT checksum adjustments
831 correct IP address byte order in proxy setup for ipsec/pptp
835 fix numerous problems with ipfs operation
837 complete new syntax for ipmon.conf in its parser and update the sample file
839 assign error value consistantly in fastroute code
841 rewrite allocation of mbufs in send_reset/send_icmp_err to better use
842 mbuf clusters and size calculations
844 resolve problem with linux panic'ing because the wrong flag was being
845 passed to skb_clone/skb_alloc
847 enable use of shared/exclusive locks on freebsd5 and above
849 do not rely on m_pkthdr.len to be valid all the time for mbufs on modern BSD
850 and so use mbufchainlen to get the mbuf length instead
852 replace lots of COPYIN/COPYOUT with BCOPYIN/BCOPYOUT where the data is
853 going to be on the stack and not in userland
855 packet buffer pointers were not refreshed & used properly in fr_check()
857 include extra bits for OpenBSD 3.4 & 3.5.
859 fix ipf/ipnat parsing regression problems with v3.4
861 4.1.2 - RELEASED - 27 May 2004
863 add state top for ipv6
865 fix numerous parsing regressions
867 change sample proxies to use SIOCGNATL with the new API
869 allow macro names to contain underscores (_)
871 split the parser into a collection of dictionaries so that keywords do
872 not interfere with resolving hostnames and portnames
874 fix ipfrule LKM loading on freebsd
876 support mapping a fixed range of ports to a single port
878 fix timeout queue use by proxies with private queues
880 handle space-led ftp server replies properly
882 fix timeout queue management
884 fix fastroute, generation of RST & ICMP packets and operation with to/fastroute
886 resolve further linux compatibility problems
888 replace the use of COPYIN with BCOPYIN for platforms that provide ioctl
891 allow flushing of ipv6 rules independant of ipv4 rules
893 correct internal ipv6 checksum calculations
895 if a 'keep state' rule fails to create state, block the packet rather
898 correct all checksums in regression tests and correct NAT code to adjust
903 4.1.1 - RELEASED - 24 March 2004
905 allow new connections with the same port numbers as an existing one
906 in the state table if the creating packet is a SYN
908 timeout values have drifted, incorrectly, from what they were in 3.4
910 FreeBSD - compatibility changes for 5.2
912 don't match on sequence number (as well) for ICMO ECHO/REPLY, just the
913 ICMP Id. field as otherwise thre is a state/NAT entry per packet pair
914 rather than per "flow"
916 fr_cksum() returned the wrong answer for ICMP
919 - get return-rst and return-icmp working
920 - treat the interface name the same as if_xname on BSD
922 adjust expectations for TCP urgent bits based on observed traffic in the
925 openbsd3.4 has ip_len/ip_off in network byte order when ipfilter is called
927 fix flushing of hash pool gorups (ippool -F) as well as displaying them
930 passing of pointers to interface structures wrong for HP-UX/Solaris with
933 Make the solaris boot script able to run on 2.5.1
935 ippool related files missing from Solaris packages
937 The name /dev/ippool should be /dev/iplookup
939 add regression testing for parsing long interface names in nat rules,
940 along with mssclamp and tags. Also add test for mssclamp operation.
942 ttl displayed for "ipfstat -t" is wrong because ttl is not computed.
944 parse logical interface names (Sun)
946 unloading LKMs was only working if they were enabled.
948 sync'ing up NAT sessions when NICs change should cause NAT rules to
949 re-lookup name->pointer mappings
951 not all of the ippool ioctl's are IOWR and they should be because they
952 use the ipfobj_t for passing information in/out of the kernel. leave the
953 old values defined and handle them, for compatibility.
955 pool stats wrong: ippoolstate used where ipoolstat should be, hash table
956 statistics not reported at all
958 fr_running not set correctly for OpenBSD when compiled into the kernel
960 Allow SIOCGETFF while disabled
962 Fix mssclamp with NAT (pasing and printing of the word, plus wrong bytes
963 altered. How do you say "untested" ?)
965 4.1 - RELEASED - 12 February 2004
967 4.0-BETA1 20 August 2003
969 support 0/32 and 0/0 on the RHS in redirect rules
971 where LHS and RHS netmasks are the same size for redirect, do 1:1 mapping
974 allow NAT rule to match 'all' interfaces with * as interface name
976 do mapping of ICMP sequence id#'s in pings
978 allow default age for NAT entries to be set per NAT rule
980 provide round robin selection of destination addresses for redirect
982 ipmon can load a configuration file with instructions on actions
983 to take when a matching log entry is received
985 now requires pfil to work on Solaris & HP-UX
987 supports mapping outbound connections to a specific address/port
989 support toggling of logging per ipfilter 'device'
991 use queues to expire data rather than lists
997 support rules with dynamic ip addresses
999 add ability to define a pool of addresses & networks which can then
1000 be placed in a single rule
1002 support passing entire packet back to user program for authentication
1004 support master/slave for state information sharing
1006 reorganise generic code into a lib directory and make libipf.a
1008 user programs enforce version matching with the kernel
1010 supports window scaling if seen at TCP session setup
1012 generates C code from filter rules to compile in or load as native
1015 supports loading rules comprised of BPF bytecode statements
1017 HP-UX 11 port completed
1019 and packets-per-second filtering
1021 add numerical tags to rules for filtering and display in ipmon output
1023 3.4.4 23/05/2000 - Released
1025 don't add TCP state if it is an RST packet and (attempt) to send out
1026 RST/ICMP packets in a manner that bypasses IP Filter.
1028 add patch to work with 4.0_STABLE delayed checksums
1030 3.4.3 20/05/2000 - Released
1034 don't truncate IPv6 packets on Solaris
1036 fix keep state for ICMP ECHO
1038 add some NAT stats and use def_nat_age rather than DEF_NAT_AGE
1040 don't make ftp proxy drop packets
1042 use MCLISREFERENCED() in tandem with M_EXT to check if IP fields need to be
1045 fix up RST generation for non-Solaris
1047 get "short" flag right for IPv6
1049 3.4.2 - 10/5/2000 - Released
1051 Fix bug in dealing with "hlen == 1 and opt > 1" - Itojun
1053 ignore previous NAT mappings for 0/0 and 0/32 rules
1055 bring in a completely new ftp proxy
1057 allow NAT to cause packets to be dropped.
1059 add NetBSD callout support for 1.4-current
1061 3.4.1 - 30/4/2000 - Released
1063 add ratoui() and fix parsing of group numbers to allow 0 - UINT_MAX
1065 don't include opt_inet6.h for FreeBSD if KLD_MODULE is defined
1067 Solaris must use copyin() for all types of ioctl() args
1069 fix up screen/tty when leaving "top mode" of ipfstat
1071 linked list for maptable not setup correctly in nat_hostmap()
1073 check for maptable rather than nat_table[1] to see if malloc for maptable
1074 succeeded in nat_init
1076 fix handling of map NAT rules with "from/to" host specs
1078 fix printout out of source address when using "from/to" with map rules
1080 convert ip_len back to network byte order, not plen, for solaris as ip_len
1081 may have been changed by NAT and plen won't reflect this
1083 3.4 - 27/4/2000 - Released
1085 source address spoofing can be turned on (fr_chksrc) without using
1088 group numbers are now 32bits in size, up from 16bits
1090 IPv6 filtering available
1092 add frank volf's state-top patches
1094 add load splitting and round-robin attribute to redirect rules
1096 FreeBSD-4.0 support (including KLD)
1098 add top-style operation mode for ipfstat (-t)
1100 add save/restore of IP Filter state/NAT information (ipfs)
1102 further ftp proxy security checks
1104 support for adding and removing proxies at runtime
1106 3.3.13 26/04/2000 - Released
1108 Fix parsing of "range" with "portmap"
1110 Relax checking of ftp replies, slightly.
1112 Fix NAT timeouts for ICMP packets
1114 SunOS4 patches for ICMP redirects from Jurgen Keil (jk@tools.de)
1116 3.3.12 16/03/2000 - Released
1118 tighten up ftp proxy behaviour. sigh. yuck. hate.
1120 fix bug in range check for NAT where the last IP# was not used.
1122 fix problem with icmp codes > 127 in filter rules caused bad things to
1123 happen and in particular, where #18 caused the rule to be printed
1126 fix bug with the spl level not being reset when returning EIO from
1127 iplioctl due to ipfilter not being initialized yet.
1129 3.3.11 04/03/2000 - Released
1131 make "or-block" work with lines that start with "log"
1133 fix up parsing and printing of rules with syslog levels in them
1135 fix from Cy Schubert for calling of apr_fini only if non-null
1138 3.3.10 24/02/2000 - Released
1140 * fix back from guido for state tracking interfaces
1142 * update for NetBSD pfil interface changes
1144 * if attaching fails and we can abort, then cleanup when doing so.
1146 julian@computer.org:
1147 * solaris.c (fr_precheck): After calling freemsg on mt, set it point to *mp.
1148 * ipf.c (packetlogon): use flag to store the return value from get_flags.
1149 * ipmon.c (init_tabs): General cleanup so we do not have to cast
1150 an int s->s_port to u_int port and try to check if the u_int port
1153 3.3.9 15/02/2000 - Released
1155 fix scheduling of bad locking in fr_addstate() used when we attach onto
1158 fix up ip_statesync() with storing interface names in ipstate_t
1160 fix fr_running for LKM's - Eugene Polovnikov
1162 junk using pullupmsg() for solaris - it's next to useless for what we
1163 need to do here anyway - and implement what we require.
1165 don't call fr_delstate() in fr_checkstate(), when compiled for a user
1166 program, early but when we're finished with it (got fr & pass)
1168 ipnat(5) fix from Guido
1170 on solaris2, copy message and use that with filter if there is another
1171 copy if it being used (db_ref > 1). bad for performance, but better
1172 than causing a crash.
1174 patch for solaris8-fcs compile from Casper Dik
1176 3.3.8 01/02/2000 - Released
1178 fix state handling of SYN packets.
1180 add parsing recognition of extra icmp types/codes and fix handling of
1181 icmp time stamps and mask requests - Frank volf
1183 3.3.7 25/01/2000 - Released
1185 sync on state information as well as NAT information when required
1187 record nat protocol in all nat log records
1189 don't reuse the IP# from an active NAT session if the IP# in the rule
1190 has changed dynamically.
1192 lookup the protocol for NAT log information in ipmon and pass that to
1195 fix the bug with changing the outbound interface of a packet where it
1196 would lead to a panic.
1198 use fr_running instead of ipl_inited. (sysctl name change on freebsd)
1200 return EIO if someone attempts an ioctl on state/nat if ipfilter is not
1203 fix rule insertion bug
1205 make state flushing clean anything that's not fully established (4/4)
1207 call fr_state_flush() after we've released ipf_state so we don't generate
1208 a recursive mutex acquisition panic
1210 fix parsing of icmp code after return-icmp/return-icmp-as-dest and add
1211 some patches to enhance parsing strength
1213 3.3.6 28/12/1999 - Released
1215 add in missing rwlock release in fr_checkicmpmatchingstate() and fix check
1216 for ICMP_ECHO to only be for packet, not state entry which we don't have yet.
1218 handle SIOCIPFFB in nat_ioctl() and fr_state_ioctl()
1220 fix size of friostat for SunOS4
1222 fix bug in running off the end of a buffer in real audio proxy
1224 3.3.5 11/12/1999 - Released
1226 fix parsing of "log level" and printing it back out too
1228 <net/if_types.h> is only present on Solaris2.6/7/8
1230 use send_icmp_err rather than icmp_error to send back a frag-needed error
1233 do not use -b with add_drv on Solaris unless $BASEDIR is set.
1235 fix problem where source address in icmp replies is reversed
1237 fix yet another problem with real audio.
1239 3.3.4 4/12/1999 - Released
1241 fix up the real audio proxy to properly setup state information and NAT
1242 entries, thanks to Laine Stump for testing/advice/fixes.
1244 fix ipfr_fastroute to set dst->sin_addr (Sean Farley - appears to prevent
1245 FreeBSD 3.3 from panic'ing) as this had been removed in prior hacks to this
1248 fix kinstall for BSDI
1250 support ICMP errors being allowed through for ICMP packets going out with
1253 support hardware checksumming (gigabit ethernet cards) on Solaris thanks to
1254 Tel.Net Media for providing hardware for testing.
1256 patched from Frank Volf for ipmon (ICMP & fragmented packets) and allowing
1257 ICMP responses to ICMP packets in the keep state table.
1259 add in patches for hardware checksumming under solaris
1261 Solaris install scripts now use $BASEDIR as appropriate.
1263 add Solaris8 support
1265 fix "ipf -y" on solaris so that it rescans rules also for changes in
1268 let ipmon become a daemon with -D if it is using syslog
1270 fix parsing of return-icmp-as-dest(foo)
1272 add reference to ipfstat -g to ipfstat.8
1274 ipf_mutex needs to be declared for irix in ip_fil.c
1276 3.3.3 22/10/1999 - Released
1278 add -g command line option to ipfstat to show groups still define.
1280 fix problem with fragment table not recording rule pointer when called
1281 from state functions (fin_fr not set).
1283 fixup fastroute problems with keep state rules.
1285 load rules into inactive set first, so we don't disable things like NIS
1286 lookups half way through processing - found by Kevin Littlejohn
1288 fix handling of unaligned ip pointer for solaris
1290 patch for fr_newauth from Rudi Sluijtman
1292 fixed htons() bug in fr_tcpsum() where ip_p wasn't cast to u_short
1294 3.3.2 23/09/1999 - Released
1296 patches from Scott Presnell to fix rcmd proxy
1298 patches from Greg to fix Solaris detachment of interfaces
1300 add openbsd compatibility fixes
1302 fix free'ing already freed memory in ipfr_slowtimer()
1304 fix for deferencing invalid memory in cleaning up after a device disappears
1306 3.3.1 14/8/1999 - Released
1308 remove include file sys/user.h for irix
1310 prevent people from running buildsunos directly
1312 fix up some problems with the saving of rule pointers so that NAT saves
1313 that information in case it should need to call fr_addstate() from a proxy.
1315 fix up scanning for the end of FTP messages
1317 don't remove /etc/opt/ipf in postremove
1319 attempt to prevent people running buildsolaris script without doing a
1322 fix timeout losing on freebsd3
1324 3.3 7/8/1999 - Released
1326 NAT: information (rules, mappings) are stored in hash tables; setup some
1327 basic NAT regression testing.
1329 display version name of installed kernel code when initializing.
1331 add -V command line option to ipf, showing version (program and kernel
1332 module) as well as the run-status of the kernel code.
1334 fix problem with "log" rules actually affecting result of filtering.
1336 automatically use SUNWspro if available and on a 64bit Solaris system for
1339 add kernel proxies for rcmd(3) and RealAudio (PNA)
1341 use timeout/untimeout on SunOS4/BSD platforms too rather than hijacking
1344 fix IP headers generated through parsing of text information
1346 fix NAT rules to be in the correct order again.
1348 make keep-state work with to/fastroute keywords and enforce usage of those
1351 update keep-state code with new algorithm from Guido
1353 add FreeBSD-3 support
1355 add return-icmp-as-dest option to retrun an ICMP packet using the original
1356 destination as the source rather than a local IP address
1358 add "level [facility.]<priority>" option to filter language
1360 add changes from Guido to state code.
1362 add code to return EPERM if the device is opened for writing and we're
1363 in securelevel 2 or greater.
1365 authentication code patches from Guido
1367 fix real audio proxy
1369 fix ipmon rule printing of interfaces and add IN/OUT to the end of ipmon
1372 fix bimap rules with hash tables
1374 update addresses used in NAT mappings for 0/32 rules for any protocol but TCP
1375 if it changes on the interface - check every ip_natexpire()
1377 add redirect regression test
1379 count buckets used in the state hash table.
1381 fix sending of RST's with return-rst to use the ack number provided in
1382 the packet being replied to in addition to the sequence number.
1384 fix to compile as a 64bit application on solaris7-64bit
1386 add NAT IP mapping to ranges of IP addresses that aren't CIDR specified
1388 fix calculation of in_space parameter for NAT
1390 fix `wrapping' when incrementing the next ip address for use in NAT
1392 fix free'ing of kernel memory in ip_natunload on solaris
1394 fix -l/-U command line options from interfering with each other
1396 fix fastroute under solaris2 and cleanup compilation for solaris7
1398 add install scripts and compile cleanly on BSD/OS 4.0
1400 safely open files in /tmp for writing device output when testing.
1402 fix uninitialized pointer bug in NAT
1404 fix SIOCZRLST (zero list rule stats) bug with groups
1406 change some usage of u_short to u_int in function calling
1408 fix compilation for Solaris7 (SUNWspro)
1410 change solaris makefiles to build for either sparc or i386 rather than
1411 per-cpu (sun4u, etc).
1415 add patches from George Michaelson for FreeBSD 3.0
1417 add patch from Guido to provide ICMP checking for known state in the same
1418 manner as is done for NAT.
1420 enable FTP PASV proxying and enable wildcarding in NAT/state code for ports
1421 for better PORT/PASV support with FTP.
1423 bring into main tree static nat features: map-block and "auto" portmapping.
1425 add in source host filtering for redirects (alan jones)
1427 3.2.10 22/11/98 - Released
1429 3.2.10beta9 17/11/98 - Released
1431 fix fr_tcpsum problems in handling mbufs with an odd number of bytes
1432 and/or split across an mbuf boundary
1434 fix NAT list entry comparisons and allow multiple entries for the same
1435 proxy (but on different ports).
1437 don't create duplicate NAT entries for repeated PORT commands.
1439 3.2.10beta8 14/11/98 - Released
1441 always exit an rwlock before expecting to enter it again on solaris
1443 fix loop in nat_new for pre-existing nat
1445 don't setup state for an ftp connection if creating nat fails.
1447 3.2.10beta7 05/11/98 - Released
1449 set fake window in ipft_tx.c to ensure code passes tests.
1451 cleaned up/enhanced ipnat -l/ipnat -lv output
1453 fixed NAT handling of non-TCP/UDP packets, esp. for ICMP errors returned.
1455 Solaris recusive mutex on icmp-error/tcp-reset - requires rwlock's rather
1458 3.2.10beta6 03/11/98 - Released
1460 fix mixed use of krwlock_t and kmutex_t on Solaris2
1462 fix FTP proxy back up, splitting pasv code out of port code.
1464 3.2.10beta5 02/11/98 - Released
1466 fixed port translation in ICMP reply handling
1468 3.2.10beta4 01/11/98 - Released
1470 increase useful statistic collection on solaris
1472 filter DL_UNITDATA_REQ as well as DL_UNITDATA_IND on solaris
1474 disable PASV reply translation for now
1476 fail with an error if we try to load a NAT rule with a non-existant
1479 fix portmap usage with 0/0 and 0/32 map rules
1481 remove ap_unload/ap_expire - automatically done when NAT is cleaned up
1483 print "STATE:CLOSED" from ipmon if the connection progresses past established
1484 rather than "STATE:EXPIRED"
1486 3.2.10beta3 26/10/98 - Released
1488 fixed traceroute/nat problem
1490 rewrote nat/proxy interface
1492 ipnat now lists associated proxy sessions for each NAT where applicable
1494 3.2.10beta2 13/10/98 - Released
1496 use KRWLOCK_T in place of krwlock_t for solaris as well as irix
1498 disable use of read-write lock acquisition by default
1500 add in mb_t for linux, non-kernel
1502 some changes to progress compilation on linux with glibc
1504 change PASV as well as PORT when passed through kernel ftp proxy.
1506 don't allow window to become 0 in tcp state code
1508 make ipmon compile cleaner
1512 3.2.10beta 11/09/98 - Released
1514 stop fr_tcpsum() thinking it has run out of data when it hasn't.
1516 stop solaris panics due to fin_dp being something wild.
1518 revisit usage of ATOMIC_*()
1520 log closing state of TCP connection in "keep state"
1522 fix fake-arp table code for ipsend.
1524 ipmon now writes pid to a file.
1526 fix "ipmon -a" to actually activate all logging devices.
1528 add patches for BSDOS4.
1530 perl scripts for log analysis donated.
1532 3.2.9 22/06/98 - Released
1534 fix byte order for ICMP packets generated on Solaris
1536 fix some locking problems.
1538 fix malloc bug in NAT (introduced in 3.2.8).
1540 patch from guido for state connections that get fragmented
1542 3.2.8 08/06/98 - Released
1544 use readers/writers locks in Solaris2 in place of some mutexes.
1546 Solaris2 installation enhancements - Martin Forssen (maf@carlstedt.se)
1548 3.2.7 24/05/98 - Released
1550 u_long -> u_32_t conversions
1552 patches from Bernd Ernesti for NetBSD
1554 fixup ipmon to actually handle HUP's.
1556 Linux fixes from Michael H. Warfield (mhw@wittsend.com)
1558 update for keep state patch (not security related) - Guido
1560 dumphex() uses stdout rather than log
1562 3.2.6 18/05/98 - Released
1564 fix potential security loop hole in keep state code.
1568 3.2.5 09/05/98 - Released
1570 BSD/OS 3.1 .o files added for the kernel.
1572 fix sequence # skew vs window size check.
1574 fix minimum ICMP header size check.
1576 remove references to Cybersource.
1578 fix my email address.
1580 remove ntohl in ipnat - Thomas Tornblom
1582 3.2.4 09/04/98 - Released
1584 add script to make devices for /dev on BSD boxes
1586 fixup building into the kernel for FreeBSD 2.2.5
1588 add -D command line option to ipmon to make it a daemon and SIGHUP causes
1589 it to close and reopen the logfile
1591 fixup make clean and make package for SunOS5 - Marc Boucher
1593 postinstall keeps adding "minor=ipf ipl" - George Ross <gdmr@dcs.ed.ac.uk>
1595 protected by IP Filter gif - Sergey Solyanik <solik@atom.ru>
1597 3.2.3 10/11/97 - Released
1599 fix some iplang bugs
1601 fix tcp checksum data overrun, sgi #define changes,
1602 avoid infinite loop when nat'ing to single IP# - Marc Boucher
1604 fixup DEVFS usage for FreeBSD
1606 fix sunos5 "make clean" cleaning up too much
1608 3.2.2 28/11/97 - Released
1610 change packet matching to return actual error, if bad packet, to facilitate
1613 allow ip:netmask in grammar too now - Guido
1615 assume IRIX has u_int32_t in sys/types.h (needed for R10000)
1617 rewrite parts of command line options for ipmon
1619 fix TCP urgent packet & offset testing and add LAND attack test for iptest
1621 fix grammar error in yacc grammar for iplang
1623 redirect (rdr) destination port bytes-wapped when it shouldn't be.
1625 general: fr_check now returns error code, such as EHOSTUNREACH or
1626 ECONNRESET (attempt to make ECONNRESET work for locally outbound
1629 linux: enable return-rst, need to filter tcp retransmits which are sent
1630 separately from normal packets
1632 memory leak plugged in ip_proxy.c
1634 BSDI compatibility patches from Guido
1636 tcp checksum fix - Marc Boucher
1638 recursive mutex and ioctl param fix - Marc Boucher
1640 3.2.1 12/11/97 - Released
1644 port to Linux 2.0.31
1646 patches to make "map a/m -> 0/0" work with ftp proxying properly - Marc Boucher
1648 add "ipf -F s" and "ipf -F S" to flush state table entries.
1650 announce if logging is on or off when ip filter initializes.
1652 "ipf -F a" doesn't flush groups properly for Solaris.
1654 3.2 30/10/97 - Released
1656 ipnat doesn't successfully remove proxy mappings with "-rf" -
1659 use K&R C function style for solaris kernel code
1661 use m_adj() to decrease packet size in ftp proxy
1663 use mbufchainlen rather than msgdsize,
1664 IRIX update - Marc Boucher
1666 fix NetBSD modunload bug (pfil_add_hook done twice)
1668 patches for OpenBSD 2.1 - Craig Bevins <craigb@bitcom.net.au>
1670 3.2beta10 24/10/97 - Released
1672 fix fragment table entries allocated for NAT.
1674 fix tcp checksum calculations over mbuf/mblk boundaries
1676 fix panic for blen < 0 in ftp kernel proxy - marc boucher
1678 fix flushing of rules which have been grouped.
1680 3.2beta9 20/10/97 - Released
1682 some nit picking on solaris2 with SUNWspro - Michael Lyle <mrl@rpnet.net>
1684 ftp kernel proxy patches from Marc Boucher
1686 3.2beta8 13/10/97 - Released
1688 add support for passing ICMP errors back through NAT.
1690 IRIX port update - Marc Boucher
1692 calculate correct MIN size of packet to log for UDP - Marc Boucher
1694 need htons(ETHERTYPE_x) on little endian BSD boxes - Dave Huang
1696 copyright header fixups
1698 3.2beta7 23/09/97 - Released
1700 fickup problems introduced by prior merges & changes.
1702 3.2beta6 23/09/97 - Released
1704 patch for spin-reading race condition - Marc Boucher.
1706 IRIX port by Marc Boucher.
1708 compatibility updates for Linux to ipsend
1710 3.2beta5 13/09/97 - Released
1712 patches from Bernd Ernesti for NetBSD integration (mostly prototyping and
1713 compiler warning things)
1715 ipf -y will resync IP#'s allocated with 0/32 in NAT to match interface if it
1718 update manual pages and other documentation updates.
1720 3.2beta4 27/8/97 - Released
1722 enable setting IP and TCP options for iplang/
1724 Solaris2 patches from Marc Boucher.
1726 add groups for filter rules.
1728 3.2beta3 21/8/97 - Released
1730 patches for Solaris2 (interface panic solution ?): fix FIONREAD and
1731 replacing q_qinfo points - Marc Boucher <marc@CAM.ORG>
1733 change ipsend/* and ipsd/* copyright notices to be the same as ip filter's
1735 patch for SYN-ACK skew testing fix from Eric V. Smith <EricSmith@windsor.com>
1737 3.2beta2 6/8/97 - Released
1739 make it load on Solaris 2.3
1741 rewrote logging to remove solaris errors, introduced checking to see if the
1742 same packet is logged successively.
1744 fix filter cache to work when there are no rules loaded.
1746 add "raw" option to ipresend to send entire ethernet frames.
1748 nat list corruption bug - NetBSD - Klaus Klein
1750 3.2beta1 5/7/97 - Released
1752 patches from Jason Thorpe fixing: UNSIGNED_CHAR lossage, off_t being 64bits
1753 lossage, and other NetBSD bits.
1757 fixup fwtk patches and add protocol field for SIOCGNATL.
1759 rdr bugs reported by Alexander Romanyu (alexr@aix.krid.crimea.ua), with
1761 * rdr matched all packets of a given protocol (ignored ports).
1762 * severe bug in nat_delete which caused system crash/freeze.
1764 change Makefile so that CC isn't passed on for FreeBSD/NetBSD (will use
1765 the default CC - cc, not gcc)
1767 3.2alpha9 16/6/97 - Released
1769 added "skip" keyword.
1771 implement preauthentication of packets, as outlined by Guido.
1773 Make it compile as cleanly as possible with -Wall & general code cleanup
1775 getopt returns int, not char. Bernd Ernesti
1777 3.2alpha8 13/6/97 - Released
1779 code added to support "auth" rules which require a user program to allow them
1780 through. First revision and much of the code came from Guido.
1782 hex output from ipmon doesn't goto syslog when recovering from out of sync
1783 error. Luke Mewburn (lukem@connect.com.au)
1785 fix solaris2.6 lookup of destination ire's.
1787 ipnat doesn't throw away unused bits (after masking), causing it to
1788 behave incorrectly. Carson Gaspar
1790 NAT code doesn't include inteface name when matching - Alexey Mavrin
1793 replace old SunOS tcpip.h with new tcpip.h (from 4.4BSD) - Jason Thorpe.
1795 update install procedures to include ip_proxy.c
1797 mask out unused bits in NAT/RDR rules.
1799 use a generic type (u_32_t) for 32bit variables, rather than rely on
1800 u_long being such - Jason Thorpe.
1802 create a local "netinet" directory and include from ~netinet/*" rather than
1803 just "*" to make keeping the code working on ports easier.
1805 add an m_copydata and m_copyback for SunOS4 (based on 4.4BSD-Lite versions)
1807 documentation updates.
1809 NetBSD update from Jason Thorpe <thorpej@netbsd.org>
1811 allow RST's through with a matching SEQ # and 0 ACK. Guido Van Rooij
1813 ipmon uses excessive amounts of CPU on Solaris2 - Reinhard Bertram
1814 <Reinhard.Bertram@KOM.th-darmstadt.de>
1816 3.2alpha7 25/5/97 - Released
1818 add strlen for pre-2.2 kernels - Doug Kite <dkite@websgi.icomnet.com>
1820 setup bits and pieces for compiling into a FreeBSD-2.2 kernel.
1822 split up "bsd" targets. Now a separate netbsd/freebsd/bsd target.
1823 mln_ipl.c has been split up into itself and mlf_ipl.c (for freebsd).
1825 fix (negative) host matching in filtering.
1827 add sysctl interface for some variables when compiled into FreeBSD-2.2 kernels
1830 make all the candidates for kernel compiling include "netinet/..." and build
1831 a subdirectory "netinet" when compiling and symlink all .h files into this.
1833 add install make target to Makefile.ipsend
1835 3.2alpha6 8/5/97 - Released
1837 Add "!" (not) to hostname/ip matching.
1839 Automatically add packet info to the fragment cache if it is a fragment
1840 and we're translating addreses for.
1842 Automatically add packet info to the fragment cache if it is a fragment
1843 and we're "keeping state" for the packet.
1845 Solaris2 patches - Anthony Baxter (arb@connect.com.au)
1847 change install procedure for FreeBSD 2.2 to allow building to a kernel
1848 which is different to the running kernel.
1850 add FIONREAD for Solaris2!
1852 when expiring NAT table entries, if we would set a time to fr_tcpclosed
1853 (which is 1), make it fr_tcplaskack(20) so that the state tables have a
1858 add proxying skeleton support and sample ftp transparent proxy code.
1860 add printfs at startup to tell user what is happening.
1862 add packets & bytes for EXPIRE NAT log records.
1864 fix the "install-bsd" target in the root Makefile. Chris Williams
1867 Fixes for FreeBSD 2.2 (and later revs) to prevent panics. Julian Assange.
1869 3.2alpha4 2/4/97 - Released
1871 Some compiler warnings cleaned up.
1873 FreeBSD-2.2 patches for LKM completed.
1875 3.2alpha3 31/3/97 - Released
1877 ipmon changes: -N for reading NAT logfile, -S for reading state logfile.
1878 -a for reading all. -n now toggles hostname resolution.
1880 Add logging of new state entries and expiration of old state entries.
1881 count log successes and failures.
1883 Add logging of new NAT entries and expiration of old NAT entries.
1884 count log successes and failures.
1886 Use u_quad_t for records of bytes & packets where kept
1887 (IP Accounting: fr_hits, fr_bytes; IP state: is_pkts, is_bytes).
1889 Fixup use of CPU and DCPU in Makefiles.
1891 Fix broken 0/32 NAT mapping. Carl Makin <cmakin@nla.gov.au>
1895 Implement mapping to 0/32 as being an alias for automatically using the
1896 interface's first IP address.
1898 Implement separate minor devices for both NAT and IP state code.
1900 Fully prototype all functions.
1902 Fix Makefile problem due to attempt to fix Sun compiling problems.
1904 3.1.10 23/3/97 - Released
1906 ipfstat -a requires a -i or -o command line option too. Print an error
1907 when not present rather than attempt to do something.
1909 patch updates for SunOS4 for kernel compiling.
1910 patch for ipmon -s (flush's syslog file which isn't good). Andrew J. Schorr
1911 <schorr@ead.dsa.com>
1913 too many people hit their heads hard when compiling code into the kernel
1914 that doesn't let any packets through. (fil.c - IPF_NOMATCH)
1916 icmp-type parsing doesn't return any errors when it isn't constructed
1917 correctly. Neil Readwin
1919 Using "-conf" with modload on SunOS4 doesn't work.
1920 Timothy Demarest <demarest@arraycomm.com>
1922 Need to define ARCH in makefile for SunOS4 building. "make sunos4"
1923 in INSTALL.SunOS is incorrect. James R Grinter <jrg@blodwen.demon.co.uk>
1924 [all SunOS targets now run buildsunos]
1926 NAT lookups are still incorrect, matching non-TCP/UDP with TCP/UDP
1927 information. ArkanoiD <ark@paranoid.convey.ru>
1929 Need to check for __FreeBSD_version being 199511 rather than 199607
1930 in mln_ipl.c. Eric Feillant <Eric.Feillant@EUnet.fr>
1932 3.1.9 8/3/97 - Released
1934 fixed incorrect lookup of active NAT entries.
1936 patch for ip_deq() wrong for pre 2.1.6 FreeBSD.
1937 fyeung@fyeung8.netific.com (Francis Yeung)
1939 check for out with return-rst/return-icmp at wrong place - Erkki Ritoniemi
1942 text_readip returns the interface pointer pointing to text on stack -
1945 fix from Pradeep Krishnan for printout rules "with not opt sec".
1947 3.1.8 18/2/97 - Released
1949 Diffs for ip_output.c and ip_input.c updated to fix bug with fastroute and
1950 compiling warnings about reuse of m0.
1952 prevent use of return-rst and return-icmp with rules blocking packets going
1953 out, preventing panics in certain situations.
1955 loop forms in frag cache table - Yury Pshenychny <yura@rd.zgik.zaporizhzhe.ua>
1957 should use SPLNET/SPLX around expire routines in NAT/frag/state code.
1959 redeclared malloc in 44arp.c -
1961 3.1.7 8/2/97 - Released
1963 Macros used for ntohs/htons supplied with gcc don't always work very well
1964 when the assignment is the same variable being converted.
1966 Filter matching doesn't not match rule which checks tcp flags on packets
1967 which are fragments - David Wilson
1969 3.1.7beta 30/1/97 - Released
1971 Fix up NAT bugs introduced in last major change (now tested), including
1972 nat_delete(), nat_lookupredir(), checksum changes, etc.
1974 3.1.7alpha 30/1/97 - Released
1976 Many changes to NAT code, including contributions from Laurent Joncheray
1979 Use "NO_SLEEP" when allocating memory under SunOS.
1981 Make kernel printf's nicer for BSD/SunOS4
1983 Always do a checksum for packets being filtered going out and being
1984 processed by fastroute.
1986 Leave kernel to play with cdevsw on *BSD systems with LKM's.
1988 ipnat.1 man page fixes.
1990 3.1.6 21/1/97 - Released
1992 Allow NAT to work on BSD systems in conjunction with "pass .. to ifname"
1994 Memory leak introduced in 3.1.3 in NAT lists, clearing of NAT table tried
1995 to free memory twice.
1997 NAT recalculates IP header checksum based on difference between IP#'s and
1998 port numbers - should be just IP#'s (Solaris2 only)
2000 3.1.5 13/1/97 - Released
2002 fixed setting of NAT timeouts and use different timeouts for concurrent
2003 TCP sessions using the same IP# mapping (when port mapping isn't used)
2005 multiple loading/unloading of LKM's doesn't clean up cdevsw properly for
2008 3.1.4 10/1/97 - Released
2010 add command line options -C and -F to ipnat to flush NAT list and table
2012 ipnat -l loops on output - Neil Readwin (nreadwin@nysales.micrognosis.com)
2014 NetBSD/FreeBSD kernel malloc changes - Daniel Carosone
2016 3.1.3 10/1/97 - Released
2018 NAT chains not constructed correctly in hash tables - Antony Y.R Lu
2019 (antony@hawk.ee.ncku.edu.tw)
2021 Updated INSTALL.NetBSD, INSTALL.FreeBSD and INSTALL.Sol2
2023 man page update (ipf.5) from Daniel Carosone (dan@geek.com.au)
2025 ICMP header checksum update now included in NAT.
2027 Solaris2 needs to modify IP header checksums in ip_natin and ip_natout.
2029 3.1.2 4/12/96 - Released
2031 ipmon doesn't use syslog all the time when given -s option
2033 fixed mclput panic in ip_input.c and replace ntohs() with NTOHS() macro
2035 check the results of hostname resolution in ipnat
2037 "make *install" fixed for subdirectories.
2039 problems with "ARCH:=" and gnu make resolved
2041 parser reports an error for lines with whitespaces only rather than skipping
2042 them. D.Carosone@abm.com.au (Daniel Carosone)
2044 patches for integration into NetBSD-current (post 1.2).
2046 add an option to allow non-IP packets going up/down the stream on Solaris2
2047 to be dropped. John Bass.
2049 3.1.2beta 21/11/96 - Released
2051 make ipsend compile on Linux 2.0.24
2053 changes to TCP kept state algorithm, making it watch state on TCP
2054 connections in both directions. Also use the same algorithm for NAT TCP.
2056 -Wall cleanup - Bernd Ernesti
2058 added "or-block" for "pass .. log or-block" after a suggestion from
2059 David Oppenheim (davido@optimation.com.au)
2061 added subdirectories for building IP Filter in SunOS5/BSD for different
2064 Solaris2 fixes to logging and pre-filtering packet processing - 3.1.1p2
2066 mbuf logging not using mtod(), remove iplbusy - 3.1.1p1 1/11/96
2068 3.1.1 28/10/96 - Released
2070 Installation script fixes and deinstall scripts for IP Filter on:
2071 SunOS4/FreeBSD/NetBSD
2073 Man page fixes - Paul Dubois (dubois@primate.wisc.edu)
2075 Fix use of SOLARIS macro in ipmon, rewrote ipllog() (again!)
2077 parsing isn't completely case insensitive - David Wilson
2078 (davidw@optimation.com.au)
2080 Release ipl_mutex across uiomove() calls
2082 print entire rule entries out for "ipf -z" when zero'ing per-rule stats.
2084 ipfstat returns same output for "hits" in "ipfstat -aio" - Terletsky Slavik
2085 (ts@polynet.lviv.ua)
2087 New algorithm for setting timeouts for TCP connection (more closely follow
2088 TCP FSM) - Pradeep Krishnan (pkrishna@netcom.com)
2090 Track both window sizes for TCP connections through "keep state".
2092 Solaris2 doesn't like _KERNEL defined in stdargs.h - Jos van Wezel
2095 3.1.1-beta2 6/10/96 - Released
2097 Solaris2 fastroute/dup-to/to now works
2099 ipmon `record' reading rewritten
2101 Added post-NetBSD1.2 packet filter patches - Mathew Green (mrg@eterna.com.au)
2103 Attempt to use in_proto.c.diff, not "..diffs" for SunOS4 - David Wilson
2104 (davidw@optimation.com.au)
2106 Michael Ryan (mike@NetworX.ie) reports the following:
2107 * The Trumpet WinSock under Windows always sends its SYN packet with an ACK
2108 value of 1, unlike any other implementation I've seen, which would set it
2109 to zero. The "keep state" feature of IP Filter doesn't work when receiving
2110 non-zero ACK values on new connection requests.
2111 * */Makefile install rule doesn't install all the binaries/man pages
2112 * Make ipnat use "tcp/udp" instead of "tcpudp"
2113 * Print out "tcp/udp" properly
2114 * ipnat "portmap tcp" matches "portmap udp" when adding/removing
2115 * NAT dest. ip# increased by one on mask of 0xffffffff when it shouldn't
2117 3.1.1-beta 1/9/96 - Released
2119 add better detection of TCP connections closing to TCP state monitoring.
2121 fr_addstate() not called correctly for fragments. "keep state" and
2122 "keep frag" code don't work together 100% - Songqing Cai
2123 (songqing_cai@sterling.com)
2125 call to fr_addstate() incorrect for adding state in combination with keeping
2126 fragment information - Songqing Cai (songqing_cai@sterling.com)
2128 KFREE() passed fp (incorrect) and not fr (correct) in ip_frag.c - John Hood
2129 (cgull@smoke.marlboro.vt.us)
2131 make ipf parser recognise '\\' as a `continued line' marker - Dima Ruban
2134 3.1.1-alpha 23/8/96 - Released
2136 kernel panic's when ICMP packets go through NAT code
2138 stats aren't zero'd properly with ipf -Z
2140 ipnat doesn't show port numbers correctly all the time and also add the
2141 protocol (tcp/udp/tcpudp) to rdr output - Carson Gaspar (carson@lehman.com)
2143 fast checksum fixing not 100% - backout patch - Bill Dorsey (dorsey@lila.com)
2145 NetBSD-1.2 patches from - VaX#n8 <vax@linkdead.paranoia.com>
2147 Usage() call error in fils.c - Ajay Shekhawat (ajay@cedar.buffalo.edu)
2149 ip_optcopy() staticly defined in ip_output.c in SunOS4 - Nick Hall
2150 (nrh@tardis.ed.ac.uk)
2152 3.1.0 7/7/96 - Released
2154 Reformatted ipnat output to be compatible with it's input, so that
2155 "ipnat -l | ipnat -rf -" is possible.
2157 3.1.0beta 30/6/96 - Released
2159 NetBSD-1.2 patches from Greg Woods (woods@most.weird.com)
2161 kernel module must not be installed stripped (Solaris2), as created by
2162 "make package" for Solaris2 - Peter Heimann
2163 (peter@i3.informatik.rwth-aachen.de)
2165 3.1.0alpha 5/6/96 - Released
2167 include examples in package for solaris2
2169 patches for removing an extra ip header checksum (FreeBSD/NetBSD/SunOS)
2171 removed trailing space from printouts of rules in ipf.
2173 ipresend supports the same range of inputs that ipftest does.
2175 sending a duplicate copy of a packet to another network devices is now
2176 supported. ("dup-to")
2178 sending a packet to an arbitary interface is now supported, irrespective
2179 of its actual route, with no ttl decrement. Can also be routed without
2180 the ttl being decremented. ("to" and "fastroute").
2182 "call" option added to support calling a generic function if a packet is
2185 show all (upto 4) recorded bytes from the interface name in logging from
2188 support for using unix file permissions for read/write access on the device
2191 recursive mutex in nat_new() for Solaris 2.x - Per L. Hagen <per@stibo.dk>
2193 ipftest doesn't call initparse() for THISHOST - Catherine Allen
2194 (cla@connect.com.au)
2196 Man page corrections from Rex Bona (rex@pengo.comsmiths.com.au)
2198 3.0.4 10/4/96 - Released
2200 looop in `parsing' IP packets with optlen 0 for ip options.
2202 rule number not initialized and resulted in unexpected results for state
2205 option parsing and printing bugs - Pradeep Krishnan
2207 3.0.4beta 25/3/96 - Released
2209 wouldn't parse "keep flags keep state" correctly.
2211 SunOS4.1.x ip_input.c doesn't recognise all 1s broadcast address - Nigel Verdon
2213 patches for BSDI's BSD/OS 2.1 and libpcap reader on little endian systems
2214 from Thorsten Lockert <tholo@tetherless.com>
2216 b* functions in fil.c on Solaris 2.4
2218 3.0.3 17/3/96 - Released
2220 added patches to support IP Filter initialisation when compiled into the
2223 added -x option to ipmon to display hex dumps of logged packets.
2225 added -H option to ipftest to allow ascii-hex formatted input to specify
2226 arbitary IP packets.
2228 Sending TCP RSTs as a response now work for Solaris2 x86
2230 add patches to make IP Filter compile into NetBSD kernels properly.
2232 patch to stop SunOS 4.1.x kernels panicing with "data traps".
2234 ipfboot script unloads and reloads ipf module on Solaris2 if it is already
2235 loaded into the kernel.
2237 Installation of IP Filter as a Solaris2 package is now supported.
2239 Man pages for ipnat.4, ipnat.5 added.
2241 added some more regression tests and fixed up IP Filter to pass the new tests
2242 (previous versions failed some of the tests in set 12).
2244 IP option filter processing has changed so that saying "with opt lsrr" will
2245 check only for that one, but not mask out other options, so a packet with
2246 strict source routing, along with loose source routing will match all of
2247 "with opt lsrr", "with opt ssrr" and "with opt lsrr,ssrr".
2249 IPL_NAME needed in ipnat.c - Kelly (kelly@count04.mry.scruznet.com)
2251 patches for clean NetBSD compilation from Bernd Ernesti (bernd@arresum.inka.de)
2253 make install is incorrect - Julian Briggs (julian@lightwork.co.uk)
2255 strtol() returns 0x7fffffff for all negative numbers,
2256 printfr() generates incorrect output for "opt sec-class *",
2257 handling of "not opt xxx opt yyy" incorrect.
2258 - Minh Tonthat (minht@sbei.com)/Pradeep Krishnan (pradeepk@sbei.com)
2260 m_pullup() called only for input and not output; caused problems
2261 with filtering icmp - Nigel Verdon (verdenn@gb.swissbank.com)
2263 parsing problem for "port 1" and NetBSD patches incorrect -
2264 Andreas Gustafsson (gson@guava.araneus.fi)
2266 3.0.2 4/2/96 - Released
2268 Corrected bug where NAT recalculates checksums for fragments.
2270 make NAT recalculate UDP checksums (rather than setting them to 0),
2271 if they're non-zero.
2273 DNS patches - Real Page (Real.Page@Matrox.com)
2275 alteration of checksum recalculations in NAT code and addition of
2276 redirection with NAT - Mike Neuman
2278 core dump, if tcp/udp is used with a port number and not service name,
2279 in ipf - Mike Neuman (mcn@engarde.com)
2281 initparse() call, missing to prime "<thishost>" hook - Craig Bishop
2283 3.0.1 14/1/96 - Released
2285 miscellaneous patches for Solaris2
2287 3.0 14/1/96 - Released
2289 Patch included for FDDI, from Richard Ohnemus
2290 (Richard_Ohnemus@dallas.csd.sterling.com)
2292 Code cleanup for release.
2296 recursive mutex in ipfr_slowtimer fixed, reported by Craig Bishop
2298 recursive mutex in sending TCP RSTs fixed, reported by Tony Becker
2302 FIxup for Solaris2.5 install and interface name bug in ipftest from
2303 Julian Briggs (julian@lightwork.co.uk)
2305 Byte order patches for ipmon from Tony Becker (tony@mcrsys.com)
2309 Added the (somewhat warped) IP accounting as it exists in ipfw on FreeBSD.
2310 Note, this isn't really what one would call IP account, when compared to
2311 process accounting, sigh.
2313 Split up ipresend into iptest/ipresend/ipsend
2315 Added another m_pullup() inside fr_check() for BSD style kernels and
2316 added some checks to ipllog() to not log more than is present (for short
2319 Fixed bug where failed hostname/netname resolution goes undetecte and
2320 becomes 0.0.0.0 (any) (reported Guido van Rooij)
2322 3.0beta 11/11/95 - Released
2324 Rewrote the way rule testing is done, reducing the number of files needed and
2327 SIOCIPFFL was incorrectly affected by IPFILTER_LOG (Mathew Green)
2329 Patches from Guido van Rooij to fix sending back TCP RSTs on Net-2/Net-3
2330 BSD based Unixes (panic'd)
2332 Patches for FreeBSD/i86 ipmon from Riku Kalinen <riku@tequila.nixu.fi>
2333 (I think someone else already told me about these but they got lost :-/)
2335 Changed Makefile structure to build object files for different operating
2336 systems in separate directories by default.
2338 BSDI has ef0 for first ethernet interface
2340 Allow for a "not" operator before optional keywords.
2342 The "rule number" was being incorrectly incremented every time it went through
2343 the loop rather than when it matched a rule.
2345 2.8.2 24/10/95 - Released
2347 Fixed up problems with "textip" for doing lots of testing.
2349 Fixed bug in detection of "short" tcp/ip packets (all reported as being short).
2351 Solaris 2.4 port now works 100%.
2353 Man page errors reported and fixed.
2355 Removed duplicate entry in etc/services for login on port 49 (Craig Bishop).
2357 Fixed ipmon output to put a space after the log-letter.
2359 Patch from Guido van Rooij to fix parsing problem.
2361 2.8.1 15/10/95 - Released
2363 Added ttl and tos filtering.
2365 Patches for fixing up compilation and port problems (little endian)
2366 from Guido van Rooij <guido@IAEhv.nl>.
2368 Man page problems reported and fixed by Carson Gaspar <carson@lehman.com>.
2370 ipsend doesn't compile properly on Solaris2.4
2372 Lots of work done for Solaris2.4 to make it MT/MP safe and work.
2374 2.8 15/9/95 - Released
2376 ipmon can now send messages to syslogd (-s) and use names instead of
2379 IP packets are now "compiled" into a structure only containing filterable
2382 Added regression testing in the test/ subdirectory, using a new option
2383 (-b) with the ipftest program.
2385 Added "nomatch" return to filter results. These are counted and show
2386 up in reports from ipfstat.
2388 Moved filter code out of ip_fil.c and into fil.c - there is now only one
2389 instance of it in the package.
2391 Added Solaris 2.4 support.
2393 Added IPSO basic security option filtering.
2395 Added name support for filtering on all 19 named IP options.
2397 Patches from Ivan Brawley to log packet contents as well as packet headers.
2399 Update for sun/conf.c.diff from Ivan Brawley <ibrawley@awadi.com.AU>
2401 Added patches for FreeBSD 1, and added two new switches (-E, -D) to ipf,
2402 along with a new ioctl, SIOCFRENB.
2403 From: Dieter Dworkin Muller <dworkin@village.org>
2405 2.7.3 31/7.95 - Released
2407 Didn't compile cleanly without IPFILTER_LOG defined (Mathew Green).
2409 ipftest now deals with tcpdump3 binary output files (from libpcap) with -P.
2411 Brought ipftest program upto date with actual filter code.
2413 Filter would cause a match to occur when it wasn't meant to if the packet
2414 had short headers and was missing portions that should have been there.
2415 Err, it would rightly not match on them, but their absence caused a match
2416 when it shouldn't have been.
2418 2.7.2 26/7/95 - Released
2420 Problem with filtering just SYN flagged packets reported by
2421 Dieter Dworkin Muller <dworkin@village.org>. To solve this
2422 problem, added support for masking TCP flags for comparison "flags X/Y".
2424 2.7.1 9/7/95 - Released
2426 Added ip_dirbroadcast support for Sun ip_input.c
2428 Fixed up the install scripts for FreeBSD/NetBSD to recognise where they are
2431 2.7 7/7/95 - Released
2433 Added "return-rst" to return TCP RST's to TCP packets.
2435 Actually ported it to FreeBSD-i386 2.0.0, so it works there properly now.
2437 Added insertion of filter rules. Use "@<#>" at the beginning of a filter
2438 to insert a rule at row #.
2440 Filter keeps track of how many times each rule is matched.
2442 Changed compile time things to match kernel option (IPFILTER_LKM &
2445 Updated ip_input.c and ip_output.c with paches for 3.5 Multicast IP.
2446 (No change required for 3.6)
2448 Now includes TCP fragments which start inside the TCP header as being short.
2449 Added counting the number of times each rule is matched.
2452 2.6 11/5/95 - Released
2454 Added -n option to ipf: when supplied, no changes are made to the kernel.
2456 Added installation scripts for SunOS 4.1.x and NetBSD/FreeBSD/BSDI.
2458 Rewrote filtering to use a more generic mask & match procedure for
2459 checking if a packet matches a rule.
2461 2.5.2 27/4/95 - Released
2463 "tcp/udp" and a non-initialised pointer caused the "proto" to become
2464 a `random' value; added "ip#/dotted.mask" notation to the BNF.
2465 From Adam W. Feigin <feigin@iis.ee.ethz.ch>
2467 2.5.1 22/3/95 - Released
2469 "tcp/udp" had a strange effect (undesired) on getserv*() functions,
2470 causing protocol/service lookups to fail. Reported by Matthew Green.
2472 2.5 17/3/95 - Released
2474 Added a new keyword "all" to BNF and parsing of tcpdump/etherfind/snoop
2475 output through the ipftest program. Suggestions from:
2476 Michael Ciavarella (mikec@phyto.apana.org.au)
2478 Conflicts occur when "general" filter rules are used for ports and the
2479 lack of a "proto" when used with "port" matches other packets when only
2480 TCP/UDP are implied.
2481 Reported Matthew Green (mrg@fulcom.com.au);
2482 reported & fixed 6-8/3/95
2484 Added filtering of short TCP packets using "with short" 28/2/95
2485 (These can possibly slip by checks for the various flags). Short UDP
2486 or ICMP are dropped to the floor and logged.
2488 Added filtering of fragmented packets using "with frag" 24/2/95
2490 Port to NetBSD-current completed 20/2/95, using LKM.
2492 Added logging of the rule # which caused the logging to happen and the
2493 interface on which the packet is currently as suggested by
2494 Andreas Greulich (greulich@math-stat.unibe.ch) 10/2/95
2496 2.4 9/2/95 - Released
2497 Fixed saving of IP headers in ICMP packets.
2500 Added ipf -F [in|out|all] to flush filter rule sets (SIOCIPFFL).
2501 Fixed iplread() and iplsave() with help from Marc Huber.
2503 2.2 7/1/95 - Released
2504 Added code from Marc Huber <huber@fzi.de> to allow it to allocate
2505 its own major char number dynamically when modload'ing. Fixed up
2506 use of <, >, <=, >= and >< for ports.
2508 2.1 21/12/94 - Released
2509 repackaged to include the correct ip_output.c and ip_input.c *goof*
2511 2.0 18/12/94 - Released
2512 added code to check for port ranges - complete.
2513 rewrote to work as a loadable kernel module - complete.
2516 added code for ouput filtering as well as input filtering and added support for logging to a simple character device of packet headers.
2518 1.0 22/04/93 - Released