I have two WAN ports and single LAN.
I also have NAT configured and couple of rules for port forwarding from outside to my internal servers.
Now, what I am trying to do is to create filter which will block any computer/device from within my LAN to WAN on port 25 (except for approved servers).
I made a filter rule but it does not work (I discovered that this is by design); what I do not understand how can I achieve same goal in some other way?
I have also tried to make firewall rules which would (in my opinion) block all port 25 traffic from LAN to WAN (including my servers) but it did not work as well.
they are disabled now but here they are:
0 X ;;; Block spammer or infected users
chain=forward action=drop protocol=tcp src-address-list=spammer
dst-port=25
1 X ;;; Detect and add-list SMTP virus or spammers
chain=forward action=add-src-to-address-list protocol=tcp
address-list=spammer address-list-timeout=1d dst-port=25
connection-limit=30,32 limit=50,5
In forward filters have a high priority rule which allows accepts traffic from 172.20.1.31 to X.X.X.X port 25. Next have a rule which blocks traffic from any LAN address to port 25 via the outbound interface. Then have your existing forward filters ending with the drop all at the end. Remember it is the first matching filter that determines the action.
hm, this seems like it solved the problem, the only difference I see from the filter I have created and this one is that now I have defined outgoing interface (previous filters did not have outgoing interface defined)