• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Forwarded to devs Firewall file_get_contents Problem

marksman1907

New Pleskian
TITLE:
Firewall file_get_contents Problem
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:
CentOS Linux 7.4.1708 Plesk Onyx Versiyon 17.5.3 # 37
PROBLEM DESCRIPTION:
Hello, I have the following errors when I activate the plesk firewall: file_get_contents does not work on all my sites.
How should I set up the firewall ?


Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in ************* on line 80

Warning: file_get_contents(****************): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in **************** on line 80
STEPS TO REPRODUCE:
add a rule​
ACTUAL RESULT:
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in ************* on line 80

Warning: file_get_contents(****************): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in **************** on line 80
EXPECTED RESULT:
problem solution​
ANY ADDITIONAL INFORMATION:
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:
Help with sorting out
 
From developer:

The error occurs because file_get_contents cannot determine the address of the server from which to get the file. If there is no error with the firewall turned off, then the problem is in the established rules of the firewall. DNS service uses 53 port and need check that firewall doesn't block outgoing tcp and incoming/outgoing udp traffic.

In order to say something more specific, we need additional information:

  • did the client establish additional rules, if so, which ones?
  • what is the script for setting iptables?
  • what list of rules is issued by the command: `iptables -L`?
If the customer did not add their own rules, the customer can try to turn off and re-enable the firewall.
 
Back
Top