From nobody@FreeBSD.org  Fri Feb 27 18:12:23 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 28E1C106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 27 Feb 2009 18:12:23 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 17ACF8FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 27 Feb 2009 18:12:23 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n1RICMgc050676
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 27 Feb 2009 18:12:22 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n1RICMGi050675;
	Fri, 27 Feb 2009 18:12:22 GMT
	(envelope-from nobody)
Message-Id: <200902271812.n1RICMGi050675@www.freebsd.org>
Date: Fri, 27 Feb 2009 18:12:22 GMT
From: Denis <link@ngc.net.ua>
To: freebsd-gnats-submit@FreeBSD.org
Subject: pf stalls connection when using route-to
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         132176
>Category:       kern
>Synopsis:       [pf] pf stalls connection when using route-to [regression]
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-pf
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 27 18:20:01 UTC 2009
>Closed-Date:    Tue Sep 11 10:59:53 UTC 2012
>Last-Modified:  Tue Sep 11 10:59:53 UTC 2012
>Originator:     Denis
>Release:        7.1
>Organization:
NGC
>Environment:
FreeBSD host.domain.com 7.1-RELEASE-p3 FreeBSD 7.1-RELEASE-p3 #0: Tue Feb 24 09:48:43 CET 2009     root@hostname.domain.com:/usr/obj/usr/src/sys/dell  amd64

>Description:
On 6.3 i used such pf config:
------
if_bce0="bce0"
if_bce0_gw="172.20.51.1"
if_bce1="bce1"

scrub in all

pass out on $if_bce1 route-to ($if_bce0 $if_bce0_gw) from $if_bce0 to any
-------
It is used to such situation:
I have 2 interfaces. default route on bce1
such pf rule makes perly to packets coming from bce0 go out through if_bce0_gw ignoring default gw.

On 7.1 config changed to this one:
---------
pass out on $if_bce1 route-to ($if_bce0 $if_bce0_gw) from $if_bce0 to any no state flags any
---------

On 7.1-p2 it works fine. On 7.1-p3 i can upload via scp to server, but download stalls.
>How-To-Repeat:
install 7.1-p3 on host with 2 network interfaces and apply listed pf config.
then try scp any file from this host.
for example:
server - is host with 7.1-p3
client - any box
run from client:
scp user@server:~/anyfile .

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-pf 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Feb 27 22:30:13 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132176 
State-Changed-From-To: open->feedback 
State-Changed-By: mlaier 
State-Changed-When: Tue Mar 31 13:01:17 UTC 2009 
State-Changed-Why:  
There are no changes to pf or the kernel between 7.1-p2 and 7.1-p3 so 
the error is likely found elsewhere.  Since you mention the bce(4) NIC 
in your configuration you should try the updated bce driver: 
http://lists.freebsd.org/pipermail/freebsd-stable/2009-March/049195.html 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132176 

From: Karsten Schmidt <gugge@guggemand.dk>
To: bug-followup@FreeBSD.org, link@ngc.net.ua
Cc:  
Subject: Re: kern/132176: [pf] pf stalls connection when using route-to [regression]
Date: Tue, 26 May 2009 12:40:52 +0200

 I have the same error on a 7.2 box with a bce device and vlans
 
 #pf.conf
 # send all packets from x.x.x.128/26 to nonlocal addresses through x.x.x.129
 pass out quick route-to ( bce0.11 x.x.x.129 ) from x.x.x.128/26 to 
 !x.x.x.128/26 no state
 
 #default gateway
 91.208.16.1
 
 #ifconfig
 bce0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
         
 options=1bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4>
         ether 00:1f:29:06:85:28
         inet x.x.x.125 netmask 0xffffff80 broadcast x.x.x.127
         media: Ethernet autoselect (1000baseTX <full-duplex>)
         status: active
 bce0.11: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 
 1500
         options=3<RXCSUM,TXCSUM>
         ether 00:1f:29:06:85:28
         inet x.x.x.140 netmask 0xffffffc0 broadcast x.x.x.191
         media: Ethernet autoselect (1000baseTX <full-duplex>)
         status: active
         vlan: 11 parent interface: bce0
 
 -- 
 Karsten
State-Changed-From-To: feedback->closed 
State-Changed-By: glebius 
State-Changed-When: Tue Sep 11 10:59:00 UTC 2012 
State-Changed-Why:  
A good advice was suggested by mlaier@, and PR was put into feedback state. 
Submitter never answered on this, so close the PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132176 
>Unformatted:
