Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
Hi, I'm sharing my internet connection from my linux box and it keeps timing out. Like the windows station behind the linux one times out after 2 hours of innactivity ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2003
    Posts
    6

    Internet sharing keeps timing out


    Hi,

    I'm sharing my internet connection from my linux box and it keeps timing out. Like the windows station behind the linux one times out after 2 hours of innactivity and I have to reconnect to, let say, msn to continue using it...


    Does anyone have an idea of how to fix that?

    Thanks,

    Roach4

  2. #2
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    That depends. What kernel version are you using, and with what mechanism have you set up your routing (ie. iptables, ipchains)?

  3. #3
    Just Joined!
    Join Date
    Feb 2003
    Posts
    6

    Method and Kernel

    iptables, and kernel version is 2.4


    Thanks,


    Roach4

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    What's your full kernel version?

  6. #5
    Just Joined!
    Join Date
    Feb 2003
    Posts
    6
    2.4.20

  7. #6
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Strange. That kernel version have a timeout of 5 days built in to ip_conntrack_proto_tcp.c (for ESTABLISHED connections). Are you using NAT or MASQ?

  8. #7
    Just Joined!
    Join Date
    Feb 2003
    Posts
    6
    i'm using MASQ, should I use nat? ? ?

  9. #8
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    That depends on how you're connected to the internet. It's very, very probable that it is MASQ that makes the connections time out, though.

  10. #9
    Just Joined!
    Join Date
    Feb 2003
    Posts
    6
    I connect to the internet using Cable


    Roach4

  11. #10
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    If you're permanently connected using an IP address that doesn't change or which doesn't change without your consent, you should be using NAT. The main difference is that MASQ removes all related connection trackings when the outgoing interface goes down, while NAT leaves them.
    The underlying philosophy is that MASQ should be used on modem connections, where you're likely to get a new IP address when you reconnect the interface, so all connections are basically lost anyway. NAT is supposed to be used on connections with static IP addresses, so that if the connection goes down (for any reason, could be the underlying hardware or anything), you just reconnect it and can go on like nothing happened.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •