How to allow access 8080?

Hello,

I’m trying to allow access to apache directly to 8080 port. I’ve enabled 8080 through firewall but still I can’t access from outside but can access from inside the server.

-A INPUT -p tcp -m tcp --dport 8080 -j ACCEPT

Inside server:
netcat MY_EXTERNAL_IP 8080
test
HTTP/1.1 400 Bad Request
Date: Fri, 22 Jan 2021 17:12:05 GMT
Server: Apache/2.4.46 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1g
Content-Length: 226
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
</body></html>

Any hits?

Thanks

Not sure, but I would add the rule over the firewall tab in hestia and then try again.

Thanks. I did same but still same problem:

Sorry, no more ideas here - why do you want to directly access apache2 ports?

Actually I have configured external load balancer & want to connect backend apache directly. Inside server everything is fine but can’t access from outside.

My mistake. I have hardware firewall with my server. I forgot to allow that port in firewall. After allow, working fine.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.