Skip to content
This repository was archived by the owner on May 16, 2026. It is now read-only.

Latest commit

 

History

History
14 lines (12 loc) · 948 Bytes

File metadata and controls

14 lines (12 loc) · 948 Bytes
title iptables
date 2022-02-27 08:18:00 UTC
tags
Command Description
sudo iptables -L Lists all the current rules
sudo iptables -F Clears all the current rules
sudo /sbin/iptables-save Saves changes to the iptables on Ubuntu systems
sudo iptables -A INPUT -j DROP Drops all incoming traffic
sudo iptables -A INPUT -s 192.168.0.254 -j DROP Blocks all connections associated with the IP address of 192.168.0.254