From owner-freebsd-questions Mon Sep 22 12:52:38 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA13807 for questions-outgoing; Mon, 22 Sep 1997 12:52:38 -0700 (PDT) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id MAA13798 for ; Mon, 22 Sep 1997 12:52:29 -0700 (PDT) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.demon.co.uk (8.8.5/8.8.5) with ESMTP id TAA18097; Mon, 22 Sep 1997 19:45:11 +0100 (BST) Message-Id: <199709221845.TAA18097@awfulhak.demon.co.uk> X-Mailer: exmh version 2.0zeta 7/24/97 To: alexlh@xs4all.nl cc: freebsd-questions@FreeBSD.ORG Subject: Re: DIVERT or tun0? In-reply-to: Your message of "Mon, 22 Sep 1997 18:03:10 +0200." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 22 Sep 1997 19:45:11 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Hi, > > Can someone explain to what the difference is between the tunnel device > and DIVERT sockets? And why we need them both? > > Thanks, Is there anything similar between them ? The tunnel device allows a user-land program to read and write packets from and to a pseudo network interface. A divert socket allows the redirection of packets from the kernel to a user-level program and back - based on any firewall type criteria. We *need* them both so that we can write smart user-level programs. More than a few people would argue that neither are needed - they just encourage hacking. > Alex > > --- > I dabble in techno-house and sometimes, > I do that badass hip-hop thang... > But the F U N K gets me every time! > -- Brian , , Don't _EVER_ lose your sense of humour....