Git Product home page Git Product logo

openvpn-iptables's People

Contributors

jekader avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

eiginn rafamiga

openvpn-iptables's Issues

parse iroute directives

This is a request to add iroute definition parsing to the script.

All "iroute" networks should be allowed to access all "route" destinations for the specific connection.

improve locking mechanisms

At the moment file locking is sub-optimal and rules may be accidentally added while they're being by another thread. As rules are removed by line number, this will cause line numbers to shift and wrong rules to be removed.

better parsing for rules to be removed

Currently on_disconnect.sh only checks for rules to be removed by grepping for the $common_name"_openvpn"

This may cause issues.

Steps to reproduce:

  1. create users "testuser" and "anothertestuser"
  2. connect both users
  3. disconnect "testuser"

Actual result:
rules are removed for both users as the script greps for "testuser_openvpn" which will also match "
"anothertestuser_openvpn"

Expected results:
just rules for the right user are removed

Proposed solution:
add a prefix and grep for a string including it:
"rules_"$common_name"_openvpn"

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.