Networking Forums

Networking Forums > Computer Networking > Linux Networking > ssh tunnels

Reply
 
 
Chris Dobbs
Guest
Posts: n/a

 
      02-21-2004, 01:00 PM
All,
This is a tricky one but any help would be appreciated.

I have a computer (linux) at home running Debian unstable to manage my ADSL
connection; I use iptables to manage the firewall and also have a small
local LAN connected.
Where I'm working atm , they have fairly harsh firewall rules such that they
block all outgoing ports except 554 (streaming video something or other).
I have a dialup account specifically for work access but I wanted to access
work via my ADLS connection so I came up with this:

(from home)
reconfigure sshd to listen on port 554
setup dialup to work on ppp1 (ppp0 is ADSL connection)
add a route for works net work to use ppp1
$add route -net 132.146.0.0 ..... dev ppp1
connect into works machine
$ssh <user1>@<132.146...>

(on works machine)
$nohup ssh -p 554 -T -R 3127:127.0.0.1:22 <user2>@<home ADSL ip>)
$exit


(on home machine)

$ssh -p 3127 <user1><@127.0.0.1

works a treat...I'm now connected to work via my ADSL link...
I can now disconnect the ppp0 dialup link...or so I thought, as this causes
the link to drop with the message 'connection to 127.0.0.1 closed by remote
host'

I have even tried to get someone from work to setup the tunnel and if the
dialup is connected it will kill anything that is using 127.0.0.1....if
however the person from work established the tunnel without my ppp0 dialup
present this doesnt happen (obviously)

Any ideas as to why 127.0.0.1 should be affected by ppp0 disconnects are
greatly welcomed.
-Chris


 
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
Max IPSEC tunnels John Shepard Linux Networking 3 09-20-2008 05:10 PM
WEP/WPA vs Secure Tunnels Frank Hahn Wireless Internet 7 08-09-2006 11:16 PM
Slow GRE Tunnels kavitha Linux Networking 0 12-02-2005 08:59 PM
W2K3 ip-in-ip tunnels Ewan Windows Networking 2 06-18-2005 03:05 PM
Ad-hoc tunnels down the streets? Mitchua Wireless Internet 3 11-26-2003 01:14 PM



1 2 3 4 5 6 7 8 9 10 11