P
P
Pavel Belyaev2017-11-14 11:46:05
Hyper-V
Pavel Belyaev, 2017-11-14 11:46:05

Hyper-v internal network, how to show real-ip on a virtual machine?

Hello, the thing is, there is a computer connected via wifi, from the router port forwarding goes to the computer, from the computer it goes through netsh portproxy port forwarding to virtual machines.
The type of network in hyper-v is internal, for example, the forwarding goes to 192.168.200.20 and the address of the virtual switch is 192.168.200.1 as a result, I open a web page from the virtual machine, even from the Internet, and I always see remote_address equal to the ip of the virtual switch, more precisely hyper-v interface.
I thought it was in Apache, but in the virtual machine tcpdump picked it up and it doesn’t broadcast ip either, is it such a feature or what?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel Belyaev, 2017-11-14
@PavelBelyaev

Thank you all for your help, got to the bottom of the truth!
In fact, portproxy acts as a local application, and not as a normal DNAT, so this proxy climbs into a virtual subnet through the vEthernet interface and all incoming requests flew from this one IP.
where nat1 is the name of the previously created nat

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question