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
[-- Attachment #1 --] 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 [-- Attachment #2 --] <div dir="ltr"><div class="gmail_default" style="font-family:monospace">Hi All</div><div class="gmail_default" style="font-family:monospace"> I am a relatively newbie to FreeBSD (earlier was running</div><div class="gmail_default" style="font-family:monospace">Linux). I am running FreeBSD 13.1. </div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">I am trying to run nmap with source IP address spoofing </div><div class="gmail_default" style="font-family:monospace">(for some academic purposes). It works fine with Linux </div><div class="gmail_default" style="font-family:monospace">but on FreeBSD I get the following error:</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace"># nmap -e re0 -S 192.168.17.92 -sS 143.110.249.18 -p 8080 -Pn</div><div class="gmail_default" style="font-family:monospace">Starting Nmap 7.93 ( <a href="https://nmap.org">https://nmap.org</a> ) at 2023-02-02 16:04 IST<br>NSOCK ERROR [0.0170s] mksock_bind_addr(): Bind to <a href="http://192.168.17.92:0">192.168.17.92:0</a> failed (IOD #1): Can't assign requested address (49)<br>NSOCK ERROR [0.0170s] mksock_bind_addr(): Bind to <a href="http://192.168.17.92:0">192.168.17.92:0</a> failed (IOD #2): Can't assign requested address (49)<br></div><div><br></div><div><br></div><div><div class="gmail_default" style="font-family:monospace">It works fine without the source spoofing but doesn't when I use</div><div class="gmail_default" style="font-family:monospace">it. I can however use my own machine's source IP address with</div><div class="gmail_default" style="font-family:monospace">the '-S' option.</div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font face="monospace">best,</font><div><font face="monospace"></font></div><div><font face="monospace">sambuddho <br></font></div></div></div></div>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAK1-MKcNetGHrg5VpHpmrE%2BXDf%2BSvn1pp-rWd%2BTzU9ay76frfw>
