Community discussions

MikroTik App
 
Lakis
Forum Veteran
Forum Veteran
Topic Author
Posts: 703
Joined: Wed Sep 23, 2009 7:52 pm

Need help firewall filter??

Fri Apr 27, 2012 7:16 pm

Some noob problem
I Need to drop ports 5060,5061,5062 except for ip 10.10.10.1, and ip range 10.10.20.0/24,10.10.30.0/24
need some help for the code
/
chain=forward action=drop protocol=udp ???src-address=!10.10.10.1;10.10.20.0/24;10.10.30.0/24???? src-port=5060,5061,5062

don't know how to put more ip addres in src-address tab.

Tnx..
 
simpl3x
just joined
Posts: 20
Joined: Thu Apr 19, 2012 5:36 pm

Re: Need help firewall filter??

Fri Apr 27, 2012 8:45 pm

ip firewall filter add src-address-list=!EXEPTION_1
and specify the ip address in the EXEPTION_1
 
Lakis
Forum Veteran
Forum Veteran
Topic Author
Posts: 703
Joined: Wed Sep 23, 2009 7:52 pm

Re: Need help firewall filter??

Fri Apr 27, 2012 9:24 pm

Yes but I need to specified more than one ip address
10.10.10.1;10.10.20.0/24;10.10.30.0/24
 
Devil
Member Candidate
Member Candidate
Posts: 170
Joined: Thu Jul 21, 2011 9:13 am

Re: Need help firewall filter??

Sat Apr 28, 2012 10:45 am

/ip firewall address-list add address=10.10.10.1 list=exceptions
/ip firewall address-list add address=10.10.20.0/24 list=exceptions
/ip firewall address-list add address=10.10.30.0/24 list=exceptions
/ip firewall filter add chain=forward protocol=udp src-port=5060-5062 src-address-list=!exceptions action=drop

Who is online

Users browsing this forum: No registered users and 9 guests