How to block port 25 by default and unblock per IP on case basis?


Oct 9, 2020
Is there any way to block port 25 by default and only open for particular IP whenever I want?

I want something like this

Block port 25 by default, so even in future a new vm create will have port 25 blocked by default as well.

And if I want to unblock the port 25 for a particular vm, I can unblock it for that VM's IP

So only that vm have port 25 open and the rest will remain blocked.

Is there anyway to do that?

I am completely lost on Firewall section of Porxmox UI,

So is there any tutorial or guide?
maybe is possible from the command line while creation. search the doku for help


The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!