summaryrefslogtreecommitdiff
path: root/security/pflkm
AgeCommit message (Collapse)AuthorFilesLines
2005-12-29Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mkjlam1-2/+1
automatically detects whether we want the pkginstall machinery to be used by the package Makefile.
2005-12-07Also check for the pfvar.h file in the subdirectory 'pf', DragonFly installspeter1-1/+2
it there.
2005-12-07Change ONLY_FOR_PLATFORM to NetBSD 2.x. NetBSD 3 has pf in base so thispeter1-2/+2
pkg is redundant on that version and on -current it doesn't even build without errors.
2005-12-05Fixed pkglint warnings. The warnings are mostly quoting issues, forrillig1-2/+2
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some other changes are outlined in http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-02Add detection for pf from OpenBSD 3.8.peter1-4/+10
2005-08-23The real user name in PKG_USERS does not need to be escaped with doublerillig1-2/+2
backslashes anymore. A single backslash is enough. Changed the definition in all affected packages. For those that are not caught, an additional check is placed into bsd.pkginstall.mk.
2005-07-12use ${NOLOGIN}, not hardcoded /sbin/nologin.grant1-2/+2
2005-06-23BUILTIN_PKG should contain the package name, otherwise the builtinpeter1-5/+5
detection doesn't work properly.
2005-06-01There is no ipv6 category.wiz1-2/+2
XXX: should there be one, replacing USE_INET6?
2005-06-01Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc.jlam1-20/+78
Several changes are involved since they are all interrelated. These changes affect about 1000 files. The first major change is rewriting bsd.builtin.mk as well as all of the builtin.mk files to follow the new example in bsd.builtin.mk. The loop to include all of the builtin.mk files needed by the package is moved from bsd.builtin.mk and into bsd.buildlink3.mk. bsd.builtin.mk is now included by each of the individual builtin.mk files and provides some common logic for all of the builtin.mk files. Currently, this includes the computation for whether the native or pkgsrc version of the package is preferred. This causes USE_BUILTIN.* to be correctly set when one builtin.mk file includes another. The second major change is teach the builtin.mk files to consider files under ${LOCALBASE} to be from pkgsrc-controlled packages. Most of the builtin.mk files test for the presence of built-in software by checking for the existence of certain files, e.g. <pthread.h>, and we now assume that if that file is under ${LOCALBASE}, then it must be from pkgsrc. This modification is a nod toward LOCALBASE=/usr. The exceptions to this new check are the X11 distribution packages, which are handled specially as noted below. The third major change is providing builtin.mk and version.mk files for each of the X11 distribution packages in pkgsrc. The builtin.mk file can detect whether the native X11 distribution is the same as the one provided by pkgsrc, and the version.mk file computes the version of the X11 distribution package, whether it's built-in or not. The fourth major change is that the buildlink3.mk files for X11 packages that install parts which are part of X11 distribution packages, e.g. Xpm, Xcursor, etc., now use imake to query the X11 distribution for whether the software is already provided by the X11 distribution. This is more accurate than grepping for a symbol name in the imake config files. Using imake required sprinkling various builtin-imake.mk helper files into pkgsrc directories. These files are used as input to imake since imake can't use stdin for that purpose. The fifth major change is in how packages note that they use X11. Instead of setting USE_X11, package Makefiles should now include x11.buildlink3.mk instead. This causes the X11 package buildlink3 and builtin logic to be executed at the correct place for buildlink3.mk and builtin.mk files that previously set USE_X11, and fixes packages that relied on buildlink3.mk files to implicitly note that X11 is needed. Package buildlink3.mk should also include x11.buildlink3.mk when linking against the package libraries requires also linking against the X11 libraries. Where it was obvious, redundant inclusions of x11.buildlink3.mk have been removed.
2005-05-11Update to 20050511. Changes:peter4-13/+35
Updated to OpenBSD 3.7 pf: * Support limiting TCP connections by establishment rate, automatically adding flooding IP addresses to tables and flushing states (max-src-conn-rate, overload <table>, flush global). * Improved functionality of tags (tag and tagged for translation rules, tagging of all packets matching state entries). * Improved diagnostics (error messages and additional counters from pfctl -si). * New keyword set skip on to skip filtering on arbitrary interfaces, like loopback. * Several bugfixes improving stability. ALTQ is now also supported by using the option 'altq', see the homepage for information about how to apply the kernel patch. Approved by: Thomas Klausner <wiz@NetBSD.org>
2005-05-03Sort.wiz1-2/+2
2005-05-02RCD_SCRIPTS_EXAMPLEDIR is no longer customizable.reed1-1/+3
And always is defined as share/examples/rc.d which was the default before. This rc.d scripts are not automatically added to PLISTs now also. So add to each corresponding PLIST as required. This was discussed on tech-pkg in late January and late April. Todo: remove the RCD_SCRIPTS_EXAMPLEDIR uses in MESSAGES and elsewhere and remove the RCD_SCRIPTS_EXAMPLEDIR itself.
2005-04-11Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used.tv1-2/+1
2005-02-24Add RMD160 digests.agc1-1/+2
2005-01-18Do a "flush all" in the stop command. From Miles Nordin.peter1-2/+2
2005-01-18Update to 20050118.peter2-6/+5
Changes: * Updated the ALTQ patch, now works correctly on NetBSD 2.0 release. Thanks to Miles Nordin for helping and testing. * Write struct "pcap_sf_pkthdr" instead of "pcap_pkthdr". Fixes an LP64 specific problem with reading the pflog with tcpdump(8). * Applied patch to pf.c from OPENBSD_3_6 branch: ICMP state entries use the ICMP ID as port for the unique state key. When checking for a usable key, construct the key in the same way. Otherwise, a colliding key might be missed or a state insertion might be refused even though it could be inserted. The second case triggers the endless loop fixed by 1.474, possibly allowing a NATed LAN client to lock up the kernel. Report and test data by Srebrenko Sehic. * Applied patch to pf_lkm.c from NetBSD HEAD: pfil4_wrapper: clear M_CANFASTFWD which is not compatible with pf. * Applied patch to pf_ioctl.c from OPENBSD_3_6 branch: replace finer-grained spl locking in pfioctl() with a single broad lock around the entire body. this resolves the (misleading) panics in pf_tag_packet() during heavy ioctl operations (like when using authpf) that occur because softclock can interrupt ioctl on i386 since SMP. * Applied patch to pf.c from OPENBSD_3_6 branch: IPv6 packets can contain headers (like options) before the TCP/UDP/ICMP6 header. pf finds the first TCP/UDP/ICMP6 header to filter by traversing the header chain. In the case where headers are skipped, the protocol checksum verification used the wrong length (included the skipped headers), leading to incorrectly mismatching checksums. Such IPv6 packets with headers were silently dropped. Reported by Bernhard Schmidt. * Applied patch to pfctl_optimize.c from OPENBSD_3_6 branch: &&/|| inversion would try to merge IP addresses with non-addresses into a single table causing a ruleset load error and eventually a double-free. * Applied patch to pf.c from OPENBSD_3_6 branch: Initialise init_addr in pf_map_addr() in the PF_POOL_ROUNDROBIN, prevents a possible endless loop in pf_get_sport() with 'static-port' * Fix to if_events.diff from Miles Nordin <carton at Ivy dot NET>: Call free after removing the element from the list, not before. Fixes panic with "unaligned access" on Alpha.
2005-01-02Change mode of CONF_FILES to 0600.peter1-1/+2
From Adrian Portelli.
2004-12-28The default location of the pkgsrc-installed rc.d scripts is nowreed1-1/+2
under share/examples/rc.d. The variable name already was named RCD_SCRIPTS_EXAMPLEDIR. This is from ideas from Greg Woods and others. Also bumped PKGREVISION for all packages using RCD_SCRIPTS mechanism (as requested by wiz).
2004-12-04Changes up to 20041204:peter2-5/+5
* improved cleanup routines to make sure that no memory is leaking. * applied patch to pf.c from OPENBSD_3_6 branch: fix a bug that leads to a crash when binat rules of the form 'binat from ... to ... -> (if)' are used, where the interface is dynamic. * added (unsigned char) casts to ctype functions. * added experimental patch for ALTQ support. * applied patch to pfctl_parser.c from OPENBSD_3_6 branch: do not assume entries in pf_timeouts[] are ordererd like PFTM_* in pfvar.h * applied patch to pf.c from OPENBSD_3_6 branch: The flag to re-filter pf-generated packets was set wrong by synproxy for ACKs. It should filter the ACK replayed to the server, instead of of the one to the client. * applied patch to pf.c from OPENBSD_3_6 branch: For RST generated due to state mismatch during handshake, don't set th_flags TH_ACK and leave th_ack 0, just like the RST generated by the stack in this case. Fixes the Raptor workaround. * applied patch to pf_lkm.c from NetBSD HEAD: pfil4_wrapper, pfil6_wrapper: ensure that mbufs are writable beforehand as pf assumes it. * applied patch to pf.c from OPENBSD_3_6 branch: reset anchor pointer to NULL when stepping back into the main ruleset, fixes pflog attributing states wrongly to anchors and pfctl -vvsn/sr showing wrong state counters for anchor rules.
2004-12-01Remove part of the builtin version detection that doesn't work properly.peter1-19/+3
It can't be fixed easily because the pflkm package uses different versioning (dates instead of 3.5, 3.6, etc). So just disable it for now until I've found a better way to handle this. Approved by wiz.
2004-11-05Initial import of pflkm-20041025 into the NetBSD Packages Collection.peter9-0/+289
Packet Filter (from here on referred to as PF) is OpenBSD's system for filtering TCP/IP traffic and doing Network Address Translation. PF is also capable of normalizing and conditioning TCP/IP traffic. PF was originally developed by Daniel Hartmeier and is now maintained and developed by Daniel and the rest of the OpenBSD team. This package includes a complete port (LKM and userland utilities) from OpenBSD 3.6 to NetBSD 2.0.