Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

NETSH INTERFACE PORTPROXY do not work when doing port redirection between IPv4 and IPv4 addresses.


View products that this article applies to.

Author:

Andrei Ungureanu MVP

↑ Back to the top


COMMUNITY SOLUTIONS CONTENT DISCLAIMER

MICROSOFT CORPORATION AND/OR ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY, RELIABILITY, OR ACCURACY OF THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN. ALL SUCH INFORMATION AND RELATED GRAPHICS ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT AND/OR ITS RESPECTIVE SUPPLIERS HEREBY DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THIS INFORMATION AND RELATED GRAPHICS, INCLUDING ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, WORKMANLIKE EFFORT, TITLE AND NON-INFRINGEMENT. YOU SPECIFICALLY AGREE THAT IN NO EVENT SHALL MICROSOFT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY DIRECT, INDIRECT, PUNITIVE, INCIDENTAL, SPECIAL, CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF USE, DATA OR PROFITS, ARISING OUT OF OR IN ANY WAY CONNECTED WITH THE USE OF OR INABILITY TO USE THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN, WHETHER BASED ON CONTRACT, TORT, NEGLIGENCE, STRICT LIABILITY OR OTHERWISE, EVEN IF MICROSOFT OR ANY OF ITS SUPPLIERS HAS BEEN ADVISED OF THE POSSIBILITY OF DAMAGES.

↑ Back to the top


SUMMARY

The Netsh.exe can be used as a port redirector for the TCP protocol.

↑ Back to the top


SYMPTOMS

Rules for port redirection are set by using <add v4tov4> command but are not working.
 

↑ Back to the top


CAUSE

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.
This is the output of the SHOW HELPER command:
netsh interface portproxy>show helper
Helper GUID                             DLL Filename  Command
--------------------------------------  ------------  -------
{05BB0FE9-8D89-48DE-B7BB-9F138B2E950C}  IPV6MON.DLL     ipv6
{F1EFA7E5-7169-4EC0-A63A-9B22A743E19C}  IPV6MON.DLL       6to4
{F1EFA7E5-7169-4EC0-A63A-9B22A743E19C}  IPV6MON.DLL       isatap
{86A3A33F-4D51-47FF-B24C-8E9B13CEB3A2}  IPV6MON.DLL     portproxy

↑ Back to the top


RESOLUTION

Install IPv6 protocol.

↑ Back to the top


MORE INFORMATION

Here is an example on how to use NETSH INTERFACE PORTPROXY to forward all requests that came to local IP on port 25 to 192.168.0.100 on port 80.
c:\>netsh
netsh>interface portproxy
netsh interface portproxy>add v4tov4 listenport=25 connectaddress=192.168.0.100 connectport=80 protocol=tcp
 
A help for NETSH commands for INTERFACE PORTPROXY can be found here:

 

↑ Back to the top


Keywords: KB555744, kbhowto, kbpubtypecca, kbpubmvp

↑ Back to the top

Article Info
Article ID : 555744
Revision : 6
Created on : 8/20/2020
Published on : 8/20/2020
Exists online : False
Views : 1328