Commit Graph

29 Commits

Author SHA1 Message Date
Phil Sutter
6714065736 Add support for --wait options to restore commands
Without this, either one of iptables and ip6tables services is likely to
fail at system startup because the other one is holding the xtables
lock.
2018-02-28 08:51:23 +01:00
Phil Sutter
85aff8c513 Support /etc/sysctl.d
When searching for sysctl settings to reapply at start/restart, search
in all files in /etc/sysctl.d/ instead of just in /etc/sysctl.conf.
2018-02-28 08:34:22 +01:00
Phil Sutter
948527f3fe Kill module unloading support
The whole concept is unfixably broken:

Some kernel modules are used by both IPv4 and IPv6 netfilter and the
algorithm has no way to identify this situation. Therefore if iptables
and ip6tables services are restarted in parallel, one's module unloading
tends to stomp onto the other's attempt at loading rules.

Another problem is with OVS: iptables service unloading conntrack
modules breaks a running OVS instance.
2018-02-28 08:18:43 +01:00
Thomas Woerner
6791134663 - New upstream version 1.6.0 with nft-compat support and lots of fixes (RHBZ#1292990)
Upstream changelog:
  http://netfilter.org/projects/iptables/files/changes-iptables-1.6.0.txt
- New libs sub package containing libxtables and unstable libip*tc libraries (RHBZ#1323161)
- Using scripts form RHEL-7 (RHBZ#1240366)
- New compat sub package for nftables compatibility
- Install iptables-apply (RHBZ#912047)
- Fixed module uninstall (RHBZ#1324101)
- Incorporated changes by Petr Pisar
- Enabled bpf compiler (RHBZ#1170227) Thanks to Yanko Kaneti for the patch
2016-04-13 19:00:02 +02:00
Jiri Popelka
2962b798c0 iptables.init: make sure the subsys directory exists (RHBZ#1159573)
Also use /run/lock/subsys/ instead of /var/lock/subsys/
to be consistent with /usr/lib/tmpfiles.d/legacy.conf
2014-11-03 14:44:32 +01:00
Jiri Popelka
edc59df70f ip[6]tables.init: change shebang from /bin/sh to /bin/bash (RHBZ#1147272) 2014-09-29 14:10:21 +02:00
Thomas Woerner
0316b6eed1 - fixed system hang at shutdown if root device is network based (RHBZ#1007934)
Thanks to Rodrigo A B Freire for the patch
2014-01-09 12:53:42 +01:00
Thomas Woerner
19f9d681df - added default values for IPTABLES_STATUS_VERBOSE and
IPTABLES_STATUS_LINENUMBERS in init script
- added missing lsb keywords Required-Start and Required-Stop to init
    script
2010-03-24 14:31:33 +00:00
Thomas Woerner
bc5bcb4fea - add default values for IPTABLES_STATUS_VERBOSE and
IPTABLES_STATUS_LINENUMBERS from /etc/sysconfig/ip*tables-config
2010-03-24 12:19:38 +00:00
Thomas Woerner
bfc8fd6a19 - new version 1.4.0
- fixed condrestart (rhbz#428148)
- report the module in rmmod_r if there is an error
2008-02-11 13:56:53 +00:00
Thomas Woerner
6a95dca65a - fixed leaked file descriptor before fork/exec (rhbz#312191)
- blacklisting is not working, use "install X /bin/(true|false)" test
    instead
- return private exit code 150 for disabled ipv6 support
- use script name for output messages
2007-11-05 16:41:26 +00:00
Thomas Woerner
22d082249b - fixed error code for stopping a already stopped firewall (rhbz#321751)
- moved blacklist test into start
2007-10-16 15:30:01 +00:00
Thomas Woerner
0396e7e145 - do not start ip6tables if ipv6 is blacklisted (rhbz#236888)
- use simpler fix for (rhbz#295611) Thanks to Linus Torvalds for the patch.
2007-09-26 15:59:58 +00:00
Thomas Woerner
b467a216c0 - fixed IPv6 reject type (rhbz#295181)
- fixed init script: start, stop and status
- support netfilter compiled into kernel in init script (rhbz#295611)
- dropped inversion for limit modules from man pages (rhbz#220780)
- fixed typo in ip6tables man page (rhbz#236185)
2007-09-24 16:03:24 +00:00
Thomas Woerner
324c1a2ec7 - do not depend on local_fs in lsb header - this delayes start after
network
- fixed exit code for initscript usage
2007-09-19 16:30:16 +00:00
Thomas Woerner
996472d917 - do not use lock file for condrestart test 2007-09-17 15:46:05 +00:00
Thomas Woerner
32bdef74b2 [tw]
- fixed initscript for LSB conformance (rhbz#246953, rhbz#242459)
- provide iptc interface again, but unsupported (rhbz#216733)
- compile all extension, which are supported by the kernel-headers package
- review fixes (rhbz#225906)
2007-08-23 14:54:50 +00:00
Jeremy Katz
d784db838b - fix error when ipv6 support isn't loaded in the kernel (#236888) 2007-04-23 18:58:32 +00:00
Thomas Woerner
bc7eeb0697 [tw]
- new version 1.3.5
- fixed init script to set policy for raw tables, too (#179094)
2006-02-02 13:24:00 +00:00
Thomas Woerner
adba868b0a [tw]
- dropped new status patch
- integration directly in the config file and init script
2005-11-18 12:34:33 +00:00
Thomas Woerner
17fd75cb18 [tw]
- changed default behaviour for IPTABLES_STATUS_NUMERIC to "yes" (#129731)
- modified config file to match this change and un-commented variables with
    default values
2004-09-17 10:41:31 +00:00
cvsdist
314b6dc7e4 auto-import changelog data from iptables-1.2.9-1.0.src.rpm
Wed Dec 17 2003 Thomas Woerner <twoerner@redhat.com> 1.2.9-1.0
- vew version 1.2.9
- new config options in ipXtables-config: IPTABLES_MODULES_UNLOAD
- more documentation in ipXtables-config
- fix for netlink security issue in libipq (devel package)
- print fix for libipt_icmp (#109546)
2004-09-09 06:25:10 +00:00
cvsdist
7443bc4808 auto-import changelog data from iptables-1.2.8-13.src.rpm
Thu Oct 23 2003 Thomas Woerner <twoerner@redhat.com> 1.2.8-13
- marked all messages in iptables init script for translation (#107462)
- enabled devel package (#105884, #106101)
- bumped build for fedora for libipt_recent.so (#106002)
Tue Sep 23 2003 Thomas Woerner <twoerner@redhat.com> 1.2.8-12.1
- fixed lost udp port range in ip6tables-save (#104484)
- fixed non numeric multiport port output in ipXtables-savs
Mon Sep 22 2003 Florian La Roche <Florian.LaRoche@redhat.de> 1.2.8-11
- do not link against -lnsl
2004-09-09 06:24:45 +00:00
cvsdist
f8ef2e43c9 auto-import changelog data from iptables-1.2.8-8.90.5.src.rpm
Wed Sep 17 2003 Thomas Woerner <twoerner@redhat.com> 1.2.8-90.5
- fixed wrong tests for ipv6 udp ports in save
- made variables in rmmod_r local
2004-09-09 06:23:22 +00:00
cvsdist
31d8898f82 auto-import changelog data from iptables-1.2.8-7.90.1.src.rpm
Sat Jul 19 2003 Thomas Woerner <twoerner@redhat.com> 1.2.8-7.90.1
- fixed save when iptables file is missing and iptables-config permissions
Tue Jul 08 2003 Thomas Woerner <twoerner@redhat.com> 1.2.8-7
- fixes for ip6tables: module unloading, setting policy only for existing
    tables
Thu Jul 03 2003 Thomas Woerner <twoerner@redhat.com> 1.2.8-6
- IPTABLES_SAVE_COUNTER defaults to no, now
- install config file in /etc/sysconfig
- exchange unload of ip_tables and ip_conntrack
- fixed start function
Wed Jul 02 2003 Thomas Woerner <twoerner@redhat.com> 1.2.8-5
- new config option IPTABLES_SAVE_ON_RESTART
- init script: new status, save and restart
- fixes #44905, #65389, #80785, #82860, #91040, #91560 and #91374
Mon Jun 30 2003 Thomas Woerner <twoerner@redhat.com> 1.2.8-4
- new config option IPTABLES_STATUS_NUMERIC
- cleared IPTABLES_MODULES in iptables-config
Mon Jun 30 2003 Thomas Woerner <twoerner@redhat.com> 1.2.8-3
- new init scripts
Sat Jun 28 2003 Florian La Roche <Florian.LaRoche@redhat.de>
- remove check for very old kernel versions in init scripts
- sync up both init scripts and remove some further ugly things
- add some docu into rpm
Thu Jun 26 2003 Thomas Woerner <twoerner@redhat.com> 1.2.8-2
- rebuild
Mon Jun 16 2003 Thomas Woerner <twoerner@redhat.com> 1.2.8-1
- update to 1.2.8
2004-09-09 06:22:13 +00:00
cvsdist
c17548c88e auto-import iptables-1.2.7a-2 from iptables-1.2.7a-2.src.rpm 2004-09-09 06:21:27 +00:00
cvsdist
362a1d88ed auto-import iptables-1.2.6a-2 from iptables-1.2.6a-2.src.rpm 2004-09-09 06:21:23 +00:00
cvsdist
e8d685dd51 auto-import changelog data from iptables-1.2.4-2.src.rpm
Mon Nov 05 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.2.4-2
- Fix %preun script
Tue Oct 30 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.2.4-1
- Update to 1.2.4 (various fixes, including security fixes; among others:
- Fix init script (#31133)
2004-09-09 06:20:13 +00:00
cvsdist
bfa5afa17b auto-import changelog data from iptables-1.2.1a-1.src.rpm
Wed Mar 21 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- 1.2.1a, fixes #28412, #31136, #31460, #31133
Thu Mar 01 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- Yet another initscript fix (#30173)
- Fix the fixes; they fixed some issues but broke more important stuff :/
    (#30176)
Tue Feb 27 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- Fix up initscript (#27962)
- Add fixes from CVS to iptables-{restore,save}, fixing #28412
Fri Feb 09 2001 Karsten Hopp <karsten@redhat.de>
- create /etc/sysconfig/iptables mode 600 (same problem as #24245)
Mon Feb 05 2001 Karsten Hopp <karsten@redhat.de>
- fix bugzilla #25986 (initscript not marked as config file)
- fix bugzilla #25962 (iptables-restore)
- mv chkconfig --del from postun to preun
Thu Feb 01 2001 Trond Eivind Glomsrød <teg@redhat.com>
- Fix check for ipchains
Mon Jan 29 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- Some fixes to init scripts
Wed Jan 24 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- Add some fixes from CVS, fixes among other things Bug #24732
Wed Jan 17 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- Add missing man pages, fix up init script (Bug #17676)
Mon Jan 15 2001 Bill Nottingham <notting@redhat.com>
- add init script
Mon Jan 15 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- 1.2
- fix up ipv6 split
- add init script
- Move the plugins from /usr/lib/iptables to /lib/iptables. This needs to
    work before /usr is mounted...
- Use -O1 on alpha (compiler bug)
Sat Jan 06 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- 1.1.2
- Add IPv6 support (in separate package)
2004-09-09 06:19:38 +00:00