I have a very frustrating problem. I wanted to filter the traffic on port 25 coming from the vpn users. Since I failed in the more complex rule, I reduced it to a very basic one:
But still after using it I can telnet to smtp servers on port 25. If i change the port to 80, http will cease, or tcp to icmp, ping will cease. But not smtp. Why? What am i missing?
Are there any other rules in “/ip firewall filter”? Maybe posting all would help.
No “/ip firewall nat” rules that would affect port 25?
No hotspot on the interface?
The NAT rules are to give public ip to the connected private vpn ones. Each private has its own public, in such pairs:
/ip firewall nat
add action=src-nat chain=srcnat disabled=no src-address=xx.xx.xx.99 to-addresses=yy.yy.yy.99
add action=dst-nat chain=dstnat disabled=no dst-address=yy.yy.yy.99 to-addresses=xx.xx.xx.99
When running with port 80 there is matching (checking with browser to google.com), but there is none when using port 25 (checking with putty, telnet smtp.gmail.com:25)
Thank you for helping with such a nonsense situation.
Putting the filter to number 0 has no effect. With 80 the http is blocked, smtp passed.
Later this evening will reboot (production server..) and maybe setup an x86 to test with versions…
bumping again, because i need to block smtp, and still cannot
what is wrong? any other port i tried was blocked fine, tcp/udp or even icmp can be filtered but for some reason smtp port 25 cannot :S:S:S
edit: ive set up a log and drop chain, with any port but 25 it is logged properly and dropped