LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-23-2015, 04:20 AM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 504

Rep: Reputation: 31
output of iptables ?


Friends ,

1)
/sbin/iptables -P input DROP
/sbin/iptables -P output DROP
/sbin/iptables -P forward DROP

For the above rules ,How I see the output of the above rules using :

iptables -L or other ?


2) Without save the iptables rules , How can I want to see all the iptables executed rules , output like the below way :

----------
*filter
:INPUT DROP [782:87634]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [120:12410]
-A INPUT -s 172.20.210.31 -j ACCEPT
----------

Last edited by shipon_97; 02-23-2015 at 04:26 AM.
 
Old 02-23-2015, 05:42 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Best way to list current rules in use is using this command:
Code:
iptables-save
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables details output Ammad Linux - Security 1 10-31-2011 01:49 PM
IPTables Output Grook93 Linux - Security 3 11-30-2006 01:37 PM
iptables -P vs :OUTPUT in /etc/sysconfig/iptables TomF Linux - Security 2 04-14-2005 10:50 PM
iptables OUTPUT problem.. zer0python Linux - Networking 4 10-01-2003 06:49 PM
iptables output to monitor lumux Linux - Networking 1 08-24-2003 03:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration