auto-import iptables-1.2.7a-2 from iptables-1.2.7a-2.src.rpm
This commit is contained in:
parent
362a1d88ed
commit
c17548c88e
@ -1 +1 @@
|
|||||||
iptables-1.2.6a.tar.bz2
|
iptables-1.2.7a.tar.bz2
|
||||||
|
@ -117,7 +117,10 @@ stop() {
|
|||||||
iftable nat -P POSTROUTING ACCEPT && \
|
iftable nat -P POSTROUTING ACCEPT && \
|
||||||
iftable nat -P OUTPUT ACCEPT && \
|
iftable nat -P OUTPUT ACCEPT && \
|
||||||
iftable mangle -P PREROUTING ACCEPT && \
|
iftable mangle -P PREROUTING ACCEPT && \
|
||||||
|
iftable mangle -P POSTROUTING ACCEPT && \
|
||||||
|
iftable mangle -P INPUT ACCEPT && \
|
||||||
iftable mangle -P OUTPUT ACCEPT && \
|
iftable mangle -P OUTPUT ACCEPT && \
|
||||||
|
iftable mangle -P FORWARD ACCEPT && \
|
||||||
success || \
|
success || \
|
||||||
failure
|
failure
|
||||||
echo
|
echo
|
||||||
@ -162,9 +165,12 @@ case "$1" in
|
|||||||
iftable nat -P OUTPUT DROP && \
|
iftable nat -P OUTPUT DROP && \
|
||||||
iftable mangle -P PREROUTING DROP && \
|
iftable mangle -P PREROUTING DROP && \
|
||||||
iftable mangle -P OUTPUT DROP && \
|
iftable mangle -P OUTPUT DROP && \
|
||||||
success $"Changing target policies to DROP" || \
|
iftable mangle -P POSTROUTING DROP && \
|
||||||
failure $"Changing target policies to DROP"
|
iftable mangle -P INPUT DROP && \
|
||||||
|
iftable mangle -P FORWARD DROP && \
|
||||||
|
success || failure
|
||||||
echo
|
echo
|
||||||
|
echo -n "Flushing all chains:"
|
||||||
iftable filter -F INPUT && \
|
iftable filter -F INPUT && \
|
||||||
iftable filter -F FORWARD && \
|
iftable filter -F FORWARD && \
|
||||||
iftable filter -F OUTPUT && \
|
iftable filter -F OUTPUT && \
|
||||||
@ -173,18 +179,14 @@ case "$1" in
|
|||||||
iftable nat -F OUTPUT && \
|
iftable nat -F OUTPUT && \
|
||||||
iftable mangle -F PREROUTING && \
|
iftable mangle -F PREROUTING && \
|
||||||
iftable mangle -F OUTPUT && \
|
iftable mangle -F OUTPUT && \
|
||||||
success $"Flushing all chains:" || \
|
success || failure
|
||||||
failure $"Flushing all chains:"
|
echo
|
||||||
iftable filter -X INPUT && \
|
echo -n "Removing user defined chains:"
|
||||||
iftable filter -X FORWARD && \
|
iftable iftable filter -X && \
|
||||||
iftable filter -X OUTPUT && \
|
iftable nat -X && \
|
||||||
iftable nat -X PREROUTING && \
|
iftable mangle -X && \
|
||||||
iftable nat -X POSTROUTING && \
|
success || failure
|
||||||
iftable nat -X OUTPUT && \
|
echo
|
||||||
iftable mangle -X PREROUTING && \
|
|
||||||
iftable mangle -X OUTPUT && \
|
|
||||||
success $"Removing user defined chains:" || \
|
|
||||||
failure $"Removing user defined chains:"
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
save)
|
save)
|
||||||
|
@ -1,11 +1,14 @@
|
|||||||
Name: iptables
|
Name: iptables
|
||||||
Summary: Tools for managing Linux kernel packet filtering capabilities.
|
Summary: Tools for managing Linux kernel packet filtering capabilities.
|
||||||
Version: 1.2.6a
|
Version: 1.2.7a
|
||||||
Release: 2
|
Release: 2
|
||||||
Source: http://netfilter.kernelnotes.org/%{name}-%{version}.tar.bz2
|
Source: http://www.netfilter.org/%{name}-%{version}.tar.bz2
|
||||||
Source1: iptables.init
|
Source1: iptables.init
|
||||||
Source2: ip6tables.init
|
Source2: ip6tables.init
|
||||||
Patch1: iptables-1.2.2-bug50990.patch
|
Patch1: iptables-1.2.2-bug50990.patch
|
||||||
|
Patch2: iptables-1.2.7a-matchmac.patch
|
||||||
|
Patch3: iptables-1.2.7a-tcpmss.patch
|
||||||
|
Patch4: iptables-1.2.7a-length.patch
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
URL: http://www.netfilter.org/
|
URL: http://www.netfilter.org/
|
||||||
BuildRoot: %{_tmppath}/%{name}-buildroot
|
BuildRoot: %{_tmppath}/%{name}-buildroot
|
||||||
@ -40,21 +43,21 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch1 -p1 -b .50990
|
%patch1 -p1 -b .50990
|
||||||
|
%patch2 -p1 -b .mac
|
||||||
|
%patch3 -p1 -b .typo
|
||||||
|
%patch4 -p1 -b .length
|
||||||
|
|
||||||
# Put it to a reasonable place
|
# Put it to a reasonable place
|
||||||
perl -pi -e "s,/usr/local,%{prefix},g" * */*
|
perl -pi -e "s,/usr/local,%{prefix},g" * */*
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%ifarch alpha
|
|
||||||
OPT=`echo $RPM_OPT_FLAGS | sed -e "s/-O./-O1/"`
|
|
||||||
%else
|
|
||||||
OPT="$RPM_OPT_FLAGS"
|
OPT="$RPM_OPT_FLAGS"
|
||||||
%endif
|
make COPT_FLAGS="$OPT" KERNEL_DIR=/usr LIBDIR=/%{_lib}
|
||||||
make COPT_FLAGS="$OPT" LIBDIR=/lib
|
make COPT_FLAGS="$OPT" KERNEL_DIR=/usr LIBDIR=/%{_lib} iptables-save iptables-restore
|
||||||
make COPT_FLAGS="$OPT" LIBDIR=/lib iptables-save iptables-restore
|
make COPT_FLAGS="$OPT" KERNEL_DIR=/usr LIBDIR=/{_lib} ip6tables-save ip6tables-restore
|
||||||
make COPT_FLAGS="$OPT" LIBDIR=/lib ip6tables-save ip6tables-restore
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=%{buildroot} BINDIR=/sbin LIBDIR=/lib MANDIR=%{_mandir}
|
make install DESTDIR=%{buildroot} KERNEL_DIR=/usr BINDIR=/sbin LIBDIR=/%{_lib} MANDIR=%{_mandir}
|
||||||
cp ip{6,}tables-{save,restore} $RPM_BUILD_ROOT/sbin
|
cp ip{6,}tables-{save,restore} $RPM_BUILD_ROOT/sbin
|
||||||
cp iptables-*.8 $RPM_BUILD_ROOT%{_mandir}/man8
|
cp iptables-*.8 $RPM_BUILD_ROOT%{_mandir}/man8
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
|
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
|
||||||
@ -85,17 +88,27 @@ fi
|
|||||||
%config /etc/rc.d/init.d/iptables
|
%config /etc/rc.d/init.d/iptables
|
||||||
/sbin/iptables*
|
/sbin/iptables*
|
||||||
%{_mandir}/*/iptables*
|
%{_mandir}/*/iptables*
|
||||||
%dir /lib/iptables
|
%dir /%{_lib}/iptables
|
||||||
/lib/iptables/libipt*
|
/%{_lib}/iptables/libipt*
|
||||||
|
|
||||||
%files ipv6
|
%files ipv6
|
||||||
%defattr(-,root,root,0755)
|
%defattr(-,root,root,0755)
|
||||||
%config /etc/rc.d/init.d/ip6tables
|
%config /etc/rc.d/init.d/ip6tables
|
||||||
/sbin/ip6tables*
|
/sbin/ip6tables*
|
||||||
/lib/iptables/libip6t*
|
/%{_lib}/iptables/libip6t*
|
||||||
%{_mandir}/*/ip6tables*
|
%{_mandir}/*/ip6tables*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
|
||||||
|
- rebuilt
|
||||||
|
|
||||||
|
* Mon Jan 13 2003 Bill Nottingham <notting@redhat.com> 1.2.7a-1
|
||||||
|
- update to 1.2.7a
|
||||||
|
- add a plethora of bugfixes courtesy Michael Schwendt <mschewndt@yahoo.com>
|
||||||
|
|
||||||
|
* Fri Dec 13 2002 Elliot Lee <sopwith@redhat.com> 1.2.6a-3
|
||||||
|
- Fix multilib
|
||||||
|
|
||||||
* Wed Aug 07 2002 Karsten Hopp <karsten@redhat.de>
|
* Wed Aug 07 2002 Karsten Hopp <karsten@redhat.de>
|
||||||
- fixed iptables and ip6tables initscript output, based on #70511
|
- fixed iptables and ip6tables initscript output, based on #70511
|
||||||
- check return status of all iptables calls, not just the last one
|
- check return status of all iptables calls, not just the last one
|
||||||
|
Loading…
Reference in New Issue
Block a user