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 09-12-2008, 04:17 PM   #1
Apollo77
Member
 
Registered: Feb 2003
Location: Toronto
Distribution: RH8 / FC1 / Gentoo / Debian / FreeBSD / Centos / Ubuntu
Posts: 182

Rep: Reputation: 35
ssh tunnel with wide range of ports


My Situation:

I moved from a suburb of Toronto where I had 10M/1M service on cable to a development north in Caledon where there are 100 homes with no reliable internet options (no cable, no DSL). I am currently using WiMax which is supposed to deliver 2M/256kbps, but in reality gives me 1M/70kbps with speed and latency varying greatly. There are a few fixed wireless services, but they are slow (512/256 kbps) and too expensive for the poor speed ($50+/month). I need to connect to work in Toronto via VPN. My WiMax service is almost unusable for this (the 70kbps upload is killing me). I run a server (web, email, proxy server) on a DSL connection in my in-law's basement in Mississauga (suburb of Toronto). This DSL connection is fast enough (5M/800kbps) with low latency. To my surprise, I have found if I tunnel web traffic from my home in Caledon through an ssh tunnel (with compression on) to my proxy server in Mississauga, I get pretty good throughput (around 1M/512 kbps) and the traffic seems reliable and consistent in speed. It's almost like the Wimax ISP (Rogers) is throttling the regular http traffic, but they can't really see what the ssh tunnel is because it's encrypted, so they leave it alone (yes, yes ... I know there is probably some less cynical explanation).

Proposal:

I want to set up something to funnel all my traffic (not just http traffic, but also VPN and anything else) from the crappy wimax connection through to my faster DSL server. I am open to other ideas, but specifically, I am thinking of an ssh tunnel. However, it needs to pick up a large number of ports (maybe every port except port 22 ??). I suppose I need to tunnel both TCP and UDP traffic (I don't understand TCP and UDP very well), but I'll start with just TCP, if necessary. At the very least I want to try this setup to see if it increases the reliability of my wimax internet experience in Caledon.

Any comments on how this can be done or if it can be done? I regularly tunnel VNC sessions and http through ssh, so I know how to set up tunnels, but I do not know how to open a wide range of ports (or all ports).

Apollo
 
Old 09-12-2008, 09:52 PM   #2
Apollo77
Member
 
Registered: Feb 2003
Location: Toronto
Distribution: RH8 / FC1 / Gentoo / Debian / FreeBSD / Centos / Ubuntu
Posts: 182

Original Poster
Rep: Reputation: 35
Another thought is to have one box in my home in Caledon that acts as a gateway to the internet through a tunnel to my proxy server box in Mississauga. All traffic from Caledon would be channelled through this gateway box through the tunnel to Mississauga. I know that can be done, I'm just not sure exactly how to set it up.
 
Old 09-12-2008, 10:42 PM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I don't know about ssh, but you could do it with openvpn, and redirect all traffic through the vpn
 
Old 09-12-2008, 10:44 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Maybe this would help http://www.linuxquestions.org/questi...tunnel-660589/
 
Old 09-14-2008, 03:33 PM   #5
Apollo77
Member
 
Registered: Feb 2003
Location: Toronto
Distribution: RH8 / FC1 / Gentoo / Debian / FreeBSD / Centos / Ubuntu
Posts: 182

Original Poster
Rep: Reputation: 35
Very helpful suggestions. I'll post back here when I sort it all out.

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
Can't Boot Backtrack 2.0 on LPT, but want use it's wide range of tools Chief_Leavitt Slackware 2 03-20-2007 12:40 AM
DISCUSSION: Forward ports via an SSH tunnel with auto reconnect (using key pair authentication) merize147 LinuxAnswers Discussion 0 07-24-2006 04:31 PM
Monitor Range to wide nygeek05 Slackware 9 03-26-2006 12:08 AM
Iptables wide open, but no UDP packets allowed (all ports closed) please help mfeoli Linux - Networking 1 01-06-2006 09:52 AM
Apache, same ip two doc root, two ports and a tunnel korozion Linux - Software 1 03-15-2005 05:29 PM

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

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