Package: ferm
Version: 2.1-1
Severity: minor
Tags: patch

Dear Maintainer,

ebtables supports a RETURN target in chains, which is quite handy when
splitting a flat set of rules into a set of custom chains of rules.

I attached a patch that implements support for the RETURN target.

Regards,
Peter

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing'), (200, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.1.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ferm depends on:
ii  debconf   1.5.41
ii  iptables  1.4.12.2-1
ii  lsb-base  3.2-28.1
ii  perl      5.14.2-7

Versions of packages ferm recommends:
ii  libnet-dns-perl  0.66-2+b2

ferm suggests no packages.

-- Configuration Files:
/etc/default/ferm changed [not included]
/etc/ferm/ferm.conf [Errno 13] Permission denied: u'/etc/ferm/ferm.conf'

-- debconf information excluded
>From 0cc885a6acd6aaa82f57143592b031bc62bdb563 Mon Sep 17 00:00:00 2001
From: Peter Colberg <pe...@colberg.org>
Date: Sun, 23 Oct 2011 19:21:35 -0400
Subject: [PATCH 1/2] Allow chain policy RETURN in ebtables

---
 src/ferm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/ferm b/src/ferm
index b83048d..fecdc83 100755
--- a/src/ferm
+++ b/src/ferm
@@ -2119,7 +2119,7 @@ sub enter($$) {
 
                 my $policy = getvar();
                 error("Invalid policy target: $policy")
-                  unless $policy =~ /^(?:ACCEPT|DROP)$/;
+                  unless $policy =~ /^(?:ACCEPT|DROP|RETURN)$/;
 
                 expect_token(';');
 
-- 
1.7.2.5

Reply via email to