| View previous topic :: View next topic |
| Author |
Message |
d11wtq Apprentice


Joined: 14 Jul 2005 Posts: 192 Location: Manchester, UK
|
Posted: Fri Dec 23, 2005 4:06 pm Post subject: Internet connection forwarding over SSH? |
|
|
Hi,
I'm looking for an alternative to using iptables to forward an internet connection to my laptop. Partly because I'm interested if it's possible and partly because iptables is not working (missing modules error) on the host machine but I'm only here for 2 days so my brother doesn't want me messing around to fix it.
As a step around I've been SSHing to his box (the host that has the internet connection) and then forwarding X11 to my machine and running firefox over SSH. This isn't too ideal since X forwarding isn't that fast over our wireless link.
Is there any way I can forward just the internet connection over an open SSH connection? That would be far more useful? I guess it's possible somehow though I'm not sure what I'd do to set my default gateway to use that forwarded connection.
Thanks,
d11wtq |
|
| Back to top |
|
 |
fvant Guru

Joined: 08 Jun 2003 Posts: 328 Location: Leiden, The Netherlands
|
Posted: Fri Dec 23, 2005 4:53 pm Post subject: |
|
|
| first thoughts: setup a VPN ? or use stunnel ? |
|
| Back to top |
|
 |
braindead0 Tux's lil' helper


Joined: 29 Apr 2003 Posts: 144 Location: Ohio
|
Posted: Fri Dec 23, 2005 4:55 pm Post subject: |
|
|
I did something similar using ssh and squid
I setup firefox to use locahost:3128 as a connection proxy.
I then setup an SSH tunnel to my home system: ssh -fNC -L3128:192.168.0.1:3128
Which forwards all traffic on 3128, through SSH to my home router internal address (192.168.0.1) port 3128. Squid is running on that port (only internally of course) so it forwards the traffic out and voila.. bypass my crummy works proxy (websense.. makes no sense how they categorize).
Not exactly what you were looking for perhaps, but AFAIK ssh tunneling must go from local port# to specific IP address port number, so you must have a HTTP proxy. _________________ Poxart |
|
| Back to top |
|
 |
d11wtq Apprentice


Joined: 14 Jul 2005 Posts: 192 Location: Manchester, UK
|
Posted: Sun Dec 25, 2005 4:55 pm Post subject: |
|
|
| braindead0 wrote: | I did something similar using ssh and squid
I setup firefox to use locahost:3128 as a connection proxy.
I then setup an SSH tunnel to my home system: ssh -fNC -L3128:192.168.0.1:3128
Which forwards all traffic on 3128, through SSH to my home router internal address (192.168.0.1) port 3128. Squid is running on that port (only internally of course) so it forwards the traffic out and voila.. bypass my crummy works proxy (websense.. makes no sense how they categorize).
Not exactly what you were looking for perhaps, but AFAIK ssh tunneling must go from local port# to specific IP address port number, so you must have a HTTP proxy. |
Spot on That works a treat thanks. |
|
| Back to top |
|
 |
|