Port Redirector

FREE THOUGHT · FREE SOFTWARE · FREE WORLD

Port Redirector

Port redirectors are very cool little programs.. They basically redirect data from one port to another, mostly used for hacking

can you please suggest me any tiny and good port redirector
for linux and unix like oses ?
so that when I connect to the box to a given port it redirects my connection
to another box and port that I can chose ?
thanx a lot ..


Maybe something like samplicator, socat, nc, vtun? There is a really cool tool out there that is a socket file, like mysql.sock, but it is really a redirector. I use it to connect remotely to mysql servers, when they do not allow remote connections.

Ya datapipe is solid also. Samplicator is UDP. socat is probably the best.

socat is far and away the best, as a port redirector basically it’s netcat for ports.
i use it for redirecting ssh session through tor for reasons best known to myself….

i.e
started tor (port 9050)

socat tcp4-listen:22,Fork socks4a:127.0.0.1:dest.ip.in.here:22,socksport:9050

then ssh to 127.0.0.1 and it’ll bounce your ssh connection via tor

datapipe.c could make it


«
»

Leave your own comment

Reader Comments

  1. bish ~

    Have you overlooked simple xinetd?

    service unlisted
    {
    disable = yes
    type = UNLISTED
    port = 5500
    socket_type = stream
    protocol = tcp
    wait = no
    user = root
    redirect = 192.168.4.120 5500
    }

    when it’s not disabled (think: chkconfig vnc-listen-redir on) it will redirect incoming connections on the outside to port 5500 on the internal machine 192.168.4.120 . In that example it uses tcp, but I’ve seen it with UDP as well.

    Best of all? It’s already installed on many machines, at least most linux boxes — even the tiny openwrt comes with xinetd built-in.

    Gluck.

Go for it!


It's very simple - you read the protocol and write the code. -Bill Joy

HTML | DCMI | GRDDL | XOXO | XDMP | XFN | DOM | XML | XHTML 1.1 Strict | CSS 2.1 | W3C

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution 3.0 License, just credit with a link.
This site is not supported or endorsed by The Apache Software Foundation (ASF). All software and documentation produced by The ASF is licensed. "Apache" is a trademark of The ASF. NCSA HTTPd.
UNIX ® is a registered Trademark of The Open Group. POSIX ® is a registered Trademark of The IEEE.

Site Map | Contact Webmaster | Glossary | License and Disclaimer | Terms of Service

↑ TOP
Main