image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old September 27th, 2002, 01:17 PM
rharder's Avatar
Do not read this sign.
 
Join Date: Mar 2001
Location: Virginia, USA
Posts: 1,186
Thanks: 0
Thanked 0 Times in 0 Posts
rharder is on a distinguished road
Surely there's a way to forward ports (and I don't mean ssh)

Does anyone know of a little utility to listen on one port and forward to another machine at another port? I know ssh does something like that, and I use that all the time, but it's not what I'm looking for right now.

Of course netcat kind of does that too, but only for one instance of a connection.

You know, I should be able to type something like "portforward -l 3333 www.apple.com 80" or something like that.

-Rob
__________________
There are only 10 kinds of people in the world:
Those who understand binary, and those who don't.
Reply With Quote
  #2  
Old September 27th, 2002, 01:22 PM
holmBrew's Avatar
Official Volunteer
 
Join Date: May 2001
Location: Utah, USA
Posts: 309
Thanks: 0
Thanked 0 Times in 0 Posts
holmBrew is on a distinguished road
i'm guessing that you could do something like that with ipfw...
__________________
holmBrew

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Great Web Hosting: www.elfon.com
PowerBook(Prismo) 400Mhz G3
266Mhz G3 MT Gossamar
400Mhz G3 Yosemite
800Mhz G4 Quicksilver (my work box)
All running Mac OS X 10.2.4
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Reply With Quote
  #3  
Old September 27th, 2002, 02:40 PM
Rhino_G3's Avatar
Registered User
 
Join Date: Oct 2001
Location: Lyons, KS
Posts: 844
Thanks: 0
Thanked 0 Times in 0 Posts
Rhino_G3 is on a distinguished road
I was reading through the man pages for ipfw and it appears you can do it with the "pipe" command. You might want to take a look there
Reply With Quote
  #4  
Old September 27th, 2002, 07:31 PM
rharder's Avatar
Do not read this sign.
 
Join Date: Mar 2001
Location: Virginia, USA
Posts: 1,186
Thanks: 0
Thanked 0 Times in 0 Posts
rharder is on a distinguished road
pipe...I'll look into it. I'd like to avoid using the kernel-level firewall. I'd prefer a simple process that kept forwarding until I killed it.

I thought the linux tool portfwd would do it, but A) it doesn't compile on OS X and b) I think it's more of a daemon-style app.

Someone suggested I post at macfora.com, so I guess I'll give that a shot too. Don't know that I've ever used them before...

-Rob
__________________
There are only 10 kinds of people in the world:
Those who understand binary, and those who don't.
Reply With Quote
  #5  
Old September 27th, 2002, 07:42 PM
Rhino_G3's Avatar
Registered User
 
Join Date: Oct 2001
Location: Lyons, KS
Posts: 844
Thanks: 0
Thanked 0 Times in 0 Posts
Rhino_G3 is on a distinguished road
I see what you mean now, I would actualy love something like that as well. I'll have to keep looking
Reply With Quote
  #6  
Old September 28th, 2002, 11:03 AM
btoneill's Avatar
keeper of the cheese
 
Join Date: Jul 2002
Location: Minneapolis, MN
Posts: 797
Thanks: 0
Thanked 0 Times in 0 Posts
btoneill is on a distinguished road
You also might want to take a look at tcpwrappers. It does all sorts of redirection and other fun stuff.

Brian
__________________
UNIX is simple and coherent, but it takes a true genius (or a programmer at any rate) to understand and appreciate its simplicity -- Dennis Ritchie
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to copy an application over SSH DominikHoffmann Unix & X11 4 December 31st, 2002 06:05 PM
can't tunnel my imap with ssh Shaq fu Mac OS X System & Mac Software 8 November 15th, 2001 05:48 AM
What ports should be open? theCaptain Apple News, Rumors & Discussion 2 October 31st, 2001 01:29 AM
Open ports... holmBrew Mac OS X System & Mac Software 2 July 20th, 2001 10:31 PM
How do I Close these ports? error Apple News, Rumors & Discussion 1 June 20th, 2001 07:14 AM


All times are GMT -5. The time now is 03:58 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.