I'm researching a project for dynamic NATing of out internal servers. The situation is this:
We have 15 internal servers generating outbound traffic. Currently there is no NATing of the source addresses. What we are interested in is NATing the source address *sometimes* but not *all* the time, with that decision being *very* dynamic and up to the application that is running on the 15 internal servers. What I've been considering is whether it would be practicle to build an API to the NAT mapping rules to add/delete rules under the control of the servers that are generating the outbound traffic. The machine running this modified ipfilt would be seperate from the 15 servers and would of course be the router to the outside. For example, server A would bind to a specific interface & port, it would then contact this API on the ipfilt machine to add a rule for the IP address *and* port to NAT to another address. When the application on server A closes the connection it would contact the API and remove the rule. What I am concerned about is the impact of *lots* of rule adds/deletes on the performance of the machine running ipfilt and whether it is even practical.
