[Bug 231143] Ipfw fwd with route(8) RTF_BLACKHOLE and fast forwarding on FreeBSD 11

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Sep 4 19:45:12 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231143

--- Comment #5 from Runer <run00er at 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
|===================================================================
|--- 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!

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


More information about the freebsd-ipfw mailing list