Community discussions

MikroTik App
 
ssffzzxx
just joined
Topic Author
Posts: 17
Joined: Thu Feb 12, 2009 6:04 am

how to configure mikrotik to only accept certain address

Wed May 27, 2009 7:15 am

Dear All, I have 2 internet gateways in our LAN system;
1. Mikrotik
2. Other brand router.

I want to make my Mikrotik as gateway that dedicated for several IP address in our LAN.
Only IP address xxx.xxx.xxx.10, xxx.xxx.xxx.12 ... 10 address and reject other IP address.

Could anyone please help me on how to configure mikrotik to only accept certain address and reject other IP address?

Your help will be so much appreciated.
Best Regards

ssffzzxx
 
thiele
newbie
Posts: 44
Joined: Mon Jun 01, 2009 5:08 pm
Location: Curitiba - Brasil

Re: how to configure mikrotik to only accept certain address

Mon Jun 01, 2009 9:34 pm

Hey,

You can do that using firewall, something like:

# ACCEPT YOUR 1ST IP
/ip firewall filter add chain=forward src-address=xxx.xxx.xx.10/32 action=accept
# ACCEPT YOUR 2ND IP
/ip firewall filter add chain=forward src-address=xxx.xxx.xx.12/32 action=accept
# REJECT REST OF YOUR NETWORK
/ip firewall filter add chain=forward src-address=xxx.xxx.xx.0/24 action=drop

If you are using winbox, you can do it all under IP -> FIRWALL -> FILTER menu.

This is a simple sample, but you can do more, like redirect traffic to other gateway or you can also
create a source address list e put all permited IPs on it.
 
ssffzzxx
just joined
Topic Author
Posts: 17
Joined: Thu Feb 12, 2009 6:04 am

Re: how to configure mikrotik to only accept certain address

Tue Jun 02, 2009 4:54 am

Dear Thiele,
Many thanks for your help.
I am so appreciated with it.

Best Regards