Community discussions

MikroTik App
 
3BABY
just joined
Topic Author
Posts: 22
Joined: Fri Aug 20, 2010 3:44 am
Location: New Zealand

Help with firewall rule - Deny access to internet from vlan

Wed Feb 02, 2011 10:27 pm

Hi Guys,

im sorry but i cant seem to work this out.. basically i just want to deny access to the internet on a certain vlan.. i have my switch connected to Vr0 and my modem on Vr1 and all i want to do is drop packets if say "VLAN number 27" try's to go through Vr1.. any help would be much appreciated :-)
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Help with firewall rule - Deny access to internet from v

Wed Feb 02, 2011 10:34 pm

Not much detail to go by. You have a VLAN interface somewhere on the router. Let's assume it's called 'vlan27'. You also have a WAN uplink interface. Let's assume it's called 'WAN'.
/ip firewall filter
add chain=forward in-interface=vlan27 out-interface=WAN action=drop