Asheville Web Hosting Posted January 3, 2023 Share Posted January 3, 2023 Hello all, Posting as I'm not getting very far with support at the moment. I have 2 environments - one for production and another for testing/dev. Both are set up the same in that the Plesk servers are added using their hostname and public IP address. The Plesk servers are NAT'd and per Plesk support configured correctly. The default IP for eth0 is the private/internal address - and then via the Plesk interface, the public IP address is assigned. In both the prod and test environments - Plesk works as expected. The issue I'm having on my new test environment is that when trying to provision the account on Plesk, the module fails because it us using the public IP for ip_address - where in Plesk, the ip_address value is the private IP address (and public is stored as public_ip_address. I can change the server IP in WHMCS instead to the private address - and everything works as expected when provisioning. However - anywhere WHMCS references the service IP to the client (like emails or frontend) it's the private address which is of no use to them. What's odd is that in my production environment - the servers are setup the exact same way - but provisioning works? For example, in WHMCS the server IP address is public, and in Plesk it's private. So, I enabled module logging to see what's difference, I noticed that in production, there is an additional request sent when creating a new account: Request: <?xml version="1.0" encoding="UTF-8"?><packet version="1.6.3.2"><!-- Copyright 1999-2016. Parallels IP Holdings GmbH. --> <ip> <get/> </ip> Response: Array ( [@attributes] => Array ( [version] => 1.6.3.2 ) [ip] => SimpleXMLElement Object ( [get] => SimpleXMLElement Object ( [result] => SimpleXMLElement Object ( [status] => ok [addresses] => SimpleXMLElement Object ( [ip_info] => SimpleXMLElement Object ( [ip_address] => 10.18.18.11 [netmask] => 255.255.255.0 [type] => shared [interface] => eth0 ) ) ) ) ) ) It then follows this request with another plesk_createaccount request - but unlike in testing it uses the private IP from above - so provisioning works since it's a match. I'm assuming that in this case - it's actually using the IP that was returned from the request and not the one that's set in the WHMCS server ip address field??? So my questions is - what triggers the Get IP request? And why wouldn't that request be sent from myWHMCS test install? Does anyone else have experience with getting WHMCS to provision Plesk accounts when the server is NAT'd? 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted January 4, 2023 Share Posted January 4, 2023 That may be a Plesk issue more so than a WHMCS issue. In Plesk -> Tools and settings -> IP Addresses -> the private IP, do you have the public IP field set? Is that set in production setup? 0 Quote Link to comment Share on other sites More sharing options...
Asheville Web Hosting Posted January 4, 2023 Author Share Posted January 4, 2023 Thanks @steven99 for the reply. I've had Plesk support verify as well. Both production and testing use the same configuration: In Plesk -> Tools and settings -> IP Addresses -> the private IP has a public IP set. I've also verified this by using the following command: sudo plesk db "SELECT id,ip_address,public_ip_address FROM IP_Addresses;" This returns the expected Private IP and Public IP 0 Quote Link to comment Share on other sites More sharing options...
websavers Posted January 5, 2023 Share Posted January 5, 2023 Is there just one WHMCS install with two servers configured -- the production and test servers? Or do you also have a production and test installation of WHMCS? 0 Quote Link to comment Share on other sites More sharing options...
Asheville Web Hosting Posted January 5, 2023 Author Share Posted January 5, 2023 Quote I have both a prod and dev instance of WHMCS. With the new dev instance, I have to use the private IP because that's what Plesk returns. In the old prod instance, I have the public IP set - and even though Plesk still returns the private it is somehow working. Support has been unable to answer why. The only difference I noticed in the two instances is that in prod, there is extra 'IP GET' request being sent. 0 Quote Link to comment Share on other sites More sharing options...
websavers Posted January 5, 2023 Share Posted January 5, 2023 Try temporarily connecting the dev instance of WHMCS with the live Plesk server and attempt a provision to see if it also doesn't work there. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.