Giter Club home page Giter Club logo

Comments (2)

zolia avatar zolia commented on May 26, 2024

We will probably fail with our openvpn approach. Problem is that client clears out routes if it reaches ping-restart timeout. That is we loose tun device even if openvpn client stays alive:

routes:

0/1 10.8.0.1 UGSc 95 0 utun1
10.8/24 10.8.0.65 UGSc 45 0 utun1
10.8.0.65 10.8.0.65 UH 1 0 utun1
128.0/1 10.8.0.1 UGSc 14 5 utun1

gets removed.

Client receives ping-restart timeout from the server. We could ignore it, but that would solve problem only for UDP connections. We could also manage routes ourselves , but this will not work for Darwin. Also it will keep alive sessions on server.

Route management might be an options, but in certain cases (computer restarted) routes might be reapplied and you could loose your kill switch. Also, this will not work for Darwin as our own route management will be clashing with openvpn routes. We cannot have persist tun on darwin.

To track inactivity timeout you should get such clear out report:
2018-09-11T13:22:16.088507827 [Trace] [openvpn-process] Stdout: Tue Sep 11 16:22:16 2018 [0x0f3dc88e2fa9d716c67b0169531a94780709678d] Inactivity timeout (--ping-restart), restarting
2018-09-11T13:22:16.088899695 [Trace] [openvpn-process] Stdout: Tue Sep 11 16:22:16 2018 /sbin/route delete -net 54.38.213.93 192.168.0.1 255.255.255.255

Some fw based approach:

https://technofaq.org/posts/2017/08/how-to-setup-a-manual-kill-switch-to-prevent-openvpn-leaks-in-gnulinux-os-x-and-windows/

from node.

zolia avatar zolia commented on May 26, 2024

Currently we will leave ConnectOptions and kill switch as a mock. We will be introducing kill-switch for each platform one-by-one.

from node.

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.