TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How to avoid accidentally opening a port to the world?

4 pointsby nullbytesmatteralmost 3 years ago
I recently discovered Solr (Jetty to be specific) binds to &quot;::&quot; by default, which is the ipv6 equivalent to &quot;0.0.0.0&quot;. It essentially opened the Solr instance to the world.<p>I luckily caught it before indexing any data, but it opened my eyes to how easy it is for something like this to slip by. How can we prevent such things from happening?<p>I have since installed ufw and block all incoming traffic except to ports 22, 80 and 443 as a &quot;layer&quot; of defense (my thinking is, I won&#x27;t accidentally expose a port this way).

1 comment

josephcsiblealmost 3 years ago
This is <i>exactly</i> what firewalls are for. Your &quot;layer&quot; of defense is <i>the</i> defense. If you want another layer, then set up another firewall further along the network.
评论 #31443949 未加载