LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-21-2011, 12:15 PM   #1
Deadpool
LQ Newbie
 
Registered: Jan 2011
Posts: 4

Rep: Reputation: 0
SSH tunneling problems


Alright here is the situation.
I am on a windows machine on a network which connects thousands of users including myself onto internet1 which when congested gets very slow.
The linux machine however although connected to the same network uses a separate internet2 (very fast due to low usage).

I used putty to create an SSH tunnel to the linux machine in order to gain access to the faster internet, however the speed does not seem to change whatsoever.

The weird thing is I also have virtual box installed on my machine with a copy of linux installed on that which i run in a window. With that I opened an SSH tunnel and ran firefox through that. These are the results i got using pingtest . net

During peak hours.
internet1(using putty and socks5 in firefox options): 1200ms
internet2(using virtual box w/ ssh -x tunneled firefox): 35ms

here is a little visual representation of what I think the network looks like.

Windows.---------------.Linux
...|......................|
...|......................|
...|......................|
...|......................|
internet1.............internet2
(ignore the dotss)

final note*
-I feel that maybe putty might be using my internet1 to access the linux server then go through internet2.

Does anyone have any suggestions on how to resolve this? (Thank you in advance)

Last edited by Deadpool; 01-21-2011 at 12:19 PM. Reason: picture didn't turn out good
 
Old 01-21-2011, 12:38 PM   #2
gb2312
LQ Newbie
 
Registered: Dec 2005
Posts: 20

Rep: Reputation: 6
Wild guess: was network.proxy.socks_remote_dns turned for firefox?
 
Old 01-21-2011, 01:15 PM   #3
Deadpool
LQ Newbie
 
Registered: Jan 2011
Posts: 4

Original Poster
Rep: Reputation: 0
I tried setting network.proxy.socks_remote_dns value to true in the config settings (as default is false)
but it had no effect whatsoever.
So I set it back to false.

Any other suggestions?
Once again thank you in advance.
 
Old 01-21-2011, 08:09 PM   #4
gb2312
LQ Newbie
 
Registered: Dec 2005
Posts: 20

Rep: Reputation: 6
Maybe you can try follow this link to test if the proxy is really being used:

http://www.devdaily.com/unix/edu/put...h-tunnel.shtml

Basically close putty but set firefox to use the same proxy setting.

Also are you sure pingtest.net is using the proxy? I tried it and it doesn't
work on my linux browser...
 
Old 01-22-2011, 09:55 PM   #5
Deadpool
LQ Newbie
 
Registered: Jan 2011
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for replying.
I tried closing the SSH tunnel while leaving the proxy settings on the firefox browser.
This resulted in the browser not being able to connect to the internet so i'm assuming the SSH tunnel and proxy config are working.

As for pingtest. net not using the tunnel/proxy i'm not sure how the page would load in that case.


Any other suggestions?
Thanks.
 
Old 01-24-2011, 09:21 AM   #6
gb2312
LQ Newbie
 
Registered: Dec 2005
Posts: 20

Rep: Reputation: 6
I saw this in the pingtest.net page:

Pingtest.net uses Java for packet loss testing, and you might be prompted to approve our applet after starting a test.

Maybe you should try some basic web downloading (with remote dns proxy enabled) to compare first.
 
Old 01-29-2011, 12:58 PM   #7
jamesbon
Member
 
Registered: Jun 2010
Posts: 147

Rep: Reputation: 9
It looks like you are using the public internet domain name or the internet IP address associated with your linux server in order to do the port forwarding. The path essentially looks like this:

windows -> internet1 -> internet2 -> linux -> internet2

What you want to do is use the internal IP address or internal name that is associated with the linux system. If you do an ipconfig in the windows terminal, you will see that your ip address starts with something like 192.168.x.x or 10.x.x.x. When you are ssh'd into your linux server, do an ifconfig to get its ip address internal to your network and use it instead. This would give you a connection that looks more like this:

windows -> linux -> internet2

By the way, if you use ssh -X from your virtualbox linux and then run firefox from the command line, you essentially see what you would see if you were using firefox physically at the linux server. It does not produce an accurate comparison for your purposes. It is kinda like vnc or remote desktop.

To produce a more accurate comparison in virtualbox, use ssh -D localhost:4000 username@linuxServer and then use the firefox proxy settings just like you did in windows.
 
Old 01-30-2011, 02:44 PM   #8
Deadpool
LQ Newbie
 
Registered: Jan 2011
Posts: 4

Original Poster
Rep: Reputation: 0
I SSH'd onto the linux server and typed ifconfig
and found the inet addr, Bcast, Mask.

I tried to then SSH using all three separately.

The only one that worked was the inet addr which simply gave me the same results as before.
seems like it was doing the previous Windows->internet1->internet2->Linux->internet2

is there some other number that I should have seen?

Thank you once again for your help.
 
  


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
help with ssh tunneling rafa_gallego Linux - Networking 1 01-22-2008 10:45 AM
SSH tunneling entz Linux - Networking 3 04-04-2007 07:22 AM
tunneling thru ssh c9876543210 Linux - Networking 1 07-21-2005 12:45 AM
X tunneling with SSH phekno Linux - Networking 3 05-31-2005 10:43 AM
problems tunneling ftp thru ssh ewlnxnewB Linux - Networking 6 11-13-2003 09:54 PM

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

All times are GMT -5. The time now is 03:23 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
Open Source Consulting | Domain Registration