Unix Technical Forum

Re: scrub reassemble tcp and nat causes problems with some sites

This is a discussion on Re: scrub reassemble tcp and nat causes problems with some sites within the lucky.openbsd.misc forums, part of the OpenBSD category; --> Argh - It might help if I explain more. I have an OpenBSD 3.8 system running as a transparent ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > lucky.openbsd.misc

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 06:51 AM
Daniel E. Hassler
 
Posts: n/a
Default Re: scrub reassemble tcp and nat causes problems with some sites

Argh - It might help if I explain more. I have an OpenBSD 3.8 system
running as a transparent packet filter (TPF).
The OS X system is inside ($lanif). Apple's network - CIDR 17/8 is
outside ($wanif). A Cisco PIX is doing NAT. IP's on the $wanif side
that are inside the PIX are considered as DMZ. IP's on the $lanif side
are considered LAN.

WAN<--->PIX/NAT<--->DMZ<--->TPF<--->LAN<--->OS X

Whenever I put a scrub rule with reassemble tcp on $wanif and/or $lanif
I have trouble with some sites. (e.g. Apple's "Software Update").
setting debug to loud I get the messages I mention below.

-Dan

Daniel E. Hassler wrote:

> More info - I ran a test scenario.
> Here is a sample of the messages I get via syslog with set debug loud
> and scrub with reassemble tcp trying to run OS X's "Software Update".
>
> Jul 19 19:42:37 obsd38 /bsd: pf_normalize_tcp_stateful: Did not
> receive expected RFC1323 timestamp
> Jul 19 19:42:37 obsd38 /bsd: TCP 192.168.1.14:65108 192.168.1.14:65108
> 17.250.248.95:80 [lo=4276925920 high=4276942304 win=65535 modulator=0
> wscale=0] [lo=708430922 high=708496457 win=16384 modulator=0 wscale=0]
> 9:4 A
>
> -Dan
>
> Daniel E. Hassler wrote:
>
>> Hi Walter,
>>
>> I've seen this behavior also. When I 'set debug loud' I got more
>> information recorded via syslog.
>> Some stuff about RFC1323 and bad-timestamp errors.
>> Below is a section of a pf.conf file. It would be interesting to know
>> if you get similar results with
>> set debug loud when trying to access problem sites.
>>
>> ################################################## ##############################
>>
>> # NORMALIZATION: reduce/resolve ambiguities.
>> #
>> scrub on $admif all random-id reassemble tcp
>> #scrub on $lanif all random-id reassemble tcp
>> #scrub on $wanif all random-id reassemble tcp
>> #
>> # Problem using "reassemble tcp" on $lanif and/or $wanif
>> # Mac OS X "software update" fails.
>> # bad-timestamp counter increments, RFC1323 errors in syslog with
>> debug loud
>> # All else works fine including other http on OS X. TBD: investigate
>> further.
>> #
>> scrub on $lanif all random-id fragment reassemble
>> scrub on $wanif all random-id fragment reassemble
>>
>> -Dan
>>
>> Walter Haidinger wrote:
>>
>>> Hi!
>>>
>>> I'm running OpenBSD 3.9 GENERIC as a NAT router.
>>>
>>> If I add the "reassemble tcp" option to my scrub rule in pf.conf,
>>> I have trouble connecting to some sites, particulary ebay (ebay.de,
>>> ebay.at and ebay.com as well as e.g. kaufen.ebay.de) and
>>> some other few sites, from a machine behind the NAT router.
>>> Connects time out or have long delays if the site responds at all.
>>> If connecting directly from OpenBSD, using lynx or squid running on
>>> the router, there is no problem.
>>>
>>> If I omit "reassemble tcp" everything works fine, i.e. with:
>>> scrub all no-df fragment reassemble random-id
>>>
>>> I've never noticed the problem before because I was running the
>>> squid proxy on the router. Now I've moved it to a different machine
>>> which is NATted too. Please note that it is not a squid issue
>>> as timeouts occur regardless of proxy use if on a NATted machine.
>>>
>>> Unfortunately I cannot determine why only some sites have troubles
>>> and that's why I seeking advice here on howto further diagnose
>>> the problem.
>>>
>>> Any hints are appreciated!
>>>
>>> Regards, Walter
>>>
>>>
>>>
>>>

>>

>


--
_ _ _
__| | __ _ _ __ | |__ __ _ ___ ___| | ___ _ __
/ _` |/ _` | '_ \ | '_ \ / _` / __/ __| |/ _ \ '__|
| (_| | (_| | | | | | | | | (_| \__ \__ \ | __/ |
\__,_|\__,_|_| |_| |_| |_|\__,_|___/___/_|\___|_|

hassler@speakeasy.net

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:36 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com