Last active
October 6, 2021 14:42
-
-
Save crashangelbr/9fd358fdc5bfa7c6dbf2cb7f037cf7a5 to your computer and use it in GitHub Desktop.
IPTables Autostart ArchLinux
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=/etc/iptables/iptables.rules && iptables-save > /etc/iptables/iptables.rules && systemctl restart iptables | |
iptables -I INPUT -s 72.14.196.224 -j DROP | |
iptables -I INPUT -s 192.168.0.1 -j DROP | |
iptables -I INPUT -j DROP -s 10.47.192.1 | |
iptables -I INPUT -s 201.6.72.1 -j DROP | |
iptables -I INPUT -s 201.6.64.196 -j DROP | |
iptables -I INPUT -s 10.0.0.1 -j DROP | |
iptables -I INPUT -m string -algo kmp --string "virtua.com.br" -j DROP | |
iptables -A OUTPUT -s 72.14.196.224 -j DROP | |
iptables -A OUTPUT -s 192.168.0.1 -j DROP | |
iptables -A OUTPUT -j DROP -s 10.47.192.1 | |
iptables -A OUTPUT -s 201.6.72.1 -j DROP | |
iptables -A OUTPUT -s 201.6.64.196 -j DROP | |
iptables -A OUTPUT -s 10.0.0.1 -j DROP | |
iptables -A OUTPUT -m string -algo kmp --string "virtua.com.br" -j DROP | |
sysctl -w net.ipv6.conf.all.disable_ipv6=1 | |
echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6 | |
sysctl -w net.ipv6.conf.default.disable_ipv6=1 | |
#DNS 8.20.247.20 | |
#DNS 8.26.56.26 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment