DoubleLabyrinth / IpRedirector

A library that can map one IP-Port to another IP-Port.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple IP Redirector

A library that can map one IP:Port to another IP:Port.

This project is based on WinDivert.

TODO

  • IPv4 redirect

  • IPv6 redirect

  • Documents

Demo for IPv4

// Require Administrator privilege
Usage:
    Ipv4RedirectorDemo.exe <Redirect from IP> <Redirect from port> <Redirect to IP> <Redirect to port>

Example:

// Require Administrator privilege
$ Ipv4RedirectorDemo.exe 123.123.123.123 80 127.0.0.1 4444

After that, all packets that should be sent to 123.123.123.123:80 will be sent (redirected) to 127.0.0.1:4444.

If you want to stop, just press Enter.

About

A library that can map one IP-Port to another IP-Port.

License:GNU General Public License v3.0


Languages

Language:C++ 66.3%Language:C 33.7%