gravitl / netmaker

Netmaker makes networks with WireGuard. Netmaker automates fast, secure, and distributed virtual networks.
https://netmaker.io
Other
9.56k stars 553 forks source link

Restrict nodes access to specific IPs #2131

Open sleepy-soul opened 1 year ago

sleepy-soul commented 1 year ago

Hi,

I have a setup Netmaker and have attached is the graph of my nodes. As you can see one node, docker-alpha is acting as an egress gateway to 10.0.0.0/16. All the other nodes in this network can access this subnet range since the routes will be published. But I want to restrict the bottom node, named Prod to access only 10.0.0.5 from this range and block access to all other IPs in this /16 range.

I have read the documentation on restriciting an entire node to not access a specific node with ACL's. But haven't found anything about this. Is the possible currently via netmaker that I can restrict access only to specific IPs in an egress gateway?

netmaker

Thanks in advance.

cdpb commented 1 year ago

image

You could try the allowed ip setting or a postup iptables command.

afeiszli commented 1 year ago

This is not currently possible. We have discussed moving ACL's to be based on allowedips, but would require a big refactor, so is not currently in scope.