I have accumulated a few cast-enabled devices in my network. For example I got a Chromecast with Google TV which is connected to my TV and my main device I use to stream too.
In the same room I also got a Nest Mini, which I never cast to, and I really want to remove this device from the list of available devices (in the casting list on your phone).
Same thing with my Samsung QLED TV. I notice that in some apps, like the Youtube app, the Samsung TV shows up as [TV] Samsung Q9F. I never use this device for casting, and I would like to remove if completely from the list.
Sadly I cannot disconnect it from the network as I still use a few features that requires a connection.
I cannot move it to another subnet, as this will disable a lot of other functions.
Any idea on how to disable the casting ability only? Is there any firewall rules I can use for this?
Thank you!
If the devices are all in the same network it is quite hard to block casting, as the devices are broadcasting their ability to receive casts and firewall doesn't apply to intra-lan traffic. Only if the traffic goes through the device, e.g from wired ports to wifi, or from one wired port to another you could block it with the help of ebtables.
The TV is connected with Ethernet, and the devices I mostly use are Wifi (like phones and tablets). However all the Nest Mini's are wireless sadly.
Isn't there any chance following this guide, but instead of allowing traffic, disabling traffic by using "REJECT"?
Like this:
config rule
option name 'Disable Chromecast Nest Mini 1'
option src 'lan'
option src_ip '192.168.1.32'
option src_port '32768-61000'
option dest 'lan'
option dest_port '32768-61000'
option proto 'udp'
option target 'REJECT'
config rule
option name 'Disable Chromecast Nest Mini 2'
option src 'lan'
option src_ip '192.168.1.32'
option src_port '8008'
option dest 'lan'
option dest_port '8008'
option proto 'tcp'
option target 'REJECT'
config rule
option name 'Disable Chromecast Nest Mini 3'
option src 'lan'
option src_ip '192.168.1.32'
option src_port '8009'
option dest 'lan'
option dest_port '8009'
option proto 'tcp'
option target 'REJECT'
config rule
option name 'Disable Chromecast Nest Mini 4'
option src 'lan'
option src_ip '192.168.1.32'
option src_port '1900'
option dest 'lan'
option dest_port '1900'
option proto 'tcp'
option target 'REJECT'
Ok, what do you mean by rerouting via the ports? Most of the devices I want to block are Nest Mini's which are only wireless. So I guess this is not possible? What if I move the specific Nest Mini's to a different VLAN? Can I make them invisible then? While still retaining the ability to ask the Nest Mini to stream to another device in the other VLAN?
The only reason I want to do this is to clean up the amount of devices that is never used to Cast to.
Well, if you have separate subnets, you can do more, but that would require more advanced configuration, and may not be so easy with only one device serving the (W)LAN.
Ideally the clients shouldn't be on the same subnet/LAN as the minis.
You could for instance set up two wifi networks on one radio, but I'm not sure if you can
configure separate subnets for them.
Might be too late but anyways I found a solution to my problems.
It works with my wifi connections. The idea is to create a new interface, firewall rules and SSID that is separate from the main network and connect your TV to it.