« Trace Email Back to the SenderHTTP Packet Capturing to debug Apache »
January 22nd, 2007
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
Reader Comments
-
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.
