Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Internet connection forwarding over SSH?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
d11wtq
Apprentice
Apprentice


Joined: 14 Jul 2005
Posts: 192
Location: Manchester, UK

PostPosted: Fri Dec 23, 2005 4:06 pm    Post subject: Internet connection forwarding over SSH? Reply with quote

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
View user's profile Send private message
fvant
Guru
Guru


Joined: 08 Jun 2003
Posts: 328
Location: Leiden, The Netherlands

PostPosted: Fri Dec 23, 2005 4:53 pm    Post subject: Reply with quote

first thoughts: setup a VPN ? or use stunnel ?
Back to top
View user's profile Send private message
braindead0
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2003
Posts: 144
Location: Ohio

PostPosted: Fri Dec 23, 2005 4:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
d11wtq
Apprentice
Apprentice


Joined: 14 Jul 2005
Posts: 192
Location: Manchester, UK

PostPosted: Sun Dec 25, 2005 4:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum