Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
TCP Sequence numbers changing
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Oliver Humpage  
View profile  
 More options Oct 13, 2:02 am
Newsgroups: bit.listserv.openbsd-pf
From: oli...@bittern.org.uk (Oliver Humpage)
Date: 12 Oct 2009 09:02:01 -0700
Local: Tues, Oct 13 2009 2:02 am
Subject: TCP Sequence numbers changing
Hi,

I have a suspicion that route-to is changing sequence numbers on TCP packets.

My pf-based router is set up so that packets travelling between
internal hosts and the internet get routed through a separate IPS box:
imagine the IPS as basically a plugin to the router, and packets get
temporarily diverted through it on their way out.

Say a packet from an internal host enters $int_if, and matches a rule
which sets it to route-to ($ips_if1, $ips_ip1). When I tcpdump on
$int_if and $ips_if1, I can see the packet's SN is different on the
two interfaces.

Now, with my setup, the IPS sends the packet back to the router (on
$ips_if2) to be sent out to the internet. If the packet matches a
block rule on $ext_if, the router sends a RST packet back to the
internet host directly, without sending it back via the IPS. Because
the SN has changed, this means the SN on the RST doesn't match, and
the host ignores the RST.

As I understand it, there's no way to apply pf rules to pf-generated
packets such as RSTs, so there's no way to force the RST back through
the IPS.

I don't have any "scrub" or "modulate state" rules, and packets which
don't have a route-to applied keep their SNs unchanged.

Is there any way at all to stop route-to changing the TCP sequence number?

(Or if I'm mistaken in my diagnosis and it's not route-to's fault, any
ideas what might be causing the SN to change? State policy is
if-bound, and $ips_if1 doesn't keep state on any packets.)

This is the pf included on FreeBSD 7.2.

Thanks.

Oliver.

PS please cc me into replies, since the list server rejects my
"subscribe" requests as spam :(


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google