Block firefox telemetry

This commit is contained in:
Bob Mottram 2018-05-05 15:48:12 +01:00
parent 0b015cf2ce
commit 95453f8205
2 changed files with 19 additions and 0 deletions

View File

@ -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

View File

@ -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