LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-16-2015, 12:29 PM   #1
rodneysimmons503
LQ Newbie
 
Registered: Jul 2015
Location: North Carolina
Distribution: Debian 7
Posts: 2

Rep: Reputation: Disabled
ssh forwarding when to use -D or -L


hey guys

I'm confused as to when to use -D or -L when using ssh forwarding. Can you provide a list of some applications where -D and -L is suited. I know for example, a web browser can be use with the ssh -D switch.

-peace
 
Old 07-16-2015, 06:38 PM   #2
rodneysimmons503
LQ Newbie
 
Registered: Jul 2015
Location: North Carolina
Distribution: Debian 7
Posts: 2

Original Poster
Rep: Reputation: Disabled
Boy! if no one can help with a simple question, then I'm in the wrong linux forum. Better seek more knowledgeable linux members elsewhere.
 
Old 07-16-2015, 07:19 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,918

Rep: Reputation: 2849Reputation: 2849Reputation: 2849Reputation: 2849Reputation: 2849Reputation: 2849Reputation: 2849Reputation: 2849Reputation: 2849Reputation: 2849Reputation: 2849
Welcome to LQ.

The -L or local port forwarding creates a tunnel that connects to a server using an outgoing and incoming port. This is used when you want to connect to a service running on a remote server via a secure connection or if the firewall does not allow traffic on that port. Can be any service like mysql, mail, web server etc.

https://support.ssh.com/manuals/serv...orwarding.html

The -D or dynamic port forwarding creates a socks server. Basically it creates a relay between the client and the remote server. One application would be if you were using an untrusted free wifi to browse the internet. By using a secure connection no one can sniff your local traffic. There are proxy servers that allow you to surf the web anonymously.

https://support.ssh.com/manuals/serv...orwarding.html
http://etherealmind.com/fast-introdu...o-socks-proxy/

You can find lots of information on ssh by searching the internet but I can see where dynamic port forwarding might be confusing. By posting, your thread is removed from the auto reply list which keeps unanswered threads at the top.

Last edited by michaelk; 07-16-2015 at 07:26 PM.
 
  


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
ssh -X forwarding - what's going on here then!? spoovy Linux - Server 3 08-31-2011 05:00 AM
SSH X forwarding krusty_lab AIX 10 01-02-2008 09:36 AM
SSH X forwarding discala Linux - Networking 8 01-05-2007 06:05 AM
X forwarding via SSH bd1308 Linux - Software 4 08-30-2005 07:13 PM
ssh and X-forwarding Björneborg Linux - Networking 2 02-19-2004 10:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:31 AM.

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