]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Allow ipfw to forward to a destination that is specified by a table.
authorJulian Elischer <julian@FreeBSD.org>
Thu, 17 Aug 2006 22:49:50 +0000 (22:49 +0000)
committerJulian Elischer <julian@FreeBSD.org>
Thu, 17 Aug 2006 22:49:50 +0000 (22:49 +0000)
commitc487be961ac92a1af881053925347aa2575e6490
tree13d3659c8c675327f2a39e3b2a6d78953ca0abc2
parent5657c870dcd6b3d59a2e12bae1353c2b1f513b8e
Allow ipfw to forward to a destination that is specified by a table.
for example:
  fwd tablearg ip from any to table(1)
where table 1 has entries of the form:
1.1.1.0/24 10.2.3.4
208.23.2.0/24 router2

This allows trivial implementation of a secondary routing table implemented
in the firewall layer.

I expect more work (under discussion with Glebius) to follow this to clean
up some of the messy parts of ipfw related to tables.

Reviewed by: Glebius
MFC after: 1 month
sbin/ipfw/ipfw.8
sbin/ipfw/ipfw2.c
sys/netinet/ip_fw.h
sys/netinet/ip_fw2.c