Problems with CLhmonApi redirect

Home Forums Discussions Support Problems with CLhmonApi redirect

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5320
    cs-prog
    Participant

      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?

      #6915
      Anton
      Participant

        >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.

        #6916
        cs-prog
        Participant

          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.

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.