-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isle-dc listening on external interfaces #255
Comments
You could possibly try changing the _PORT's to 127.0.0.1:portnumber for example
Also be sure to run Also if you are changing the |
I'm going to quote something I just found
$ docker inspect --format="{{json .Config.ExposedPorts}}" traefik
{
"3306/tcp": {},
"443/tcp": {},
"5432/tcp": {},
"80/tcp": {},
"8080/tcp": {},
"8081/tcp": {},
"8082/tcp": {},
"8161/tcp": {},
"8443/tcp": {},
"8983/tcp": {}
} From what I can see the ports are listening but not bonded to a network device and can't be accessed directly according to this article. Let me know if this helps. |
I'm fairly sure that they are in fact listening on the external interface since our Nessus server is complaining about them being open, so I don't think that's it. |
@rbos can you put your |
Setting MYSQL_PORT to 127.0.0.1:3306 appears to work, actually, and as far as I can tell doesn't break functionality. I can netcat to localhost:3306 but not $HOSTNAME:3306. I'll continue down that line. Do you still want my config files? |
I'm happy to consider this resolved. ISLE should maybe consider making this the default; it'll harden the installation against attacks somewhat, and people can expose ports (or better yet, use an SSH tunnel) if they want. |
No, I think if that works that might be good. This is what I see with the EXPOSE_MYSQL=false with nmap, where it's listening.
So what I think is happening is as the ports are being published to the traefik container, but traefik isn't actually connecting the port to the backend service, and eventually times out. If I do enable |
Interesting. So security scanners see an open port and panic, even though it's not actually responding with a valid connection. Well, at least this gets my metrics down. It makes me look bad to campus IT if their security scanner flags me, even if it's a false positive. :) |
When I look at netstat on our ISLE servers, I see a lot of open ports:
Our campus Nessus server is pretty unhappy about this. The "EXPOSE_*" settings in .env don't appear to change this. I see things like
in docker-compose.traefik.yml, but commenting out those lines doesn't change the listening ports either.
Is there a supported way to force these not to listen to the network? As I understand it, only 80/443 should really be exposed to the world, and everything else should happen between Docker containers.
The text was updated successfully, but these errors were encountered: