Answer the question
In order to leave comments, you need to log in
Is it possible to make VDS on IP from under a proxy?
Good evening. In general, I have a dedicated server at home, the provider does not give more than one IPv4. I want to make a couple of virtual machines on it with Internet access under different IPv4 addresses. One hoster has VDS, there are about 10 IPv4 addresses hanging there. Is it possible to use these IPv4 (with VDS at the host) to make your own virtual machines at home. I thought I could somehow come up with a proxy system, but how the KVM hypervisor would behave (already on its dedicated server).
What to do? Tell me please.
Answer the question
In order to leave comments, you need to log in
It is quite possible.
Firstly, you need to raise any VPN (for example, openvpn) between the VDS and the home server, so that the internal IP addresses of virtual machines in KVM can be seen from the VDS
Secondly, you need to DNAT on the VDS the necessary external IPs into the necessary internal IPs to wrap traffic into the tunnel.
Thirdly, there will be a problem of return traffic through the VPN, because the default route on the KVM server leads past the VPN. There are solutions for this: 1. do SNAT of traffic on VDS (it's easier, but virtual machines will see the address of the other end of the VPN instead of the real address of the calling client); 2. do policy routing on KVM (much more difficult, but all IPs will be visible as they are); 3. instead of DNAT, make a reverse proxy, which will show the address in X-Forwarded-For / X-Real-IP (will only work for http-like protocols).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question