Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Sep 2018 19:45:10 +0000
From:      bugzilla-noreply@freebsd.org
To:        ipfw@FreeBSD.org
Subject:   [Bug 231143] Ipfw fwd with route(8) RTF_BLACKHOLE and fast forwarding on FreeBSD 11
Message-ID:  <bug-231143-8303-CISH3AfsDV@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-231143-8303@https.bugs.freebsd.org/bugzilla/>
References:  <bug-231143-8303@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=3D231143

--- Comment #5 from Runer <run00er@gmail.com> ---
(In reply to Eugene Grosbein from comment #4)
Excellent! This patch works for Me.

cd /usr/src && patch < /path/to/patch
|Index: sys/netinet/ip_fastfwd.c
|=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
|--- sys/netinet/ip_fastfwd.c   (revision 338011)
|+++ sys/netinet/ip_fastfwd.c   (working copy)
--------------------------
Patching file sys/netinet/ip_fastfwd.c using Plan A...
Hunk #1 succeeded at 151.
Hunk #2 succeeded at 292.
Hunk #3 succeeded at 312.
Hunk #4 succeeded at 338.
Hunk #5 succeeded at 361.

route add default 127.0.0.1 -blackhole -iface
Internet:
Destination        Gateway            Flags     Netif Expire
default            127.0.0.1          USB         lo0

traffic from the address from table(1) is forwarded.
ipfw show
00100 139 9466 fwd 10.0.0.5 ip from table(1) to not 10.0.0.0/8 in via vtnet0

icmp not from table(1) address, is silently dropped (-blackhole)

Many thanks! Great work! Good luck to you!

--=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-231143-8303-CISH3AfsDV>