iptables -L pretty slow. Is this normal?

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!


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.


For me it was slow and also I was getting this error

sudo: unable to resolve host selleraz-proxy-service: Resource temporarily unavailable

I add

127.0.0.1   machine-hostname

to /etc/hosts It worked so well like a charm :)