(E-Mail Removed) wrote:
> Hi,
> We have a network sitting behind an Iptables firewall. The gateway
> firewall is running on RH 8.0 with kernel 2.4-20. We have a problem
> that we never get any DNS name resolution in less than two tries. We
> have observed the following messages in our /var/log/messages. Is it
> someway related with the our DNS hassle?
> ............................
> Apr 21 17:07:44 kernel: NET: 1167 messages suppressed.
> Apr 21 17:07:44 kernel: Neighbour table overflow.
> Apr 21 17:07:49 kernel: NET: 1084 messages suppressed.
> Apr 21 17:07:49 kernel: Neighbour table overflow.
> Apr 21 17:07:54 kernel: NET: 872 messages suppressed.
> Apr 21 17:07:54 kernel: Neighbour table overflow.
> Apr 21 17:07:55 named[587]: client 68.142.251.133#51902: error sending
> response: not enough free resources
> Apr 21 17:07:57 named[587]: client 68.142.251.133#50982: error sending
> response: not enough free resources
> Apr 21 17:07:59 kernel: NET: 1108 messages suppressed.
> Apr 21 17:07:59 kernel: Neighbour table overflow.
> ..................
> Any pointers shall be appreciated.
> Thanks in advance
> Gaur
We had similar problems on some of our firewalls.
There are 2 possible points to have a closer look :
1. the size of the connectiontraking table is too small
check current setting (our firewalls have a "default" of 65528, depends on RAM)
cat /proc/sys/net/ipv4/ip_conntrack_max
and check the current size
cat /proc/net/ip_conntrack | wc -l
if the current size is almost equal to the maximum setting increase by factor of
about 4
echo 262140 >/proc/sys/net/ipv4/ip_conntrack_max
_or_
2. Increase the size of the arp tables !
echo 1024 >/proc/sys/net/ipv4/neigh/default/gc_thresh1
echo 4096 >/proc/sys/net/ipv4/neigh/default/gc_thresh2
echo 8192 >/proc/sys/net/ipv4/neigh/default/gc_thresh3
# (defaults 128 512 1024)
You might add entries to /etc/rc.local or adjust /etc/sysctl.conf to set the
correct parameters.
I think the first solution solved the "Neighbour table overflow" problem.
Bye,
Lothar