* lpwa.com:8000 . .
Each line contains four fields:
target,
forward_to,
via_gateway_type
and
gateway.
As usual, the
lasttarget
domain that matches the requested
URL
wins,
and the
*
character alone matches any domain.
The target domain need not be a fully qualified
hostname; it can be a general domain such as
com
or
co.uk
or even just a port number.
For example, because
<a href="http://lpwa.com">LPWA</a>
does not handle
SSL,the line above will typically be followed by a line such as
:443 . . .
to allow SSL transactions to proceed directly. The cautious would also add an entry in their blockfile to stop transactions to port 443 for all but specified trusted sites. If the winning forward_to field is . (the dot character) the proxy connects directly to the server given in the URL, otherwise it forwards to the host and port number specified. The default port is 8000. The via_gateway_type and gateway fields also use a dot to indicate no gateway protocol. The gateway protocols are explained below. The example line above in a forwardfile alone would send everything through port 8000 at lpwa.com with no gateway protocol, and is equivalent to the old -f lpwa.com:8000 with no -g option. For more information see the example file provided with the distribution. Configure with care: no loop detection is performed. When setting up chains of proxies that might loop back, try adding Squid.