Re: Using SSH as a simple VPN: timeouts?



So anyway, it was like, 14:32 CEST Jul 13 2006, you know? Oh, and, yeah,
Jef Driesen was all like, "Dude,
Johan Lindquist wrote:
So anyway, it was like, 09:21 CEST Jul 13 2006, you know? Oh, and, yeah,
Jef Driesen was all like, "Dude,

I'm using ssh with port forwarding

[..]

This works really great, but after some time (a few hours) the ssh
connection is automatically disconnected (mostly after a period of
inactivity on the client). I assume this has to do something with
a timeout on the ssh server?

Is there a firewall, and if so what .kind, at some point in between
the two hosts? There might be timeouts for the state tables that
tears down the connection after a certain period without traffic
over it.

There are certainly two firewalls involved. The first one is my
cablemodem/router (D-Link DI-604). The second one is the firewall of
the university where my server is located. This one blocks all kinds
of traffic, but an exception was made for ssh access to my server.
I don't have much information about this firewall (and possible
timeout settings). There could be another firewall at my isp also,
because incoming connections below port 1024 are blocked.

It's not entirely improbable that the university's firewall is set up
in a manner that disconnects idle sessions. One way to get around it
is to make sure there's always some traffic, you could for instance
run 'top' or something with a decently long update interval over the
ssh connection.

--
Time flies like an arrow, fruit flies like a banana. Perth ---> *
15:09:02 up 4 days, 22:38, 2 users, load average: 0.08, 0.02, 0.01
Linux 2.6.16.18-xen x86_64 GNU/Linux Registered Linux user #261729
.



Relevant Pages

  • Re: More on Remote Desktop
    ... Chances are good, though, that he's already got VPN capabilities on his ... firewall to do it for $100. ... > server at home...or purchase additional/new hardware... ... >> my firewall makes the PPPoE connection to my ADSL ISP. ...
    (microsoft.public.windowsxp.network_web)
  • Re: More on Remote Desktop
    ... on your firewall to the world, you will almost certainly get hacked. ... between your clients and server on your own LAN. ... your laptop into that LAN server has got to be making these two public IP's ... PPPoE connection to my ADSL ISP. ...
    (microsoft.public.windowsxp.network_web)
  • Re: More on Remote Desktop
    ... Also note that if you use the default listening port for Remote Desktop there is no need to append ... >> point it to the Static IP of the internal server. ... >> firewall to get between your clients and server on your own LAN. ... >> mine setup so that my firewall makes the PPPoE connection to my ADSL ISP. ...
    (microsoft.public.windowsxp.network_web)
  • Re: SBS 2003 Firewall, joining domain, logons
    ... Windows firewall doesn't run on the SBS - if it's running then we'd have ... The main windows of the firewall has a message 'windows firewall is using ... Ethernet adapter Server Local Area Connection: ...
    (microsoft.public.windows.server.sbs)
  • Re: 45 days STUCK LIKE CHUCK. DNS / Mx record cant recieve emails
    ... test now on dnsreport / logging in to comcast router about nat.. ... external firewall or NAT device that needs port 25 opened inbound? ... connection attempt, re-run the CEICW. ... See my previous post on testing your server from an external PC using ...
    (microsoft.public.windows.server.sbs)