NetFilter
[Top] [All Lists]

Re: What happened to ipt_physdev.c ?

To: netfilter@lists.netfilter.org
Subject: Re: What happened to ipt_physdev.c ?
From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
Date: Sat, 25 Nov 2006 13:56:36 +0100
Delivered-to: sp-com-lists@consult.net
Delivered-to: netfilter-list1@securepoint.com
In-reply-to: <1164206481.456461916ec06@mail.third-rock.net>
List-archive: </pipermail/netfilter>
List-help: <mailto:netfilter-request@lists.netfilter.org?subject=help>
List-id: General discussion and user questions <netfilter.lists.netfilter.org>
List-post: <mailto:netfilter@lists.netfilter.org>
List-subscribe: <https://lists.netfilter.org/mailman/listinfo/netfilter>, <mailto:netfilter-request@lists.netfilter.org?subject=subscribe>
List-unsubscribe: <https://lists.netfilter.org/mailman/listinfo/netfilter>, <mailto:netfilter-request@lists.netfilter.org?subject=unsubscribe>
Organization: Plouf !
References: <1164206481.456461916ec06@mail.third-rock.net>
Sender: netfilter-bounces@lists.netfilter.org
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)
Hello,

Paul Reilly a écrit :
In recent kernels, 2.6.16.x   there is no longer any

net/ipv4/netfilter/ipt_physdev.c

Yes, since 2.6.16 it was replaced by net/netfilter/xt_physdev.c.

and no option in kernel config to enable CONFIG_NETFILTER_XT_MATCH_PHYSDEV

Yes there is. I just checked in vanilla 2.6.16 and 2.6.16.20.

So I have no physdev in /proc/net/ip_tables_matches
and my rules which include a -m physdev fail with:

iptables: No chain/target/match by that name

Has PHYSDEV been moved somewhere else?

Since 2.6.16 the corresponding module is named xt_physdev.ko and depends on x_tables and bridge.

How do I enable it?

Symbol: NETFILTER_XT_MATCH_PHYSDEV [=m]
Prompt: "physdev" match support
  Defined at net/netfilter/Kconfig:282
  Depends on: NET && NETFILTER && NETFILTER_XTABLES && BRIDGE_NETFILTER
  Location:
    -> Networking
      -> Networking support (NET [=y])
        -> Networking options
          -> Network packet filtering (replaces ipchains) (NETFILTER [=y])
            -> Core Netfilter Configuration
-> Netfilter Xtables support (required for ip_tables) (NETFILTER_XTABLES [=m])

CONFIG_NETFILTER_XT_MATCH_PHYSDEV is located in the "Core Netfilter Configuration" submenu and depends on CONFIG_NETFILTER_XTABLES (Netfilter Xtables support) and CONFIG_BRIDGE_NETFILTER (Bridged IP/ARP packets filtering) which depends on CONFIG_BRIDGE (802.1d Ethernet Bridging).


<Prev in Thread] Current Thread [Next in Thread>