Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems
Post a reply

IP Routing

Apr 03 12 9:40 am

Hi,

I have 4 different internet gateways that I would like to route IP addresses to. In other words, use the WinGate host as the gateway for everyone on the network and route the users to the different gateways according to their IP addresses. Is it possible to use the TCP Mapping service of WinGate to do this (and to not use the WWW Proxy service at all)?

Thanks,
Marc

Re: IP Routing

Apr 03 12 2:08 pm

Hi

yes, you can use a TCP mapping proxy for this.

In the TCP mapping proxy, set no default mapping, and no specific mappings. the gateway to choose would be done in flow-chart policy associated with the ClientConnect event.

In that policy, to set a gateway for a client, use code like the following

Session.Gateway = "192.168.0.1"

or whatever the gateway IP is. You can do this in an expression evaluator, map lookup item, Lua, Jscript or whatever you like.

Adrien

Re: IP Routing

Apr 03 12 8:31 pm

Hi Adrien,

Thank you for your reply.

Marc

Re: IP Routing

Apr 04 12 3:31 am

Hi Adrien,

I have done the following:
Installed the TCP Mapping Service
On the TCP Mapping Service ClientConnect event added a script to specify the gateway (LUAScript - Session.Gateway="192.168.0.199";
Set no default mapping
Set no specific mappings
Set the client workstation's gateway to the IP address of the WinGate host
Specify multiple gateways on the WinGate host (including 192.168.0.199)

The ClientConnect event runs on the WinGate NAT source.
The ClientConnect event never runs for the TCP Mapping Service source.

Do you have any suggestions?

Thanks,
Marc

Re: IP Routing

Apr 04 12 12:43 pm

Hi Marc

I would check the intercepts tab in the TCP mapping proxy to make sure it's intercepting the correct port numbers.

Regards

Adrien
Post a reply