mount_smbfs with diffrent destination-port

Conrad Minshall conrad at apple.com
Fri Apr 11 13:53:52 PDT 2003


At 2:48 PM -0700 4/10/03, Christoph Mathys wrote:

>Wouldn't it be possible to add a parameter or
>something, that allows to tell 'mount_smbfs' which TCP-Port it tries to
>connect to? I often forward smb-connections over ssh, and then the
>destination-port is never 139. It would be very handy to have a
>'clean' solution for this, not only an ugly, self-made hack.

This shouldn't be hard to implement.  The "mount-from" argument to
mount_smbfs is almost a URL already, so the logical place to add a port
parameter is  defined in section 2 of:

 http://www.ietf.org/internet-drafts/draft-crhertel-smb-url-04.txt

...where it reads:

 smb_server = [ smb_userinfo "@" ] smb_srv_name [ ":" port ]


--
Conrad Minshall ... conrad at apple.com ... 408 974-2749
Alternative email addresses: rad at acm.org and conrad at mac.com.




More information about the freebsd-hackers mailing list