Community discussions

 
Ehman
Member
Member
Topic Author
Posts: 363
Joined: Mon Nov 15, 2010 10:49 pm

script to make firewall rules

Wed Jul 31, 2013 6:58 pm

Hi

can someone help with a script that can isolate my 13 ethernet ports from each other in a mesh topology like?

/ip firewall filter
add action=drop chain=forward in-bridge-port=\
ether2 out-bridge-port=ether1

thats 1 rule, to make them for 13 ports it will probably be around 156 rules :shock:

So is it possible to make a script for this?
 
User avatar
tomaskir
Trainer
Trainer
Posts: 1120
Joined: Sat Sep 24, 2011 2:32 pm
Location: Slovakia

Re: script to make firewall rules

Wed Jul 31, 2013 7:39 pm

Use split horizon bridging. You will achieve the same result, no firewall, much faster, much less config.

http://wiki.mikrotik.com/wiki/MPLSVPLS# ... n_bridging
Unimus - configuration management, automation and backup solution
Mass Config Push, network-wide RouterOS upgrades, and more!
 
Ehman
Member
Member
Topic Author
Posts: 363
Joined: Mon Nov 15, 2010 10:49 pm

Re: script to make firewall rules

Fri Aug 09, 2013 9:47 pm

Use split horizon bridging. You will achieve the same result, no firewall, much faster, much less config.

http://wiki.mikrotik.com/wiki/MPLSVPLS# ... n_bridging
Hi. This is not working, it can ping right through it

4 ports bridged to a bridge called Birdge1, I played around on the 4 ports and changed the Horizon value on the bridge, it doesn't do anything as expected or am I missing something?
 
Ehman
Member
Member
Topic Author
Posts: 363
Joined: Mon Nov 15, 2010 10:49 pm

Re: script to make firewall rules

Fri Aug 09, 2013 9:51 pm

ok problem fixed, hehe, I'm a idiot :P ..I used common sense and the forward rule on bridge

Who is online

Users browsing this forum: No registered users and 9 guests