0

Is it possible to assign multiple public IP's to a single ubuntu server? Below is my requirement and need your valuable inputs.

My application is a platform where my clients connect to and they have our IP whitelisted and communication is perfect so far. But my application connects to other servers from where my clients fetch the data/information and those servers needs a unique IP's from my side for each of my clients. Now i have a public IP which is already whitelisted at the server my application connects to for my clients but they strictly has policy that every client should have a different unique IP to fetch the data from their server.

As of now, i have a requirement of 150 public IP to be allowed from my single server to the server i connect to. My server is based out of the cloud provider. How do i go about it? appreciate your support and suggestions.

1 Answers1

0

You have to create something that is called alias interface. I'm not familiar with how to configure this on Ubuntu Server, as I used only Debian and RedHat/CentOS on servers, and Ubuntu only on desktop. However, there is some answer here that might be useful to you: How do I add an additional IP address to an interface in Ubuntu 14

raj
  • 10,353
  • alias interfaces do not work on new Netplan driven systems. You'd have to do a much more chaotic configuratoin of multiple IP addresses on the system adn then 1:1 NAT matching for specific connection protocols (which may not be doable if this is a client side application) – Thomas Ward Oct 21 '20 at 18:18
  • Yet at least using Network Manager GUI it is possible to add additional IP addresses to an interface? – raj Oct 21 '20 at 18:19
  • yes, with custom configuration of the network manager components. That doesn't fix the outgoing traffic problem of "How do I tell the client to reach out over a specific IP on the system" but that's a different issue. (Network Manager integrates with Netplan nowadays) – Thomas Ward Oct 21 '20 at 18:58
  • Thanks for the time. In this case, since my server resides at cloud, can i add multiole interfaces and the assign an IP to each once? will that be fine and will work? – Syed Rahman Nov 01 '20 at 08:30
  • This depends on if your cloud provider allows this. – raj Nov 02 '20 at 11:30