Bind redirectionΒΆ
WFP driver allows redirecting the binding for client or server sockets, to make them use a different network interface or port. For example, it is possible to route the traffic of some application/protocol via the required network interface, or to set a different port for listening by some server application.
The bind redirection is defined by rules NF_BINDING_RULE, added to the driver using nf_addBindingRule(). The binding rules are deleted automatically after calling nf_free. It is also possible to delete all rules using nf_deleteBindingRules().