Community discussions

MikroTik App
 
piotrchm93
just joined
Topic Author
Posts: 24
Joined: Mon Feb 13, 2023 8:53 pm

Firewall for PublicIP on Vlan

Fri Oct 25, 2024 12:34 am

Hello and welcome,
I have a maybe obvious question. I have been struggling with the on-prem email server for several days.

I decided to temporarily change the concept and instead of keeping it behind NAT, it got a public IP address (let's say 10.0.1.200).
My Mikrotik router has a public address of 10.0.1.100. Generally, public addressing goes to eth1 as VLAN 80 and the VM with the email server is also assigned to this VLAN. This vlan is connected to BRIDGE with other ports and vlans.

And now my question... how can I apply firewall rules to such a system?
I wanted to block all communication with this server via the DROP rule at this moment.

I tried by setting

chain input,
dst. addresses 10.0.1.200
In Interface (eth1 or vlan 80)
action drop

but unfortunately it didn't work.

I would like some tips on how to deal with this issue :(

Regards !
You do not have the required permissions to view the files attached to this post.
 
kleshki
Member Candidate
Member Candidate
Posts: 252
Joined: Tue Mar 10, 2020 6:37 am

Re: Firewall for PublicIP on Vlan  [SOLVED]

Fri Oct 25, 2024 12:49 am

IP firewall doesn't look into packets flowing inside bridge. You can either use /bridge/filter or enable IP Firewall for bridges. Chain is also wrong - should be forward not input. Another option is to use firewall inside VM.
 
piotrchm93
just joined
Topic Author
Posts: 24
Joined: Mon Feb 13, 2023 8:53 pm

Re: Firewall for PublicIP on Vlan

Sat Oct 26, 2024 12:38 am

kleshki, Thank you very much for your help,
you saved me many hours of searching.
Enabling IP Firewall + Vlan Firewall on the bridge and adding rules on the firewall as forward solved my problem. :)

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 36 guests