Im running a postfix mail server on linux and have a need to take one IP address out of my trusted network to prevent relaying. So far as I can tell, postfix only knows what networds are trusted and doesnt have a way to explicitly not trust one. Here is the root of my problem. I need to trust 172.19.99.* all except 172.19.99.105
Is there any types of calculator out there that will tell me how to break this up easily? The way I did this before on a machine I needed to deny 172.19.64.1 and .2 on was to trust only:
172.19.64.3
172.19.64.4/30
172.19.64.8/29
172.19.64.16/28
172.19.64.32/27
172.19.64.64/26
172.19.64.128/25
This seems very cumbersome and Im hoping there is an easier way that Ive missed.
Is there any types of calculator out there that will tell me how to break this up easily? The way I did this before on a machine I needed to deny 172.19.64.1 and .2 on was to trust only:
172.19.64.3
172.19.64.4/30
172.19.64.8/29
172.19.64.16/28
172.19.64.32/27
172.19.64.64/26
172.19.64.128/25
This seems very cumbersome and Im hoping there is an easier way that Ive missed.