Multiple public IP addresses in i-MSCP

  • Since some customers have multiple IP addresses for multiple websites.
    However, it is not a problem if you can only enter one IP address .... would only be a small consideration if multiple IP addresses might be useful, also regarding public DNS server.

  • Hello ;


    @FlyingMike


    I understand what you want but this is really more complicated to implement.


    For example, lets say that your i-MSCP server is behind a router to which a public IP range 80.0.0.0/27 is assigned to. Here, your router will be reachable via 30 IP adresses (80.0.0.1 to 80.0.0.30)


    Now, lets say that your i-MSCP server has its own private IP range (192.168.5.0/24) and that you want translate 5 IP from this range to 5 IP from the public IP range (lets say 80.0.0.10 to 80.0.0.14). Here, the NAT table will be:


    192.168.5.1 => 80.0.0.10
    192.168.5.2 => 80.0.0.11
    192.168.5.3 => 80.0.0.12
    192.168.5.4 => 80.0.0.13
    192.168.5.5 => 80.0.0.14


    This table must be setup on the router side which is responsible to translate the internal (private) IP addresses to external IP addresses. So first, you must be aware that you'll have to configure your router properly (NAT table).


    Now on the i-MSCP side, the goal is to provide a virtual map which allow you to assign a specific public IP (only known by your router) to a specific customer. This require in order:

    • Addition of a new interface in GUI which must allow the administrator to setup the virtual map (private IP to public IP)
    • Make some kind of virtual translation on GUI side to hide the private IP addresses in interface and show the public IP in place
    • Make several changes in database schema to handle this virtual IP mapping
    • Make several changes on the engine side to select the right PUBLIC IP when needed (eg, in the Bind9 server implementation)


    So here, as you can see, what you are asking is possible but this need really more work. I can do this if you want but this will really take more time.


    BTW: Things are a bit more complicated in reality but I think you understand me ;)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Configure the firewall is not a problem, but this feature is integrated into i-MSCP really a lot of hard work.
    Maybe even an issue unless there is interest in the future and a little more time to do so. ;-)


    Thanks Nuxwin.