Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

It is currently Fri Dec 01, 2023 1:32 am

Firewals, computer, server and network security, kernel and applications security of FreeBSD/Linux/AIX systems.

Author Message
Post  Post subject: Iptables: List rules as commands  |  Posted: Sun Mar 15, 2015 5:52 pm

Joined: Tue Aug 04, 2009 9:16 am
Posts: 250


Iptables: List rules as commands

To list Iptables rules as commands ready to be entered, use the -S iptables option:
-S, --list-rules [chain]
Print all rules in the selected chain. If no chain is selected, all chains are printed like iptables-save. Like every other iptables command, it applies
to the specified table (filter is the default).

List iptables forward rules as commands

# iptables -S

List iptables NAT rules as commands

# iptables -S -t nat

Display posts from previous:  Sort by  
E-mail friendPrint view
Who is online
Users browsing this forum: No registered users and 0 guests
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
cronNews News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list

Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]