Is there any way to create my own IP's network address from the main IP address?

| SYSTEM INFORMATION||
|------------------------------|-------------------------------|
| OS type and version | Ubuntu 20.0.4 |
| Webmin version | 2.101 |
| Virtualmin version | 7.7 |

Hello.

I’d like to know if is it possible to create a network of IP Addresses from my main IP Address ???

By example, if my main IP address 124.125.124.12, is there any way to create many others (several) small IP Addresses from that main IP ???

1 - If so, how to ???
2 - If so, does these small IP Addresses created, will use a same services (PHP, MySQL, SMTP Server, etc…) already installed on the main IP Address ???

Thanks for your answer.

I don’t see how this relates to Virtualmin?

Hit your favourite search engine for “NAT” Network Address Translation.

You cannot create public IP addresses. They are assigned.

You need to use name-based services for your services.

You can use port forwarding (or proxying, as appropriate) to send various ports on that one IP to servers on private IPs (private IPs are IPs in the preassigned ranges reserved for non-internet routable IP addresses…including 192.168.0.0/16, 10.0.0.0/8, and 172.16.0.0/12), if you need to run some public services on other machines but only have one public IP.

But, note that for most use cases, MySQL/Mariadb/databases in general should not be on a public IP. If it does need to be, be sure to use strong passwords, setup reasonable and restrictive ACLs, and enforce TLS on those remote connections.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.