I have a rule in my firewall that blocks any external access for an IP cam under the IP 192.168.1.10
I am using the GUI but my firewall rule will be something such as:
/ip firewall filter add action=drop chain=forward src-address=192.168.1.10
There is an option on the IP cam GUI that allows me to send an e-mail alert via Gmail SMTP.
It connects using my Gmail credentials to smtp.gmail.com on port 465.
How can I allow 192.168.1.10 to send an e-mail via Gmail SMTP?
Well, I use explicit drop rule at the end of my forward chain so If I dont allow specific traffic it is always dropped - easy and secure.
Assuming you want this traffic to go out to the internet.
Thus for me it simply be a matter of…
/ip firewall filter
add action=accept chain=forward src-address=192.168.1.10 protocol=tcp destination port=465 out-interface=WAN
If you do not use a drop all else rule in your setup then you could do it two ways.
one, an allow rule followed by a drop rule
Two, a combined rule.