netgraph: Add RFC 6598/Carrier Grade NAT support to ng_nat.
This extends upon the RFC 6598 support to libalias/ipfw in r357092.
Submitted by: Neel Chauhan <neel AT neelc DOT org>
Differential D23461
netgraph: Add RFC 6598/Carrier Grade NAT support to ng_nat nc on Feb 2 2020, 12:18 AM. Authored by Tags Referenced Files
Details
netgraph: Add RFC 6598/Carrier Grade NAT support to ng_nat. This extends upon the RFC 6598 support to libalias/ipfw in r357092. Submitted by: Neel Chauhan <neel AT neelc DOT org> Load the kernel module kldunload ng_ipfw Replace WAN_IP with the WAN IPv4, and WAN_IF with the WAN interface. Set the netgraph rules. ngctl mkpeer ipfw: nat 60 out ngctl name ipfw:60 nat ngctl connect ipfw: nat: 61 in ngctl msg nat: setaliasaddr WAN_IP ngctl msg nat: setmode "{flags=0x100}" Set the ipfw rules. ipfw add 300 netgraph 61 all from any to any in via WAN_IF ipfw add 400 netgraph 60 all from any to any out via WAN_IF Set the sysctl: sysctl net.inet.ip.fw.one_pass=0
Diff Detail
Event TimelineComment Actions Of course, the change is straight forward, but can we please have some words in the man page explaining how the names of the flags match the correspondent names in libalias. |