SIEMbitwardendnscrypthome assistantjellyfinjitsimulti-factor authenticationnextcloudonlyofficepiholeraspberry pirocket.chatsyncthingtorwazuhwireguard
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
704 B
24 lines
704 B
#!/bin/bash |
|
|
|
|
|
# resetting ip6tables rules |
|
sudo ip6tables -F |
|
sudo ip6tables -t nat -F |
|
sudo ip6tables -X MISTBORN_LOG_DROP 2>/dev/null || true |
|
|
|
# ip6tables: log and drop chain |
|
sudo ip6tables -N MISTBORN_LOG_DROP |
|
sudo ip6tables -A MISTBORN_LOG_DROP -m limit --limit 6/min -j LOG --log-prefix "[Mistborn-IPTables-Dropped]: " --log-level 4 |
|
sudo ip6tables -A MISTBORN_LOG_DROP -j DROP |
|
|
|
# ip6tables |
|
echo "Setting ip6tables rules" |
|
sudo ip6tables -P INPUT ACCEPT |
|
sudo ip6tables -I INPUT -i lo -j ACCEPT |
|
sudo ip6tables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT |
|
sudo ip6tables -A INPUT -j MISTBORN_LOG_DROP |
|
|
|
sudo ip6tables -P INPUT DROP |
|
sudo ip6tables -P FORWARD DROP |
|
sudo ip6tables -P OUTPUT ACCEPT |
|
|
|
|