Blob Blame History Raw
Name:           conntrack-tools
Version:        1.4.4
Release:        7%{?dist}
Summary:        Manipulate netfilter connection tracking table and run High Availability
Group:          System Environment/Base
License:        GPLv2
URL:            http://netfilter.org
Source0:        http://netfilter.org/projects/%{name}/files/%{name}-%{version}.tar.bz2
Source1:        conntrackd.service
Source2:        conntrackd.conf
BuildRequires:  libnfnetlink-devel >= 1.0.1, libnetfilter_conntrack-devel >= 1.0.6
BuildRequires:  libnetfilter_cttimeout-devel >= 1.0.0, libnetfilter_cthelper-devel >= 1.0.0
BuildRequires:  libmnl-devel >= 1.0.3, libnetfilter_queue-devel >= 1.0.2
BuildRequires:  pkgconfig bison flex
Requires:  libnetfilter_conntrack >= 1.0.6
Provides:       conntrack = 1.0-1
Obsoletes:      conntrack < 1.0-1
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
BuildRequires: systemd

Patch1:		0001-conntrack-Support-IPv6-NAT.patch
Patch2:		0002-conntrackd-helpers-dhcpv6-Fix-potential-array-overru.patch
Patch3:		0003-nfct-Drop-dead-code-in-nfct_timeout_parse_params.patch
Patch4:		0004-src-Fix-for-implicit-fallthrough-warnings.patch
Patch5:		0005-conntrack-Fix-CIDR-to-mask-conversion-on-Big-Endian.patch
Patch6:		0006-nfct-helper-Fix-NFCTH_ATTR_PROTO_L4NUM-size.patch

%description
With conntrack-tools you can setup a High Availability cluster and
synchronize conntrack state between multiple firewalls.

The conntrack-tools package contains two programs:
- conntrack: the command line interface to interact with the connection
             tracking system.
- conntrackd: the connection tracking userspace daemon that can be used to
              deploy highly available GNU/Linux firewalls and collect
              statistics of the firewall use.

conntrack is used to search, list, inspect and maintain the netfilter
connection tracking subsystem of the Linux kernel.
Using conntrack, you can dump a list of all (or a filtered selection  of)
currently tracked connections, delete connections from the state table, 
and even add new ones.
In addition, you can also monitor connection tracking events, e.g. 
show an event message (one line) per newly established connection.

%prep
%autosetup -p1

%build
# do not use --enable-cthelper --enable-cttimeout, it causes disabling of these features
%configure --disable-static
%{__make} %{?_smp_mflags}
chmod 644 doc/sync/primary-backup.sh
rm -f doc/sync/notrack/conntrackd.conf.orig doc/sync/alarm/conntrackd.conf.orig doc/helper/conntrackd.conf.orig

%install
%{__make} install DESTDIR=%{buildroot}
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
mkdir -p %{buildroot}%{_sysconfdir}/conntrackd
install -d 0755 %{buildroot}%{_unitdir}
install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/
install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/conntrackd/

%files
%doc COPYING AUTHORS TODO doc
%dir %{_sysconfdir}/conntrackd
%config(noreplace) %{_sysconfdir}/conntrackd/conntrackd.conf
%{_unitdir}/conntrackd.service
%{_sbindir}/conntrack
%{_sbindir}/conntrackd
%{_sbindir}/nfct
%{_mandir}/man8/*
%{_mandir}/man5/*
%dir %{_libdir}/conntrack-tools
%{_libdir}/conntrack-tools/*

%post
%systemd_post conntrackd.service

%preun
%systemd_preun conntrackd.service

%postun
%systemd_postun conntrackd.service 

%changelog
* Tue Sep 10 2019 Phil Sutter <psutter@redhat.com> - 1.4.4-7
- nfct: helper: Fix NFCTH_ATTR_PROTO_L4NUM size

* Wed Sep 04 2019 Phil Sutter <psutter@redhat.com> - 1.4.4-6
- conntrack: Fix CIDR to mask conversion on Big Endian

* Wed Mar 27 2019 Phil Sutter <psutter@redhat.com> - 1.4.4-5
- Add git commit info to IPv6 NAT support patch
- Backport: conntrackd: helpers: dhcpv6: Fix potential array overrun
- Backport: nfct: Drop dead code in nfct_timeout_parse_params()
- Backport: src: Fix for implicit-fallthrough warnings

* Fri Aug 24 2018 Paul Wouters <pwouters@redhat.com> - 1.4.4-4
- Resolves: rhbz#1578059 Greatest NVR version of conntrack-tools for ppc64le and x86_64 are different

* Mon Apr 03 2017 Paul Wouters <pwouters@redhat.com> - 1.4.4-3
- Resolves: rhbz#1425552 (explicitely Require: libnetfilter_conntrack >= 1.0.6 as it is same .so version)

* Thu Mar 16 2017 Paul Wouters <pwouters@redhat.com> - 1.4.4-2
- Resolves: rhbz#1425552 (conntrack cmd was missing IPv6 support as well)

* Fri Mar 03 2017 Paul Wouters <pwouters@redhat.com> - 1.4.4-1
- Resolves: rhbz#1425552 conntrack does not support Ipv6 NAT

* Fri Aug 12 2016 Paul Wouters <pwouters@redhat.com> - 1.4.3-1
- Resolves: rhbz#1351701 conntrackd -d throws "ERROR: Helper support is disabled"

* Fri Aug 21 2015 Paul Wouters <pwouters@redhat.com> - 1.4.2-9
- Resolves: rhbz#1255578 conntrackd could neither be started nor be stopped

* Tue Aug 18 2015 Paul Wouters <pwouters@redhat.com> - 1.4.2-8
- Resolves: rhbz#CVE-2015-6496
- Fold in upstream patches since 1.4.2 release up to git 900d7e8
- Fold in upstream patch set of 2015-08-18 for coverity issues

* Thu May 21 2015 Paul Wouters <pwouters@redhat.com> - 1.4.2-7
- Resolves: rhbz#1122611 [BNE] Add conntrack-tools package to RHEL-7