NetBSD Problem Report #52765

From www@NetBSD.org  Sun Nov 26 23:53:00 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 01B267A1B7
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 26 Nov 2017 23:53:00 +0000 (UTC)
Message-Id: <20171126235259.333877A1FE@mollari.NetBSD.org>
Date: Sun, 26 Nov 2017 23:52:59 +0000 (UTC)
From: jmcneill@invisible.ca
Reply-To: jmcneill@invisible.ca
To: gnats-bugs@NetBSD.org
Subject: npf cannot do port forwarding on vlan interfaces
X-Send-Pr-Version: www-1.0

>Number:         52765
>Category:       kern
>Synopsis:       npf cannot do port forwarding on vlan interfaces
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 26 23:55:00 +0000 2017
>Closed-Date:    Mon Nov 27 01:37:18 +0000 2017
>Last-Modified:  Mon Nov 27 01:37:18 +0000 2017
>Originator:     Jared McNeill
>Release:        8.0_BETA
>Organization:
>Environment:
NetBSD demi-fiend.invisible.ca 8.0_BETA NetBSD 8.0_BETA (ERLITE) #1: Sun Nov 26 14:33:47 AST 2017  jmcneill@persona.local:/Users/jmcneill/netbsd/src-8/sys/arch/evbmips/compile/obj/ERLITE evbmips
>Description:
Port forwarding rules do not work on vlan interfaces. christos and rmind says this is because vlan(4) does not implement pfil hooks.
>How-To-Repeat:
Create a vlan interface and use it as "ext_if" in an npf nat config. Try adding an inbound port forwarding rule:

map $ext_if dynamic 192.168.2.102 port 22 <- $ext_v4 port 22

Note that the port forwarding doesn't work.
>Fix:

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: jmcneill@NetBSD.org
State-Changed-When: Mon, 27 Nov 2017 01:37:18 +0000
State-Changed-Why:
Fixed: http://mail-index.netbsd.org/source-changes/2017/11/27/msg089996.html


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.