From nobody Thu Feb 2 10:49:57 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 4P6wYb1m0wz3csVy for ; Thu, 2 Feb 2023 10:50:43 +0000 (UTC) (envelope-from sambuddho@iiitd.ac.in) Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) (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 4P6wYZ1Kt3z433h for ; Thu, 2 Feb 2023 10:50:42 +0000 (UTC) (envelope-from sambuddho@iiitd.ac.in) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=iiitd.ac.in header.s=google header.b=QHnEiYwQ; spf=pass (mx1.freebsd.org: domain of sambuddho@iiitd.ac.in designates 2607:f8b0:4864:20::72a as permitted sender) smtp.mailfrom=sambuddho@iiitd.ac.in; dmarc=none Received: by mail-qk1-x72a.google.com with SMTP id 135so736512qkh.13 for ; Thu, 02 Feb 2023 02:50:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iiitd.ac.in; s=google; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=tJ928vXOR4gZBwUbOfPmi5P74Xn/WmuOdWCe91GGqB0=; b=QHnEiYwQ2yxw84D9GZ1YZ+2xHrj1fvYH9CkyBt3cM25a0BN/PFnPCnfR2YjPIwAqEK rkx5rEqweMnI7HAivpAsvq8XMMabZE510iVmVNaYn+GoQzXmsl93ezdVEd7VVZYbZLYP ibhx9XoZAzPIXO5rC/ZT7XQVtnwsOfGUt7m5g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=tJ928vXOR4gZBwUbOfPmi5P74Xn/WmuOdWCe91GGqB0=; b=uRUIx05TW57VSc8nJuvz2oF2VdrUrAcE9jNZfXxlOy2xPNHwzwFxwJRuXDxAf8vU3J HIBqG/Md4HMHPsin+u/hm3jDOfogct0bYwiKGyjS4uNrc9ravHKsBIYWd1ZpomNr0rRk V6Nrojw45iQQmdZEHUKPuhr8BLKK/fWv4LkDfUDC3dFIaeeAJhztn2zgVESpow/Er4Cv 0yUm9aSOhiquyMzQABzkDKFqb4snhg/ouo97z/gzgOQAd8cpZwXG9QCDKbS6p4N67Y8f B4XLSAFnVgQ8z32S2kxYKV61qXRr7TXpzzb2kSA7TBCsDeAODt4tsgFbZOKUF4UKPJ3s 4y7w== X-Gm-Message-State: AO0yUKVybazwSwSwENxs9QyLXLXk3mR/ImxhKNscekejRcyXZhdwe9q5 Izxe/+ubsv0rQ+ngFB7WX0/fyKF6pd+SfAqfScc2NWKUKHXokCEp X-Google-Smtp-Source: AK7set81USzHOfhk5alu98yH4q4tTY6XukgdRYMS83N6F6V9aJliJcuW4E0koYM6oJn0aQgtGpRxqFGP8uTo5oeJJ6g= X-Received: by 2002:ae9:f40b:0:b0:71b:fdf5:c825 with SMTP id y11-20020ae9f40b000000b0071bfdf5c825mr500121qkl.266.1675335041246; Thu, 02 Feb 2023 02:50:41 -0800 (PST) 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 From: Sambuddho Chakravarty Date: Thu, 2 Feb 2023 16:19:57 +0530 Message-ID: Subject: Re: help regarding IP address spoofing (when using nmap) To: freebsd-security@freebsd.org Content-Type: multipart/alternative; boundary="0000000000000384a005f3b55664" X-Spamd-Result: default: False [-2.50 / 15.00]; FAKE_REPLY(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[iiitd.ac.in:s=google]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::72a:from]; MLMMJ_DEST(0.00)[freebsd-security@freebsd.org]; MIME_TRACE(0.00)[0:+,1:+,2:~]; DKIM_TRACE(0.00)[iiitd.ac.in:+]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; DMARC_NA(0.00)[iiitd.ac.in]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-security@freebsd.org]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4P6wYZ1Kt3z433h X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N --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
Hi All
=C2=A0I am a relatively newbie to FreeBSD (earlier was running
Linux). I am running= FreeBSD 13.1.=C2=A0

I am trying to run nmap with source IP address spoofing=C2=A0
=
(for some acad= emic purposes). It works fine with Linux=C2=A0
but on FreeBSD I get the following er= ror:

=
#=C2=A0n= map -e re0 -S 192.168.17.92 -sS 143.110.249.18=C2=A0 -p 8080 -Pn
Starting Nmap 7.93 = ( https://nmap.org ) at 2023-02-02 16:04 I= ST
NSOCK ERROR [0.0170s] mksock_bind_addr(): Bind to 192.168.17.92:0 failed (IOD #1): Can't assign reque= sted 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 fin= e without the source spoofing but doesn't when I use
it. I can however use my ow= n machine's source IP address with
the '-S' option.

--
best,
sambuddho
--0000000000000384a005f3b55664--