Block All Outgoing IP addresses

newlord

New Member
Dec 10, 2021
2
0
1
48
Hello All!

I want to block all connections for outgoing mail except IP in whitelist. I have created whitelist, but I can't understand how is block all another IP.
Proxmox doesn't allow set mask to IP in the blacklist rule.

Or maybe I will be able disable local network for access by default?
 
Last edited:
On mail proxy(postfix) level the local network of PMG is included in the trusted IPs (if you want to override that you need to adapt the postfix config templates) - check the reference documentation:
https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmgconfig_template_engine

but you can create 2 rules in the rule-system:
* one with a who-object containing your trusted IPs (add this as from) - and action ACCEPT
* one with a lower priority with action BLOCK

I hope this helps!
 
  • Like
Reactions: newlord
Stoiko Ivanov Tnx for answer.

If I understand correctly, the rule BLOCK without "who-object" applied for all messages? Then this is my solution.
 
Last edited:
If I understand correctly, the rule BLOCK without "who-object" applied for all messages? Then this is my solution.
Yes that how it should work - but as always - configure it and keep an eye on your logs - to verify for yourself :)
 
  • Like
Reactions: newlord

About

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!