Git Product home page Git Product logo

Comments (5)

soaringswine avatar soaringswine commented on September 18, 2024 2

I'd be happy to test, but I receive the following error when I add in "--prevent-idle-timeout" with vpn-slice 0.11 on Ubuntu 18.04.3:

Traceback (most recent call last):
  File "/usr/local/bin/vpn-slice", line 10, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.6/dist-packages/vpn_slice/__main__.py", line 451, in main
    do_post_connect(env, args)
  File "/usr/local/lib/python3.6/dist-packages/vpn_slice/__main__.py", line 241, in do_post_connect
    if args.verbose > 1:
TypeError: '>' not supported between instances of 'NoneType' and 'int'

from vpn-slice.

dlenski avatar dlenski commented on September 18, 2024 1

Thanks @soaringswine. I just fixed a dumb mistake that was causing this, in 2269a4a.

from vpn-slice.

soaringswine avatar soaringswine commented on September 18, 2024 1

I definitely think I fall into category 2 as I received this: Received server disconnect: b0 'Max time exceeded'

which is definitely an improvement from getting kicked off for idle time, so it looks like the idle preventer works!!

from vpn-slice.

soaringswine avatar soaringswine commented on September 18, 2024

Ok, historically the VPN I connect to kicks me off after 20 or something hours even when running a ping to something on the VPN subnet.. I've just connected now and will see if I get kicked off. it's entirely possible I reach a max time exceeded or something instead of an idle timeout so this new option may not make a difference.

from vpn-slice.

dlenski avatar dlenski commented on September 18, 2024

@soaringswine, let me know if it makes any difference.

Most VPNs (certainly at least GlobalProtect, and I think AnyConnect too) differentiate between…

  1. A disconnect-if-idle time: the VPN gateway will drop the connection (and invalidate the session authentication cookie) if there's no “real” traffic after that period of time. What vpn-slice -K tries to do is generate some “real-looking” traffic (not entirely repetitive, but low volume) to prevent such a drop.
  2. A total session lifetime: the VPN gateway will drop the connection and invalidate the session authentication cookie after this period of time, no matter what. Client software can't do anything about this.
  3. (possibly) A key lifetime: the VPN will need to be re-keyed with new encryption keys (for ESP, TLS, DTLS, etc.) after a certain period of time. Fully-implemented client software should handle this automatically; OpenConnect does for AnyConnect, GlobalProtect, and Juniper NC at least.

If your 20-hour limit is indeed caused by the disconnect-if-idle time, and not the total session lifetime, then it should do the trick. 🤞

from vpn-slice.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.