Strange problem when adding ip addresses

ggooden

Member
Dec 9, 2002
14
0
151
Pasadena, California, United States
cPanel Access Level
Root Administrator
I'm setting up a new CPANEL server and everything was going GREAT until I added another 5 ip addresses to the server.

Now all the licensed products are failing and showing as unlicensed.

The server's base ip ends in .140 and I added .141 through .146

I've confirmed that the various config files show .140, but somehow when requests are sent OUT to check the CPANEL license (and others), it's NOT going out through 140.

Anyone ever experienced this and know how to solve it?

Gregory
 

24x7server

Well-Known Member
Apr 17, 2013
1,912
99
78
India
cPanel Access Level
Root Administrator
Twitter
Hi,

It appears that the IP from which the request is going is different to the one you are having license on. You will have to check the network configuration and make sure the traffic goes from the same IP that you have licensed application on. Use the below commands to check what IP it shows.

# curl -L http://cpanel.net/showip.cgi
# lynx -dump http://cpanel.net/showip.cgi
 

Eminds

Well-Known Member
Nov 10, 2016
319
34
28
India
cPanel Access Level
Root Administrator
If you are able to login to WHM , then just go to Basic settings >> change the IP that licensed from there >> click on save.

on the server run /usr/local/cpanel/cpkeyclt

and you should be good to go.
 

24x7server

Well-Known Member
Apr 17, 2013
1,912
99
78
India
cPanel Access Level
Root Administrator
Twitter
Yeah, it's reporting .141

So I guess what I'm wondering is how, in a way that won't mess with WHM do I ensure that all outbound traffic is routed through the .140?
You need to check the network configuration properly now and probably have to reconfigure it. Please make sure that you have a KVM access of your machine before you do any configuration, if in case network fails, you should not wait for long to revert the change to check it again.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
Hello,

There's a thread here you may find helpful:

Changing the main server IP and sites on server will not load

However, I recommend reaching out to your provider or data center for help with changing the IP address used for outgoing connections if you do not have experience making network configuration changes. Any mistakes in the network configuration change could result in downtime and require physical access to the server.

Thank you.
 

ggooden

Member
Dec 9, 2002
14
0
151
Pasadena, California, United States
cPanel Access Level
Root Administrator
First I had set the IP's in WHM... then I had even tried doing it manually through network-scripts... Doesn't matter which way. Every time I reboot the machine it is choosing some random PUBLIC IP from the list of ip's entered. :( This is resulting in constantly having to change licences because I can't figure out how to FORCE the public ip to be the base ip.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
Hello @ggooden,

Could you verify the specific steps you took when modifying the network script configuration files?

Thank you.
 

ggooden

Member
Dec 9, 2002
14
0
151
Pasadena, California, United States
cPanel Access Level
Root Administrator
When I did it MANUALLY I used "nmtui" to do it..
Then I removed it using "nmtui" and did it through WHM's "Add an IP Address" feature.

Now either way the addresses ended up on the box and resolving correctly.

ALSO either way, when the system reboots I am not guaranteed any particular IP address as the public outbound IP; which is the PROBLEM because cpanel, installatron, cxs, etc all RELY on a single IP to activate licenses against.

So currently the box has a BASE IP of x.x.x.140 with additional IP's of 141 through 147

One reboot it's .141 showing to cpanel license server... then next reboot it's .146

So I'm seeking a method to ENSURE that it's always .140; no matter what.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
Hello,

The default IP address used for outgoing connections isn't something you can configure with the cPanel/WHM software. You have to use instructions like the ones referenced at:

Changing the main server IP and sites on server will not load

Or, in some cases, you may need to contact your provider to determine which steps are required to make the change and ensure it's preserved through reboots.

Thank you.