Community discussions

MikroTik App
 
holian
just joined
Topic Author
Posts: 16
Joined: Sun Oct 27, 2013 1:59 am

Block specific IP to access LAN

Tue Jun 26, 2018 5:04 pm

Masters,

I have an ubuntu, insalled under vmware... I would like to set up our Mikrotik router to block this ubuntu to access local LAN. I would like to allow access only the external internet for this IP.
I tried a lot of firewall rule, but non of work. May i ask some help about it?

Regards
 
User avatar
Anumrak
Forum Guru
Forum Guru
Posts: 1174
Joined: Fri Jul 28, 2017 2:53 pm

Re: Block specific IP to access LAN

Tue Jun 26, 2018 5:16 pm

Hey. Just add firewall filter input chain drop rule for your server IP address.
 
User avatar
sindy
Forum Guru
Forum Guru
Posts: 11286
Joined: Mon Dec 04, 2017 9:19 pm

Re: Block specific IP to access LAN

Tue Jun 26, 2018 11:53 pm

IP (L3) firewall cannot block communication between devices in the same subnet because that happens on L2. So if the Ubuntu is the only machine connected to some a physical interface of the Mikrotik, you may permit use of firewall also for bridge, and set bridge firewall rules to block it; if some other devices are connected (indirectly, by means of external hub or switch) to the same physical interface of the Mikrotik like the Ubuntu, you cannot block traffic between the Ubuntu and these devices because that traffic won't pass through the Mikrotik at all.
 
User avatar
Anumrak
Forum Guru
Forum Guru
Posts: 1174
Joined: Fri Jul 28, 2017 2:53 pm

Re: Block specific IP to access LAN

Wed Jun 27, 2018 3:31 pm

Masters,

I have an ubuntu, insalled under vmware... I would like to set up our Mikrotik router to block this ubuntu to access local LAN. I would like to allow access only the external internet for this IP.
I tried a lot of firewall rule, but non of work. May i ask some help about it?

Regards
You better write a little scheme, in order to understand your topology. If you want to drop the packets destined in your router, just add a drop rule in input chain. If you have a bridge on Tik for all your LAN in same address space, just add drop rule in bridge filter to your subnet or single host with mac-address mask. https://wiki.mikrotik.com/wiki/Manual%3 ... e_Firewall
 
holian
just joined
Topic Author
Posts: 16
Joined: Sun Oct 27, 2013 1:59 am

Re: Block specific IP to access LAN

Wed Jun 27, 2018 7:07 pm

IP (L3) firewall cannot block communication between devices in the same subnet because that happens on L2. So if the Ubuntu is the only machine connected to some a physical interface of the Mikrotik, you may permit use of firewall also for bridge, and set bridge firewall rules to block it; if some other devices are connected (indirectly, by means of external hub or switch) to the same physical interface of the Mikrotik like the Ubuntu, you cannot block traffic between the Ubuntu and these devices because that traffic won't pass through the Mikrotik at all.
I think you have right.
Mikrotik connected to switch which is connected to server (on this server run the vmware...).

So in this case there is no way to isolate this Ubuntu from other devices on LAN?
 
kai
newbie
Posts: 38
Joined: Thu Aug 24, 2017 1:15 pm

Re: Block specific IP to access LAN

Wed Jun 27, 2018 7:16 pm

If you have a managed switch, wouldn't it be possible to put the VMWare server on it's own VLAN and isolate it that way?
 
User avatar
sindy
Forum Guru
Forum Guru
Posts: 11286
Joined: Mon Dec 04, 2017 9:19 pm

Re: Block specific IP to access LAN

Wed Jun 27, 2018 10:34 pm

Even if you don't have a managed switch, a dedicated VLAN with a dedicated IP subnet for the server could be the solution as there is VMware on the other end which does support VLANs on its vswitches, and as most dumb switches will pass packets with VLAN headers.