Re: help regarding IP address spoofing (when using nmap)

Sambuddho Chakravarty <[email protected]>
Newsgroups gmane.os.freebsd.security.general
Message-ID <CAK1-MKcNetGHrg5VpHpmrE+XDf+Svn1pp-rWd+TzU9ay76frfw@mail.gmail.com>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.