Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 May 2016 08:25:00 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-pf@FreeBSD.org
Subject:   [Bug 207598] pf adds icmp unreach on gre/ipsec somehow
Message-ID:  <bug-207598-17777-mvoluArWAW@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-207598-17777@https.bugs.freebsd.org/bugzilla/>
References:  <bug-207598-17777@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207598

--- Comment #6 from Max <maximos@als.nnov.ru> ---
Created attachment 170591
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D170591&action=
=3Dedit
dumps

(In reply to Kristof Provost from comment #5)
Host "A" config:

cloned_interfaces=3D"gre0"
ifconfig_em0=3D"inet 192.168.10.1/24"
defaultrouter=3D"192.168.10.254"
ifconfig_gre0=3D"inet 10.10.1.1 10.10.2.1 tunnel 192.168.10.1 192.168.10.25=
4"

static_routes=3D"rb rc"
route_rb=3D"10.10.2.0/24 10.10.2.1"
route_rc=3D"10.10.3.0/24 10.10.2.1"

pf disabled.


Host "C" config:

cloned_interfaces=3D"gre0"
ifconfig_em0=3D"inet 192.168.30.1/24"
defaultrouter=3D"192.168.30.254"
ifconfig_gre0=3D"inet 10.10.3.1 10.10.2.1 tunnel 192.168.30.1 192.168.30.25=
4"

static_routes=3D"ra rb"
route_ra=3D"10.10.1.0/24 10.10.2.1"
route_rb=3D"10.10.2.0/24 10.10.2.1"

pf disabled.


Host "B" config:

cloned_interfaces=3D"gre0 gre1"
ifconfig_em0=3D"inet 192.168.10.254/24"
ifconfig_em2=3D"inet 192.168.30.254/24"
ifconfig_gre0=3D"inet 10.10.2.1 10.10.1.1 tunnel 192.168.10.254 192.168.10.=
1"
ifconfig_gre1=3D"inet 10.10.2.1 10.10.3.1 tunnel 192.168.30.254 192.168.30.=
1"

static_routes=3D"ra rc"
route_ra=3D"10.10.1.0/24 10.10.1.1"
route_rc=3D"10.10.3.0/24 10.10.3.1"

pf.conf:

set skip on lo

#scrub on gre0 max-mss 1360
scrub on gre1 max-mss 1360

pass all


pfctl -x misc


gre MTU is 1476. So, 1476-28=3D1448 bytes sholud fit MTU.

First, on host "A":
ping -s 1450 -c 1 10.10.3.1
Then, on host "C":
ping -s 1450 -c 1 10.10.1.1

Kernel log on host "B":
May 24 10:57:38 isp kernel: em0: promiscuous mode enabled
May 24 10:57:39 isp kernel: em2: promiscuous mode enabled
May 24 10:58:13 isp kernel: pf_normalize_ip: reass frag 56321 @ 0-1456
May 24 10:58:13 isp kernel: pf_fillup_fragment: reass frag 56321 @
0-1456pf_normalize_ip: reass frag 56321 @ 1456-1458
May 24 10:58:13 isp kernel: pf_fillup_fragment: reass frag 56321 @
1456-1458pf_isfull_fragment: 1458 < 1458?pf_reassemble: complete:
0xfffff8001f4aa300(1478)
May 24 10:58:13 isp kernel: pf_normalize_ip: reass frag 30208 @ 0-1456
May 24 10:58:13 isp kernel: pf_fillup_fragment: reass frag 30208 @
0-1456pf_normalize_ip: reass frag 30208 @ 1456-1458
May 24 10:58:13 isp kernel: pf_fillup_fragment: reass frag 30208 @
1456-1458pf_isfull_fragment: 1458 < 1458?pf_reassemble: complete:
0xfffff8001f662000(1478)
May 24 10:58:39 isp kernel: pf_normalize_ip: reass frag 30464 @ 0-1456
May 24 10:58:39 isp kernel: pf_fillup_fragment: reass frag 30464 @
0-1456pf_normalize_ip: reass frag 30464 @ 1456-1458
May 24 10:58:39 isp kernel: pf_fillup_fragment: reass frag 30464 @
1456-1458pf_isfull_fragment: 1458 < 1458?pf_reassemble: complete:
0xfffff8001f661d00(1478)
May 24 10:58:39 isp kernel: pf_normalize_ip: reass frag 57601 @ 0-1456
May 24 10:58:39 isp kernel: pf_fillup_fragment: reass frag 57601 @
0-1456pf_normalize_ip: reass frag 57601 @ 1456-1458
May 24 10:58:39 isp kernel: pf_fillup_fragment: reass frag 57601 @
1456-1458pf_isfull_fragment: 1458 < 1458?pf_reassemble: complete:
0xfffff8001f4aa100(1478)
May 24 10:58:56 isp kernel: em0: promiscuous mode disabled
May 24 10:58:57 isp kernel: em2: promiscuous mode disabled

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-207598-17777-mvoluArWAW>