mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pedro Corte-Real <typo@netcabo.pt>
To: linux-kernel@vger.kernel.org
Subject: UDP binding
Date: Mon, 22 Oct 2001 19:23:49 +0100	[thread overview]
Message-ID: <EXCH01SMTP01IuXZ2y200057c20@smtp.netcabo.pt> (raw)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I am running samba on a machine with 2 outside interfaces. I want samba to
listen only to one of them so I put these lines on smb.conf:

bind interfaces only = True
interfaces = 192.168.1.1 127.0.0.1

These setings produce this in netstat -a:

(...)
udp        0      0 192.168.1.1:138         0.0.0.0:*
udp        0      0 192.168.1.1:137         0.0.0.0:*
udp        0      0 0.0.0.0:138             0.0.0.0:*
udp        0      0 0.0.0.0:137             0.0.0.0:*
(...)

I was told this was because nmbd uses broadcast packets to do it's work and
for it to listen to broadcast packages it must listen to 0.0.0.0. Is this
true. Can't it bind to 192.168.1.0 instead?

How does linux's interface binding API work? Is this really necessary?

Greetings from Portugal,

Pedro.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE71GQ82SBo0jBmgGARAoODAJ9FxNU2C+Eu3mtx5b4TTZ8KB9K5KACg2IY4
MkH7qmx8c9qq1xwB26GmDR4=
=A+CG
-----END PGP SIGNATURE-----

             reply	other threads:[~2001-10-22 18:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-22 18:23 Pedro Corte-Real [this message]
2001-10-23 10:35 Nicholas Berry

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=EXCH01SMTP01IuXZ2y200057c20@smtp.netcabo.pt \
    --to=typo@netcabo.pt \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®