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

FAQ
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
mandrei99
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

Offline
 

Iptables: List rules as commands

To list Iptables rules as commands ready to be entered, use the -S iptables option:
Quote:
-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


Code:
# iptables -S

List iptables NAT rules as commands


Code:
# iptables -S -t nat





Top
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 ]



phpBB SEO