Community discussions

MikroTik App
 
User avatar
infomate
Member Candidate
Member Candidate
Topic Author
Posts: 114
Joined: Sat May 21, 2005 2:30 pm
Location: Dumaguete City, Philippines

How to do client isolation on LAN (ethernet port)

Thu Oct 13, 2005 4:13 am

Hi guys,

Question: How can we properlly inplement client isolation (prevent network shares on windows clients) on the ehternet LAN port.

I know that on the WLAN we can use default forwarding feature.
I have tried blocking src port 137-139 on the firewall rule forward but it can only block client to client (10.5.50.3:137 -> 10.5.50.4:137) NetBios traffic but it lets the braodcast (10.5.50.255:137) pass through.

I guess to effectivelly block windows Netbios (network Neighborhood) traffic is to prevent the transmition of broadcast traffic on port 137-139, but the firewall rules cant even see them (traffic seen on packet sniffer - 10.5.50.3:137 -> 10.5.50.255:137 but no entry on log for dropped traffic)

firewall rule forward:
src=0.0.0.0/0:137-139 dst=0.0.0.0/0 prot=udp action=drop log


Help needed before I get any more ocmplaints from my customers!

Robert S.
 
Hellbound
Long time Member
Long time Member
Posts: 508
Joined: Tue Oct 26, 2004 11:21 am

Thu Oct 13, 2005 10:06 am

your question is a little bit wierd, before cliend reach your router , they may have already access to others by the switch so you need managed switch to isolate ports... you gotta show where is the entry? wireless port? how is your network diagram?
 
User avatar
infomate
Member Candidate
Member Candidate
Topic Author
Posts: 114
Joined: Sat May 21, 2005 2:30 pm
Location: Dumaguete City, Philippines

Thu Oct 13, 2005 11:11 am

My problem is how to prevent windows clients on my Hotspot LAN from seeing each other and/or including their shared resources.

internet --->(ether port1) MT Hotspot (ether port2) --> Hotspot LAN

Facts:
On a windows network neighborhood, a "Browser server" is elected and provides information about a domain/workgroup, which it gathers by listening to the registrations "broadcast" by machines at boot time.

example traffic detected by packet sniffer:
src-10.5.50.3:138 --> dst- 10.5.50.255:138

firewall rule forward:
src=0.0.0.0/0:137-139 dst=0.0.0.0/0 prot=udp action=drop log

LOG:
no logged dropped traffic

The firewall rule above only drops packets that are directed to another client workstation:
ex. 10.5.50.3:137 -> 10.5.50.4:137

assumption:
1. MT cannot drop broadcast traffic (ofcourse I maybe wrong!)

Question:
how can we drop the client registration broadcast on port 137-139 to prevent it from registering to any "broadcast server". dropping the packets before it can even be registered would avoid the election of a broadcast server among the clients and prevent clients seeing one another inside the hotspot network.

1. is it possible to drop a broadcast traffic?
2. is there a better way to do client isolation?


Robert S.
 
Hellbound
Long time Member
Long time Member
Posts: 508
Joined: Tue Oct 26, 2004 11:21 am

Thu Oct 13, 2005 11:17 am

I'm not where did I read about this but you rather better to
do so on lower layer with bridge facilities isolating all traffic
(not just in IP level)...

however one of the method most of ISP using is setting separate
gateway for each client so client will only be able to pass all traffic
through the gateway by subnetting...

like for example:
IP: 10.1.100.2
mask: 255.255.255.252
gw: 10.1.100.1 
and from the you can drop all IP route for all clients no matter whats the port
 
User avatar
infomate
Member Candidate
Member Candidate
Topic Author
Posts: 114
Joined: Sat May 21, 2005 2:30 pm
Location: Dumaguete City, Philippines

Thu Oct 13, 2005 11:39 am

Hellbound,

interesting but rather complicated for me.

i'll read more on that and try to figure out how to do it on MT.

more suggestions please.

Robert S.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26368
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Thu Oct 13, 2005 12:11 pm

impossible. the users connect to each other through the hub. they do not go through the mikrotik router.
 
Hellbound
Long time Member
Long time Member
Posts: 508
Joined: Tue Oct 26, 2004 11:21 am

Thu Oct 13, 2005 12:17 pm

impossible. the users connect to each other through the hub. they do not go through the mikrotik router.
actually we must see what is the purpose? if it is meant for security by
setting this user can only receive packets from their gateway and it is
not possible to connect that user specially if there is managed switch
blocking traffic to other mac address than gateway (isolate them) and
in this way clients will be all monitored by gateway because it must
pass through the server... however it maybe costly consider the price
of managed switch. but at least it gives a level of security.
 
dot-bot
Member Candidate
Member Candidate
Posts: 164
Joined: Tue Oct 11, 2005 7:05 pm

Thu Oct 13, 2005 12:41 pm

internet --->(ether port1) MT Hotspot (ether port2) --> Hotspot LAN
I'm not completely familiar with wireless but i assume that:
Image1. Hotspot means more than one users connect to the internet via the wireless ("Hotspot LAN") device.
Image2. The hotspot allows trafiic between the wireless users like a hub/switch.
Image3. You want to disable SMB announce broadcasts and such traffic to save bandwidth of wireless device.

If this is the case you need to make the MT act as the switch instead of the Hotspot wireless device itself. ImageOr replace the hotspot wieless device with one with configurable filtering capabilitiesImage
 
User avatar
infomate
Member Candidate
Member Candidate
Topic Author
Posts: 114
Joined: Sat May 21, 2005 2:30 pm
Location: Dumaguete City, Philippines

Thu Oct 13, 2005 4:54 pm

is it possible for Mikrotik to add a feature to disable LAN clients to communicate, just like "default-forwarding" for WLAN.

It would be very helpfull for MT users who's confguration doesnt have wireless NIC's but use cheap commercial AP's connected to the MTs' ethernet port.

configuration:
internet->(ether1) MT (ether2)->unmanaged-switch->cheap AP (wireless)
|___ LAN (wired)

would replacing the unmanaged-switch with a "managed-switch" solve the issue?

Robert S.
 
Hellbound
Long time Member
Long time Member
Posts: 508
Joined: Tue Oct 26, 2004 11:21 am

Thu Oct 13, 2005 5:02 pm

internet->(ether1) MT (ether2)->unmanaged-switch->cheap AP (wireless)
Good, this is the diagram i've asked before...


you must use certain AP even cheap one may
have isolation feature and you must use managed switch
which you can get it abotu 300USD for 24 ports and
setup VLAN which is almost simple to do (even though
I havn't set that up yet) but I want to do this exactly...

managed switch won't isolate your AP's clients on Wlan
side but will be able to isolate your lan and your wlan's
clients...

I'm having senao and interepoch which they have isolation
and it is very simple to do so, so you may go ahead
and ask your vendor and they may even do that upon
request (as senao did) but one big advise, never buy
anything from senao, their Qos is deep in shit (sorry
for lang) but I wasted 2000USD on their wireless stuff

hope it helps
 
yancho
Member Candidate
Member Candidate
Posts: 207
Joined: Tue Jun 01, 2004 3:04 pm
Location: LV

Thu Oct 13, 2005 5:08 pm

It's not possible. Because AP acts like hub or even wire. Communication goes to AP and back to clients but not to switch behind AP! (if clients have same subnet address). Only if client is in different subnet, then traffic goes to router/gateway.
 
User avatar
infomate
Member Candidate
Member Candidate
Topic Author
Posts: 114
Joined: Sat May 21, 2005 2:30 pm
Location: Dumaguete City, Philippines

Thu Oct 13, 2005 5:13 pm

sorry guys,

Text formating error!

in the configuration, the LAN (wired) should be under the AP (wireless). Both of them connected to a port on the unmanaged switch.

Any input to shed light on the matter will be very much appreciated.

Thank you.


Robert S.
 
Hellbound
Long time Member
Long time Member
Posts: 508
Joined: Tue Oct 26, 2004 11:21 am

Thu Oct 13, 2005 5:16 pm

It's not possible. Because AP acts like hub or even wire. Communication goes to AP and back to clients but not to switch behind AP! (if clients have same subnet address). Only if client is in different subnet, then traffic goes to router/gateway.
AP can isolate itself before it even reach the Hub,
sorry guys,

Text formating error!

in the configuration, the LAN (wired) should be under the AP (wireless). Both of them connected to a port on the unmanaged switch.

Any input to shed light on the matter will be very much appreciated.

Thank you.


Robert S.
thats what I assumed

and the only question I cannot answer is how to do AP isolation in MT?
because I also need to know this one
 
User avatar
infomate
Member Candidate
Member Candidate
Topic Author
Posts: 114
Joined: Sat May 21, 2005 2:30 pm
Location: Dumaguete City, Philippines

Thu Oct 13, 2005 5:23 pm

Wow that was a fast reply!

I have just finnished to type my previous post and viewed it long enough to notice my formating error.

Thanks for the information Hellbound and Yancho. So much for using a cheap wireless alternative.

Has anybody done/implemented this with a managed switch? I'd like to hear some success stories from our gurus.

Thanks again guys. Now im back to the drawing boards, poking my piggy bank with a pencil hoping to sqeeze more pennies out of it :D

Robert S.

Who is online

Users browsing this forum: Bing [Bot], scoobyn8 and 36 guests