Port mapping & data extraction

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

Moderator: Qbik Staff

Port mapping & data extraction

Postby tnson » Jun 18 14 8:15 am

Hi,
I'm looking at WinGate as a possible replacement for our own in-house developed proxy-server since we need to extend them with functionality to extract data from send messages.

Is it possible to setup WinGate in such way that it forwards an incoming TCP connection on a specific port to a specific port on a host (i know this already works with the TCP mapping service) and then records the data transfered over that connection so that it can either be stored in a database or even better if it could be interpreted by a regular expression or something like that before stored externally?

Thanks in advance!

Rgds, Tomas
tnson
 
Posts: 3
Joined: Jun 18 14 8:10 am

Re: Port mapping & data extraction

Postby adrien » Jun 18 14 6:10 pm

Hi Tomas

the TCP mapping service has an undocumented data dump facility. But you'd probably get better results just running wireshark?

To turn on dumping of data, you need to find the registry key for the TCP mapping service

WinGate's location in the registry is:

32 bit windows: HKEY_LOCAL_MACHINE\Software\Qbik Software\WinGate
64 bit windows: HKEY_LOCAL_MACHINE\Software\WOW6432Node\Qbik Software\WinGate

The services live in there under

Services\ServiceName

The value you'll need to create is called DumpData and is type REG_DWORD. Set it to 1 to have the service dump the data. Each connection goes to a new file in a new folder called "Dumps" under the WinGate installation folder.
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland

Re: Port mapping & data extraction

Postby tnson » Jun 18 14 6:26 pm

Hi adrien,
Thanks for your reply! The purpose would be to use WinGate with this setup in a production environment picking out statistics from transactions so having wireshark doesn't feel like the best option since that, at least to me, feels more like a solution I would use in a test environment, during development or so. Anyway, if the data dumping works I could have some other script that picks those up, does what needs being done and then cleans the dumps from the system so save space.

I'll try it a bit to see if I can get it to work as I like. :-)
tnson
 
Posts: 3
Joined: Jun 18 14 8:10 am

Re: Port mapping & data extraction

Postby tnson » Jun 19 14 12:49 am

HI Adrien,
Thanks that worked fine!
I saw that you support plugins, is it possible for third parities (us) to write plugins to run our own service in WinGate?
The reason for asking is that we would like to export the data we now dump with your dump-feature into a database instead. One option is of course to parse the text files and get it from there but for us it would be even more interesting to have our own service running for that specific connection.

rgds, Tomas
tnson
 
Posts: 3
Joined: Jun 18 14 8:10 am

Re: Port mapping & data extraction

Postby adrien » Jun 20 14 8:16 pm

Hi

yes, there is an API for plugin-based services, but it's not documented yet.

Maybe we should pick this up in the support desk. I'd suggest sending an email to support@qbik.com and we can take it from there.

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 1 guest