Jump to content

Restrict IP address for SMTP service in firewall

From TetraWiki
Revision as of 00:52, 7 November 2019 by Biswajit (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Concern :- Request from Jakson.com to restrict some IP address for mail sending.


We have blocked the IP address with the following command on firewall to drop the SMTP connections.


firewall-cmd --permanent --add-rich-rule="rule family='ipv4' source address='192.168.16.14' service name=smtp reject"