ISPConfig Issue: Paypal IPN blocked?

Discussion in 'Installation/Configuration' started by vaio1, Mar 6, 2013.

  1. vaio1

    vaio1 ISPConfig Developer ISPConfig Developer

    hi guys,

    why this request goes in timeout?

    Code:
    # curl -d "test" https://api-3t.paypal.com/nvp -v
    * About to connect() to api-3t.paypal.com port 443 (#0)
    *   Trying 173.0.84.69... 
    
    thanks
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    If you cant reach paypal with curl, then it might be a paypal issue or a issue of your server with name resolution, network connection or similar but not a ispconfig issue. Or do you want to call it a intel issue because you use a intel processor in your server ;)
     
  3. vaio1

    vaio1 ISPConfig Developer ISPConfig Developer

    No Till, I don't want to accuse anyone.
    The paypal link is correct and the server doesn't resolve the url. All these problems after the updating of ISPConfig.

    Regards
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Then please write in a topic of a post a useful information like "name resolution not working" so that others which use in the next years for such topics might find answers to fix name resolution problems on servers.

    So you have a problem with name resolution. For problems with name resolution, take a look into /etc/resolv.conf if the nameservers are correct and check that you entered the correct nameservers under System > server config in ispconfig.

    Everything that happens from now on is after the update from ispconfig, so this does not indicate a relation.
     
  5. vaio1

    vaio1 ISPConfig Developer ISPConfig Developer

    Thanks for your reply.

    The name servers set in the ISPConfig is not the same in the /etc/resolv.conf

    ISPConfig:
    Code:
    192.168.0.1,192.168.0.2
    /etc/resolv.conf
    Code:
    search mydomain.com
    nameserver 212.97.32.2
    
    is it normal?

    This is the result of the Curl:

    Code:
    # curl -d "test" https://api-3t.paypal.com/nvp -v
    * About to connect() to api-3t.paypal.com port 443 (#0)
    *   Trying 173.0.84.69... Connection timed out
    *   Trying 173.0.84.101... Connection timed out
    *   Trying 173.0.88.69... Connection timed out
    *   Trying 173.0.88.101... Connection timed out
    * couldn't connect to host
    * Closing connection #0
    curl: (7) couldn't connect to host
    
     
    Last edited: Mar 6, 2013
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes. The information in ispconfig is normally not used. I just wanted to be sure.
    You can ad a second nameserver in resolv.conf by addin a line

    nameserver 8.8.8.8

    This is the free google nameserver.

    Have you checked if you can reach the pi url in a browser on your desktop?
     
  7. vaio1

    vaio1 ISPConfig Developer ISPConfig Developer

    Code:
     Have you checked if you can reach the pi url in a browser on your desktop? 
    
    Yes it works in my browser

    Code:
     You can ad a second nameserver in resolv.conf by addin a line
    
    I have set it up but nothing has changed.

    regards
     
  8. vaio1

    vaio1 ISPConfig Developer ISPConfig Developer

    Any help? I think that something in the ssl connection parameters is not correct.

    Maybe I have found the problem: Seems to me that ISPConfig blocks the SSL outgoing port.

    How have I to unblock it?

    thanks
     
    Last edited: Mar 7, 2013
  9. vaio1

    vaio1 ISPConfig Developer ISPConfig Developer

    Hi Till,

    this is a snipped of code to test the ssl connection to Paypal:

    Code:
    <?php
    error_reporting(E_ALL);
    ini_set('display_errors', 1);
    
    try{
        $arrData = array(
            'tx'    => '----',
            'cmd'   => '_notify-synch',
            'at'    => '-----'
        );
    
        $ch = curl_init( 'https://api-3t.sandbox.paypal.com/nvp' );
    
    	curl_setopt($ch, CURLOPT_HEADER, true); // Display headers
    	curl_setopt($ch, CURLOPT_VERBOSE, true); // Display communication with server
    	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // Return data instead of display to std out
    
    	curl_setopt($ch, CURLOPT_POST, 1);
    
    	curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,0);
    	curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,0);
    
    	curl_setopt($ch, CURLOPT_POSTFIELDS, $arrData);
    	$strCurlResult = curl_exec($ch);
        
        
    	print "<pre>\n";
    	print_r(curl_getinfo($ch));  // get error info
    	echo "\n\ncURL error number:" .curl_errno($ch); // print error info
    	echo "\n\ncURL error:" . curl_error($ch); 
    	print "</pre>\n";
        
        curl_close( $ch );
        print_r($strCurlResult);
    }catch(Exception $e){
        echo $e->getMessage();
    }
    
    
    ?>
    
    this is a php test result:

    Code:
    Array
    (
        [url] => https://api-3t.sandbox.paypal.com/nvp
        [content_type] => 
        [http_code] => 0
        [header_size] => 0
        [request_size] => 0
        [filetime] => -1
        [ssl_verify_result] => 0
        [redirect_count] => 0
        [total_time] => 21.016503
        [namelookup_time] => 0.018763
        [connect_time] => 0
        [pretransfer_time] => 0
        [size_upload] => 0
        [size_download] => 0
        [speed_download] => 0
        [speed_upload] => 0
        [download_content_length] => -1
        [upload_content_length] => -1
        [starttransfer_time] => 0
        [redirect_time] => 0
        [certinfo] => Array
            (
            )
    
    )
    
    
    cURL error number:7
    cURL error:couldn't connect to host
    
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig is not even able to block outgoing ports, the bastille firewall can only block incoming connections and even this is disabled by default. So if your ssl outgoing port is blocked, then it is defiantely not related to ispconfig and you should check other software related to networking or iptables that ypu installed on your server.
     
  11. uuptownn

    uuptownn New Member

    PayPal API connection issue

    I am having the same problem, currently getting

    * About to connect() to api-3t.paypal.com port 443 (#0)
    * Trying 173.0.88.101... * Timeout
    * Trying 173.0.88.69... * Timeout
    * connect() timed out!
    * Closing connection #0


    talked to hosting and we both did a ping on the ip addres and the api-3t.paypal.com URl and both timmed out.

    Any one have an answer to this? I have a ticket in to PAYPAY but of course their not open over the weekend.
     
  12. uuptownn

    uuptownn New Member

    Hey I'm having the " Exact same issue with the exact sme reading from the 173.xxx ip address". Did you get it resolved?
     
  13. uuptownn

    uuptownn New Member

    Hey I'm having the " Exact same issue with the exact sme reading from the 173.xxx ip address". Did you get it resolved?
     

Share This Page