Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update network_sniffer_disabled #6000

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ description: |-
capture all traffic on the network to which it is connected. Run the following
to determine if any interface is running in promiscuous mode:
<pre>$ ip link | grep PROMISC</pre>
Promiscuous mode of an interface can be disabled with the following command:
<pre>$ sudo ip link set dev <tt>device_name</tt> multicast off promisc off</pre>

rationale: |-
Network interfaces in promiscuous mode allow for the capture of all network traffic
Expand Down Expand Up @@ -45,5 +47,6 @@ references:
ocil_clause: 'any network device is in promiscuous mode'

ocil: |-
Promiscuous mode of an interface can be disabled with the following command:
<pre>$ sudo ip link set dev <tt>device_name</tt> promisc off</pre>
To verify that Promiscuous mode of an interface is disabled, run the following command:
<pre>$ ip link | grep PROMISC</pre>
The output returned should not return any network device containing <tt>PROMISC</tt>.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

for interface in $(ip link show | grep -i promisc | sed 's/^.*: \(.*\):.*$/\1/'); do
ip link set dev $interface promisc off
done
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

ip link set dev lo promisc on