1. A method for routing packets from an endpoint to a gateway, the method comprising: (a) receiving, by a driver of a process for providing secure communications to a gateway from an endpoint, a filtering table; (b) intercepting, by the driver, an outbound packet, the driver terminating a first transport layer connection with an application of the endpoint; (c) transmitting, by the driver, the outbound packet to a client application, responsive to the filtering table, the client application providing a second transport layer connection from the endpoint to the gateway; and (d) transmitting, by the client application, the outbound packet to the gateway responsive to an application of a policy to the outbound packet.