How to stop broadcast service in Linux?

how to stop broadcast service in linux

  • I have a query: in our environment all Linux servers have broadcasting enabled I need to stop the broadcast service in my Linux server. I have tried to stop the service by doing the following: change the broadcast address 0.0.0.0 manually add the broadcast address 0.0.0.0 to /etc/sysconfig/network-scripts/ifcfg-eth0 But, still same result. Can any body tell me the procedure to close the broadcast service in Linux.

  • Answer:

    I don't think you can do what you are trying to do. What exactly is the problem you are seeing, and why is it a problem ? Broadcasting is not a service, its part of the IP stack, so there isn't a way of stopping the service. You might be able to write an IPTables rule to fix whatever it is you are trying to fix, but there will almost certainly be colateral damage, probably killing your ability to network at all. If you don't want computers on the same network to see each other, maybe you need to assign each computer with an IP address which has a network comprising only itself and the router. This won't stop any kind of attacks across the LAN, but might cut down on the traffic you are worried about. Some examples (assuming 192.168.0.x subnet) ifconfig eth0 192.168.0.1 netmask 255.255.255.252 gateway 192.168.0.2 (This will use 192.168.0.0 as the network, 192.168.0.3 as the broadcast, so you will only be able to see the router, assuming you bring up an interface on the router of 192.168.0.2 with an otherwise similar command) You would then need to use 192.168.0.5 and 192.168.0.6 192.168.0.9 and 192.168.0.10 192.168.0.13 and 192.168.0.14 . . . 1 for each host with a corresponding interface/virtual interface on the core router. Not sure what this is achieving though.

user3296875 at Super User Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.