Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Quick question but Gooling has not revealed an answer. When I do iptables -L, it seems to lag on displaying items in where I have limited the source to internal ips 192.168.0.0/24

The whole listing takes about 30 seconds to display.

I just want to know: Does this affect the speed of my incoming connections or is this simply a side effect of having all these ranges within my iptables rules?

Thanks!

share|improve this question

1 Answer

up vote 13 down vote accepted

Include the -n option so it doesn't try to use DNS to resolve names for every ip address, network and port. Then it will be fast.

share|improve this answer
4  
I generally like iptables -vnL --line-numbers for my listing command. Keep in mind by default you don't see all the tables, for instance, the nat table. To see that nat table: -t nat – Kyle Brandt Nov 17 '09 at 17:50
Thanks, that makes sense. :) – Bartek Nov 17 '09 at 17:52

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.