are sent to the uplink (ConnectTo), which will have to forward them for
us (kernel should do that). This is for people behind firewalls.
{ "PingTimeout", pingtimeout, TYPE_INT },
{ "TapDevice", tapdevice, TYPE_NAME },
{ "KeyExpire", keyexpire, TYPE_INT },
+ { "ProxyMode", proxymode, TYPE_BOOL },
{ NULL, 0, 0 }
};
allowconnect,
pingtimeout,
keyexpire,
+ proxymode
} which_t;
typedef struct config_t {
*/
int send_packet(ip_t to, vpn_packet_t *packet)
{
+ config_t const *cfg;
conn_list_t *cl;
cp
+ if(!(cfg = get_config_val(proxymode))) /* In case we are in proxy mode, just send everything to our uplink. */
+ cl = conn_list;
+ else
+ cl = lookup_conn(to);
+
if((cl = lookup_conn(to)) == NULL)
{
if(debug_lvl > 2)