On Fri, 3 May 2002 [EMAIL PROTECTED] wrote:

I feel pretty rested today as well.

mohahaha


> Date: Fri, 3 May 2002 13:24:56 -0400
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: 3.4.25 vs 3.4.27 "keep state"
>
> I've been running IP Filter 3.4.25 on Solaris 8 (SPARC) successfully for a
> few weeks now, and I decided to upgrade to 3.4.27.  Since I upgraded, I've
> been running into some weirdness.   Using 3.4.27, I can connect to most
> hosts, but I'm unable to SSH to my ISP; the connection hangs and eventually
> times out (the three-way handshake succeeds, but all the other inbound
> packets are blocked).  3.4.25 works with the same ruleset, however.  I've
> reduced my ruleset to the following for this test:
>
> [dione:/etc/opt/ipf]# cat ipf.conf
> block in log on hme0 all head 100
> block out log on hme0 all head 150
> pass out log quick proto tcp from any to any flags S/SA keep state group
> 150
> pass out log quick proto udp from any to any keep state group 150
>
>
> #################################
> [Using IP Filter (64-bit) 3.4.27]
> #################################
> [dione:~]# tcpdump host shell.theworld.com
> tcpdump: listening on hme0
> 12:31:14.068736 dione.hyperion.com.32810 > shell.TheWorld.com.ssh: S
> 428551739:428551739(0) win 24820 <nop,nop,sackOK,mss 1460> (DF)
> 12:31:14.093580 shell.TheWorld.com.ssh > dione.hyperion.com.32810: S
> 1694863328:1694863328(0) ack 428551740 win 49152 <mss 512,nop,wscale
> 2,nop,nop,sackOK>
> 12:31:14.093604 dione.hyperion.com.32810 > shell.TheWorld.com.ssh: . ack 1
> win 25088 (DF)
> 12:31:14.123269 shell.TheWorld.com.ssh > dione.hyperion.com.32810: P
> 1:24(23) ack 1 win 49152
> 12:31:14.352855 shell.TheWorld.com.ssh > dione.hyperion.com.32810: P
> 1:24(23) ack 1 win 49152
> 12:31:15.575842 shell.TheWorld.com.ssh > dione.hyperion.com.32810: P
> 1:24(23) ack 1 win 49152
> 12:31:18.016697 shell.TheWorld.com.ssh > dione.hyperion.com.32810: P
> 1:24(23) ack 1 win 49152
> 12:31:22.915558 shell.TheWorld.com.ssh > dione.hyperion.com.32810: P
> 1:24(23) ack 1 win 49152
> ...
>
> May  3 12:31:14 dione.hyperion.com ipmon[136]: [ID 702911 local0.notice]
> 12:31:14.068706 hme0 @150:1 p 139.64.53.16,32810 -> 199.172.62.252,22 PR
> tcp len 20 48 -S K-S OUT
> May  3 12:31:14 dione.hyperion.com ipmon[136]: [ID 702911 local0.notice]
> 12:31:14.093453 hme0 @150:1 p 199.172.62.252,22 -> 139.64.53.16,32810 PR
> tcp len 20 52 -AS K-S IN
> May  3 12:31:14 dione.hyperion.com ipmon[136]: [ID 702911 local0.notice]
> 12:31:14.093560 hme0 @150:1 p 139.64.53.16,32810 -> 199.172.62.252,22 PR
> tcp len 20 40 -A K-S OUT
> May  3 12:31:14 dione.hyperion.com ipmon[136]: [ID 702911 local0.warning]
> 12:31:14.123255 hme0 @0:1 b 199.172.62.252,22 -> 139.64.53.16,32810 PR tcp
> len 20 63 -AP IN
> May  3 12:31:15 dione.hyperion.com ipmon[136]: [ID 702911 local0.warning]
> 12:31:14.352846 hme0 @0:1 b 199.172.62.252,22 -> 139.64.53.16,32810 PR tcp
> len 20 63 -AP IN
> May  3 12:31:16 dione.hyperion.com ipmon[136]: [ID 702911 local0.warning]
> 12:31:15.575831 hme0 @0:1 b 199.172.62.252,22 -> 139.64.53.16,32810 PR tcp
> len 20 63 -AP IN
> May  3 12:31:18 dione.hyperion.com ipmon[136]: [ID 702911 local0.warning]
> 12:31:18.016688 hme0 @0:1 b 199.172.62.252,22 -> 139.64.53.16,32810 PR tcp
> len 20 63 -AP IN
> May  3 12:31:23 dione.hyperion.com ipmon[136]: [ID 702911 local0.warning]
> 12:31:22.915550 hme0 @0:1 b 199.172.62.252,22 -> 139.64.53.16,32810 PR tcp
> len 20 63 -AP IN
> ...
>
> [dione:~]# ipfstat -sl
> 139.64.53.16 -> 199.172.62.252 ttl 863996 pass 0x5016 pr 6 state 4/3
>         pkts 4 bytes 180        32810 -> 22 198b2e3c:65058ff8 0<<254:49152
> <<2
>         pass out log quick keep state   IPv4
>         pkt_flags & 2(b2) = b,          pkt_options & ffffffff = 0
>         pkt_security & ffff = 0, pkt_auth & ffff = 0
>         interfaces: in -,hme0 out hme0,-
>
>
> #################################
> [Using IP Filter (64-bit) 3.4.25]
> #################################
> [dione:~]# tcpdump host shell.theworld.com
> tcpdump: listening on hme0
> 12:47:14.045063 dione.hyperion.com.32791 > shell.TheWorld.com.ssh: S
> 1982022046:1982022046(0) win 24820 <nop,nop,sackOK,mss 1460> (DF)
> 12:47:14.064903 shell.TheWorld.com.ssh > dione.hyperion.com.32791: S
> 1847046976:1847046976(0) ack 1982022047 win 49152 <mss 512,nop,wscale
> 2,nop,nop,sackOK>
> 12:47:14.064925 dione.hyperion.com.32791 > shell.TheWorld.com.ssh: . ack 1
> win 25088 (DF)
> 12:47:14.088233 shell.TheWorld.com.ssh > dione.hyperion.com.32791: P
> 1:24(23) ack 1 win 49152
> 12:47:14.088254 dione.hyperion.com.32791 > shell.TheWorld.com.ssh: . ack 24
> win 25088 (DF)
>
> May  3 12:47:14 dione.hyperion.com ipmon[137]: [ID 702911 local0.notice]
> 12:47:14.045033 hme0 @150:1 p 139.64.53.16,32791 -> 199.172.62.252,22 PR
> tcp len 20 48 -S K-S OUT
> May  3 12:47:14 dione.hyperion.com ipmon[137]: [ID 702911 local0.notice]
> 12:47:14.064784 hme0 @150:1 p 199.172.62.252,22 -> 139.64.53.16,32791 PR
> tcp len 20 52 -AS K-S IN
> May  3 12:47:14 dione.hyperion.com ipmon[137]: [ID 702911 local0.notice]
> 12:47:14.064886 hme0 @150:1 p 139.64.53.16,32791 -> 199.172.62.252,22 PR
> tcp len 20 40 -A K-S OUT
> May  3 12:47:14 dione.hyperion.com ipmon[137]: [ID 702911 local0.notice]
> 12:47:14.088157 hme0 @150:1 p 199.172.62.252,22 -> 139.64.53.16,32791 PR
> tcp len 20 63 -AP K-S IN
> May  3 12:47:14 dione.hyperion.com ipmon[137]: [ID 702911 local0.notice]
> 12:47:14.088219 hme0 @150:1 p 139.64.53.16,32791 -> 199.172.62.252,22 PR
> tcp len 20 40 -A K-S OUT
>
> [dione:/]# ipfstat -sl
> 139.64.53.16 -> 199.172.62.252 ttl 863991 pass 0x5016 pr 6 state 4/4
>         pkts 5 bytes 243        32791 -> 22 7623419f:6e17b358 25088:49152
>         pass out log quick keep state   IPv4
>         pkt_flags & 2(b2) = b,          pkt_options & ffffffff = 0
>         pkt_security & ffff = 0, pkt_auth & ffff = 0
>         interfaces: in -,hme0 out hme0,-
>
> Any ideas or pointers would be appreciated.
>
>   Regards,
>     Greg
>

/*  Jason S. Cash  -  Systems Programmer
    IT/Network and Systems Services
    University of Delaware, Newark Delaware
    e:[EMAIL PROTECTED]  v: 302-831-0461         */

Reply via email to