LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-26-2012, 06:18 PM   #1
haggie
LQ Newbie
 
Registered: Apr 2012
Posts: 3

Rep: Reputation: Disabled
Question questions about SSH port forwarding


I'm fairly new to linux and I wanted a bit of professional clarification on a few things. The syntax of the ssh port forwarding I have been using is as follows.

ssh -f -N localhost -L 50001:hushmail.com:80

The questions I had are these...

1.) Am I issuing the command correctly or could it be improved?
2.) If I connect to port 80 is it suppose to be using ssl still? or do I have to use port 443?
3.) Why are some websites such as google redirecting me to www.google.com?
4.) Why am I receiving "Internal Server Error" when trying to connect to facebook?

Last question which isn't specific to linux if anybody could enlighten me.

5.) Is there any difference between typing www.google.com or google.com or http://google.com or http://www.google.com? Is www.l.google.com part of the same domain as www.google.com?
 
Old 04-26-2012, 09:16 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
5) most browsers assume you will want http unless you specify otherwise. 'www' is just a convenience hint for humans, its not required as part of a webserver's FQDN.
Also, a large company like google will actually have multiple massive webfarms and multiple equiv addresses and likely use re-directors etc (eg an F5 BigIp) http://www.f5.com/products/big-ip/
 
Old 04-26-2012, 10:19 PM   #3
haggie
LQ Newbie
 
Registered: Apr 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks for the clarification on that. Lets scratch 3 & 5 off the list. If anybody could clarify 1,2, & 4 it would be much appreciated.
 
Old 04-27-2012, 12:02 AM   #4
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Here is another port forwarding syntax given on this link, http://www.linuxhorizon.ro/ssh-tunnel.html you can check.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Port number used by server when using dynamic port forwarding in SSH? kreeder Linux - Networking 4 11-21-2011 03:07 PM
port forwarding with ssh lothario Linux - Networking 1 06-19-2010 09:47 PM
Port Forwarding with SSH jeremy LQ Articles Discussion 2 03-14-2008 12:16 PM
ssh and port forwarding mezeq Linux - Networking 2 11-06-2006 02:29 PM
ssh, and port forwarding Tricky Linux - Networking 3 01-06-2003 08:50 PM


All times are GMT -5. The time now is 09:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration