LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   UML port forwarding (https://www.linuxquestions.org/questions/linux-networking-3/uml-port-forwarding-406811/)

ciscohead 01-23-2006 01:47 AM

UML port forwarding
 
My friend set up a UML for me on a remote box specifically for testing some stuff. He setup login thru ssh on a high nonstandard port and access apache on a high nonstandard port as well. That all works and I am able to install software on it and what not.


Here is the problem I want an app in this UML to listen on port 3000 It would seem like he (who controls the host) would have to open up some port on the outside which I don't control and map it to 3000 on the inside...

So my question is simple: Do I have to ask him to do this for me if so no problem... I am inclined to think this is the case since I am chrooted basically to the inside. If I am wrong and I can do it myself and if so EXACTLY what commands do I run to do it and what does each command do?

tlowk 01-25-2006 02:42 PM

The only work-around I see is via the ssh command, this is possible with the
-L parameter

ssh -L 8080:localhost:80 -g umlIp

this will map the 8080 of your host to port 80 of the UML during the time you
are connected, apart from that I don't see an easy solution, since the uml has
no access in his setup to a public IP

regards,

tlowk

ciscohead 01-25-2006 06:54 PM

thanks for the reply
 
I skirted the issue for the moment by shutting down apache (I didn't need it) and just having the server I want to whale on listen on port 80 and contacting it from the outside through the high port that's mapped to 80 on the inside. I'll ultimately need apache so whenever I need any other high ports open I'll just ask him.


All times are GMT -5. The time now is 01:19 AM.