Community discussions

MikroTik App
 
beginer0504
just joined
Topic Author
Posts: 20
Joined: Tue Jul 31, 2018 11:39 am

Firewall filter rules CCR-1009

Thu Jan 24, 2019 9:59 am

Hi,

Hi, I need help to solve an issue with a firewall -> filter

Network diagram
1.JPG
I want to set up the following:
+ Vlan 10,11,12 are not connected to each other.
+ Host vlan 11 connected with server vlan 10
+ Host vlan 11 connected with range vlan 12 (ex: 192.168.12.100-192.168.12.200)

Tks u !
You do not have the required permissions to view the files attached to this post.
 
solar77
Long time Member
Long time Member
Posts: 586
Joined: Thu Feb 04, 2016 11:42 am
Location: Scotland

Re: Firewall filter rules CCR-1009

Thu Jan 24, 2019 10:55 am

allow the connections first, and then block all other inter-vlan traffic.

so you set up filter rule on forward chain,
allow traffic from vlan 11 to server vlan 10
allow traffic from vlan 11 to address list (do this in ip firewall address lists) that contains 192.168.12.100-192.168.12.200

drop all traffic from vlan 11 to 10 and 12 by drop everything except when it is going to the WAN interface. something like
add chain=forward in-interface=vlan_11 out-interface-list=!WAN action=drop
do the same for Vlan 10
do the same for valn12

I think this should do what you need.
 
beginer0504
just joined
Topic Author
Posts: 20
Joined: Tue Jul 31, 2018 11:39 am

Re: Firewall filter rules CCR-1009

Thu Jan 24, 2019 11:16 am

allow the connections first, and then block all other inter-vlan traffic.

so you set up filter rule on forward chain,
allow traffic from vlan 11 to server vlan 10
allow traffic from vlan 11 to address list (do this in ip firewall address lists) that contains 192.168.12.100-192.168.12.200

drop all traffic from vlan 11 to 10 and 12 by drop everything except when it is going to the WAN interface. something like
add chain=forward in-interface=vlan_11 out-interface-list=!WAN action=drop
do the same for Vlan 10
do the same for valn12

I think this should do what you need.
Thank you, I will try and report the results
 
solar77
Long time Member
Long time Member
Posts: 586
Joined: Thu Feb 04, 2016 11:42 am
Location: Scotland

Re: Firewall filter rules CCR-1009

Thu Jan 24, 2019 11:40 am

remember to keep your "allow established and related" filter rule on the top.
This ensure the return traffic from one VLAN to another is not dropped.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19363
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Firewall filter rules CCR-1009

Thu Jan 24, 2019 2:37 pm

I would have a different approach.
Concur with logic its not wrong.

My last forward rule is
action drop (drop all else).
add action=drop chain=forward

Therefore one only needs to state explicitly what is allowed.
add action=allow in-interface=vlan11 dst-address=vlan10serverIP (192.168.10.10?)
add action=allow in-interface=vlan11 dst-address-list=allowedvlan12range

add address=192.168.12.100-192.168.12.200 list=allowedvlan12range (in ip firewall address list)

Who is online

Users browsing this forum: Amazon [Bot] and 61 guests