From nobody Thu Feb 2 13:29:47 2023 X-Original-To: freebsd-security@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 4P705D20Nzz3c6J9 for ; Thu, 2 Feb 2023 13:29:52 +0000 (UTC) (envelope-from jhellenthal@dataix.net) Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) (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 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P705D05Zpz4LxW for ; Thu, 2 Feb 2023 13:29:52 +0000 (UTC) (envelope-from jhellenthal@dataix.net) Authentication-Results: mx1.freebsd.org; none Received: by mail-io1-xd32.google.com with SMTP id r6so723826ioj.5 for ; Thu, 02 Feb 2023 05:29:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dataix.net; s=net; h=in-reply-to:content-disposition:mime-version:references:reply-to :message-id:subject:cc:to:date:from:from:to:cc:subject:date :message-id:reply-to; bh=LXHW3nTn75A3tl9XUhlR4npF7qIpheuNHj9bPsw2X/I=; b=KnzuGwHnN9g0QQ554uuotkKTj6mvUwyUhGcOVT2nBD71nrfuQ5/6H5FAcu8kD8+gld hDtrlSCgsDv5XHMkXSaMai6xrDgXOPKEuQp+Rd5XRJUqey588m1LU2qQqh1Tg9JqyCoi 6+IXnAa2M1uCRXeqIgABUK1czHbwEnGNuBje4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:reply-to :message-id:subject:cc:to:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LXHW3nTn75A3tl9XUhlR4npF7qIpheuNHj9bPsw2X/I=; b=xqOZiNu8cBmUf5KyUtunUNoqBIU1eRDzUL0flZ47z1PPYQECE1pOyFjPiGtrajFvSH fLa5f51lmlTPYVPDT6yGzQJ+mx/qDIq9gnVmwX9GMTmbIKzpyz/ErlNZEJsj5jEEFvhy QL1VMW6q2JkDnwZZ2LBgE7MPbaGHnOzUrHF/wTwh8iN2++SFbMszLJf7NkKZeUhLGuzs X4dfgRPQoGmTCtXg+BAHbK39IBHaqnv6iehJXTCw4RVQWYCu8DmR3K2CuKHHIL9mL4KP EjurzK/zJTrJ5IRMdbJovmRNMZ6W3KEnj6s3hSgOuRxLMmTfwvrziVP3IvMx4E+x3LjO VC6w== X-Gm-Message-State: AO0yUKUbJAbTukRM+N3wPALC41UrhC7ooBw0Q3+R3axXWEyMpCGr94v2 stTMSqjEU7NIFq2To2mtHU5XevM0TJlIuufO X-Google-Smtp-Source: AK7set8KBqcwTARR47YwL6PZRHKjYELXKBHCRCqZ1pPAXiL5wEll/y7zPV3PZb0Q1pomoAjtwJqefA== X-Received: by 2002:a5d:9807:0:b0:71b:cd72:192d with SMTP id a7-20020a5d9807000000b0071bcd72192dmr3955895iol.20.1675344590528; Thu, 02 Feb 2023 05:29:50 -0800 (PST) Received: from radix.local ([65.30.32.77]) by smtp.gmail.com with ESMTPSA id bm10-20020a05663842ca00b003a2e9dda8e9sm7050618jab.132.2023.02.02.05.29.48 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Feb 2023 05:29:48 -0800 (PST) From: "J. Hellenthal" X-Google-Original-From: "J. Hellenthal" Received: by radix.local (Postfix, from userid 502) id E80E2309654A05; Thu, 2 Feb 2023 07:29:47 -0600 (CST) Date: Thu, 2 Feb 2023 13:29:47 +0000 To: Sambuddho Chakravarty Cc: freebsd-security@freebsd.org Subject: Re: help regarding IP address spoofing (when using nmap) Message-ID: Reply-To: jhellenthal@DataIX.net References: List-Id: Security issues List-Archive: https://lists.freebsd.org/archives/freebsd-security List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-security@freebsd.org X-BeenThere: freebsd-security@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="uTDDRqFycOv2T37O" Content-Disposition: inline In-Reply-To: X-OpenPGP-Key-Id: 0x32EEFB045CE0A708 X-OpenPGP-Key-Fingerprint: 781B 622C 0AA6 FDF8 B46F 3B31 32EE FB04 5CE0 A708 X-Rspamd-Queue-Id: 4P705D05Zpz4LxW X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --uTDDRqFycOv2T37O Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 02, 2023 at 04:19:57PM +0530, Sambuddho Chakravarty wrote: > Hi All > =A0I am a relatively newbie to FreeBSD (earlier was running > Linux). I am running FreeBSD 13.1.=A0 > I am trying to run nmap with source IP address spoofing=A0 > (for some academic purposes). It works fine with Linux=A0 > but on FreeBSD I get the following error: > #=A0nmap -e re0 -S 192.168.17.92 -sS 143.110.249.18=A0 -p 8080 -Pn > Starting Nmap 7.93 ( https://nmap.org ) at 2023-02-02 16:04 IST > NSOCK ERROR [0.0170s] mksock_bind_addr(): Bind to 192.168.17.92:0 fail= ed > (IOD #1): Can't assign requested address (49) > NSOCK ERROR [0.0170s] mksock_bind_addr(): Bind to 192.168.17.92:0 fail= ed > (IOD #2): Can't assign requested address (49) > It works fine without the source spoofing but doesn't when I use > it. I can however use my own machine's source IP address with > the '-S' option. > -- > best, > sambuddho sudo(8) or su(1) ? An address should also be assigned to a interface for it to be bound to. --=20 The fact that there's a Highway to Hell but only a Stairway to Heaven says = a lot about anticipated traffic volume. --uTDDRqFycOv2T37O Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFUBAEBCAA+FiEEeBtiLAqm/fi0bzsxMu77BFzgpwgFAmPbusogFIAAAAAAFgAB amhlbGxlbnRoYWxARGF0YUlYLm5ldCEACgkQMu77BFzgpwjuBAgAjk+xf1w1TxdG nf8V9I+YYjfanuZrnrz0kr//RjppPE5nwL5nD/k/tjGRK4gaBW3cyZMDIUIKBMhJ 3lD+Cb/5WtObFGh8ARuBdJl0z9IB56OipUZWLPdKIyaYazD8gbPgjZ2wqlhHzDsK kK1KFibIngaC0AJBdBfun3tsEG5aim6I2obRJXV1JWQsrqOCMsLC2c0IYohgCrEt sKEdvlNe4ZKmOVd+uDwdtBeMVsyz1GGfRYxuLoY32oXAeJY+SlmX39TQjV+svFf6 KQlqzd3SpvgCokkR4zTX5GvibKY/QfUbxF18aSTlV14V49k3BMzdjLA/DMogoDpW SYSKXmEdzQ== =+2Q8 -----END PGP SIGNATURE----- --uTDDRqFycOv2T37O--