IP Routing

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

Moderator: Qbik Staff

IP Routing

Postby mrcloc » 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
mrcloc
 
Posts: 3
Joined: Apr 03 12 9:27 am

Re: IP Routing

Postby adrien » 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
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland

Re: IP Routing

Postby mrcloc » Apr 03 12 8:31 pm

Hi Adrien,

Thank you for your reply.

Marc
mrcloc
 
Posts: 3
Joined: Apr 03 12 9:27 am

Re: IP Routing

Postby mrcloc » 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
mrcloc
 
Posts: 3
Joined: Apr 03 12 9:27 am

Re: IP Routing

Postby adrien » 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
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland


Return to WinGate

Who is online

Users browsing this forum: No registered users and 2 guests