Comments (5)
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.
Thanks @soaringswine. I just fixed a dumb mistake that was causing this, in 2269a4a.
from vpn-slice.
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.
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.
@soaringswine, let me know if it makes any difference.
Most VPNs (certainly at least GlobalProtect, and I think AnyConnect too) differentiate between…
- 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. - 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.
- (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)
- Eliminate deprecated route cache flushing
- Connect WSL2 with openconnect and vpn-slice, to use windows apps like a pro HOT 1
- Use syscall instead of subprocess HOT 2
- Connect to IP on non http/s ports HOT 3
- current `vpn-slice` fails with `(22, 'Invalid argument')` HOT 6
- vpn-slice fails to install on Fedora 37 HOT 2
- Cannot read/write /etc/hosts with no-ns-hosts option HOT 2
- Please release a new version of the master branch HOT 5
- Split DNS check incorrectly uses ResolveConfSplitDNSProvider on Fedora 37 HOT 7
- vpn-slice==0.16.1 raise PackageNotFoundError(name) HOT 4
- Question (not bug): Kerberos SSO over VPN-Slice HOT 2
- Specifying a route with a non-default port HOT 2
- loading stuck HOT 1
- WARNING: no split dns provider available; can't split dns HOT 1
- Exclude hosts by name HOT 1
- Routes cleanup on disconnect HOT 2
- --dump option causes crash when using one or more host-to-ip aliases
- Split DNS not working when using `--background` flag HOT 6
- hostname args ineffective in background mode on openconnect HOT 12
- New issue with openconnect/vpn-slice due to env change? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vpn-slice.