Skip to content

Instantly share code, notes, and snippets.

@Gipetto
Created December 12, 2018 01:54
Show Gist options
  • Save Gipetto/348c46500ff4e4c4ea51892b3d0e5839 to your computer and use it in GitHub Desktop.
Save Gipetto/348c46500ff4e4c4ea51892b3d0e5839 to your computer and use it in GitHub Desktop.
Pihole Firewall black holes that should be part of Pihole itself...
iptables -A INPUT -p tcp --destination-port 443 -j REJECT --reject-with tcp-reset
iptables -A INPUT -p udp --destination-port 80 -j REJECT --reject-with icmp-port-unreachable
iptables -A INPUT -p udp --destination-port 443 -j REJECT --reject-with icmp-port-unreachable
ip6tables -A INPUT -p tcp --destination-port 443 -j REJECT --reject-with tcp-reset
ip6tables -A INPUT -p udp --destination-port 80 -j REJECT --reject-with icmp6-port-unreachable
ip6tables -A INPUT -p udp --destination-port 443 -j REJECT --reject-with icmp6-port-unreachable
iptables-save > /etc/iptables/rules.v4
ip6tables-save > /etc/iptables/rules.v6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment