Community discussions

MikroTik App
 
lacibsd
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 60
Joined: Thu Mar 10, 2016 9:48 pm

Isolate an IP

Wed Jan 31, 2018 4:49 am

What is the best way to isolate an IP on wired or wireless network?
The goal is for that IP to be able to connect to the outside world/internet but nothing on the LAN
 
User avatar
sebastia
Forum Guru
Forum Guru
Posts: 1782
Joined: Tue Oct 12, 2010 3:23 am
Location: Antwerp, BE

Re: Isolate an IP

Wed Jan 31, 2018 9:57 pm

the easiest (and most consistent) way: isolate it in separate subnet only routed to internet
 
tholderbaum
newbie
Posts: 38
Joined: Thu Jan 23, 2014 3:34 am
Location: Tampa, Florida
Contact:

Re: Isolate an IP  [SOLVED]

Wed Jan 31, 2018 11:37 pm

What is the best way to isolate an IP on wired or wireless network?
The goal is for that IP to be able to connect to the outside world/internet but nothing on the LAN
Specifically here the most basic way.

/ip firewall filter
add action=accept chain=forward src-address={YourIP Here} out-interface={Your Outbound Interface} comment="This allows your isolated IP to talk to the Internet Interface, thereby allowing web traffic.
add action-drop chain=forward src-address{your IP here} dst-address=0.0.0.0/0 comment="This will Drop any other traffic, thereby isolating your device.

As long as the accept rule is first, it will match all internet traffic. But this is a bit of a blunt instrument. It will not catch any unwanted traffic or broadcasts from the same subnet. If you can, subnet your network in such a way that devices you want to isolate can be completely separate.
 
lacibsd
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 60
Joined: Thu Mar 10, 2016 9:48 pm

Re: Isolate an IP

Thu Feb 01, 2018 4:53 am

Thank you for your fast replies!
I've tried the exact firewall rules mentioned above but something is still wrong, I can still reach other devices on LAN from the IP I'm trying to isolate.
I've tried moving the rules to different positions on the firewall, no affect.
I hope I'll have some more time in the weekend to try a different subnet as well. However with the new subnet how can I be sure that the specific subnet is not assigned to other devices? (I must use DHCP). Actually I can assign a specific address from that different subnet to the MAC address of the device I want to isolate.
 
User avatar
sebastia
Forum Guru
Forum Guru
Posts: 1782
Joined: Tue Oct 12, 2010 3:23 am
Location: Antwerp, BE

Re: Isolate an IP

Thu Feb 01, 2018 10:56 pm

with firewall in forward one can only limit forward traffic => between subnets.

Within one subnet, the traffic will not go though forward table.
 
lacibsd
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 60
Joined: Thu Mar 10, 2016 9:48 pm

Re: Isolate an IP

Sat Feb 03, 2018 12:31 am

This worked, all good.
Thank you for your help!