ProtoWrap has been coded in a flexible enough way to allow for very different
ways to solve the problems described in chapter 1. The most
common ways of calling ProtoWrap will be described in this section. They will
be accompanied by sample code showing how such a scheme would work. For the
sample code, we will assume that the server's address is 192.168.0.1, listening
both to port 25 (SMTP) and 110 (POP3). Servers will be running Linux distributions
based on kernel 2.2.x. If a firewall is assumed, it will be set up with
OpenBSD 2.8 (ipf/ipnat), and its IP address will be 192.168.0.254. The LAN will be connected on interface ep1, and the Internet connection will
be on ep0. The port 10025 was arbitrarily chosen as the port on which the wrapper
will be listening on.
Of course, a single system can run with many of the following configurations at the same time, with each service having a different behavior.