How to forward traffic between NICs on a specific port?

There is a need to forward traffic between network cards. So the computer had two network cards:
1. Realtek PCIe GBE Family Controller IP address
2. HP NC112i 1-port Ethernet Server Adapter with IP address
The computer is used as a gateway server, and therefore two cards. Requires traffic on the first card ( to transfer to the second card (, and then to transfer to the computer of the subnet (, and we are talking about a specific port number (12383). In other words, when the input of the first network card is traffic on this port, it eventually needs to be transferred to the second card, and then on the intra- computer on the same port. In this experience, so please help with commands in cmd, because they need to use route add and netsh interface portproxy add, but how exactly to write, I can not understand, I can't. In any case, Wireshark shows that traffic comes to the first network card and reset.
For a better understanding of the situation, here's a link to a screen with the current routing, maybe this will help -
June 10th 19 at 14:52
2 answers
June 10th 19 at 14:54
RRAS raise, for a start, it is disabled by default, and therefore the machine does not pass packets between interfaces.
June 10th 19 at 14:56
Routing in Windows is usually enabled by default, if the comp 2 or more network cards.
For its the enable/disable parameter is responsible in the registry: HKLM\System\CurrentControlSet\Services\Tcpip\Parameters\IPEnableRouter
If set to 1, then routing is enabled, 0 - disabled.
After you change the setting you need to reboot.
You can then disable the firewall and check. Then enable the firewall, if you need to open ports.

Find more questions by tags Network administrationComputer networksWindows