Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 706135 Details for
Bug 912782
Any traffic allowed by default zone is allowed in all other zones
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
suggested patch
0001-FORWARD_IN_ZONES-and-FORWARD_OUT_ZONES-chains-RHBZ-9.patch (text/plain), 2.63 KB, created by
Jiri Popelka
on 2013-03-06 16:39:52 UTC
(
hide
)
Description:
suggested patch
Filename:
MIME Type:
Creator:
Jiri Popelka
Created:
2013-03-06 16:39:52 UTC
Size:
2.63 KB
patch
obsolete
>From 41a1a4c69448991bb89b22081b29bffe47bfcca1 Mon Sep 17 00:00:00 2001 >From: Jiri Popelka <jpopelka@redhat.com> >Date: Wed, 6 Mar 2013 17:21:00 +0100 >Subject: [PATCH] FORWARD_IN_ZONES and FORWARD_OUT_ZONES chains (RHBZ#912782) > >We need to separate top-level FORWARD_ZONES chain >into these two chains to be able to correctly match >rules for input and output interface, see >https://bugzilla.redhat.com/show_bug.cgi?id=912782#c11 >--- > src/firewall/core/base.py | 4 ++-- > src/firewall/core/fw_zone.py | 2 +- > src/firewall/core/ipXtables.py | 10 ++++++---- > 3 files changed, 9 insertions(+), 7 deletions(-) > >diff --git a/src/firewall/core/base.py b/src/firewall/core/base.py >index b89870d..1dcf30b 100644 >--- a/src/firewall/core/base.py >+++ b/src/firewall/core/base.py >@@ -44,8 +44,8 @@ INTERFACE_ZONE_SRC = { > "PREROUTING": "PREROUTING", > "POSTROUTING": "POSTROUTING", > "INPUT": "INPUT", >- "FORWARD_IN": "FORWARD", >- "FORWARD_OUT": "FORWARD", >+ "FORWARD_IN": "FORWARD_IN", >+ "FORWARD_OUT": "FORWARD_OUT", > "OUTPUT": "OUTPUT", > } > >diff --git a/src/firewall/core/fw_zone.py b/src/firewall/core/fw_zone.py >index 2b0ac8b..c72055e 100644 >--- a/src/firewall/core/fw_zone.py >+++ b/src/firewall/core/fw_zone.py >@@ -264,7 +264,7 @@ class FirewallZone: > target = self._zones[zone].target.format( > chain=SHORTCUTS[chain], zone=zone) > if target in [ "REJECT", "%%REJECT%%" ] and \ >- src_chain not in [ "INPUT", "FORWARD", "OUTPUT" ]: >+ src_chain not in [ "INPUT", "FORWARD_IN", "FORWARD_OUT", "OUTPUT" ]: > # REJECT is only valid in the INPUT, FORWARD and > # OUTPUT chains, and user-defined chains which are > # only called from those chains >diff --git a/src/firewall/core/ipXtables.py b/src/firewall/core/ipXtables.py >index d172151..311f9e4 100644 >--- a/src/firewall/core/ipXtables.py >+++ b/src/firewall/core/ipXtables.py >@@ -83,14 +83,16 @@ DEFAULT_RULES["filter"] = [ > "-I INPUT 6 -j %%REJECT%%", > > "-N FORWARD_direct", >- "-N FORWARD_ZONES", >+ "-N FORWARD_IN_ZONES", >+ "-N FORWARD_OUT_ZONES", > > "-I FORWARD 1 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT", > "-I FORWARD 2 -i lo -j ACCEPT", > "-I FORWARD 3 -j FORWARD_direct", >- "-I FORWARD 4 -j FORWARD_ZONES", >- "-I FORWARD 5 -p %%ICMP%% -j ACCEPT", >- "-I FORWARD 6 -j %%REJECT%%", >+ "-I FORWARD 4 -j FORWARD_IN_ZONES", >+ "-I FORWARD 5 -j FORWARD_OUT_ZONES", >+ "-I FORWARD 6 -p %%ICMP%% -j ACCEPT", >+ "-I FORWARD 7 -j %%REJECT%%", > > "-N OUTPUT_direct", > >-- >1.8.1.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 912782
:
699520
|
704807
| 706135