Re: nat holding onto entries

This is a discussion on Re: nat holding onto entries within the IPFilter forums, part of the System Security and Security Related category; mike, that's normal. ipf is waiting for TCP FIN+ACK's to go past, indicating that the state can ...


Go Back   Usenet Forums > System Security and Security Related > IPFilter

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-11-2003
Jim Sandoz
 
Posts: n/a
Default Re: nat holding onto entries


mike,

that's normal. ipf is waiting for TCP FIN+ACK's to go past,
indicating that the state can be torn down. but in the case
you note below, since the connection is interrupted and ip's
changed, ipf will never see the FIN+ACK's. but don't worry,
ipf's internal timers will eventually kill off these states;
so you don't have to manually stand guard for this situation.

if you look at the output of "ipfstat -t" you will note that
for these "abandoned" states, the ttl is decrementing towards
zero. when the ttl reaches zero the connection will in fact
be deleted from ipf's state table, preventing the table from
ending up full of "stale" entries.

IIRC the default ipf timeout for TCP states is 7 days. you
don't mention what OS you are running but you can change this
timeout at compile or boot time. param is "tcpidletimeout".

see the solaris /etc/system example in
http://www.phildev.net/ipf/IPFsolaris.html#10

in *bsd land you can do the same in sysctrl.conf or some such.

i use tcpidletimeout = 24 hours without ill effects. but if
you have applications that sit idle for longer than that you
may want to adjust accordingly.

regards,
jim



Michael Grant wrote:

> I use ipnat on my dynamic dialup ip connection. I basically leave the
> connection up all the time but from time to time my isp bumps me off
> and it dials right back up.
>
> I have noticed that my connections which are still up when the line
> bounced keep the old ip address in the nat table. I have to manually
> execute 'ipnat -F' to flush the entries. Is this a known problem?
>
> I'm using ipfilter 3.4.31.
>
> Michael Grant


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:19 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0