Skip to content
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

Security: Publishing control port to the entire world? #1

Open
malexmave opened this issue Mar 15, 2020 · 0 comments
Open

Security: Publishing control port to the entire world? #1

malexmave opened this issue Mar 15, 2020 · 0 comments

Comments

@malexmave
Copy link

Right now, you are publishing the control port on the IP of the machine this is running on, and in the advanced config, you are also allowing access from everyone. This does not seem like a good idea on internet-facing machines.

A more secure configuration may be:

docker run [...] -p localhost:7396:7396 [...] coreweave/fah-gpu:7.5.1 \
    FAHClient [...] --web-allow [docker-ip-range]/24 --allow [docker-ip-range]/24

In that case, the control port is only bound to localhost and only allows access from machines in the docker network (you can of course restrict that even further if you want). With that config, you can access the control port from the local machine where docker is installed, or, when accessing the machine via SSH, you can do SSH port forwarding to use the client.foldingathome.org interface using ssh [machine] -L 7396:localhost:7396.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant