Redirect functionality in ng_nat
Christopher Cowart
ccowart at rescomp.berkeley.edu
Sat Apr 12 22:53:39 UTC 2008
Hello,
I'm running a 7.0-RELEASE machine. I've backported the 7-STABLE for
ng_nat, because I'm really interested in the static NAT features from
libalias.
ng_nat(4) says:
| NGM_NAT_REDIRECT_ADDR (redirectaddr)
| Redirect traffic for public IP address to a machine on the local
| network. This function is known as static NAT. The following
| struct ng_nat_redirect_addr must be supplied as argument.
|
| struct ng_nat_redirect_addr {
| struct in_addr local_addr;
| struct in_addr alias_addr;
| char description[NG_NAT_DESC_LENGTH];
| };
|
| Unique ID for this redirection is returned as response to this
| message.
I'm a little confused on exactly how to pass a struct as a message to a
netgraph node via ngctl. What am I missing here?
Thanks,
--
Chris Cowart
Network Technical Lead
Network & Infrastructure Services, RSSP-IT
UC Berkeley
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 825 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20080412/8ef10f03/attachment.pgp
More information about the freebsd-net
mailing list