LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-28-2005, 01:37 PM   #1
wwnexc
Member
 
Registered: Sep 2005
Location: California
Distribution: Slackware & Debian
Posts: 264

Rep: Reputation: 30
Talking SSH Port Forwarding


Hi,

I am connecting to my home computer from a remote location via ssh. I am forwarding port 8080 dynamically (for the internet, using socks.)

My question is how do i forward outbound ports from the remote computer running the SSH client, meant to go to the internet, to the server at home, which should then forward them to the internet?

Do i have to use a proxy on my home computer or is there an other way of doing this task without needing an other proxy?

thanks
wwnexc
 
Old 09-28-2005, 02:50 PM   #2
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Conventionally ssh is on port 22 so you would require port forwarding of port 22 to the box on the lan. Make sure you have strong paswords and it is normally recommended that you disallow root access and login as a user and then su into a root shell.
 
Old 09-28-2005, 03:39 PM   #3
LuggerHouse
Member
 
Registered: May 2004
Location: Montreal,QC,Canada
Distribution: Fedora Core 7
Posts: 210

Rep: Reputation: 30
Well I am not sure I understand this correctly... Let me re phrase this :-)

you have a remote pc (let's call it remotePC) that connects to your home PC (now on called homePC) via ssh.

You want to know how you could browse Internet on remotePC using your homePC internet access...

Well I dont think you can not do that via port forwarding. It has to be at the IP level and involve routes.

Good luck!
 
Old 09-28-2005, 08:19 PM   #4
wwnexc
Member
 
Registered: Sep 2005
Location: California
Distribution: Slackware & Debian
Posts: 264

Original Poster
Rep: Reputation: 30
well, using dynamic port forwarding, virtual 8080, it works.

Yes, I am trying to connect from remotePC to my homePC to access the internet, which works, but i cannot get other ports to be forwarded.

Should i install some sort of a port forwarding application on the server or proxy?
 
Old 09-29-2005, 01:26 AM   #5
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Re: SSH Port Forwarding

Quote:
Originally posted by wwnexc
My question is how do i forward outbound ports from the remote computer running the SSH client, meant to go to the internet, to the server at home, which should then forward them to the internet?

Do i have to use a proxy on my home computer or is there an other way of doing this task without needing an other proxy?

The remote box should not require any forwarding if you have internet access from it. In order to access your home box from the internet you need to know it's ip address. As this is dynamic this can be difficult. You could use www.dyndns.org to setup a permanent address. Your home box would update their server with the ip address as it changes. You should be able to access the box then by either ip address or name resolution.
The alternate method would be to setup a dial-in facility on the home box and this would then route internet requests through a specified gateway. ssh shouldn't come into the scenario as this really a method of communicating with a box securely.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH Port forwarding WRSpithead Linux - Networking 1 04-18-2005 04:09 AM
Port forwarding for ssh Adriaan Linux - Networking 1 03-08-2004 09:11 AM
Ssh port forwarding? J_Szucs Linux - Networking 1 10-29-2003 04:42 AM
ssh, and port forwarding Tricky Linux - Networking 3 01-06-2003 07:50 PM
SSH port forwarding tarballedtux Linux - Networking 2 05-29-2002 07:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration