Community discussions

MikroTik App
 
Tulga
just joined
Topic Author
Posts: 5
Joined: Wed Jun 02, 2021 9:41 am

Router switch Firewall

Wed Jun 02, 2021 9:58 am

Hello?
I need to implement firewall on router switch.
Rule is simple. Accept packets with dst address 192.168.1.5 with port number 502 and reject rest of packets.
How do I implement reject rest of packets with web interface?
 
erlinden
Forum Guru
Forum Guru
Posts: 1920
Joined: Wed Jun 12, 2013 1:59 pm
Location: Netherlands

Re: Router switch Firewall

Wed Jun 02, 2021 10:34 am

Block all, except IP address and port number on the forward chain.

Are you really sure that is what you are trying to accomplish? Because with this rule all packages are dropped (except the exception).
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19099
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Router switch Firewall

Wed Jun 02, 2021 4:56 pm

This sounds like a port forwarding issue in terms of router speak, where the user wants to allow incoming requests on the internet reach a server within the LAN.
Note default firewall rules automatically block all WAN to LAN traffic but allow Destination NAT as you described.
It is up to the admin to then enter the appropriate NAT rule to allow that traffic.
In summary, already done, you just need a dst nat rule.

As seen by the previous post however your description is sufficiently vague and thus clearer direction is not possible and there is no guarantee that your issues are resolved.

Who is online

Users browsing this forum: tjanas94 and 19 guests