Created
December 12, 2018 01:54
-
-
Save Gipetto/348c46500ff4e4c4ea51892b3d0e5839 to your computer and use it in GitHub Desktop.
Pihole Firewall black holes that should be part of Pihole itself...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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