LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-12-2003, 04:50 AM   #1
Nerd2
Member
 
Registered: Apr 2003
Location: Brissle, England
Posts: 97

Rep: Reputation: 19
Advantages in SSH tunnelling for net access??


Hi there all! Wasn't sure if this should go in networking or what, but I put it in here.

I currently run a RH8 server which is permenently on and connected to the net via broadband.

This server downloads my POP email to a local folder, sorts it with procmail and SpamAssassin, and then allows it to be accessed by me, through an IMAP server. This has nothing to do with my question, i'm just well chuffed to have gotten it working!!

Usually, I am on another RH8 PC, connected to freeserve 56K.

Currently, I tunnel through SSH using compression, to forward local port 143 (IMAP) to the server IMAP port. The SSH compression seems to speed up the IMAP connection some.

I was thinking, maybe I could do the same with internet access. Instead of using my local DNS and all that, I could tunnel my internet access (port 80 for HTTP?) through the broadband server. This would allow me not only to reap the benefits of SSH compression, but to tell my server to cache certain pages regularly for my speedy download.

Does this sound like it would provide any speed increase? Or would it simply be too much hassle and connections?

To summerise, would BY Broadband->RH8 Server->SSH Compressed Tunnel on 56K Connection->RH8 Client, be faster than Freeserve 56K -> RH8 Client

If the answer is yes, would I need some sort of NAT software on my server box? Anyone any reccomendations?

Many thanks

Nerd2
 
Old 06-12-2003, 05:45 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
I wouldn't have thought you would gain much if anything as two 56K connections modems don't talk to one another at 56K. If they're V90 you get 33.6K, if they're V92 you get ~42K. Any compression gained from SSH will probably be cancelled out by the slower connection and additional overhead of encapuslation within the ssh tunnel.

cheers

Jamie...
 
Old 06-12-2003, 05:57 AM   #3
Nerd2
Member
 
Registered: Apr 2003
Location: Brissle, England
Posts: 97

Original Poster
Rep: Reputation: 19
Eh? Where are the 2 modems? The server is on 512K broadband, the client is the only thing on 56K.

I'm confused now.
 
Old 06-13-2003, 03:12 AM   #4
Nerd2
Member
 
Registered: Apr 2003
Location: Brissle, England
Posts: 97

Original Poster
Rep: Reputation: 19
???????
 
Old 06-13-2003, 04:14 AM   #5
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Sorry, I though that you were dialing into the server that was connected to broadband. So are you really just talking about the advantage of using an SSH tunnel to talk to the server rather than just using straight TCP/IP over the web yeah?

cheers

Jamie...
 
Old 06-13-2003, 06:41 AM   #6
Nerd2
Member
 
Registered: Apr 2003
Location: Brissle, England
Posts: 97

Original Poster
Rep: Reputation: 19
To summerise, would:

BY Broadband->RH8 Server->SSH Compressed Tunnel on 56K Connection->RH8 Client

be faster than:

Freeserve 56K -> RH8 Client

for internet access..........?
 
Old 06-13-2003, 10:20 AM   #7
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
I wouldn't expect you would noticed a massive difference as your modem should be doing hardware compression anyway. You can always give it a go and see what happens.

cheers

Jamie...
 
Old 06-13-2003, 02:44 PM   #8
Nerd2
Member
 
Registered: Apr 2003
Location: Brissle, England
Posts: 97

Original Poster
Rep: Reputation: 19
Have you any idea how it might be done?

I was thinking about a NAT server (i searched and found some stuff here). Would it just be a matter or doing an iptables forward and opening port 80?
 
Old 06-16-2003, 03:07 AM   #9
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
You might want to look at how they do it in the following HOWTO using PPP over SSH port forwarding. http://www.tldp.org/HOWTO/VPN-HOWTO/index.html

I can't say it's something I've got any experience of though.

cheers

Jamie...
 
Old 06-16-2003, 04:13 AM   #10
Nerd2
Member
 
Registered: Apr 2003
Location: Brissle, England
Posts: 97

Original Poster
Rep: Reputation: 19
thanks
 
  


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
Tunnelling yahoo messenger through SSH pnellesen Linux - Networking 1 09-17-2005 06:37 PM
tightvnc using ssh tunnelling curmudgeon42 Linux - Software 1 08-18-2004 09:40 PM
ssh tunnelling internet access bfkeats Linux - Networking 2 03-19-2004 03:13 PM
2 computers, ssh and the net cyborg_jt Linux - Networking 7 02-03-2004 02:15 AM
Starting SSH Reverse tunnelling at boot BU5T4 Linux - Software 2 11-18-2003 03:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:30 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