Today I have been asked for a copy of a discontinued port-forwarding and proxy tool I have been once recommending. Unfortunately the program page did disappear quite a few years ago and I was not able to find that tool (bouncer from r00ted.co.uk) in my backup files.
After poking a few minutes at google I came across a Port of "rinetd" which I use a lot on my linux boxes: http://www.boutell.com/rinetd/ - a very simple daemon for port redirections. Just feed it with a config file like this:
- #bindaddress bindport connectaddress connectport
- 192.168.1.145 80 192.168.1.254 8080
Obviously, the config above will redirect all traffic arriving at the "192.168.1.145:80" to "192.168.1.254:8080". Unlike the bouncer tool, rinetd can handle more than one redirection per process. You can define as many forwarding rules in that config as you like.
Last but not least, I have made a tiny change to the source by altering the default location of the config file. Hardcoded location was "/etc/rinetd.conf" which does not make much sense on windows. The attached binary will look for the rinetd.conf next to the executable itself. I have also provided a sample config for that matter: