All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nicholas Couchman <nick.couchman@yahoo.com>
To: netfilter@vger.kernel.org
Subject: Re: Windows/NetBIOS & SNAT
Date: Wed, 9 Sep 2009 05:08:22 -0700 (PDT)	[thread overview]
Message-ID: <413380.44233.qm@web33403.mail.mud.yahoo.com> (raw)
In-Reply-To: <4AA761AE.2090603@chello.at>

> Hello,
> 
> I don't think it's possible what you want.
> The first thing a wins client needs to do is, to register itself in the wins database. Now if you exchange the ip headers and the data in the data fields, your wins server will get registration requests 
> from and for the same host over and over again. Even if that somehow works, your future queries will be messed up, as all answers of the wins server will point to the same ip address.
> 
> Regards
> 
> Mart

You may be right, but WINS is actually not the problem.  The WINS traffic (NetBIOS NS or NBNS) is done over port 137.  From what I can tell, this actually appears to be working okay - traffic is making it between the servers inside the NAT'd network and the WINS servers.  The traffic going over port 138, the NetBIOS Datagram Service, or NBDS, is what's the problem, because the NBDS frames have the IP address of the sending machine embedded in them in addition to the IP address in the IP header.  When an NT server replies to a NBDS request, it looks like it just ignores the IP header and uses the source IP and source port information embedded in the NBDS request.  So, you may be right that what I want to do is impossible, because it means mangling the actual NBDS request in addition the IP 
 header information, which I don't think can currently be done in Netfilter.  At best, I'm going to be writing some sort of application or module that does this - but
 I'm not even sure that will work, or that I'm really up to that challenge.

-Nick


  reply	other threads:[~2009-09-09 12:08 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-03 23:28 Windows/NetBIOS & SNAT Nicholas Couchman
2009-09-06 22:01 ` Gerardo Fernandez
2009-09-09  0:54   ` Nicholas Couchman
2009-09-09  8:05     ` Mart Frauenlob
2009-09-09 12:08       ` Nicholas Couchman [this message]
2009-09-09 14:21         ` Pascal Hambourg
2009-09-08 10:14 ` Mart Frauenlob
2009-09-08 23:50   ` Nicholas Couchman
2009-09-09 14:16     ` Pascal Hambourg
2009-09-09 14:35       ` Nicholas Couchman
2009-09-09 15:45         ` Pascal Hambourg

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=413380.44233.qm@web33403.mail.mud.yahoo.com \
    --to=nick.couchman@yahoo.com \
    --cc=netfilter@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.