Redirect outgoing connection

Forum for all technical support and trouble shooting of the WinGate VPN.

Moderator: Qbik Staff

Redirect outgoing connection

Postby rametring » Sep 13 11 3:47 pm

Hello.

I installed wingate on my home computer to test and i need redirect outgoint connection.

I need that all connection to one port, go to other ip.

I dont know why, but redirect dont run here..
I create one rule on extended networking, port security, local computer to internet, port 1 to 65500 ( i use all port to try )
in action i choose drop and redirect ( i choose drop to try too )

I save and try connect via browser to one site.. all site open.
I try ping to tools runing on other ports on others servers.. all are connection.

If if create one ip backhole the site is blocked but when i try create one redirect or block via port security, i cant..

Someone can helpme ?

Sorry my english.. i´m from Brasil
rametring
 
Posts: 3
Joined: Sep 13 11 3:42 pm

Re: Redirect outgoing connection

Postby adrien » Sep 13 11 5:16 pm

Hi

are you running WinGate, or WinGate VPN (this is the WinGate VPN forum)?

WinGate VPN doesn't do NAT, which is required for port redirection. WinGate should do it fine though.

Are you redirecting to a remote IP (public IP on internet), or some other IP on your local network or WAN? If the latter, the machine you redirect to may require routing setup for the packets to go back through WinGate.

Regards

Adrien
adrien
Qbik Staff
 
Posts: 5441
Joined: Sep 03 03 2:54 pm
Location: Auckland

Re: Redirect outgoing connection

Postby rametring » Sep 14 11 1:15 am

Hi..

at this moment i have installed wingate vpn, but i already installed wingate and i cant do this too.

Look my problem :

I have one server with public IP ( example 200.175.5.4 )

This ip will be change to other ip ( example 200.175.12.21 )
O this server have some applications compiled pointed to database server using 200.175.5.4

Then after changed ip, i need intercepct all software that try to connect on 200.175.5.4 and redirect to my new ip 200.175.12.21

if i open a connection to 200.175.5.4 from my server 200.175.12.21 i want that wingate redirect to other ip.. the connection ton 200.175.54 cant reach the destination because this ip will be a new server ( not my server ) ...

Tks
rametring
 
Posts: 3
Joined: Sep 13 11 3:42 pm

Re: Redirect outgoing connection

Postby adrien » Sep 14 11 1:49 am

HI

so the client software is on the same computer as WinGate? Currently you can't redirect those connections, only NAT connections via WinGate.

You could run the software on another computer behind WinGate.

Have you considered patching the executable and changing the IP address that is hard coded in the binary. It might be easier than you might think.

Adrien
adrien
Qbik Staff
 
Posts: 5441
Joined: Sep 03 03 2:54 pm
Location: Auckland

Re: Redirect outgoing connection

Postby rametring » Sep 14 11 2:47 am

Hi Adrien..

have +- 200 apps with ip hardcorded and i dont know how can i do this..
area asp.net apps.. compiled..

have any sugestion ?

Tks
rametring
 
Posts: 3
Joined: Sep 13 11 3:42 pm

Re: Redirect outgoing connection

Postby adrien » Sep 14 11 7:01 pm

ok, one suggestion I have.

If you use WinGate 7, and use the WinGate client on the computer running the apps, then you can use WinGate 7 policy to override destination IP for connections made by client applications.

So you could say have a policy that said any connection to a.b.c.d get connected instead to e.f.g.h

The WinGate server would need to be a different computer to the computer running the apps, and the WinGate client software only runs on windows prior to windows vista.

We could look at doing a similar thing for SOCKS as well, which would mean you could use any supported SOCKS-ifying application.

Adrien
adrien
Qbik Staff
 
Posts: 5441
Joined: Sep 03 03 2:54 pm
Location: Auckland

Re: Redirect outgoing connection

Postby adrien » Sep 14 11 7:05 pm

Actually looks like Session.ServerIp is already writable from within SOCKS server events, so you could change it based on the current value.
adrien
Qbik Staff
 
Posts: 5441
Joined: Sep 03 03 2:54 pm
Location: Auckland


Return to WinGate VPN

Who is online

Users browsing this forum: No registered users and 10 guests

cron