Networking Forums

Networking Forums > Computer Networking > Linux Networking > Way to make an ssh tunnel be the "default router"

Reply
Thread Tools Display Modes

Way to make an ssh tunnel be the "default router"

 
 
johnfofawn@hotmail.com
Guest
Posts: n/a

 
      06-22-2005, 07:14 PM
Hi,

My work computer (Redhat AS4, I have root) is isolated from the
company's Intranet. I am, however, allowed to ssh to a "common"
computer that has access to the Intranet.

I would like to create an ssh connection between my computer and the
"common" computer and then have the tunnel be the "default router" for
my computer.

I have been successful at using port forwarding with ssh to forward a
few ports, but I want to forward ALL traffic.

Is this possible? How?

THANKS!
John

 
Reply With Quote
 
 
 
 
Andrew Schulman
Guest
Posts: n/a

 
      06-22-2005, 07:58 PM
> My work computer (Redhat AS4, I have root) is isolated from the
> company's Intranet. I am, however, allowed to ssh to a "common"
> computer that has access to the Intranet.
>
> I would like to create an ssh connection between my computer and the
> "common" computer and then have the tunnel be the "default router" for
> my computer.
>
> I have been successful at using port forwarding with ssh to forward a
> few ports, but I want to forward ALL traffic.
>
> Is this possible? How?


For TCP traffic, you can set up a "dynamic" port forward in your client
with e.g. -D1080. This will act as a SOCKS (SOCKS5 IIRC) server
listening on localhost:1080. You can then tell Windows to use
localhost:1080 as a SOCKS proxy, or many network applications (e.g.
browsers) have their own proxy settings.

Of course this doesn't help with UDP. Not sure how to help there.

--
To reply by email, replace "deadspam.com" by "alumni.utexas.net"
 
Reply With Quote
 
chris-usenet@roaima.co.uk
Guest
Posts: n/a

 
      06-23-2005, 08:24 AM
(E-Mail Removed) wrote:
> My work computer (Redhat AS4, I have root) is isolated from the
> company's Intranet.


Presumably this is corporate policy rather than a technical limitation?

> I am, however, allowed to ssh to a "common"
> computer that has access to the Intranet.


OK

> I would like to create an ssh connection between my computer and the
> "common" computer and then have the tunnel be the "default router" for
> my computer.


You can run ppp over ssh (see google) but the performance is not terribly
good. If you're trying to circumvent company policy I assume you've
weighed up the career related risks.

I can't help but think you've got two other options to address first,
though:

* Get the policy changed to allow your machine direct Intranet
access

* Run a true VPN (e.g. OpenVPN - easy to set up and pretty secure)
between your RH AS4 box and the intermediate one.

Regards,
Chris
 
Reply With Quote
 
Bill Davidsen
Guest
Posts: n/a

 
      06-23-2005, 02:01 PM
(E-Mail Removed) wrote:
> Hi,
>
> My work computer (Redhat AS4, I have root) is isolated from the
> company's Intranet. I am, however, allowed to ssh to a "common"
> computer that has access to the Intranet.
>
> I would like to create an ssh connection between my computer and the
> "common" computer and then have the tunnel be the "default router" for
> my computer.
>
> I have been successful at using port forwarding with ssh to forward a
> few ports, but I want to forward ALL traffic.
>
> Is this possible? How?


Assuming that this is either supported or not forbidden, you can set an
entry in "authorized_keys" on the server to start ppp, and you can
define an ssh "startup" command in /etc/ppp/peers for the remote, such
that when you start the connection it runs the command to start pppd on
the other end.

Do note that this will be slower than a regular VPN in most cases.

Then set the routing to the "other end" IP address.

--
bill davidsen
SBC/Prodigy Yorktown Heights NY data center
http://newsgroups.news.prodigy.com
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I make wireless router a "repeater"? me@privacy.net Wireless Internet 10 12-19-2010 05:02 PM
Attention Plus.net Re: SPEWS DOLTS "WindsorFox", "Kevin-!:?)", "SpinDryer" SPAM broadband newsgroup !:?) Broadband 0 11-28-2005 04:28 AM
Attention Plus.Net Re: SPEWS DOLTS "WindsorFox", "Kevin-!:?)", "SpinDryer" SPAM braodband newsgroup !:?) Broadband 0 11-28-2005 03:03 AM
Difference between "Router connected to cable modem" in home and "Router with OSPF/RIP/PIMSM" santa19992000@yahoo.com Linux Networking 4 01-08-2005 10:28 PM
How can I make Linux as "Real Router"? tvnaidu@yahoo.com Linux Networking 7 01-04-2005 07:23 AM



1 2 3 4 5 6 7 8 9 10 11