FREE THOUGHT · FREE SOFTWARE · FREE WORLD

Home » Security »  Port Redirector

Port Redirector

by Charles Torvalds 1 comment

[hide]

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 redirectorfor linux and unix like oses ?so that when I connect to the box to a given port it redirects my connectionto 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.estarted tor (port 9050)socat tcp4-listen:22,Fork socks4a:127.0.0.1:dest.ip.in.here:22,socksport:9050then ssh to 127.0.0.1 and it'll bounce your ssh connection via tor

datapipe.c could make it


January 22nd, 2007

Comments Welcome

  • http://vtun.info 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.

My Online Tools

Related Articles
Twitter


My Picks
Newest Posts

WordPress Development
Hacking and Hackers

The use of "hacker" to mean "security breaker" is a confusion on the part of the mass media. We hackers refuse to recognize that meaning, and continue using the word to mean someone who loves to program, someone who enjoys playful cleverness, or the combination of the two. See my article, On Hacking.
-- Richard M. Stallman






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

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 | License and Disclaimer | Terms of Service

↑ TOPMain