From owner-freebsd-net@freebsd.org Fri Jun 5 20:07:30 2020 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 694E33368B0 for ; Fri, 5 Jun 2020 20:07:30 +0000 (UTC) (envelope-from tom.marcoen@gmail.com) Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49dtwf0mD1z3Tmm; Fri, 5 Jun 2020 20:07:29 +0000 (UTC) (envelope-from tom.marcoen@gmail.com) Received: by mail-lj1-x22a.google.com with SMTP id n23so13246661ljh.7; Fri, 05 Jun 2020 13:07:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yENo/hHBmiwe/trkFXUo2mHQGiPOcuH6g/Dyyj0p9Fw=; b=fcGqr2SRZR3Ayh9fuM5rLXJgJV4y5UM7TEPpiCDX04/l9gZZKz3vYaThbPlBIiusai h3p01jN4RsQKq8wx2BqIgwVPGvpLdcF03ni++ISiAMUhAdym9AOAPHSx34sCXXw3xkEW YDrmfBOjH4h5Us1FCp9ZLXPUDkCzAeYB3vHsq4JlJ6PTWvAshD+B1COfzgL5918xdedU J1++oQdLr54CI0dTWSFLAbsNoQN37JJVAcecyuB/0k8jFU0Wj67xqfuNqyZ1CXIQdjM0 ndC9JOiX4sU8h4YZBj5EXX0ioXumOWrBEH4HDCY8x4opFeHhcMnnVF5/23193/65E0DO 1X9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yENo/hHBmiwe/trkFXUo2mHQGiPOcuH6g/Dyyj0p9Fw=; b=I/fqq5wdx0rP/K0+phIwrS9RZ9MoFMX4sg9cnClMNL1ra64u8S1UYKo0zw9pQ8TCzi VGaCb4m2Lbouqx3Q2JYJIcC0vDBe4pCbmrv9XUNPXQjQ9zLfgQfeA1Xp8nOlHO+VV+bs 85ZtSLZ5+n2wnwSFjsCsdXhGvJ/Rz6Z8Ab93us8WbKGdUAyJGHBf4+yCaA1T4AVIIpoB 67aPWRsbOqMVHwulfTD824nwWce7otBerEzPcfaRiojTHfpKg9qjoxO0r+noci4nk84f B08vMEX/TMU31tA6XLtNJm83xYPHfL+W0QhcqbfByO/3ALt10Xk3UGmAK5x/a+W7Dvt5 dMbQ== X-Gm-Message-State: AOAM533k809PrITZPohptdlKfIWz0ifxBURBx4Ymrr5mTk0aS6CzRatf UrPcOkBcVh+PxJGaLJWgwtSbLZZlT/aH9Xj8YGgzAXOcm/w= X-Google-Smtp-Source: ABdhPJymtQzquHI1wmkTikXZvd+6n5EdiU5MJw7I9EFnko4oL/lLtg7azqvF/meo0qE5dMM9pv999wr9Hj7fQSSS3Hw= X-Received: by 2002:a05:651c:545:: with SMTP id q5mr5701481ljp.57.1591387647788; Fri, 05 Jun 2020 13:07:27 -0700 (PDT) MIME-Version: 1.0 References: <4e1a0775-be6f-d1e7-4b10-33df717ba0bf@freebsd.org> In-Reply-To: <4e1a0775-be6f-d1e7-4b10-33df717ba0bf@freebsd.org> From: Tom Marcoen Date: Fri, 5 Jun 2020 22:07:16 +0200 Message-ID: Subject: Re: On Netgraph To: Julian Elischer Cc: freebsd-net@freebsd.org, eugen@grosbein.net X-Rspamd-Queue-Id: 49dtwf0mD1z3Tmm X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; REPLY(-4.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jun 2020 20:07:30 -0000 I'm sure I can come up with those ten-or-so lines myself. I was just hoping I could use a Netgraph node which performs the encryption before sending it through the ksocket node. Perhaps I should write such a node then. On Fri, 5 Jun 2020 at 22:04, Julian Elischer wrote: > On 6/5/20 12:13 PM, Tom Marcoen wrote: > > Hey Eugen, > > > > For some reason I did not receive your email. But I found your reply in > the > > archives. > > > > Anyway, the goal is to have two computers, each with a Netgraph bridge > node > > and jails connecting to these bridges. I want to connect both bridges > over > > the Internet securely. Using a UDP tunnel and encrypting that with IPsec > or > > wireguard or .... would be an option, but it would be nicer if I could > use > > a Netgraph-native option. > > > In years past I used netgraph ksocket nodes to generate a udp tunnel > and then set up IPSEC to encrypt it. > > can be done from the command line with about 10 lines from memory. > > Unfortunately I don't have those 10 line at hand as it was at > JOB[current - 5] > > Julian > > > > Regards, > > Tom > > > > On Wed, 27 May 2020 at 10:06, Tom Marcoen wrote: > > > >> Hey all, > >> > >> I'm new to this mailing list and also quite new to FreeBSD (huray, > welcome > >> to me!) so bare with me, please. > >> > >> I'm reading up on Netgraph on how I can integrate it with FreeBSD jails > >> and I was looking at some of the examples provided in > >> /usr/share/examples/netgraph and now have the following question. > >> The udp.tunnel example shows an iface point-to-point connection but it > is > >> unencrypted. Of course I could encrypt it with an IPsec tunnel on the > host > >> or tunnel it through SSH, but I was wondering whether there exists a > nice > >> Netgraph solution, e.g. a node with two hooks, receiving unencrypted > >> traffic on the inside hook and sending out encrypted traffic on the > outside > >> hook. > >> > >> Regards, > >> Tom > >> > > _______________________________________________ > > freebsd-net@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-net > > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > > >