Skip to content
Snippets Groups Projects
Commit 95453f82 authored by Bob Mottram's avatar Bob Mottram
Browse files

Block firefox telemetry

parent 0b015cf2
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,22 @@ function save_firewall_settings {
fi
}
function block_firefox_telemetry {
# This shouldn't be needed on a server, but we'll do it anyway
# to be on the safe side
# Within firefox source code see submit_telemetry_data.py
FIREFOX_TELEMETRY_IP='52.88.27.118'
if grep "$FIREFOX_TELEMETRY_IP" /etc/firewall.conf; then
return
fi
iptables -A INPUT -s $FIREFOX_TELEMETRY_IP -j DROP
iptables -A OUTPUT -s $FIREFOX_TELEMETRY_IP -j DROP
save_firewall_settings
}
function firewall_block_bad_ip_ranges {
if [ "$INSTALLING_MESH" ]; then
return
......
......@@ -720,6 +720,9 @@ function setup_firewall {
function_check configure_firewall
configure_firewall
function_check block_firefox_telemetry
block_firefox_telemetry
function_check configure_firewall_ping
configure_firewall_ping
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment