Giter Club home page Giter Club logo

latent's People

Contributors

skrupler avatar

Forkers

insos

latent's Issues

Need to cleanup the exit method

Currently the exit mode is horrible, needs fixing. Probably duplicates iptables rules if exit is not clean. The system needs to be restored to its state prior to execution.

Handle situation when ip changes on the vpn connection

Rtorrent stops working when bound to an IP not associated with the actual IP on the nic of netns.
This issue happens when the IP on the connection changes
but rtorrent tries to bind to the old IP
must be circumvented somehow.

Steps to reproduce:

  1. run rtorrent on an openvpn connection for a while
  2. wait for ip to change
  3. error message appears: Error: Tracker: [Failed binding local connection end]

Solution

rtorrent probably needs to restart / rebind somehow.

Refactoring latent / blueprints

Hook, line and sinker

Current latent version suffers from alot of bugs thus I am going to refactor it and add some useful things to better handle crashes and hickups without having to reboot the entire machine to "get it right".

To be implemented

  • helpers/setup.sh - basic setup, takes user input if settings.conf is missing any arguments
  • check dependencies
  • get user information if any critical ones are missing from conf/settings.conf (saves stuff too)
  • helpers/functions.sh - global functions needed by this suite
  • check the ip which rtorrent is bound to
  • check the actual ip on the tun/tap device
  • src/netns.sh - handles the setup of the network namespace
  • setup/tare down of netns
  • src/openvpn.sh - handles the connection of openvpn
  • src/rtorrent.sh - handles startup/shutdown etc
  • handles the connection, doesnt really do much but for sake of separation
  • latent.sh - one script to rule em all, aka the runnable one
  • probably the one callable we feed to systemd or whatever
  • cron/example.cron
  • calls the helpers/functions.sh to check if mismatch with ip and restarts rtorrent if true.
  • checking if IP changes as per #2

Fixes

  • check permissions on critical files
  • chmod 600 auth.txt

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.