[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-ipfw
Subject:    Re: ipfw2
From:       AMAKAWA Shuhei <sa264 () cam ! ac ! uk>
Date:       2003-01-31 7:58:27
[Download RAW message or body]

At Thu, 30 Jan 2003 10:25:35 +0500,
Sergey Klusov wrote:
> 
> ipfw add 50 divert natd all from any to any via ${extif}
> ipfw add 100 check-state
> ipfw add 200 deny log tcp from any to any established
> ipfw add 300 permit tcp from any to any setup
> 
> almost always there is a logged message like this, WHEN the connection
> terminates
> Everything works fine but full log of this:
> 
> Jan 10 12:04:24 tower /kernel: ipfw: 200 Deny TCP 217.66.99.188:80 193.111.x.x:1147 in via rl1
> 
> i've tried to intercept this packets with tcpdump and figured out,
> what those packets logged are TCP packets with FIN flag. And it seems,
> that many hosts send multiple FIN packets, wich causes to remove
> dynamic rule on first FIN packet and then log that message above on
> all subsequent packets.
> Also i must notice that it is not diverted packets logged, because we
> use squid, which is on the same host. So i doubt what this is a NAT
> issue.
> 
> Any ideas?

I think you keep-state at 300.

Does
sysctl net.inet.ip.fw.dyn_fin_lifetime=4
possibly change anything?

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ipfw" in the body of the message
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic