Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Feb 2023 16:19:57 +0530
From:      Sambuddho Chakravarty <sambuddho@iiitd.ac.in>
To:        freebsd-security@freebsd.org
Subject:   Re: help regarding IP address spoofing (when using nmap)
Message-ID:  <CAK1-MKcNetGHrg5VpHpmrE%2BXDf%2BSvn1pp-rWd%2BTzU9ay76frfw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
--0000000000000384a005f3b55664
Content-Type: text/plain; charset="UTF-8"

Hi All
 I am a relatively newbie to FreeBSD (earlier was running
Linux). I am running FreeBSD 13.1.

I am trying to run nmap with source IP address spoofing
(for some academic purposes). It works fine with Linux
but on FreeBSD I get the following error:

# nmap -e re0 -S 192.168.17.92 -sS 143.110.249.18  -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 failed
(IOD #1): Can't assign requested address (49)
NSOCK ERROR [0.0170s] mksock_bind_addr(): Bind to 192.168.17.92:0 failed
(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

--0000000000000384a005f3b55664
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:monospac=
e">Hi All</div><div class=3D"gmail_default" style=3D"font-family:monospace"=
>=C2=A0I am a relatively newbie to FreeBSD (earlier was running</div><div c=
lass=3D"gmail_default" style=3D"font-family:monospace">Linux). I am running=
 FreeBSD 13.1.=C2=A0</div><div class=3D"gmail_default" style=3D"font-family=
:monospace"><br></div><div class=3D"gmail_default" style=3D"font-family:mon=
ospace">I am trying to run nmap with source IP address spoofing=C2=A0</div>=
<div class=3D"gmail_default" style=3D"font-family:monospace">(for some acad=
emic purposes). It works fine with Linux=C2=A0</div><div class=3D"gmail_def=
ault" style=3D"font-family:monospace">but on FreeBSD I get the following er=
ror:</div><div class=3D"gmail_default" style=3D"font-family:monospace"><br>=
</div><div class=3D"gmail_default" style=3D"font-family:monospace">#=C2=A0n=
map -e re0 -S 192.168.17.92 -sS 143.110.249.18=C2=A0 -p 8080 -Pn</div><div =
class=3D"gmail_default" style=3D"font-family:monospace">Starting Nmap 7.93 =
( <a href=3D"https://nmap.org">https://nmap.org</a>; ) at 2023-02-02 16:04 I=
ST<br>NSOCK ERROR [0.0170s] mksock_bind_addr(): Bind to <a href=3D"http://1=
92.168.17.92:0">192.168.17.92:0</a> failed (IOD #1): Can&#39;t assign reque=
sted address (49)<br>NSOCK ERROR [0.0170s] mksock_bind_addr(): Bind to <a h=
ref=3D"http://192.168.17.92:0">192.168.17.92:0</a>; failed (IOD #2): Can&#39=
;t assign requested address (49)<br></div><div><br></div><div><br></div><di=
v><div class=3D"gmail_default" style=3D"font-family:monospace">It works fin=
e without the source spoofing but doesn&#39;t when I use</div><div class=3D=
"gmail_default" style=3D"font-family:monospace">it. I can however use my ow=
n machine&#39;s source IP address with</div><div class=3D"gmail_default" st=
yle=3D"font-family:monospace">the &#39;-S&#39; option.</div><br></div>-- <b=
r><div dir=3D"ltr" class=3D"gmail_signature" data-smartmail=3D"gmail_signat=
ure"><div dir=3D"ltr"><font face=3D"monospace">best,</font><div><font face=
=3D"monospace"></font></div><div><font face=3D"monospace">sambuddho <br></f=
ont></div></div></div></div>

--0000000000000384a005f3b55664--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAK1-MKcNetGHrg5VpHpmrE%2BXDf%2BSvn1pp-rWd%2BTzU9ay76frfw>