From owner-freebsd-questions@FreeBSD.ORG Sun Apr 26 12:36:36 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EA7F9E5 for ; Sun, 26 Apr 2015 12:36:36 +0000 (UTC) Received: from relay2.tomsk.ru (mail.sibptus.tomsk.ru [212.73.124.5]) by mx1.freebsd.org (Postfix) with ESMTP id 58570112C for ; Sun, 26 Apr 2015 12:36:35 +0000 (UTC) X-Virus-Scanned: by clamd daemon 0.98.5_1 for FreeBSD at relay2.tomsk.ru Received: from admin.sibptus.tomsk.ru ([212.73.125.240] verified) by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.16) with ESMTPS id 38651643 for freebsd-questions@freebsd.org; Sun, 26 Apr 2015 18:36:32 +0600 Received: from admin.sibptus.TOMSK.ru (sudakov@localhost [127.0.0.1]) by admin.sibptus.tomsk.ru (8.14.9/8.14.7) with ESMTP id t3QCaTJ6060867 for ; Sun, 26 Apr 2015 18:36:32 +0600 (NOVT) (envelope-from vas@mpeks.tomsk.su) Received: (from sudakov@localhost) by admin.sibptus.TOMSK.ru (8.14.9/8.14.7/Submit) id t3QCaTQw060866 for freebsd-questions@freebsd.org; Sun, 26 Apr 2015 18:36:29 +0600 (NOVT) (envelope-from vas@mpeks.tomsk.su) X-Authentication-Warning: admin.sibptus.TOMSK.ru: sudakov set sender to vas@mpeks.tomsk.su using -f Date: Sun, 26 Apr 2015 18:36:29 +0600 From: Victor Sudakov To: freebsd-questions@freebsd.org Subject: Re: tunneling L2 tagged traffic over IP Message-ID: <20150426123629.GA48916@admin.sibptus.tomsk.ru> References: <20150425174935.GA48023@admin.sibptus.tomsk.ru> <553C1F66.4060901@gmx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <553C1F66.4060901@gmx.com> Organization: OAO "Svyaztransneft", SibPTUS X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Apr 2015 12:36:37 -0000 Nikos Vassiliadis wrote: > > > > Could you advise a solution for tunneling L2 (Ethernet) traffic over IP? > > > > There is a solution in bridge(4) using the EtherIP protocol, but it > > works with untagged frames only. I need to tunnel 802.1q tagged frames > > as well. > > > > Any ideas? > > > > > You can do this with netgraph. Check this post: > > http://lists.freebsd.org/pipermail/freebsd-net/2005-October/008861.html > It's a modification of the /usr/share/examples/netgraph/ether.bridge script. How do you know that it would pass 802.1q tagged frames? It references a "fxp0" interface which passes untagged traffic unless a vlan(4) interface is configured on top thereof. I thought there would be a VPN solution involving tap(4) devices or something. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru