none
Tunneling CIFS over SSH in Windows - portproxy not binding

    Question

  • After adding and configuring Window with Microsoft Loopback adapter with Private IP (10.x.x.x, 172.16-32.x.x, 192.168.x.x)

    In my case assigned 172.16.16.1 /24 uncheck all but TCP/IP v4 and used advance option set the metric to 9999 and under WINS disabled NetBIOS over TCP/IP

    then in command prompt as Administrator executed the following:

    sc config smb start= demand
    netsh interface portproxy add v4tov4 listenaddress=172.16.16.1 listenport=445 connectaddress=172.16.16.1 connectport=44445

    REBOOT

    netsh start smb
    sc query smb
    netsh interface portproxy show v4tov4 netstat -an | find ":445"

    EXPECTED RESULT:

    TCP    172.16.16.1:445    0.0.0.0:0       LISTENING

    GETTING:

    TCP    0.0.0.0:445    0.0.0.0:0       LISTENING

    Therefore when try to access the share via SSH using \\172.16.16.1\C$ the connection doesn't get passed to SSH client.

    here is a document for port tunneling gave configured on two VM's and able to connect over SSH tunnel and both system running same OS and unable get port 445 to bind to 172.16.16.1 also there multiple articles on setting up SSH tunneling with Port Forwarding and they all state if you netstat returns 0.0.0.0:445 you miss configured the portproxy but it's set correctly but not binding am at a loss.

    https://www.angryadmin.co.uk/?p=369

    Thursday, May 08, 2014 5:16 AM

Answers

  • Hi,

    Netsh.exe is a tool an administrator can use to configure and monitor Windows-based computers at a command prompt. The Netsh.exe tool direct the context commands you enter to the appropriate helper, and the helper then carries out the command. A helper is a Dynamic Link Library (.dll) file that extends the functionality of the Netsh.exe tool by providing configuration, monitoring, and support for one or more services, utilities, or protocols. The <add v4tov4> command is sent to the IPV6MON.DLL helper, and because of that it will work only if IPv6 protocol is installed. Please Install IPv6 protocol and then to ensure if the issue persists.

    Best regards,

    Steven Song





    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Tuesday, May 13, 2014 1:19 AM

All replies

  • Hi,

    Thank you for your question.

    I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.

    Thank you for your understanding and support.

    Best regards,

    Susie

    Friday, May 09, 2014 8:01 AM
    Moderator
  • Hi,

    Netsh.exe is a tool an administrator can use to configure and monitor Windows-based computers at a command prompt. The Netsh.exe tool direct the context commands you enter to the appropriate helper, and the helper then carries out the command. A helper is a Dynamic Link Library (.dll) file that extends the functionality of the Netsh.exe tool by providing configuration, monitoring, and support for one or more services, utilities, or protocols. The <add v4tov4> command is sent to the IPV6MON.DLL helper, and because of that it will work only if IPv6 protocol is installed. Please Install IPv6 protocol and then to ensure if the issue persists.

    Best regards,

    Steven Song





    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Tuesday, May 13, 2014 1:19 AM