siparker

Member
Jun 4, 2011
15
0
51
I have 4 ip addresses setup and as far as i can tell working correctly.

However i have just added a site with a dedicated ip address. It is accessible through that ip as you would expect but when trying to add a payment plugin onto the site there is an error which shows because the ip address the site is using to send information to them is different.

for example

Ip addresses

1.1.1.50 <<<< Main shared IP
1.1.1.51
1.1.1.52
1.1.1.53

The site has a dedicated IP assigned 1.1.1.53 and is working in terms of when i update my hosts file with that ip the site shows correctly.

the payment gateway is setup to expect requests from that ip. However the error that shows says that ip address 1.1.1.50 is not setup for that account.

Why would cpanel be routing traffic out of the incorrect ip?

I have asked my datacenter and they said it would be NIC setup but i cannot find any information about this and as i understand it i have setup the ip's correctly when going through the basic cpanel setup.

For the site to be accessible through the dedicated IP would indicate that the ip is correct and bound to the NIC ? or am i wrong here?
 
Last edited:

siparker

Member
Jun 4, 2011
15
0
51
Hi

I dont have an issue with Exim? this is nothing to do with email. Sorry if that wasnt clear.

The payment plugin uses Curl to send requests to the payment provider. This account for some reason is not using the dedicated ip to send the curl requests.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
Hello :)

It's normal for outgoing connections to come from the default public IP address of the server. Assigning an account a dedicated IP address will not change this behavior. Are you able to modify your application settings so it expects connections from the main IP address of the server?

Thank you.
 

siparker

Member
Jun 4, 2011
15
0
51
yes but that ip address is not assigned to the site and i assume the SSL certificate for that account in that case.

or am i wrong there?
 

quietFinn

Well-Known Member
Feb 4, 2006
1,222
87
178
Finland
cPanel Access Level
Root Administrator
yes but that ip address is not assigned to the site and i assume the SSL certificate for that account in that case.
That does not matter, the SSL certificate has nothing to do with outgoing connections.
As Michael told "It's normal for outgoing connections to come from the default public IP address of the server".
 

siparker

Member
Jun 4, 2011
15
0
51
? sorry im a little more confused now.

So an ssl certificate on a dedicated ip address (in this case for the purpose of sending credit card data to a third party site) will not be used for those conenctions. which is what its needed for.

that doesnt seem to maek sense. can you confirm that.
 

mtylerb

Well-Known Member
Nov 10, 2007
57
0
56
Warburg, AB, Canada
cPanel Access Level
Root Administrator
SSL certificates are used when a client's computer accesses your site. Any information back and forth between the client's computer and your server maintains encryption using that SSL certificate.

When your server, on the other hand, connects to a payment gateway, it is not using YOUR SSL certificate, it is making use of the payment gateway's SSL certificate. In this case, your server becomes the "client's computer" from above and the payment gateway becomes the server. You need to verify the payment gateway's identity, not visa versa.
 

quietFinn

Well-Known Member
Feb 4, 2006
1,222
87
178
Finland
cPanel Access Level
Root Administrator
? sorry im a little more confused now.

So an ssl certificate on a dedicated ip address (in this case for the purpose of sending credit card data to a third party site) will not be used for those conenctions. which is what its needed for.
The ssl certificate in your server is used for incoming https connections only. Outgoing https connections use the certificate in the remote server.