The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

csf and Paypal Issues

Discussion in 'General Discussion' started by andy2295, Mar 8, 2014.

  1. andy2295

    andy2295 Registered

    Joined:
    Mar 8, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    If csf/lfd is enabled then all curl requests to paypal timeout with: Can't connect to PayPal to validate IPN message: connect() timed out!

    I have posted this on the csf forum but no reply yet so wonder id anyone here knows anything about it.

    Posting IPN data back to PayPal to validate the IPN data using curl.

    If csf/lfd is diabled then all works fine time after time.

    if csf/lfd is enabled then an error occurs of : Can't connect to PayPal to validate IPN message: connect() timed out!
    Paypal ips are added to csf ignore.

    The server is a dedicated server and does not have cmc installed.

    Each time a request is made then the following happens (local ip removed):

    [primary_ip] => 173.0.84.69
    [primary_port] => 443
    [local_ip] => xx.xxx.xx.xxx
    [local_port] => 48394

    The local port changes value on each individual request.

    What is causing the issue in csf/lfd ?
     
  2. robb3369

    robb3369 Well-Known Member

    Joined:
    Mar 1, 2008
    Messages:
    122
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Do you have port 443 open under TCP_OUT in CSF?
     
  3. andy2295

    andy2295 Registered

    Joined:
    Mar 8, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi

    Yes port 443 is open
     
  4. robb3369

    robb3369 Well-Known Member

    Joined:
    Mar 1, 2008
    Messages:
    122
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Are seeing an error from iptables in the message log? Grep it for the paypal server IP address...
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Yes, you may want to review any logs provided by CSF to get an indication as to what rule or port is preventing the connection from occurring.

    Thank you.
     
  6. andy2295

    andy2295 Registered

    Joined:
    Mar 8, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,


    There are no error messages shown. The thing is for each call to paypal, curl uses a different local port such as:
    [primary_ip] => 173.0.84.69
    [primary_port] => 443
    [local_ip] => xx.xxx.xx.xxx
    [local_port] => 37368
    [redirect_url] =>

    The local port example 37368 changes on each call to paypal such as 37368, 37369, 38000 etc so you cant keep opening ports etc
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  8. andy2295

    andy2295 Registered

    Joined:
    Mar 8, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    They say they only provide support on their forums for csf, but no one seems to be answering many questions at all. Think i will uninstall it and try apf instead. At least all works perfectly when it is disabled.
     
Loading...

Share This Page