Skip to content

Commit

Permalink
Update anti-ddos.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
İsmail Taşdelen authored Aug 2, 2019
1 parent cac91cc commit 5e6114e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions anti-ddos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,21 @@ $IPTABLES -A FORWARD -j REJECTLOG
# You should check/test that the firewall really works, using
# iptables -vnL, nmap, ping, telnet, ...

# Appending rules : Let’s add some more IPv6 rules to our firewall.

sudo ip6tables -A INPUT -p tcp --dport ssh -s HOST_IPV6_IP -j ACCEPT
sudo ip6tables -A INPUT -p tcp --dport 80 -j ACCEPT
sudo ip6tables -A INPUT -p tcp --dport 21 -j ACCEPT
sudo ip6tables -A INPUT -p tcp --dport 25 -j ACCEPT

# To see the IPv6 rules with line numbers, type the following command:

sudo ip6tables -L -n --line-numbers

# Deleting rules

sudo ip6tables -D INPUT -p tcp --dport 21 -j ACCEPT

# Exit gracefully.
#------------------------------------------------------------------------------

Expand Down

0 comments on commit 5e6114e

Please sign in to comment.