shinebayar-g / ufw-docker-automated

Manage docker containers firewall with UFW!
Apache License 2.0
198 stars 31 forks source link

add an option to only ALLOW some ports #57

Open fin444 opened 1 year ago

fin444 commented 1 year ago

This allows you to expose ports from the same container both to the world and to only localhost. For example, you can open Gitlab's SSH port, but keep its :80 private for your reverse proxy. (Yes I know I should be using docker networking instead of localhost it's complicated)