Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Feb 2023 13:29:47 +0000
From:      "J. Hellenthal" <jhellenthal@dataix.net>
To:        Sambuddho Chakravarty <sambuddho@iiitd.ac.in>
Cc:        freebsd-security@freebsd.org
Subject:   Re: help regarding IP address spoofing (when using nmap)
Message-ID:  <Y9u6yyIfz8nHpb5c@DataIX.net>
In-Reply-To: <CAK1-MKcNetGHrg5VpHpmrE%2BXDf%2BSvn1pp-rWd%2BTzU9ay76frfw@mail.gmail.com>
References:  <CAK1-MKcNetGHrg5VpHpmrE%2BXDf%2BSvn1pp-rWd%2BTzU9ay76frfw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Y9u6yyIfz8nHpb5c>