Adding IPv6 support to Samba

Nathan Lutchansky lutchann-sambatech at litech.org
Mon Apr 15 12:16:03 GMT 2002


On Mon, Apr 15, 2002 at 02:29:58PM -0400, Jason Coene wrote:
> 
> I've also thought of this, assuming it can be cleanly done it may be
> something to accomplish for 3.0 -- it would certainly be a nice feature 
> to have. I and a lot of people i know prefer to access remote smb 
> servers across the internet using \\ipaddress, where no nmbd is 

Use of literal IP addresses may not be supported in MS's SMBv6
implementation.  IE already prohibits use of literal IPv6 addresses in
URLs, and the IPv6 Working Group strongly discourages using IPv6 addresses
in anything but networking configuration.  It makes renumbering too
difficult.  \\dom.ain.name is probably going to be the accepted standard,
if not smb://dom.ain.name/.  But this is all beside the point...

> necessary, and with the supposed forthcoming adoption of IPv6, it may 
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Best not to push that political button.  We were all supposed to be using
IPv6 by now, remember?  :-)  But I should point out that IPv6 is already
in production use in a lot of places in Asia, and MS adoption of IPv6 is
"supposed to be" coming RSN.  Many Linux distros, e.g. Redhat 7.2, already
have full support for IPv6 in every package that supports it natively,
like telnet, ssh, Mozilla, bind, sendmail, and ncftp.  Now that Apache 2
has been released, I expect we'll be seeing a number of IPv6-enabled
websites pop up in the next six months.  But looking at Peter Bieringer's
IPv6 status page, it's kind of embarassing that SMB is one of the few
protocols with no available Linux/Unix IPv6 implementation.  (Or any 
implementation on any other platform to my knowledge.)

<http://www.bieringer.de/linux/IPv6/status/IPv6+Linux-status-apps.html>

-Nathan

> need to be done sooner than later. Immediately off the top of my head, 
> the changes that would need to be made would be to move away from older, 
> incompatible networking oriented data types (as Nathan noted), as well 
> as modify any string or logic comparison functions (such as hosts deny 
> directive would use). Do the key developers see any stumbling blocks?
> 
> Regards,
> 
> Jason
> 
> > -----Original Message-----
> > From: Nathan Lutchansky <lutchann-sambatech at litech.org>
> > Sent: April 15, 2002, 1:35 PM
> > Subject: Adding IPv6 support to Samba
> >
> >Has anybody thought about or attempted to do this?  Although IPv4
> >addressing is deeply embedded in NBT, SMB has no IPv4 dependencies at all,
> >so it is straightforward to run direct-hosted SMB (port 445) over IPv6.
> >
> >Taking a brief look at the Samba source, I see there are in_addr structs 
> >scattered all over the place, so adding IPv6 would involve changing the 
> >API a bit.  Example:
> >
> >cli_connect(struct cli_state *cli, const char *host, struct in_addr *ip)
> >
> >would change to:
> >
> >cli_connect(struct cli_state *cli, const char *host, struct sockaddr *sa)
> >
> >Other modifications would be similar.
> >
> >I'd really like to have IPv6 support, since a lot of the machines I use
> >SMB with are behind NATs.  Although Win32 doesn't yet support SMB over
> >IPv6, using a trivial redirector program on such machines to accept
> >connections on 445 on the IPv6 side and connect them to 127.0.0.1:445
> >works just fine in the few experiments I've done.
> >
> >Is this a feature anybody else would like to have?  Do the core developers 
> >have any feelings on this?  -Nathan
> >
> >-- 
> >+-------------------+---------------------+------------------------+
> >| Nathan Lutchansky | lutchann at litech.org |  Lithium Technologies  |
> >+------------------------------------------------------------------+
> >|  I dread success.  To have succeeded is to have finished one's   |
> >|  business on earth...  I like a state of continual becoming,     |
> >|  with a goal in front and not behind. - George Bernard Shaw      |
> >+------------------------------------------------------------------+
> >
> 
> 

-- 
+-------------------+---------------------+------------------------+
| Nathan Lutchansky | lutchann at litech.org |  Lithium Technologies  |
+------------------------------------------------------------------+
|  I dread success.  To have succeeded is to have finished one's   |
|  business on earth...  I like a state of continual becoming,     |
|  with a goal in front and not behind. - George Bernard Shaw      |
+------------------------------------------------------------------+
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20020415/ff2c8a44/attachment.bin


More information about the samba-technical mailing list