Firewall for Docker containers in macvlan


Recommended Posts

Is it possible to block/allow ports for containers running in a vlan? I'd like to allow all devices in my local LAN to access all Docker containers running on Unraid by default, which I did by just allowing forwarding from the LAN VLAN to the Docker VLAN, but I'd still like to be able to specify which ports in a container should be accessible.

 

I could do this on the router by disabling the default forward rule and explicitly only allow forwarding to specific ports, but then I'd have to configure Docker stuff in two locations (containers in Unraid, allowed ports in the router). I'd rather do this all in Unraid.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.