S
S
Sinot2018-08-10 11:39:10
Windows
Sinot, 2018-08-10 11:39:10

How to forward all ports on Windows 7?

Greetings!
This is a very common question, but I haven't found an answer yet. You need to forward all ports from 192.168.2.9 to 192.168.15.4 on a computer running Windows 7 Professional 32 bit.
I understand the consequences, that's how it should be.
So far I have only found

netsh interface portproxy add v4tov4 listenport=1 connectaddress=192.168.15.4 listenaddress=192.168.2.9

But it takes a long time to prescribe a bunch of ports (even with a script) and only the tcp protocol.
You can use third-party programs, but preferably free ones.
Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
oia, 2018-08-10
@oia

Why do this? The first from 1 to 1024 is service, it's easier to find the ports that are needed and leave them, it's just not clear why

C
chupasaurus, 2018-08-10
@chupasaurus

There is no normal NAT in desktop editions.

You can use third party software
for example

E
Ezhyg, 2018-08-10
@Ezhyg

For ports:

for /L %%i in (1, 1, 65535) do netsh interface portproxy add v4tov4 listenaddress=192.168.15.4 listenport=%%i 
connectaddress=192.168.2.9 connectport=%%i

And for the firewall (you haven't forgotten about it?) will you write it yourself?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question