On Plesk for Linux server, deny rules set up in Plesk Firewall do not block connections to Docker container

Comments

2 comments

  • Avatar
    Unknown User

    Workaround would be to bind the Docker Container to Localhost as explained here. That example by WebHostingAce shows how to bind Redis to accept only local connections. It would still be nice if Plesk Firewall could be used instead, but this workaround is very nice.

    Redis example from here:

    1. Search for Redis Docker in Docker Image Catalog Then Click Run.

    2. In the Next Step 'Run redis', Press Cancel

    3. Login to SSH as Root then Run
    Code:
    docker run --name=redis -p 127.0.0.1:6379:6379 redis

    4. Press CTRL + C to Exit.

    5. In the Plesk Panel Click on Docker again. Now you will see the Redis Docker is not Running.

    6. In Redis Docker, go to Settings and Tick 'Automatic start after system reboot' > 'Ok' > 'Start'

    Now the Redis Docker will be Bind to Localhost and the Port 6379 will not be accessible externally.

     

     

    -1
  • Avatar
    attention-required

    This is not a helpful solution, I don't want to delete firewall extension :/

    Either you must give an appropriate solution or work on PPPM-9222.

    1

Please sign in to leave a comment.

Have more questions? Submit a request