<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=IPTABLES_quick_command_list</id>
		<title>IPTABLES quick command list - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=IPTABLES_quick_command_list"/>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=IPTABLES_quick_command_list&amp;action=history"/>
		<updated>2026-06-04T06:17:06Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://briansnelson.com/index.php?title=IPTABLES_quick_command_list&amp;diff=880&amp;oldid=prev</id>
		<title>Brian: Created page with &quot;==IPTABLES quick command list==  Iptables is the default and powerful firewall that works on almost all Linux version including Ubuntu and Fedora. Here I have listed some impo...&quot;</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=IPTABLES_quick_command_list&amp;diff=880&amp;oldid=prev"/>
				<updated>2016-03-19T15:13:38Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;==IPTABLES quick command list==  Iptables is the default and powerful firewall that works on almost all Linux version including Ubuntu and Fedora. Here I have listed some impo...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==IPTABLES quick command list==&lt;br /&gt;
&lt;br /&gt;
Iptables is the default and powerful firewall that works on almost all Linux version including Ubuntu and Fedora. Here I have listed some important commands and a short description of each command for quick help. It can help people who already know little Iptables.&lt;br /&gt;
&lt;br /&gt;
 manage chain:&lt;br /&gt;
 # iptables -N new_chain				// create a chain&lt;br /&gt;
 # iptables -E new_chain old_chain  		// edit a chain&lt;br /&gt;
 # iptables -X old_chain				// delete a chain  &lt;br /&gt;
 &lt;br /&gt;
 redirecting packet to a user chain:&lt;br /&gt;
 # iptables -A INPUT -p icmp -j new_chain &lt;br /&gt;
 &lt;br /&gt;
 listing rules:&lt;br /&gt;
 # iptables -L					// list all rules of all tables&lt;br /&gt;
 # iptables -L -v				// display rules and their counters&lt;br /&gt;
 # iptables -L -t nat				// display rules for a specific tables&lt;br /&gt;
 # iptables -L -n --line-numbers			// listing rules with line number for all tables&lt;br /&gt;
 # iptables -L INPUT -n --line-numbers		// listing rules with line number for specific table&lt;br /&gt;
 &lt;br /&gt;
 manage rules:&lt;br /&gt;
 # iptables -A chain				// append rules to the bottom of the chain&lt;br /&gt;
 # iptables -I chain [rulenum]			// insert in chain as rulenum (default at the top or 1)&lt;br /&gt;
 # iptables -R chain rulenum			// replace rules with rules specified for the rulnum&lt;br /&gt;
 # iptables -D chain	rulenum			// delete rules matching rulenum (default 1)&lt;br /&gt;
 # iptables -D chain				// delete matching rules &lt;br /&gt;
 &lt;br /&gt;
 change default policy:&lt;br /&gt;
 # iptables -P chain target			// change policy on chain to target&lt;br /&gt;
 # iptables -P INPUT DROP			// change INPUT table policy to DROP&lt;br /&gt;
 # iptables -P OUTPUT DROP			// change OUTPUT chain policy to DROP&lt;br /&gt;
 # iptables -P FORWARD DROP			// change FORWARD chain policy to DROP&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	</feed>