Page MenuHomeFreeBSD

Add ability to forward IPv4 packets trough IPv6 only router
AbandonedPublic

Authored by ae on Dec 17 2018, 11:43 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 28, 1:05 PM
Unknown Object (File)
Tue, Jan 10, 10:40 AM
Unknown Object (File)
Dec 25 2022, 7:54 PM
Unknown Object (File)
Dec 11 2022, 9:24 PM

Details

Reviewers
None
Group Reviewers
network
Summary

This patch add basic support to add and use IPv4 routes with IPv6 next hop.
Now it is possible to add IPv4 route entry with IPv6 next hop like this:

# route add 192.168.0.0/24 -gateway6 fe80::1%re0
add net 192.168.0.0: gateway fe80::1%re0
# netstat -rnf inet | grep 192.168
192.168.0.0/24     fe80::1%re0        UGS         re0

And when layer2 code is trying to resolve L2 address it will use NDP.
There are some pieces of code that needs to be fixed, e.g. firewall based forwarding.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 21605