From nobody Mon Jul 24 13:34:36 2023 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4R8h3R224Mz4pRBj for ; Mon, 24 Jul 2023 13:34:43 +0000 (UTC) (envelope-from felix@palmen-it.de) Received: from stef.palmen-it.de (stef.palmen-it.de [IPv6:2001:470:1f0b:bbb:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4R8h3P726dz46pn for ; Mon, 24 Jul 2023 13:34:41 +0000 (UTC) (envelope-from felix@palmen-it.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=palmen-it.de header.s=20200414 header.b=eLfEh2Ep; spf=pass (mx1.freebsd.org: domain of felix@palmen-it.de designates 2001:470:1f0b:bbb:1::1 as permitted sender) smtp.mailfrom=felix@palmen-it.de; dmarc=none DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=palmen-it.de; s=20200414; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:To:From:Date:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=t5+ZmdNUljeKyu/BpSsT8VlvChpzazf3ljoKZWPlJvo=; b=eLfEh2Ep12cuU7Xr8m+rzqzYxz ddC0ffXfv6CxHb1LWsM+vv3jvAhFOhOwZcLR/cbEqhCvVrwFPRP4HmxQGI5UaqzIjUgPxs1kqzFkx tqf9TpHsYjEQffe7LwO49aoc3l2uKj2xSU3bS9DzliYTVum/KN3aWICYIS+3u9UTJmEQvesGw0R8w Z6+4p4xnfKf/6+ZqLCGJV0zzn5+wTOvcfmz0MVm87BeC/LjSCbV7VlHK9vrPyasbVTvJ3PQj0v9KT u9VmxSja0iZKz5e7/oRNHVKItNq6OkXbRuePG0e+YSWJQiLzw99eM0BxdXaSS9ymbh8SEEuCToyzF ZKZ2er/Q==; Received: from [192.168.71.101] (helo=mail.home.palmen-it.de) by stef.palmen-it.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qNvht-008GKY-6r for freebsd-hackers@freebsd.org; Mon, 24 Jul 2023 15:34:37 +0200 Received: from nexus.home.palmen-it.de ([192.168.99.2]) by mail.home.palmen-it.de with esmtpsa (TLS1.3) tls TLS_CHACHA20_POLY1305_SHA256 (Exim 4.96 (FreeBSD)) (envelope-from ) id 1qNvhs-000PCZ-2u for freebsd-hackers@freebsd.org; Mon, 24 Jul 2023 13:34:36 +0000 Date: Mon, 24 Jul 2023 15:34:36 +0200 From: Felix Palmen To: freebsd-hackers@freebsd.org Subject: Re: Creating socket with socat Message-ID: Mail-Followup-To: freebsd-hackers@freebsd.org X-Face: /1K@t"h.}e~pR@]c7HorQ!T`F^RJCa'BCr#e>IKA{>C/9OTGB4|xh"y2{?1Z5M i2w"AH^pN_LlHR^{+f',_Np~;.B;!M/bL}*qk]p5*r7F5vW};{:@4u5S?T&f0$7BJ-71Q5SV]:v$`5 A0[DZ:=?S52x8HJ~5@^P_\T@MsjG{R( Organization: FreeBSD.org References: <8f477ccc-e5db-9e73-2bfa-d3706a400ab2@gmail.com> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="i7eutj7kaeer62ke" Content-Disposition: inline In-Reply-To: <8f477ccc-e5db-9e73-2bfa-d3706a400ab2@gmail.com> User-Agent: NeoMutt/20230517 X-Spamd-Result: default: False [-7.50 / 15.00]; SIGNED_PGP(-2.00)[]; DWL_DNSWL_MED(-2.00)[palmen-it.de:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; MID_RHS_NOT_FQDN(0.50)[]; FORGED_SENDER(0.30)[zirias@freebsd.org,felix@palmen-it.de]; R_DKIM_ALLOW(-0.20)[palmen-it.de:s=20200414]; RCVD_IN_DNSWL_MED(-0.20)[2001:470:1f0b:bbb:1::1:from]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:1f0b:bbb:1::1]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; FROM_HAS_DN(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_NEQ_ENVFROM(0.00)[zirias@freebsd.org,felix@palmen-it.de]; TO_DOM_EQ_FROM_DOM(0.00)[]; HAS_ORG_HEADER(0.00)[]; TO_DN_NONE(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; MIME_TRACE(0.00)[0:+,1:+,2:~]; DKIM_TRACE(0.00)[palmen-it.de:+]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4R8h3P726dz46pn X-Spamd-Bar: ------- --i7eutj7kaeer62ke Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Parodper [20230724 12:17]: > I'm trying to make a remote socket local by using socat. > [...] > E setsockopt(7, 41, 27, {1}, 4): Invalid argument I'm not entirely sure I fully understand the scenario and the error. But if your goal is to access some local unix domain socket on a remote machine, I have my own pet tool for exactly that purpose here: Maybe you find it useful. The FreeBSD port linked there isn't really polished, so far I didn't expect anyone would want to see that tool in the official ports tree :) Also, I hope I can release some update soon that would finally also support a config file instead of entirely relying on command line arguments. --=20 Felix Palmen {private} felix@palmen-it.de -- ports committer -- {web} http://palmen-it.de {pgp public key} http://palmen-it.de/pub.txt {pgp fingerprint} 6936 13D5 5BBF 4837 B212 3ACC 54AD E006 9879 F231 --i7eutj7kaeer62ke Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iNUEABYKAH0WIQRpNhPVW79IN7ISOsxUreAGmHnyMQUCZL59318UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0Njkz NjEzRDU1QkJGNDgzN0IyMTIzQUNDNTRBREUwMDY5ODc5RjIzMQAKCRBUreAGmHny MXGtAQCc0WoeAt3a6Gg47bnxwRfKbgmOv45/OFz6KS+75eGOLgD8COVz3qktUZy4 WW5DI3cYPRjqw6KcFt5uX3UGs62LggI= =Sfe5 -----END PGP SIGNATURE----- --i7eutj7kaeer62ke--