Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] iptables --list
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mistake25
Tux's lil' helper
Tux's lil' helper


Joined: 20 May 2008
Posts: 144

PostPosted: Sun Sep 19, 2010 7:20 pm    Post subject: [solved] iptables --list Reply with quote

hi,

everytime i run "iptables --list" iptables shows my rules, but some ips are resolved to hostnames, is there some way how to disable this, just make iptables to show list of ip adresses?

thakns


Last edited by mistake25 on Mon Sep 20, 2010 11:57 am; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 16043

PostPosted: Sun Sep 19, 2010 8:38 pm    Post subject: Reply with quote

So you want only numeric output? ;)
Back to top
View user's profile Send private message
maxime1986
n00b
n00b


Joined: 23 Oct 2009
Posts: 74

PostPosted: Mon Sep 20, 2010 3:21 am    Post subject: Reply with quote

man iptables :
Quote:
-L, --list [chain]
List all rules in the selected chain. If no chain is selected, all chains are listed. Like every other iptables command,
it applies to the specified table (filter is the default), so NAT rules get listed by
iptables -t nat -n -L
Please note that it is often used with the -n option, in order to avoid long reverse DNS lookups. It is legal to specify
the -Z (zero) option as well, in which case the chain(s) will be atomically listed and zeroed. The exact output is
affected by the other arguments given. The exact rules are suppressed until you use
iptables -L -v


Quote:
-n, --numeric
Numeric output. IP addresses and port numbers will be printed in numeric format. By default, the program will try to display them as host names, network names, or services (whenever applicable).
Back to top
View user's profile Send private message
mistake25
Tux's lil' helper
Tux's lil' helper


Joined: 20 May 2008
Posts: 144

PostPosted: Mon Sep 20, 2010 11:57 am    Post subject: Reply with quote

thank you, this is especially what i was looking for
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum