M
M
mihsaklimov2020-11-12 14:28:41
Computer networks
mihsaklimov, 2020-11-12 14:28:41

Multiple gateways on PC. How to set up forwarding?

I apologize for the previous wording. I have a Win7 computer. With two network interfaces. One is assigned an address of 172.16.122.15/16 with a default gateway of 172.16.99.1.
On the second, 192.168.1.130/24 with the default gateway 192.168.1.1. Gateway metrics are set to automatic. I need to use the gateway 172.16.99.1 when accessing the Internet from a browser. My teacher told me to set up firewall forwarding.

netsh interface portproxy add v4tov4 listenaddress=172.16.99.1 listenport=80 connectaddress=192.168.1.1 connectport=80

It did not help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
ky0, 2020-11-12
@ky0

There can be exactly one default gateway within a separate routing table (you can configure it crookedly, but in fact only one will work), this is its meaning - the last hope for a packet that did not fit any of the rules.
What you want is at a higher OSI level - routes don't know anything about the ports and applications using them. There are many ways to solve this problem, but the goal is not very clear.

A
Alexey Dmitriev, 2020-11-12
@SignFinder

Install an http\socks proxy server that will "listen" on only one network interface you need and configure the browser to work through your local proxy server.
For example squid
https://wiki.squid-cache.org/SquidFaq/BinaryPackag...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question