Forums: Port Redirector For Unix Like Os - Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Port Redirector For Unix Like Os

#1 User is offline   JewelCase 

  • Private
  • Icon
  • Group: Members
  • Posts: 3
  • Joined: 08-July 05

Posted 19 July 2005 - 03:09 AM

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 ..
0

#2 User is offline   linux_dude 

  • Sergeant First Class
  • Icon
  • Group: Members
  • Posts: 343
  • Joined: 10-January 04

Posted 19 July 2005 - 05:06 AM

Search helps :-/

Click Me
0

#3 User is offline   myth 

  • Master Sergeant
  • Icon
  • Group: Members
  • Posts: 408
  • Joined: 09-January 04

Posted 19 July 2005 - 05:40 AM

Most *nix boxes come with ssh anyway. So you can use SSH's Port Redirecting/Forwarding method to get past the firewalls, in places where the firewalls are strict, often you'll find ssh to normal users maybe restricted aswell - so yeah, check out the other methods mentioned in the other post.

But linux_dude has a point - shouldve searched first...
0

#4 User is offline   linux_dude 

  • Sergeant First Class
  • Icon
  • Group: Members
  • Posts: 343
  • Joined: 10-January 04

Posted 19 July 2005 - 06:45 AM

I've compiled and succesfully run datapipe on almost any account on *nix boxes**, so give it a try.

**Unless you're completely barred from using the network stack at all
0

#5 User is offline   JewelCase 

  • Private
  • Icon
  • Group: Members
  • Posts: 3
  • Joined: 08-July 05

Posted 19 July 2005 - 11:29 AM

linux_dude, on Jul 19 2005, 02:45 PM, said:

I've compiled and succesfully run datapipe on almost any account on *nix boxes**, so give it a try.

**Unless you're completely barred from using the network stack at all


well I'm not sure I can compile anything ..
it's not exactly a shell what I have ..
can you please explain me better that SSH's Port Redirecting/Forwarding method ?
0

#6 User is offline   Nitron 

  • Private
  • Icon
  • Group: Members
  • Posts: 11
  • Joined: 26-June 05

Posted 19 July 2005 - 12:22 PM

JewelCase, on Jul 19 2005, 03:29 PM, said:

can you please explain me better that SSH's Port Redirecting/Forwarding method ?


http://www.codemaste.../ssh.tunnel.php

Oh, and Google is your friend.
0

#7 User is offline   lovepump 

  • Private
  • Icon
  • Group: Members
  • Posts: 19
  • Joined: 15-February 04

Posted 19 July 2005 - 04:34 PM

netfilter/iptables are built in to linux. It can do port redirection (DNAT) without any additional software.

Here is an example of taking TCP traffic from eth0 on port 80, and redirecting to ip address 10.1.1.1 :

iptables -t nat -I PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to-destination 10.1.1.1


Thats all that is required.

Bob
0

#8 User is offline   JewelCase 

  • Private
  • Icon
  • Group: Members
  • Posts: 3
  • Joined: 08-July 05

Posted 19 July 2005 - 08:23 PM

iptables -t nat -I PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to-destination 10.1.1.1

damn interesting ..
do you think it works on Mac os X out of the box ?
0

#9 User is offline   cduke250 

  • Corporal
  • Icon
  • Group: Members
  • Posts: 195
  • Joined: 13-October 04

Posted 22 July 2005 - 12:22 AM

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.
[0][tombs@cemetary][~](1:420)
$
lynx http://www.askapache.com/
0

#10 User is offline   h3llfyr3 

  • Private
  • Icon
  • Group: Members
  • Posts: 9
  • Joined: 22-August 05

Posted 24 August 2005 - 06:23 AM

cduke250, on Jul 22 2005, 08:22 AM, said:

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 ;)

now if that does'nt give you any ideas you ned to explain yourself better and say what you are trying to do.
0

#11 User is offline   cduke250 

  • Corporal
  • Icon
  • Group: Members
  • Posts: 195
  • Joined: 13-October 04

Posted 14 September 2005 - 11:52 PM

Use socat with tor? Very nice!
[0][tombs@cemetary][~](1:420)
$
lynx http://www.askapache.com/
0

#12 User is offline   perlish 

  • Private
  • Icon
  • Group: Members
  • Posts: 19
  • Joined: 17-October 05

Posted 16 November 2005 - 09:50 AM

datapipe.c could make it
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

  • Share



Our Sponsors:


SwiftLayer Affiliate Web Hosting