diff --git a/README.md b/README.md index 5e9a3d7..f07bf17 100644 --- a/README.md +++ b/README.md @@ -2492,6 +2492,14 @@ $ sudo iperf -s -p 80 iperf -c --parallel 2 -i 1 -t 2 -p 80 ``` +##### To block port 80 (HTTP server) using iptables. +```bash +sudo iptables -A INPUT -p tcp --dport 80 -j DROP + +# only block connection from an IP address +sudo iptables –A INPUT –s -p tcp –dport 80 –j DROP +``` + ## Data wrangling [[back to top](#handy-bash-one-liners)]