• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue 38080 connection refused, plesk FW setup

chester_e

New Pleskian
Server operating system version
debian 11
Plesk version and microupdate number
18.055 Update #2
hi there!

i'm running a zabbix docker container, managed by plex. "everything worked fine" till someday i wasn't able to logon to the webfrontend, resulting in a "Unable to connect" from the browser.

i've checked telnet from my desktop pc on that port and it resulted in a connection refused

$ telnet xxx 38080 Trying xx.xx.194.3... telnet: Unable to connect to remote host: Connection refused $

however, on the hosting vserver, using localhost, everything works fine

$ curl http://127.0.0.1:38080 | grep "Zabbix docker" % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 3553 100 3553 0 0 27976 0 --:--:-- --:--:-- --:--:-- 27976 <title>Zabbix docker: Zabbix</title> <body lang="en"><div class="wrapper"><main><div class="server-name">Zabbix docker</div><div class="signin-container"><div class="signin-logo"><div class="zabbix-logo"></div></div><form method="post" action="index.php" accept-charset="utf-8" aria-label="Sign in"><ul><li><label for="name">Username</label><input type="text" id="name" name="name" value="" maxlength="255" autofocus="autofocus"></li><li><label for="password">Password</label><input type="password" id="password" name="password" value="" maxlength="255"></li><li><input type="checkbox" id="autologin" name="autologin" value="1" class="checkbox-radio" checked="checked"><label for="autologin"><span></span>Remember me for 30 days</label></li><li><button type="submit" id="enter" name="enter" value="Sign in">Sign in</button></li></ul></form></div><div class="signin-links"><a target="_blank" class="grey link-alt" href="https://www.zabbix.com/documentation/5.0/">Help</a>&nbsp;&nbsp;•&nbsp;&nbsp;<a target="_blank" class="grey link-alt" href="https://www.zabbix.com/support">Support</a></div></main><footer role="contentinfo">&copy; 2001&ndash;2020, <a class="grey link-alt" target="_blank" href="https://www.zabbix.com/">Zabbix SIA</a></footer></div></body> $

on the vserver using the external ip and not localhost i'm getting the same connection refused

so, looks like a iptables right?
i'm using the plesk firewall and i've setup a rule (Allow incoming from all on port 38080/tcp)

in iptables it looks like this

# iptables -L INPUT -v Chain INPUT (policy DROP 0 packets, 0 bytes) pkts bytes target prot opt in out source destination [...] 231 12120 ACCEPT tcp -- any any anywhere anywhere tcp dpt:38080


but that didn't fixed it.

i've also check fail2ban and disabled it for a second, but that didn't fixed it either.

anything i've missed here?

thanks

chester!
 
Back
Top