Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a way to show the network interfaces via iptables -L in Ubuntu 12.04?

When I execute an iptables -L I get an output like this :

Chain INPUT (policy DROP)
target     prot opt source               destination       
...
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0     
...

which is somehow misleading. First I was thinking, great rule, allows everything until I discovered that this rule is bound to interface localhost.

Is there a way to get an overview which shows the rules and the interfaces at once?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Add -v for the verbose mode.

Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
39050 4448K ACCEPT     all  --  lo     *       0.0.0.0/0            0.0.0.0/0           
 6595  544K ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0           
  419 15084 ACCEPT     2    --  *      *       0.0.0.0/0            0.0.0.0/0           
share|improve this answer
    
perfect, excatly what I wanted –  Chris Mar 25 '13 at 12:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.