Re: IP masq
Quoting Gabor Gludovatz (ggabor@sopron.hu):
> On Mon, 29 Jan 2001, A+B Frank wrote:
>
> > > I connect to the Internet from a masqueraded LAN through a masquerading
> > > gateway/proxy server. My problem is that, if I am logged in to somewhere
> > > outside our network with ssh or telnet, after a little while of inactivity
> > > the gateway resets the connection and I have to reconnect.
> > >
> > > The proxy server is a Deb 2.1 with kernel 2.0.38. What should I set in its
> > > kernel if I want to keep the connection even if it's idle?
> > >
> > > (it's all the same, wherever I connect to, I get disconnected, so it's
> > > not a logoutd thing.)
> >
> > Hi,
> > it seems to me like a time out for idle lines. Search in th
> > configuration
> > files of ppp/ippp for a parameter "huptimeout" or so.
>
> there is no (i)ppp installed to that machine. it connects with 10baseT
> ethernet to a micro device, and we are connected (masquaraded) through it.
You might try something like
echo 120 > /proc/sys/net/ipv4/tcp_keepalive_time
to change the tcp timeout from 2hours to 2mins.
Cheers,
--
Email: d.wright@open.ac.uk Tel: +44 1908 653 739 Fax: +44 1908 655 151
Snail: David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer: These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.
Reply to: