-1

I own one of OVH's VPS instances. It's located in France. I've deployed an application which connects to a service located in Poland. The problem is the service rejects any connections from foreign countries.

I've acquired a faillover ip located in Poland and added alias to the faillover ip. Is there anyway to use this address as a gateway?

ifconfig

1 Answers1

1

From OVH's own website,

Add up to 16 geolocated IP addresses in France, Germany, Italy, Spain, the UK, Poland, Portugal, Ireland, the Czech Rep., the Netherlands, Finland, Lithuania and Belgium. Each IP comes with a setup fee of £1.69 ex. VAT . You can attach IPs from several countries to a single VPS, whatever the model.

So for a small fee you can get a IP address that appears to be in Poland. You then route traffic out using that address.

Note that a failover address is not necessarily a geolocated address. You should have ordered a geolocated address. Once you have that geolocated address (or address block) and you've assigned it to your VPS within the OVH control panel and added it to the VPS itself, you simply ensure that traffic leaving your system has the appropriate source IP address.

At the simplistic level, this could suffice:

# Add the IP address to your interface
ip addr add 1.2.3.4/32 dev eth0

# Ensure all traffic leaving the server is from the correct source
iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 1.2.3.4.
roaima
  • 1,591
  • 14
  • 28
  • 1
    The user already figured out that he can get a failover IP address geolocated in Poland. What he wants to know is how: "You then route traffic out using that address"? – Michael Hampton Dec 01 '17 at 01:25
  • 1
    @MichaelHampton I thought that was obvious to a networking professional. In the case of a Linux-based system it would be something like `iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 1.2.3.4`. I'll add that to my answer. – roaima Dec 01 '17 at 12:26