]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/ipfilter/HISTORY
This commit was generated by cvs2svn to compensate for changes in r97952,
[FreeBSD/FreeBSD.git] / contrib / ipfilter / HISTORY
1 #
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.
4 #
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
7 # distribution center.
8 #
9 # Thanks to Hewlett Packard for making it possible to port IP Filter to
10 # HP-UX 11.00.
11 #
12 # Thanks to Tel.Net Media for supplying me with equipment to ensure that
13 # IP Filter continues to work on Solaris/sparc64.
14 #
15 # Thanks to BSDI for providing object files for BSD/OS 3.1 and the means
16 # to further support development of IP Filter under BSDI.
17 #
18 # Thanks to Craig Bishop of connect.com.au and Sun Microsystems for the
19 # loan of a machine to work on a Solaris 2.x port of this software.
20 #
21 # Thanks also to all those who have contributed patches and other code,
22 # and especially those who have found the time to port IP Filter to new
23 # platforms.
24 #
25 3.4.26  25/04/2002 - Released
26
27 fix parsing and printing of NAT rules with regression tests.
28
29 add code to adjust TCP checksums inside ICMP errors where present and as
30 required for NAT.
31
32 fix documentation problems in instal documents
33
34 fix locking problem with auth code on Solaris
35
36 fix use of version macros for FreeBSD and make the use of __FreeBSD_version
37 override previous hacks except when not present
38
39 fix the macros defined for SIOCAUTHR and SIOCAUTHW
40
41 fix the H.323 proxy so it no longer panics (multiple issues: re-entry into
42 nat_ioctl with lock held on Solaris, trying to copy data from kernel space
43 with copyin, unaligned access to get 32bit & 16bit numbers)
44
45 use the ip_ttl ndd parameter on Solaris to fill in ip_ttl for packets
46 generated by IPFilter
47
48 fix comparing state information to delete state table entries
49
50 flag packets as being "bad state" if they're outside the window and prevent
51 them from being able to cause new state to be created - except for SYN packets
52
53 be stricter about what packets match a TCP state table entry if its creation
54 was triggered by a SYN packet.
55
56 add patches to handle TCP window scaling
57
58 don't update TCP state table entries if the packet is not considered to be
59 part of the connection
60
61 ipfs wasn't allowing -i command line option in getopt
62
63 IRIX: fix kvm interface, fix compile warnings, compile the kernel with -O2
64       regardless of user compile, fix the getkflags script to prune down the
65       output more so it is acceptable
66
67 change building in Makefiles to create links to the application in $(TOP)
68 at the end of "build" rather than when each is created.
69
70 update BSD/kupgrade for FreeBSD
71
72 l4check wasn't properly closing things when a connection fails
73
74 man page updates for ipmon(8) and ipnat(5)
75
76 more regression tests added.
77
78 3.4.25  13/03/2002 - Released
79
80 retain rule # in state information
81
82 log the direction of a packet so ipmon gets it right rather than incorrectly
83 deriving it from the rule flags
84
85 add #ifdef for IPFILTER_LOGSIZE (put options IPFILTER_LOGSIZE=16384 in BSD
86 kernel config files to increase that buffer size)
87
88 recognise return-* rules differently to block in ipftest
89
90 fix bug in ipmon output for solaris
91
92 add regression testing for skip rules, logging and using head/group
93
94 fix output of ipmon: was displaying large unsigned ints rather than -1
95 when no rules matched.
96
97 make logging code compile into ipftest and add -l command line option to
98 dump binary log file (read with ipmon -f) when it finishes.
99
100 protect rule # and group # from interference when checking accounting rules
101
102 add regression testing for log output (text) from ipmon.
103
104 document -b command line option for ipmon
105  
106 fix double-quick in Solaris startup script
107
108 3.4.24  01/03/2002 - Released
109
110 fix how files are installed on SunOS5
111
112 fix some minor problems in SunOS5 ipfboot script
113
114 by default, compile all OpenBSD tools in 3.0 for IPv6
115
116 fix NULL-pointer dereference in NAT code
117
118 make a better attempt at replacing the appropriate binaries on BSD systems
119
120 always print IPv6 icmp-types as a number
121
122 impose some rules about what "skip" can be used with
123
124 fix parsing problems with "keep state" and "keep state-age"
125
126 Try to read as much data as is in the log device in ipmon
127
128 remove some redundant checks when searching for rdr/nat rules
129
130 fix bug in handling of ACCT with FTP proxy
131
132 increase array size for interface names, using LIFNAMSIZ
133
134 include H.323 proxy from QNX
135
136 3.4.23  16/01/2002 - Released
137
138 Include patches to install IPFilter into OpenBSD 3.0, both for just kernel
139 compiles and complete system builds.
140
141 Fix bug in automatic flushing of state table which would cause it to hang
142 in an infinite loop bug introduced in 3.4.20.
143
144 Modify the sample proxy (samples/proxy.c) so that it ads a NAT mapping for
145 the outgoing connection to make it look like it comes from the real source.
146
147 Only support ICMPv6 with IPv6.
148
149 Move ipnat.1 to ipnat.8
150
151 Enhance ipmon to print textual ICMP[v6] types and subtypes where possible.
152
153 Make it possible to do IPv6 regression testing with ipftest.
154
155 Use kvm library for kmem access, rather than trying to do it manually with
156 open/lseek/read.
157
158 Fix diffs for ip_input.c on BSDOS so it doesn't crash with fastroute.
159
160 Remove Berkeley advertising licence clause. Reference:
161 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
162
163 Add more regression tests: ICMPv6 neighbour discovery, ICMP time exceeded
164 and fragmentation required.
165
166 Fix ipfboot script on Solaris to deal with no nameservers or no route to
167 them in a clean manner.
168
169 Support per-rule set timeouts for non-TCP NAT and state
170
171 Add netbios proxy
172
173 Add ICMPv6 stateful checking, including handling multicast destination
174 addresses for neighbour discovery.
175
176 Fix problems with internals of ICMP messages for MTU discovery and
177 unreachables not being correctly adjust on little endian boxes.
178
179 Add "in-via" and "out-via" to filtering rules grammar.  It is now possible
180 to bind a rule to both incoming and outgoing interfaces, in both forward
181 and reverse directions (4 directions in total).  allows for asymetric flows
182 through a firewall.
183
184 Fix ipfstat and ipnat for working on crash dumps.
185
186 Don't let USE_INET6 stay defined for SunOS4
187
188 Count things we see for each interface on solaris.
189
190 Include <netinet/icmp6.h> when compiling with USE_INET6 defined and
191 also include a whole bunch of #define's to make sure the symbols expected
192 can be used.
193
194 Fix up fastroute on BSD systems.
195
196 Make fastrouting work for IPv6 just a bit better.  doesn't split up big
197 packets into fragments like the IPv4 one does.  You can now do a
198 "to <if>:<ipv6_addr>"
199
200 Remove some of the differences between user-space and kernel-space code
201 that is internal to ipfilter.
202
203 Call ipfr_slowtimer() after each packet is processed in ipftest to artificially
204 create the illusion of passing time and include the expire functions in the
205 code compiled for user-space.
206
207 Fix issues with the IPSec proxy not working or leading to a system crash.
208
209 Junk all processing of SPIs and special handling for ESP.
210
211 Add "no-match" as a filter rule action (resets _LAST_ match)
212
213 Add hack to workaround problems with Cassini interface cards on
214 Solaris and VLANs
215
216 Add some protocols to etc/protocols
217
218 3.4.22  03/12/2001 - Released
219
220 various openbsd changes
221
222 sorting based on IP numbers for ipfstat top output
223
224 fix various IPv6 code & compile problems
225
226 modify ip_fil.c to be more netbsd friendly
227
228 fix fastroute bug where it modified a packet post-sending
229
230 fix get_unit() - don't understand why it was broken.
231
232 add FI_IGNOREPKT and don't count so marked packets when doing stats or
233 state/nat.
234
235 extend the interface name saved to log output
236
237 make proxies capable of extending the matching done on a packet with a
238 particular nat session
239
240 change interfaces inside NAT & state code to accomodate redesign to allow
241 IPsec proxy to work.
242
243 fix bug when free'ing loaded rules that results in a memory leak
244 (only an issue with "ipf -rf -", not flush)
245
246 make ipftest capable of loading > 1 file or rules, making it now possible
247 to load both NAT & filter rules
248
249 fix hex input for ipftest to allow interface name & direction to work
250
251 show ipsec proxy details in ipnat output
252
253 if OPT_HEX is set in opts, print a packet out as hex
254
255 don't modify b_next or preseve it or preserve b_prev for solaris
256
257 fix up kinstall scripts to install all the files everywhere they need to
258
259 fix overflowing of bits in ip_off inside iptest
260
261 make userauth and proxy in samples directory compile
262
263 fix minimum size when doing a pullup for ESP & ICMPv6
264
265 3.4.21  24/10/2001 - Released
266
267 include ipsec proxy
268
269 make state work for non-tcp/udp/icmp in a very simple way
270
271 include diffs for ipv6 firewall on openbsd-2.9
272
273 add compatibility filter wrapper for NetBSD-current
274
275 fix command line option problems with ipfs
276
277 if we fill the state table and a automated flush doesn't purge any
278 expiring entries, remove all entries idle for more than half a day
279
280 fix bug with sending resets/icmp errors where the pointer to the data
281 section of the packet was not being set (BSD only)
282
283 split out validating ftp commands and responses into different halves,
284 one for each of server & client.
285
286 do not compile in STATETOP support for specific architectures
287
288 fix INSTALL.FreeBSD to no longer provide directions and properly direct
289 people to the right file for the right version of FreeBSD.
290
291 3.4.20  24/07/2001 - Released
292
293 adjust NAT hashing to give a better spread across the table
294
295 show icmp code/type names in output, where known
296
297 fix bug in altering cached interface names in state when resync'ing
298
299 fix bug in real audio proxy that caused crashs
300  
301 fix compiling using sunos4 cc
302
303 patch from casper to address weird exit problem for ipstat in top mode
304
305 patch from Greg Woods to produce names for icmp types/unreach codes,
306 where they are known
307
308 fix bug where ipfr_fastroute() would use a mblk and it would also get
309 freed later.
310
311 don't match fragments which would cause 64k length to be exceeded
312
313 ftp proxy fix for port numbers being setup for pasv ftp with state/nat 
314
315 change hashing for NAT to include both IP#'s and ports.
316
317 Solaris fixes for IPv6
318
319 fix compiling iplang bits, under Solaris, for ipsend
320
321 3.4.19  29/06/2001 - Released
322
323 fix to support suspend/resume on solaris8 as well as ipv6
324
325 include group/group-head in match of filter rules
326
327 fix endian problem reading snoop files
328
329 make all licence comments point to the one place
330
331 fix ftp proxy to only advance state if a reply is received in response to
332 a recognised command
333
334 3.4.18  05/06/2001 - Released
335
336 fix up parsing of "from ! host" where '!' is separate
337
338 disable hardware checksums for NetBSD
339
340 put ipftest temporary files in . rather than /tmp
341
342 modify ftp proxy to be more intelligent about moving between states
343 and recognise new authentication commands
344
345 allow state/nat table sizes to be externally influenced
346
347 print out host mapping table for NAT with ipnat -l
348
349 fix handling of hardware checksum'ing on Solaris
350
351 fixup makefiles for Solaris
352
353 update regression tests
354
355 fix surrender of SPL's for failure cases
356
357 include patches for OpenBSD's new timeout mechanism
358
359 default ipl_unreach to ICMP_UNREACH_FILTER_PROHIB if defined, else make it
360 ICMP_UNREACH_FILTER
361
362 fix up handling of packets matching auth rules and interaction with state
363
364 add -q command line option to ipfstat on Solaris to list bound interfaces
365
366 add command line option to ipfstat/ipnat to select different core image
367
368 don't use ncurses on Solaris for STATETOP
369
370 fix includes to get FreeBSD version
371
372 do not byte swap ip_id
373
374 fix handling success for packets matching the auth rule
375
376 don't double-count short packets
377
378 add ICMP router discovery message size recognition
379
380 fix packet length calculation for IPv6
381
382 set CPUDIR when for install-sunos5 make target
383
384 SUNWspro -xF causes Solaris 2.5.1 kernel to crash
385
386 3.4.17  06/04/2001 - Released
387
388 fix fragment#0 handling bug where they could get in via cache information
389 created by state table entries
390
391 use ire_walk to look for ire cache entries with link layer headers cached 
392
393 deal with bad SPL assumptions for log reading on BSD
394
395 fix ftp proxy to allow logins with passwords
396
397 some auth rule patches, fixing byte endian problems and returning as an error
398
399 support LOG_SECURITY, where available, in ipmon
400
401 don't return an error for packets which match auth rules
402
403 introduce fr_icmpacktimeout to timeout entries once an ICMP reply has
404 been seen separately to when created
405
406 3.4.16  15/01/2001 - Released
407
408 fix race condition in flushing of state entries that are timing out
409
410 Add TCP ECN patches
411
412 log all NAT entries created, not just those via rules
413
414 3.4.15  17/12/2000 - Released
415
416 add minimum ttl filtering (to be replaced later by return-icmp-as-dest
417 for all ICMP packets matching state entries).
418
419 fix NAT'ing of fragments
420
421 fix sanity checks for ICMPV6
422
423 fix up compiling on IRIX 6.2 with IDF/IDL installed
424
425 3.4.14  02/11/2000 - Released
426
427 cause flushing NAT table to generate log records the same as state flush
428 does.
429
430 fix ftp proxy port/pasv
431
432 fix problem where nat_{in,out}lookup() would release a write lock when it
433 didn't need to.
434
435 add check for ipf6.conf in Solaris ipfboot
436
437 3.4.13  28/10/2000 - Released
438
439 fix introduced bug with ICMP packets being rejected when valid
440
441 fix bug with proxy's that don't set fin_dlen correctly when calling
442 fr_addstate()
443
444 3.4.12  26/10/2000 - Released
445
446 fix installing into FreeBSD-4.1
447
448 fix FTP proxy bug where it'd hang and make NAT slightly more efficient
449
450 fix general compiling errors/warnings on various platforms
451
452 don't access ICMP data fields that aren't there
453
454 3.4.11  09/10/2000 - Released
455
456 return NULL for IPv6 access control lists if it is disabled rather than
457 random garbage.
458
459 fix for getting protocol & packet length for IPv6 packets for pullup.
460
461 update plog script from version 0.8 to version 0.10
462
463 patch from Frank Volf adding fix_datacksum() to NAT code, enhancing the
464 capabilities for "fixing" checksums.
465
466 3.4.10  03/09/2000 - Released
467
468 merge patch from Frank Volf for ICMP nat handling of TCP/UDP data `errors'
469
470 getline() adjusts linenum now
471
472 add tcphalfclosed timeout
473
474 fill in icmp_nextmtu field if it is defined on the platform
475
476 RST generation fix from guido
477
478 force 32bit compile for gcc on solaris if it can't generate 64bit code
479
480 encase logging when fr_chksrc == 2 in #ifdef IPFILTER_LOG
481
482 fix up line wrap problems in plog script
483
484 fix ICMP packet handling to not drop valid ICMP errors
485
486 freebsd 5.0 compat changes
487
488 3.4.9   08/08/2000 - Released
489
490 implement new aging mechanism in fr_tcp_age()
491
492 fix icmp state checking bug
493
494 revamp buildsunos script and build both sparcv7/sparcv9 for Solaris
495 if on an Ultra with a 64bit system & compiler (Caseper Dik)
496
497 open ipfilter device read only if we know we can
498
499 print out better information for ICMP packets in ipmon
500
501 move checking for source spoofed packets to a point where we can generate
502 logs of them
503
504 return EFAULT from ircopyptr/iwcopyptr
505
506 don't do ioctl(SIOCGETFS) for auth stats
507
508 fix up freeing mbufs for post-4.3BSD
509
510 fix returning of inc from ftp proxy
511
512 fix bugs with ipfs -R/-W (Caseper Dik)
513
514 3.4.8   19/07/2000 - Released
515
516 create fake opt_inet6.h for FreeBSD-4 compile as LKM
517
518 add #ifdef's for KLD_MODULE sanity
519
520 NAT fastroute'd packets which come out of return-*
521
522 fix upper/lower case crap in ftp proxy and get seq# checking fixed up.
523
524 3.4.7   08/07/2000 - Released
525
526 make "ipf -y" lookup NAT if's which are unknown
527
528 prepend line numbers to ioctl error messages in ipf/ipnat
529
530 don't apply patches to FreeBSD twice
531
532 allow for ip_len to be on an unaligned boundary early on in fr_precheck
533
534 fix printing of icmp code when it is 0
535
536 correct printing of port numbers in map rules with from/to
537
538 don't allow fr_func to be called at securelevel > 0 or rules to be added
539 if securelevel > 0 if they have a non-zero fr_func.
540
541 3.4.6   11/06/2000 - Released
542
543 add extra regression tests for new nat functionality
544
545 place restrictions on using '!' in map/rdr rules
546
547 fix up solaris compile problems
548
549 3.4.5   10/06/2000 - Released
550
551 mention -sl in ipfstat.8
552
553 fix/support '!' in from/to rules (rdr) for NAT
554
555 add from/to support to rdr NAT rules
556
557 don't send ICMP errors in response to ICMP errors
558
559 fix sunos5 compilation for "ipfstat-top" and cleanup ipfboot
560
561 input accounting list used for both outbound and inbound packets
562
563 3.4.4   23/05/2000 - Released
564
565 don't add TCP state if it is an RST packet and (attempt) to send out
566 RST/ICMP packets in a manner that bypasses IP Filter.
567
568 add patch to work with 4.0_STABLE delayed checksums
569
570 3.4.3   20/05/2000 - Released
571
572 fix ipmon -F
573
574 don't truncate IPv6 packets on Solaris
575
576 fix keep state for ICMP ECHO
577
578 add some NAT stats and use def_nat_age rather than DEF_NAT_AGE
579
580 don't make ftp proxy drop packets
581
582 use MCLISREFERENCED() in tandem with M_EXT to check if IP fields need to be
583 swapped back.
584
585 fix up RST generation for non-Solaris
586
587 get "short" flag right for IPv6
588
589 3.4.2 - 10/5/2000 - Released
590
591 Fix bug in dealing with "hlen == 1 and opt > 1" - Itojun
592
593 ignore previous NAT mappings for 0/0 and 0/32 rules
594
595 bring in a completely new ftp proxy
596
597 allow NAT to cause packets to be dropped.
598
599 add NetBSD callout support for 1.4-current
600
601 3.4.1 - 30/4/2000 - Released
602
603 add ratoui() and fix parsing of group numbers to allow 0 - UINT_MAX
604
605 don't include opt_inet6.h for FreeBSD if KLD_MODULE is defined
606
607 Solaris must use copyin() for all types of ioctl() args
608
609 fix up screen/tty when leaving "top mode" of ipfstat
610
611 linked list for maptable not setup correctly in nat_hostmap()
612
613 check for maptable rather than nat_table[1] to see if malloc for maptable
614 succeeded in nat_init
615
616 fix handling of map NAT rules with "from/to" host specs
617
618 fix printout out of source address when using "from/to" with map rules
619
620 convert ip_len back to network byte order, not plen, for solaris as ip_len
621 may have been changed by NAT and plen won't reflect this
622
623 3.4 - 27/4/2000 - Released
624
625 source address spoofing can be turned on (fr_chksrc) without using
626 filter rules
627
628 group numbers are now 32bits in size, up from 16bits
629
630 IPv6 filtering available
631
632 add frank volf's state-top patches
633
634 add load splitting and round-robin attribute to redirect rules
635
636 FreeBSD-4.0 support (including KLD)
637
638 add top-style operation mode for ipfstat (-t)
639
640 add save/restore of IP Filter state/NAT information (ipfs)
641
642 further ftp proxy security checks
643
644 support for adding and removing proxies at runtime
645
646 3.3.13  26/04/2000 - Released
647
648 Fix parsing of "range" with "portmap"
649
650 Relax checking of ftp replies, slightly.
651
652 Fix NAT timeouts for ICMP packets
653
654 SunOS4 patches for ICMP redirects from Jurgen Keil (jk@tools.de)
655
656 3.3.12  16/03/2000 - Released
657
658 tighten up ftp proxy behaviour.  sigh.  yuck.  hate.
659
660 fix bug in range check for NAT where the last IP# was not used.
661
662 fix problem with icmp codes > 127 in filter rules caused bad things to
663 happen and in particular, where #18 caused the rule to be printed
664 erroneously.
665
666 fix bug with the spl level not being reset when returning EIO from
667 iplioctl due to ipfilter not being initialized yet.
668
669 3.3.11  04/03/2000 - Released
670
671 make "or-block" work with lines that start with "log"
672
673 fix up parsing and printing of rules with syslog levels in them
674
675 fix from Cy Schubert for calling of apr_fini only if non-null
676
677
678 3.3.10  24/02/2000 - Released
679
680 * fix back from guido for state tracking interfaces
681
682 * update for NetBSD pfil interface changes
683
684 * if attaching fails and we can abort, then cleanup when doing so.
685
686 julian@computer.org:
687 * solaris.c (fr_precheck): After calling freemsg on mt, set it point to *mp.
688 * ipf.c (packetlogon): use flag to store the return value from get_flags.
689 * ipmon.c (init_tabs): General cleanup so we do not have to cast
690   an int s->s_port to u_int port and try to check if the u_int port
691   is less than zero.
692
693 3.3.9   15/02/2000 - Released
694
695 fix scheduling of bad locking in fr_addstate() used when we attach onto
696 a filter rule.
697
698 fix up ip_statesync() with storing interface names in ipstate_t
699
700 fix fr_running for LKM's - Eugene Polovnikov
701
702 junk using pullupmsg() for solaris - it's next to useless for what we
703 need to do here anyway - and implement what we require.
704
705 don't call fr_delstate() in fr_checkstate(), when compiled for a user
706 program, early but when we're finished with it (got fr & pass)
707
708 ipnat(5) fix from Guido
709
710 on solaris2, copy message and use that with filter if there is another
711 copy if it being used (db_ref > 1).  bad for performance, but better
712 than causing a crash.
713
714 patch for solaris8-fcs compile from Casper Dik
715
716 3.3.8   01/02/2000 - Released
717
718 fix state handling of SYN packets.
719
720 add parsing recognition of extra icmp types/codes and fix handling of
721 icmp time stamps and mask requests - Frank volf
722
723 3.3.7   25/01/2000 - Released
724
725 sync on state information as well as NAT information when required
726
727 record nat protocol in all nat log records
728
729 don't reuse the IP# from an active NAT session if the IP# in the rule
730 has changed dynamically.
731
732 lookup the protocol for NAT log information in ipmon and pass that to
733 portname.
734
735 fix the bug with changing the outbound interface of a packet where it
736 would lead to a panic.
737
738 use fr_running instead of ipl_inited. (sysctl name change on freebsd)
739
740 return EIO if someone attempts an ioctl on state/nat if ipfilter is not
741 enabled.
742
743 fix rule insertion bug
744
745 make state flushing clean anything that's not fully established (4/4)
746
747 call fr_state_flush() after we've released ipf_state so we don't generate
748 a recursive mutex acquisition panic
749
750 fix parsing of icmp code after return-icmp/return-icmp-as-dest and add
751 some patches to enhance parsing strength
752
753 3.3.6   28/12/1999 - Released
754
755 add in missing rwlock release in fr_checkicmpmatchingstate() and fix check
756 for ICMP_ECHO to only be for packet, not state entry which we don't have yet.
757
758 handle SIOCIPFFB in nat_ioctl() and fr_state_ioctl()
759
760 fix size of friostat for SunOS4
761
762 fix bug in running off the end of a buffer in real audio proxy
763
764 3.3.5   11/12/1999 - Released
765
766 fix parsing of "log level" and printing it back out too
767
768 <net/if_types.h> is only present on Solaris2.6/7/8
769
770 use send_icmp_err rather than icmp_error to send back a frag-needed error
771 when doing PMTU
772
773 do not use -b with add_drv on Solaris unless $BASEDIR is set.
774
775 fix problem where source address in icmp replies is reversed
776
777 fix yet another problem with real audio.
778
779 3.3.4   4/12/1999 - Released
780
781 fix up the real audio proxy to properly setup state information and NAT
782 entries, thanks to Laine Stump for testing/advice/fixes.
783
784 fix ipfr_fastroute to set dst->sin_addr (Sean Farley - appears to prevent
785 FreeBSD 3.3 from panic'ing) as this had been removed in prior hacks to this
786 routine.
787
788 fix kinstall for BSDI
789
790 support ICMP errors being allowed through for ICMP packets going out with
791 keep state enabled
792
793 support hardware checksumming (gigabit ethernet cards) on Solaris thanks to
794 Tel.Net Media for providing hardware for testing.
795
796 patched from Frank Volf for ipmon (ICMP & fragmented packets) and allowing
797 ICMP responses to ICMP packets in the keep state table.
798
799 add in patches for hardware checksumming under solaris
800
801 Solaris install scripts now use $BASEDIR as appropriate.
802
803 add Solaris8 support
804
805 fix "ipf -y" on solaris so that it rescans rules also for changes in
806 interface pointers
807
808 let ipmon become a daemon with -D if it is using syslog
809
810 fix parsing of return-icmp-as-dest(foo)
811
812 add reference to ipfstat -g to ipfstat.8
813
814 ipf_mutex needs to be declared for irix in ip_fil.c
815
816 3.3.3   22/10/1999 - Released
817
818 add -g command line option to ipfstat to show groups still define.
819
820 fix problem with fragment table not recording rule pointer when called
821 from state functions (fin_fr not set).
822
823 fixup fastroute problems with keep state rules.
824
825 load rules into inactive set first, so we don't disable things like NIS
826 lookups half way through processing - found by Kevin Littlejohn
827
828 fix handling of unaligned ip pointer for solaris
829
830 patch for fr_newauth from Rudi Sluijtman
831
832 fixed htons() bug in fr_tcpsum() where ip_p wasn't cast to u_short
833
834 3.3.2   23/09/1999 - Released
835
836 patches from Scott Presnell to fix rcmd proxy
837
838 patches from Greg to fix Solaris detachment of interfaces
839
840 add openbsd compatibility fixes
841
842 fix free'ing already freed memory in ipfr_slowtimer()
843
844 fix for deferencing invalid memory in cleaning up after a device disappears
845
846 3.3.1   14/8/1999 - Released
847
848 remove include file sys/user.h for irix
849
850 prevent people from running buildsunos directly
851
852 fix up some problems with the saving of rule pointers so that NAT saves
853 that information in case it should need to call fr_addstate() from a proxy.
854
855 fix up scanning for the end of FTP messages
856
857 don't remove /etc/opt/ipf in postremove
858
859 attempt to prevent people running buildsolaris script without doing a
860 "make solaris"
861
862 fix timeout losing on freebsd3
863
864 3.3     7/8/1999 - Released
865
866 NAT: information (rules, mappings) are stored in hash tables; setup some
867 basic NAT regression testing.
868
869 display version name of installed kernel code when initializing.
870
871 add -V command line option to ipf, showing version (program and kernel
872 module) as well as the run-status of the kernel code.
873
874 fix problem with "log" rules actually affecting result of filtering.
875
876 automatically use SUNWspro if available and on a 64bit Solaris system for
877 compiling.
878
879 add kernel proxies for rcmd(3) and RealAudio (PNA)
880
881 use timeout/untimeout on SunOS4/BSD platforms too rather than hijacking
882 ip_slowtimo
883
884 fix IP headers generated through parsing of text information
885
886 fix NAT rules to be in the correct order again.
887
888 make keep-state work with to/fastroute keywords and enforce usage of those
889 interfaces.
890
891 update keep-state code with new algorithm from Guido
892
893 add FreeBSD-3 support
894
895 add return-icmp-as-dest option to retrun an ICMP packet using the original
896 destination as the source rather than a local IP address
897
898 add "level [facility.]<priority>" option to filter language
899
900 add changes from Guido to state code.
901
902 add code to return EPERM if the device is opened for writing and we're
903 in securelevel 2 or greater.
904
905 authentication code patches from Guido
906
907 fix real audio proxy
908
909 fix ipmon rule printing of interfaces and add IN/OUT to the end of ipmon
910 log output.
911
912 fix bimap rules with hash tables
913
914 update addresses used in NAT mappings for 0/32 rules for any protocol but TCP
915 if it changes on the interface - check every ip_natexpire()
916
917 add redirect regression test
918
919 count buckets used in the state hash table.
920
921 fix sending of RST's with return-rst to use the ack number provided in
922 the packet being replied to in addition to the sequence number.
923
924 fix to compile as a 64bit application on solaris7-64bit
925
926 add NAT IP mapping to ranges of IP addresses that aren't CIDR specified
927
928 fix calculation of in_space parameter for NAT
929
930 fix `wrapping' when incrementing the next ip address for use in NAT
931
932 fix free'ing of kernel memory in ip_natunload on solaris
933
934 fix -l/-U command line options from interfering with each other
935
936 fix fastroute under solaris2 and cleanup compilation for solaris7
937
938 add install scripts and compile cleanly on BSD/OS 4.0
939
940 safely open files in /tmp for writing device output when testing.
941
942 fix uninitialized pointer bug in NAT
943
944 fix SIOCZRLST (zero list rule stats) bug with groups
945
946 change some usage of u_short to u_int in function calling
947
948 fix compilation for Solaris7 (SUNWspro)
949
950 change solaris makefiles to build for either sparc or i386 rather than
951 per-cpu (sun4u, etc).
952
953 fixed bug in ipllog
954
955 add patches from George Michaelson for FreeBSD 3.0
956
957 add patch from Guido to provide ICMP checking for known state in the same
958 manner as is done for NAT.
959
960 enable FTP PASV proxying and enable wildcarding in NAT/state code for ports
961 for better PORT/PASV support with FTP.
962
963 bring into main tree static nat features: map-block and "auto" portmapping.
964
965 add in source host filtering for redirects (alan jones)
966
967 3.2.10          22/11/98 - Released
968
969 3.2.10beta9     17/11/98 - Released
970
971 fix fr_tcpsum problems in handling mbufs with an odd number of bytes
972 and/or split across an mbuf boundary
973
974 fix NAT list entry comparisons and allow multiple entries for the same
975 proxy (but on different ports).
976
977 don't create duplicate NAT entries for repeated PORT commands.
978
979 3.2.10beta8     14/11/98 - Released
980
981 always exit an rwlock before expecting to enter it again on solaris
982
983 fix loop in nat_new for pre-existing nat
984
985 don't setup state for an ftp connection if creating nat fails.
986
987 3.2.10beta7     05/11/98 - Released
988
989 set fake window in ipft_tx.c to ensure code passes tests.
990
991 cleaned up/enhanced ipnat -l/ipnat -lv output
992
993 fixed NAT handling of non-TCP/UDP packets, esp. for ICMP errors returned.
994
995 Solaris recusive mutex on icmp-error/tcp-reset - requires rwlock's rather
996 than mutexes.
997
998 3.2.10beta6     03/11/98 - Released
999
1000 fix mixed use of krwlock_t and kmutex_t on Solaris2
1001
1002 fix FTP proxy back up, splitting pasv code out of port code.
1003
1004 3.2.10beta5     02/11/98 - Released
1005
1006 fixed port translation in ICMP reply handling
1007
1008 3.2.10beta4     01/11/98 - Released
1009
1010 increase useful statistic collection on solaris
1011
1012 filter DL_UNITDATA_REQ as well as DL_UNITDATA_IND on solaris
1013
1014 disable PASV reply translation for now
1015
1016 fail with an error if we try to load a NAT rule with a non-existant
1017    proxy name - Guido
1018
1019 fix portmap usage with 0/0 and 0/32 map rules
1020
1021 remove ap_unload/ap_expire - automatically done when NAT is cleaned up
1022
1023 print "STATE:CLOSED" from ipmon if the connection progresses past established
1024    rather than "STATE:EXPIRED"
1025
1026 3.2.10beta3     26/10/98 - Released
1027
1028 fixed traceroute/nat problem
1029
1030 rewrote nat/proxy interface
1031
1032 ipnat now lists associated proxy sessions for each NAT where applicable
1033
1034 3.2.10beta2     13/10/98 - Released
1035
1036 use KRWLOCK_T in place of krwlock_t for solaris as well as irix
1037
1038 disable use of read-write lock acquisition by default
1039
1040 add in mb_t for linux, non-kernel
1041
1042 some changes to progress compilation on linux with glibc
1043
1044 change PASV as well as PORT when passed through kernel ftp proxy.
1045
1046 don't allow window to become 0 in tcp state code
1047
1048 make ipmon compile cleaner
1049
1050 irix patches
1051
1052 3.2.10beta      11/09/98 - Released
1053
1054 stop fr_tcpsum() thinking it has run out of data when it hasn't.
1055
1056 stop solaris panics due to fin_dp being something wild.
1057
1058 revisit usage of ATOMIC_*()
1059
1060 log closing state of TCP connection in "keep state"
1061
1062 fix fake-arp table code for ipsend.
1063
1064 ipmon now writes pid to a file.
1065
1066 fix "ipmon -a" to actually activate all logging devices.
1067
1068 add patches for BSDOS4.
1069
1070 perl scripts for log analysis donated.
1071
1072 3.2.9   22/06/98 - Released
1073
1074 fix byte order for ICMP packets generated on Solaris
1075
1076 fix some locking problems.
1077
1078 fix malloc bug in NAT (introduced in 3.2.8).
1079
1080 patch from guido for state connections that get fragmented
1081
1082 3.2.8   08/06/98 - Released
1083
1084 use readers/writers locks in Solaris2 in place of some mutexes.
1085
1086 Solaris2 installation enhancements - Martin Forssen (maf@carlstedt.se)
1087
1088 3.2.7   24/05/98 - Released
1089
1090 u_long -> u_32_t conversions
1091
1092 patches from Bernd Ernesti for NetBSD
1093
1094 fixup ipmon to actually handle HUP's.
1095
1096 Linux fixes from Michael H. Warfield (mhw@wittsend.com)
1097
1098 update for keep state patch (not security related) - Guido
1099
1100 dumphex() uses stdout rather than log
1101
1102 3.2.6   18/05/98 - Released
1103
1104 fix potential security loop hole in keep state code.
1105
1106 update examples.
1107
1108 3.2.5   09/05/98 - Released
1109
1110 BSD/OS 3.1 .o files added for the kernel.
1111
1112 fix sequence # skew vs window size check.
1113
1114 fix minimum ICMP header size check.
1115
1116 remove references to Cybersource.
1117
1118 fix my email address.
1119
1120 remove ntohl in ipnat - Thomas Tornblom
1121
1122 3.2.4   09/04/98 - Released
1123
1124 add script to make devices for /dev on BSD boxes
1125
1126 fixup building into the kernel for FreeBSD 2.2.5
1127
1128 add -D command line option to ipmon to make it a daemon and SIGHUP causes
1129 it to close and reopen the logfile
1130
1131 fixup make clean and make package for SunOS5 - Marc Boucher
1132
1133 postinstall keeps adding "minor=ipf ipl" - George Ross <gdmr@dcs.ed.ac.uk>
1134
1135 protected by IP Filter gif - Sergey Solyanik <solik@atom.ru>
1136
1137 3.2.3   10/11/97 - Released
1138
1139 fix some iplang bugs
1140
1141 fix tcp checksum data overrun, sgi #define changes,
1142 avoid infinite loop when nat'ing to single IP# - Marc Boucher
1143
1144 fixup DEVFS usage for FreeBSD
1145
1146 fix sunos5 "make clean" cleaning up too much
1147
1148 3.2.2   28/11/97 - Released
1149
1150 change packet matching to return actual error, if bad packet, to facilitate
1151 ECONNRESET for TCP.
1152
1153 allow ip:netmask in grammar too now - Guido
1154
1155 assume IRIX has u_int32_t in sys/types.h (needed for R10000)
1156
1157 rewrite parts of command line options for ipmon
1158
1159 fix TCP urgent packet & offset testing and add LAND attack test for iptest
1160
1161 fix grammar error in yacc grammar for iplang
1162
1163 redirect (rdr) destination port bytes-wapped when it shouldn't be.
1164
1165 general: fr_check now returns error code, such as EHOSTUNREACH or
1166 ECONNRESET (attempt to make ECONNRESET work for locally outbound
1167 packets).
1168
1169 linux: enable return-rst, need to filter tcp retransmits which are sent
1170        separately from normal packets
1171
1172 memory leak plugged in ip_proxy.c
1173
1174 BSDI compatibility patches from Guido
1175
1176 tcp checksum fix - Marc Boucher
1177
1178 recursive mutex and ioctl param fix - Marc Boucher
1179
1180 3.2.1   12/11/97 - Released
1181
1182 port to BSD/OS 3.0
1183
1184 port to Linux 2.0.31
1185
1186 patches to make "map a/m -> 0/0" work with ftp proxying properly - Marc Boucher
1187
1188 add "ipf -F s" and "ipf -F S" to flush state table entries.
1189
1190 announce if logging is on or off when ip filter initializes.
1191
1192 "ipf -F a" doesn't flush groups properly for Solaris.
1193
1194 3.2             30/10/97 - Released
1195
1196 ipnat doesn't successfully remove proxy mappings with "-rf" -
1197 Alexander Romanyu
1198
1199 use K&R C function style for solaris kernel code
1200
1201 use m_adj() to decrease packet size in ftp proxy
1202
1203 use mbufchainlen rather than msgdsize,
1204 IRIX update - Marc Boucher
1205
1206 fix NetBSD modunload bug (pfil_add_hook done twice)
1207
1208 patches for OpenBSD 2.1 - Craig Bevins <craigb@bitcom.net.au>
1209
1210 3.2beta10       24/10/97 - Released
1211
1212 fix fragment table entries allocated for NAT.
1213
1214 fix tcp checksum calculations over mbuf/mblk boundaries
1215
1216 fix panic for blen < 0 in ftp kernel proxy - marc boucher
1217
1218 fix flushing of rules which have been grouped.
1219
1220 3.2beta9        20/10/97 - Released
1221
1222 some nit picking on solaris2 with SUNWspro - Michael Lyle <mrl@rpnet.net>
1223
1224 ftp kernel proxy patches from Marc Boucher
1225
1226 3.2beta8        13/10/97 - Released
1227
1228 add support for passing ICMP errors back through NAT.
1229
1230 IRIX port update - Marc Boucher
1231
1232 calculate correct MIN size of packet to log for UDP - Marc Boucher
1233
1234 need htons(ETHERTYPE_x) on little endian BSD boxes - Dave Huang
1235
1236 copyright header fixups
1237
1238 3.2beta7        23/09/97 - Released
1239
1240 fickup problems introduced by prior merges & changes.
1241
1242 3.2beta6        23/09/97 - Released
1243
1244 patch for spin-reading race condition - Marc Boucher.
1245
1246 IRIX port by Marc Boucher.
1247
1248 compatibility updates for Linux to ipsend
1249
1250 3.2beta5        13/09/97 - Released
1251
1252 patches from Bernd Ernesti for NetBSD integration (mostly prototyping and
1253 compiler warning things)
1254
1255 ipf -y will resync IP#'s allocated with 0/32 in NAT to match interface if it
1256 changes.
1257
1258 update manual pages and other documentation updates.
1259
1260 3.2beta4        27/8/97 - Released
1261
1262 enable setting IP and TCP options for iplang/
1263
1264 Solaris2 patches from Marc Boucher.
1265
1266 add groups for filter rules.
1267
1268 3.2beta3        21/8/97 - Released
1269
1270 patches for Solaris2 (interface panic solution ?): fix FIONREAD and
1271 replacing q_qinfo points - Marc Boucher <marc@CAM.ORG>
1272
1273 change ipsend/* and ipsd/* copyright notices to be the same as ip filter's
1274
1275 patch for SYN-ACK skew testing fix from Eric V. Smith <EricSmith@windsor.com>
1276
1277 3.2beta2        6/8/97 - Released
1278
1279 make it load on Solaris 2.3
1280
1281 rewrote logging to remove solaris errors, introduced checking to see if the
1282 same packet is logged successively.
1283
1284 fix filter cache to work when there are no rules loaded.
1285
1286 add "raw" option to ipresend to send entire ethernet frames.
1287
1288 nat list corruption bug - NetBSD - Klaus Klein
1289
1290 3.2beta1        5/7/97 - Released
1291
1292 patches from Jason Thorpe fixing: UNSIGNED_CHAR lossage, off_t being 64bits
1293 lossage, and other NetBSD bits.
1294
1295 NetBSD 1.2G update.
1296
1297 fixup fwtk patches and add protocol field for SIOCGNATL.
1298
1299 rdr bugs reported by Alexander Romanyu (alexr@aix.krid.crimea.ua), with
1300 fixes:
1301 * rdr matched all packets of a given protocol (ignored ports).
1302 * severe bug in nat_delete which caused system crash/freeze.
1303
1304 change Makefile so that CC isn't passed on for FreeBSD/NetBSD (will use
1305 the default CC - cc, not gcc)
1306
1307 3.2alpha9       16/6/97 - Released
1308
1309 added "skip" keyword.
1310
1311 implement preauthentication of packets, as outlined by Guido.
1312
1313 Make it compile as cleanly as possible with -Wall & general code cleanup
1314
1315 getopt returns int, not char. Bernd Ernesti
1316
1317 3.2alpha8       13/6/97 - Released
1318
1319 code added to support "auth" rules which require a user program to allow them
1320 through.  First revision and much of the code came from Guido.
1321
1322 hex output from ipmon doesn't goto syslog when recovering from out of sync
1323 error.  Luke Mewburn (lukem@connect.com.au)
1324
1325 fix solaris2.6 lookup of destination ire's.
1326
1327 ipnat doesn't throw away unused bits (after masking), causing it to
1328 behave incorrectly. Carson Gaspar
1329
1330 NAT code doesn't include inteface name when matching - Alexey Mavrin
1331 <lha@elco.spb.ru>
1332
1333 replace old SunOS tcpip.h with new tcpip.h (from 4.4BSD) - Jason Thorpe.
1334
1335 update install procedures to include ip_proxy.c
1336
1337 mask out unused bits in NAT/RDR rules.
1338
1339 use a generic type (u_32_t) for 32bit variables, rather than rely on
1340 u_long being such - Jason Thorpe.
1341
1342 create a local "netinet" directory and include from ~netinet/*" rather than
1343 just "*" to make keeping the code working on ports easier.
1344
1345 add an m_copydata and m_copyback for SunOS4 (based on 4.4BSD-Lite versions)
1346
1347 documentation updates.
1348
1349 NetBSD update from Jason Thorpe <thorpej@netbsd.org>
1350
1351 allow RST's through with a matching SEQ # and 0 ACK.  Guido Van Rooij
1352
1353 ipmon uses excessive amounts of CPU on Solaris2 - Reinhard Bertram
1354 <Reinhard.Bertram@KOM.th-darmstadt.de>
1355
1356 3.2alpha7       25/5/97 - Released
1357
1358 add strlen for pre-2.2 kernels - Doug Kite <dkite@websgi.icomnet.com>
1359
1360 setup bits and pieces for compiling into a FreeBSD-2.2 kernel.
1361
1362 split up "bsd" targets.  Now a separate netbsd/freebsd/bsd target.
1363 mln_ipl.c has been split up into itself and mlf_ipl.c (for freebsd).
1364
1365 fix (negative) host matching in filtering.
1366
1367 add sysctl interface for some variables when compiled into FreeBSD-2.2 kernels
1368 or later.
1369
1370 make all the candidates for kernel compiling include "netinet/..." and build
1371 a subdirectory "netinet" when compiling and symlink all .h files into this.
1372
1373 add install make target to Makefile.ipsend
1374
1375 3.2alpha6       8/5/97 - Released
1376
1377 Add "!" (not) to hostname/ip matching.
1378
1379 Automatically add packet info to the fragment cache if it is a fragment
1380 and we're translating addreses for.
1381
1382 Automatically add packet info to the fragment cache if it is a fragment
1383 and we're "keeping state" for the packet.
1384
1385 Solaris2 patches - Anthony Baxter (arb@connect.com.au)
1386
1387 change install procedure for FreeBSD 2.2 to allow building to a kernel
1388 which is different to the running kernel.
1389
1390 add FIONREAD for Solaris2!
1391
1392 when expiring NAT table entries, if we would set a time to fr_tcpclosed
1393 (which is 1), make it fr_tcplaskack(20) so that the state tables have a
1394 chance to clear up.
1395
1396 3.2alpha5
1397
1398 add proxying skeleton support and sample ftp transparent proxy code.
1399
1400 add printfs at startup to tell user what is happening.
1401
1402 add packets & bytes for EXPIRE NAT log records.
1403
1404 fix the "install-bsd" target in the root Makefile. Chris Williams
1405 <psion@mv.mv.com>
1406
1407 Fixes for FreeBSD 2.2 (and later revs) to prevent panics.  Julian Assange.
1408
1409 3.2alpha4       2/4/97 - Released
1410
1411 Some compiler warnings cleaned up.
1412
1413 FreeBSD-2.2 patches for LKM completed.
1414
1415 3.2alpha3       31/3/97 - Released
1416
1417 ipmon changes: -N for reading NAT logfile, -S for reading state logfile.
1418 -a for reading all.  -n now toggles hostname resolution.
1419
1420 Add logging of new state entries and expiration of old state entries.
1421 count log successes and failures.
1422
1423 Add logging of new NAT entries and expiration of old NAT entries.
1424 count log successes and failures.
1425
1426 Use u_quad_t for records of bytes & packets where kept
1427 (IP Accounting: fr_hits, fr_bytes; IP state: is_pkts, is_bytes).
1428
1429 Fixup use of CPU and DCPU in Makefiles.
1430
1431 Fix broken 0/32 NAT mapping. Carl Makin <cmakin@nla.gov.au>
1432
1433 3.2alpha2
1434
1435 Implement mapping to 0/32 as being an alias for automatically using the
1436 interface's first IP address.
1437
1438 Implement separate minor devices for both NAT and IP state code.
1439
1440 Fully prototype all functions.
1441
1442 Fix Makefile problem due to attempt to fix Sun compiling problems.
1443
1444 3.1.10          23/3/97 - Released
1445
1446 ipfstat -a requires a -i or -o command line option too.  Print an error
1447 when not present rather than attempt to do something.
1448
1449 patch updates for SunOS4 for kernel compiling.
1450 patch for ipmon -s (flush's syslog file which isn't good).  Andrew J. Schorr
1451 <schorr@ead.dsa.com>
1452
1453 too many people hit their heads hard when compiling code into the kernel
1454 that doesn't let any packets through. (fil.c - IPF_NOMATCH)
1455
1456 icmp-type parsing doesn't return any errors when it isn't constructed
1457 correctly.  Neil Readwin
1458
1459 Using "-conf" with modload on SunOS4 doesn't work.
1460 Timothy Demarest <demarest@arraycomm.com>
1461
1462 Need to define ARCH in makefile for SunOS4 building.  "make sunos4"
1463 in INSTALL.SunOS is incorrect. James R Grinter <jrg@blodwen.demon.co.uk>
1464 [all SunOS targets now run buildsunos]
1465
1466 NAT lookups are still incorrect, matching non-TCP/UDP with TCP/UDP
1467 information. ArkanoiD <ark@paranoid.convey.ru>
1468
1469 Need to check for __FreeBSD_version being 199511 rather than 199607
1470 in mln_ipl.c. Eric Feillant <Eric.Feillant@EUnet.fr>
1471
1472 3.1.9           8/3/97 - Released
1473
1474 fixed incorrect lookup of active NAT entries.
1475
1476 patch for ip_deq() wrong for pre 2.1.6 FreeBSD.
1477 fyeung@fyeung8.netific.com (Francis Yeung)
1478
1479 check for out with return-rst/return-icmp at wrong place - Erkki Ritoniemi
1480 (erkki@vlsi.fi)
1481
1482 text_readip returns the interface pointer pointing to text on stack -
1483 Neil Readwin
1484
1485 fix from Pradeep Krishnan for printout rules "with not opt sec".
1486
1487 3.1.8           18/2/97 - Released
1488
1489 Diffs for ip_output.c and ip_input.c updated to fix bug with fastroute and
1490 compiling warnings about reuse of m0.
1491
1492 prevent use of return-rst and return-icmp with rules blocking packets going
1493 out, preventing panics in certain situations.
1494
1495 loop forms in frag cache table - Yury Pshenychny <yura@rd.zgik.zaporizhzhe.ua>
1496
1497 should use SPLNET/SPLX around expire routines in NAT/frag/state code.
1498
1499 redeclared malloc in 44arp.c - 
1500
1501 3.1.7           8/2/97 - Released
1502
1503 Macros used for ntohs/htons supplied with gcc don't always work very well
1504 when the assignment is the same variable being converted.
1505
1506 Filter matching doesn't not match rule which checks tcp flags on packets
1507 which are fragments - David Wilson
1508
1509 3.1.7beta       30/1/97 - Released
1510
1511 Fix up NAT bugs introduced in last major change (now tested), including
1512 nat_delete(), nat_lookupredir(), checksum changes, etc.
1513
1514 3.1.7alpha      30/1/97 - Released
1515
1516 Many changes to NAT code, including contributions from Laurent Joncheray
1517 <lpj@ans.net>
1518
1519 Use "NO_SLEEP" when allocating memory under SunOS.
1520
1521 Make kernel printf's nicer for BSD/SunOS4
1522
1523 Always do a checksum for packets being filtered going out and being
1524 processed by fastroute.
1525
1526 Leave kernel to play with cdevsw on *BSD systems with LKM's.
1527
1528 ipnat.1 man page fixes.
1529
1530 3.1.6           21/1/97 - Released
1531
1532 Allow NAT to work on BSD systems in conjunction with "pass .. to ifname"
1533
1534 Memory leak introduced in 3.1.3 in NAT lists, clearing of NAT table tried
1535 to free memory twice.
1536
1537 NAT recalculates IP header checksum based on difference between IP#'s and
1538 port numbers - should be just IP#'s (Solaris2 only)
1539
1540 3.1.5           13/1/97 - Released
1541
1542 fixed setting of NAT timeouts and use different timeouts for concurrent
1543 TCP sessions using the same IP# mapping (when port mapping isn't used)
1544
1545 multiple loading/unloading of LKM's doesn't clean up cdevsw properly for
1546 *BSD systems.
1547
1548 3.1.4           10/1/97 - Released
1549
1550 add command line options -C and -F to ipnat to flush NAT list and table
1551
1552 ipnat -l loops on output - Neil Readwin (nreadwin@nysales.micrognosis.com)
1553
1554 NetBSD/FreeBSD kernel malloc changes - Daniel Carosone
1555
1556 3.1.3           10/1/97 - Released
1557
1558 NAT chains not constructed correctly in hash tables - Antony Y.R Lu
1559 (antony@hawk.ee.ncku.edu.tw)
1560
1561 Updated INSTALL.NetBSD, INSTALL.FreeBSD and INSTALL.Sol2
1562
1563 man page update (ipf.5) from Daniel Carosone (dan@geek.com.au)
1564
1565 ICMP header checksum update now included in NAT.
1566
1567 Solaris2 needs to modify IP header checksums in ip_natin and ip_natout.
1568
1569 3.1.2           4/12/96 - Released
1570
1571 ipmon doesn't use syslog all the time when given -s option
1572
1573 fixed mclput panic in ip_input.c and replace ntohs() with NTOHS() macro
1574
1575 check the results of hostname resolution in ipnat
1576
1577 "make *install" fixed for subdirectories.
1578
1579 problems with "ARCH:=" and gnu make resolved
1580
1581 parser reports an error for lines with whitespaces only rather than skipping
1582 them. D.Carosone@abm.com.au (Daniel Carosone)
1583
1584 patches for integration into NetBSD-current (post 1.2).
1585
1586 add an option to allow non-IP packets going up/down the stream on Solaris2
1587 to be dropped. John Bass.
1588
1589 3.1.2beta       21/11/96 - Released
1590
1591 make ipsend compile on Linux 2.0.24
1592
1593 changes to TCP kept state algorithm, making it watch state on TCP
1594 connections in both directions.  Also use the same algorithm for NAT TCP.
1595
1596 -Wall cleanup - Bernd Ernesti
1597
1598 added "or-block" for "pass .. log or-block" after a suggestion from
1599 David Oppenheim (davido@optimation.com.au)
1600
1601 added subdirectories for building IP Filter in SunOS5/BSD for different
1602 cpu architecures
1603
1604 Solaris2 fixes to logging and pre-filtering packet processing - 3.1.1p2
1605
1606 mbuf logging not using mtod(), remove iplbusy - 3.1.1p1         1/11/96
1607
1608 3.1.1           28/10/96 - Released
1609
1610 Installation script fixes and deinstall scripts for IP Filter on:
1611 SunOS4/FreeBSD/NetBSD
1612
1613 Man page fixes - Paul Dubois (dubois@primate.wisc.edu)
1614
1615 Fix use of SOLARIS macro in ipmon, rewrote ipllog() (again!)
1616
1617 parsing isn't completely case insensitive - David Wilson
1618 (davidw@optimation.com.au)
1619
1620 Release ipl_mutex across uiomove() calls
1621
1622 print entire rule entries out for "ipf -z" when zero'ing per-rule stats.
1623
1624 ipfstat returns same output for "hits" in "ipfstat -aio" - Terletsky Slavik
1625 (ts@polynet.lviv.ua)
1626
1627 New algorithm for setting timeouts for TCP connection (more closely follow
1628 TCP FSM) - Pradeep Krishnan (pkrishna@netcom.com)
1629
1630 Track both window sizes for TCP connections through "keep state".
1631
1632 Solaris2 doesn't like _KERNEL defined in stdargs.h - Jos van Wezel
1633 (wezel@bio.vu.nl)
1634
1635 3.1.1-beta2     6/10/96 - Released
1636
1637 Solaris2 fastroute/dup-to/to now works
1638
1639 ipmon `record' reading rewritten
1640
1641 Added post-NetBSD1.2 packet filter patches - Mathew Green (mrg@eterna.com.au)
1642
1643 Attempt to use in_proto.c.diff, not "..diffs" for SunOS4 - David Wilson
1644 (davidw@optimation.com.au)
1645
1646 Michael Ryan (mike@NetworX.ie) reports the following:
1647 * The Trumpet WinSock under Windows always sends its SYN packet with an ACK
1648   value of 1, unlike any other implementation I've seen, which would set it
1649   to zero.  The "keep state" feature of IP Filter doesn't work when receiving
1650   non-zero ACK values on new connection requests.
1651 * */Makefile install rule doesn't install all the binaries/man pages
1652 * Make ipnat use "tcp/udp" instead of "tcpudp"
1653 * Print out "tcp/udp" properly
1654 * ipnat "portmap tcp" matches "portmap udp" when adding/removing
1655 * NAT dest. ip# increased by one on mask of 0xffffffff when it shouldn't
1656
1657 3.1.1-beta      1/9/96 - Released
1658
1659 add better detection of TCP connections closing to TCP state monitoring.
1660
1661 fr_addstate() not called correctly for fragments.  "keep state" and
1662 "keep frag" code don't work together 100% - Songqing Cai
1663 (songqing_cai@sterling.com)
1664
1665 call to fr_addstate() incorrect for adding state in combination with keeping
1666 fragment information - Songqing Cai (songqing_cai@sterling.com)
1667
1668 KFREE() passed fp (incorrect) and not fr (correct) in ip_frag.c - John Hood
1669 (cgull@smoke.marlboro.vt.us)
1670
1671 make ipf parser recognise '\\' as a `continued line' marker - Dima Ruban
1672 (dima@best.net)
1673
1674 3.1.1-alpha     23/8/96 - Released
1675
1676 kernel panic's when ICMP packets go through NAT code
1677
1678 stats aren't zero'd properly with ipf -Z
1679
1680 ipnat doesn't show port numbers correctly all the time and also add the
1681 protocol (tcp/udp/tcpudp) to rdr output - Carson Gaspar (carson@lehman.com)
1682
1683 fast checksum fixing not 100% - backout patch - Bill Dorsey (dorsey@lila.com)
1684
1685 NetBSD-1.2 patches from - VaX#n8 <vax@linkdead.paranoia.com>
1686
1687 Usage() call error in fils.c - Ajay Shekhawat (ajay@cedar.buffalo.edu)
1688
1689 ip_optcopy() staticly defined in ip_output.c in SunOS4 - Nick Hall
1690 (nrh@tardis.ed.ac.uk)
1691
1692 3.1.0           7/7/96 - Released
1693
1694 Reformatted ipnat output to be compatible with it's input, so that
1695 "ipnat -l | ipnat -rf -" is possible.
1696
1697 3.1.0beta       30/6/96 - Released
1698
1699 NetBSD-1.2 patches from Greg Woods (woods@most.weird.com)
1700
1701 kernel module must not be installed stripped (Solaris2), as created by
1702 "make package" for Solaris2 - Peter Heimann
1703 (peter@i3.informatik.rwth-aachen.de)
1704
1705 3.1.0alpha      5/6/96 - Released
1706
1707 include examples in package for solaris2
1708
1709 patches for removing an extra ip header checksum (FreeBSD/NetBSD/SunOS)
1710
1711 removed trailing space from printouts of rules in ipf.
1712
1713 ipresend supports the same range of inputs that ipftest does.
1714
1715 sending a duplicate copy of a packet to another network devices is now
1716 supported. ("dup-to")
1717
1718 sending a packet to an arbitary interface is now supported, irrespective
1719 of its actual route, with no ttl decrement.  Can also be routed without
1720 the ttl being decremented. ("to" and "fastroute").
1721
1722 "call" option added to support calling a generic function if a packet is
1723 matched.
1724
1725 show all (upto 4) recorded bytes from the interface name in logging from
1726 ipmon.
1727
1728 support for using unix file permissions for read/write access on the device
1729 is now in place.
1730
1731 recursive mutex in nat_new() for Solaris 2.x - Per L. Hagen <per@stibo.dk>
1732
1733 ipftest doesn't call initparse() for THISHOST - Catherine Allen
1734 (cla@connect.com.au)
1735
1736 Man page corrections from Rex Bona (rex@pengo.comsmiths.com.au)
1737
1738 3.0.4           10/4/96 - Released
1739
1740 looop in `parsing' IP packets with optlen 0 for ip options.
1741
1742 rule number not initialized and resulted in unexpected results for state
1743 maching.
1744
1745 option parsing and printing bugs - Pradeep Krishnan
1746
1747 3.0.4beta       25/3/96 - Released
1748
1749 wouldn't parse "keep flags keep state" correctly.
1750
1751 SunOS4.1.x ip_input.c doesn't recognise all 1s broadcast address - Nigel Verdon
1752
1753 patches for BSDI's BSD/OS 2.1 and libpcap reader on little endian systems
1754 from Thorsten Lockert <tholo@tetherless.com>
1755
1756 b* functions in fil.c on Solaris 2.4
1757
1758 3.0.3   17/3/96 - Released
1759
1760 added patches to support IP Filter initialisation when compiled into the
1761 kernel.
1762
1763 added -x option to ipmon to display hex dumps of logged packets.
1764
1765 added -H option to ipftest to allow ascii-hex formatted input to specify
1766 arbitary IP packets.
1767
1768 Sending TCP RSTs as a response now work for Solaris2 x86
1769
1770 add patches to make IP Filter compile into NetBSD kernels properly.
1771
1772 patch to stop SunOS 4.1.x kernels panicing with "data traps".
1773
1774 ipfboot script unloads and reloads ipf module on Solaris2 if it is already
1775 loaded into the kernel.
1776
1777 Installation of IP Filter as a Solaris2 package is now supported.
1778
1779 Man pages for ipnat.4, ipnat.5 added.
1780
1781 added some more regression tests and fixed up IP Filter to pass the new tests
1782 (previous versions failed some of the tests in set 12).
1783
1784 IP option filter processing has changed so that saying "with opt lsrr" will
1785 check only for that one, but not mask out other options, so a packet with
1786 strict source routing, along with loose source routing will match all of
1787 "with opt lsrr", "with opt ssrr" and "with opt lsrr,ssrr".
1788
1789 IPL_NAME needed in ipnat.c - Kelly (kelly@count04.mry.scruznet.com)
1790
1791 patches for clean NetBSD compilation from Bernd Ernesti (bernd@arresum.inka.de)
1792
1793 make install is incorrect - Julian Briggs (julian@lightwork.co.uk)
1794
1795 strtol() returns 0x7fffffff for all negative numbers,
1796 printfr() generates incorrect output for "opt sec-class *",
1797 handling of "not opt xxx opt yyy" incorrect.
1798 - Minh Tonthat (minht@sbei.com)/Pradeep Krishnan (pradeepk@sbei.com)
1799
1800 m_pullup() called only for input and not output; caused problems
1801 with filtering icmp - Nigel Verdon (verdenn@gb.swissbank.com)
1802
1803 parsing problem for "port 1" and NetBSD patches incorrect -
1804 Andreas Gustafsson (gson@guava.araneus.fi)
1805
1806 3.0.2   4/2/96 - Released
1807
1808 Corrected bug where NAT recalculates checksums for fragments.
1809
1810 make NAT recalculate UDP checksums (rather than setting them to 0),
1811 if they're non-zero.
1812
1813 DNS patches - Real Page (Real.Page@Matrox.com)
1814
1815 alteration of checksum recalculations in NAT code and addition of
1816 redirection with NAT - Mike Neuman
1817
1818 core dump, if tcp/udp is used with a port number and not service name,
1819 in ipf - Mike Neuman (mcn@engarde.com)
1820
1821 initparse() call, missing to prime "<thishost>" hook - Craig Bishop
1822
1823 3.0.1   14/1/96 - Released
1824
1825 miscellaneous patches for Solaris2
1826
1827 3.0     14/1/96 - Released
1828
1829 Patch included for FDDI, from Richard Ohnemus
1830 (Richard_Ohnemus@dallas.csd.sterling.com)
1831
1832 Code cleanup for release.
1833
1834 3.0beta4 10/1/96
1835
1836 recursive mutex in ipfr_slowtimer fixed, reported by Craig Bishop
1837
1838 recursive mutex in sending TCP RSTs fixed, reported by Tony Becker
1839
1840 3.0beta3 9/1/96
1841
1842 FIxup for Solaris2.5 install and interface name bug in ipftest from
1843 Julian Briggs (julian@lightwork.co.uk)
1844
1845 Byte order patches for ipmon from Tony Becker (tony@mcrsys.com)
1846
1847 3.0beta2 7/1/96
1848
1849 Added the (somewhat warped) IP accounting as it exists in ipfw on FreeBSD.
1850 Note, this isn't really what one would call IP account, when compared to
1851 process accounting, sigh.
1852
1853 Split up ipresend into iptest/ipresend/ipsend
1854
1855 Added another m_pullup() inside fr_check() for BSD style kernels and
1856 added some checks to ipllog() to not log more than is present (for short
1857 packets).
1858
1859 Fixed bug where failed hostname/netname resolution goes undetecte and
1860 becomes 0.0.0.0 (any) (reported Guido van Rooij)
1861
1862 3.0beta 11/11/95        - Released
1863
1864 Rewrote the way rule testing is done, reducing the number of files needed and
1865 generated.
1866
1867 SIOCIPFFL was incorrectly affected by IPFILTER_LOG (Mathew Green)
1868
1869 Patches from Guido van Rooij to fix sending back TCP RSTs on Net-2/Net-3
1870 BSD based Unixes (panic'd)
1871
1872 Patches for FreeBSD/i86 ipmon from Riku Kalinen <riku@tequila.nixu.fi>
1873 (I think someone else already told me about these but they got lost :-/)
1874
1875 Changed Makefile structure to build object files for different operating
1876 systems in separate directories by default.
1877
1878 BSDI has ef0 for first ethernet interface
1879
1880 Allow for a "not" operator before optional keywords.
1881
1882 The "rule number" was being incorrectly incremented every time it went through
1883 the loop rather than when it matched a rule.
1884
1885 2.8.2   24/10/95        - Released
1886
1887 Fixed up problems with "textip" for doing lots of testing.
1888
1889 Fixed bug in detection of "short" tcp/ip packets (all reported as being short).
1890
1891 Solaris 2.4 port now works 100%.
1892
1893 Man page errors reported and fixed.
1894
1895 Removed duplicate entry in etc/services for login on port 49 (Craig Bishop).
1896
1897 Fixed ipmon output to put a space after the log-letter.
1898
1899 Patch from Guido van Rooij to fix parsing problem.
1900
1901 2.8.1   15/10/95        - Released
1902
1903 Added ttl and tos filtering.
1904
1905 Patches for fixing up compilation and port problems (little endian)
1906 from Guido van Rooij <guido@IAEhv.nl>.
1907
1908 Man page problems reported and fixed by Carson Gaspar <carson@lehman.com>.
1909
1910 ipsend doesn't compile properly on Solaris2.4
1911
1912 Lots of work done for Solaris2.4 to make it MT/MP safe and work.
1913
1914 2.8     15/9/95         - Released
1915
1916 ipmon can now send messages to syslogd (-s) and use names instead of
1917 numbers (-N).
1918
1919 IP packets are now "compiled" into a structure only containing filterable
1920 bits.
1921
1922 Added regression testing in the test/ subdirectory, using a new option
1923 (-b) with the ipftest program.
1924
1925 Added "nomatch" return to filter results.  These are counted and show
1926 up in reports from ipfstat.
1927
1928 Moved filter code out of ip_fil.c and into fil.c - there is now only one
1929 instance of it in the package.
1930
1931 Added Solaris 2.4 support.
1932
1933 Added IPSO basic security option filtering.
1934
1935 Added name support for filtering on all 19 named IP options.
1936
1937 Patches from Ivan Brawley to log packet contents as well as packet headers.
1938
1939 Update for sun/conf.c.diff from Ivan Brawley <ibrawley@awadi.com.AU>
1940
1941 Added patches for FreeBSD 1, and added two new switches (-E, -D) to ipf,
1942 along with a new ioctl, SIOCFRENB.
1943 From: Dieter Dworkin Muller <dworkin@village.org>
1944
1945 2.7.3   31/7.95         - Released
1946
1947 Didn't compile cleanly without IPFILTER_LOG defined (Mathew Green).
1948
1949 ipftest now deals with tcpdump3 binary output files (from libpcap) with -P.
1950
1951 Brought ipftest program upto date with actual filter code.
1952
1953 Filter would cause a match to occur when it wasn't meant to if the packet
1954 had short headers and was missing portions that should have been there.
1955 Err, it would rightly not match on them, but their absence caused a match
1956 when it shouldn't have been.
1957
1958 2.7.2   26/7/95         - Released
1959
1960 Problem with filtering just SYN flagged packets reported by
1961 Dieter Dworkin Muller <dworkin@village.org>.  To solve this
1962 problem, added support for masking TCP flags for comparison "flags X/Y".
1963
1964 2.7.1   9/7/95          - Released
1965
1966 Added ip_dirbroadcast support for Sun ip_input.c
1967
1968 Fixed up the install scripts for FreeBSD/NetBSD to recognise where they are
1969 better.
1970
1971 2.7     7/7/95          - Released
1972
1973 Added "return-rst" to return TCP RST's to TCP packets.
1974
1975 Actually ported it to FreeBSD-i386 2.0.0, so it works there properly now.
1976
1977 Added insertion of filter rules.  Use "@<#>" at the beginning of a filter
1978 to insert a rule at row #.
1979
1980 Filter keeps track of how many times each rule is matched.
1981
1982 Changed compile time things to match kernel option (IPFILTER_LKM &
1983 IPFILTER_LOG).
1984
1985 Updated ip_input.c and ip_output.c with paches for 3.5 Multicast IP.
1986 (No change required for 3.6)
1987
1988 Now includes TCP fragments which start inside the TCP header as being short.
1989 Added counting the number of times each rule is matched.
1990
1991
1992 2.6     11/5/95         - Released
1993
1994 Added -n option to ipf: when supplied, no changes are made to the kernel.
1995
1996 Added installation scripts for SunOS 4.1.x and NetBSD/FreeBSD/BSDI.
1997
1998 Rewrote filtering to use a more generic mask & match procedure for
1999 checking if a packet matches a rule.
2000
2001 2.5.2   27/4/95         - Released
2002
2003 "tcp/udp" and a non-initialised pointer caused the "proto" to become
2004 a `random' value; added "ip#/dotted.mask" notation to the BNF.
2005 From Adam W. Feigin  <feigin@iis.ee.ethz.ch>
2006
2007 2.5.1   22/3/95         - Released
2008
2009 "tcp/udp" had a strange effect (undesired) on getserv*() functions,
2010 causing protocol/service lookups to fail.  Reported by Matthew Green.
2011
2012 2.5     17/3/95         - Released
2013
2014 Added a new keyword "all" to BNF and parsing of tcpdump/etherfind/snoop
2015 output through the ipftest program.  Suggestions from:
2016 Michael Ciavarella (mikec@phyto.apana.org.au)
2017
2018 Conflicts occur when "general" filter rules are used for ports and the
2019 lack of a "proto" when used with "port" matches other packets when only
2020 TCP/UDP are implied.
2021 Reported Matthew Green (mrg@fulcom.com.au);
2022 reported & fixed 6-8/3/95
2023
2024 Added filtering of short TCP packets using "with short" 28/2/95
2025 (These can possibly slip by checks for the various flags).  Short UDP
2026 or ICMP are dropped to the floor and logged.
2027
2028 Added filtering of fragmented packets using "with frag" 24/2/95
2029
2030 Port to NetBSD-current completed 20/2/95, using LKM.
2031
2032 Added logging of the rule # which caused the logging to happen and the
2033 interface on which the packet is currently as suggested by
2034 Andreas Greulich (greulich@math-stat.unibe.ch) 10/2/95
2035
2036 2.4     9/2/95          - Released
2037 Fixed saving of IP headers in ICMP packets.
2038
2039 2.3     29/1/95
2040 Added ipf -F [in|out|all] to flush filter rule sets (SIOCIPFFL).
2041 Fixed iplread() and iplsave() with help from Marc Huber.
2042
2043 2.2     7/1/95          - Released
2044 Added code from Marc Huber <huber@fzi.de> to allow it to allocate
2045 its own major char number dynamically when modload'ing.  Fixed up
2046 use of <, >, <=, >= and >< for ports.
2047
2048 2.1     21/12/94        - Released
2049 repackaged to include the correct ip_output.c and ip_input.c *goof*
2050
2051 2.0     18/12/94        - Released
2052 added code to check for port ranges - complete.
2053 rewrote to work as a loadable kernel module - complete.
2054
2055 1.1
2056 added code for ouput filtering as well as input filtering and added support for logging to a simple character device of packet headers.
2057
2058 1.0     22/04/93        - Released
2059 First release cut.