Problems with CLhmonApi redirect

This is a general forum for discussing NT Kernel Resources products (their usage, features, applicability and etc.). Please use English or Russian languages for your posts.

Problems with CLhmonApi redirect

Postby cs-prog on Mon Feb 08, 2010 10:00 pm

I tries the redir sample which comes with the local network monitor api.
Is it possible to redirect a http requeest e.g. to google to my server?

I want to redirect requests to blocked domain names to my little web server which will send a block page.
I tried the sample but even with telnet I do not get a connection. Any idea? Or is the local network api the wrong lib?
cs-prog
 
Posts: 2
Joined: Fri Feb 05, 2010 9:17 pm

Re: Problems with CLhmonApi redirect

Postby Anton on Tue Feb 09, 2010 1:24 pm

>I tries the redir sample which comes with the local network monitor api.
>Is it possible to redirect a http requeest e.g. to google to my server?
>I want to redirect requests to blocked domain names to my little web server which will send a block page.

redir is a basic sample. For example: redir * 0.0.0.0 80 your_server_ip your_server_port will redirect all local http requests to your private web server.

in production solution you need to analyze destination ip address and substitute it with your server address for blocked domains.

>I tried the sample but even with telnet I do not get a connection. Any idea? Or is the local network api the >wrong lib?

Can you, please, provide the command line for redir sample and for telnet program.
Anton
Site Admin
 
Posts: 35
Joined: Wed Nov 26, 2003 12:41 pm

Re: Problems with CLhmonApi redirect

Postby cs-prog on Wed Feb 10, 2010 10:49 am

I checked it again. The problem is, that I'm using WIN 7 64bit, and when I run the sample in visual studio, it does not work(I had to copy the lib file into the solution directory, but I used the i386 lib, because the amd64 lib causes several linker errors). If I use the bin file for amd64 it works.

I will do my tests an winxp 32bit, so it's no problem, thank you.
cs-prog
 
Posts: 2
Joined: Fri Feb 05, 2010 9:17 pm


Return to NT Kernel Resources Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron