GithubHelp home page GithubHelp logo

foundriesio / factory-wireguard-server Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 2.0 53 KB

A simple tool to manage Factory VPN connections to devices

License: BSD 3-Clause "New" or "Revised" License

Python 94.64% Shell 4.58% Dockerfile 0.78%

factory-wireguard-server's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

factory-wireguard-server's Issues

starting the daemon with factory names with more than 12 characters fail

Because Linux limits device names to 15 characters running the script to start the daemon with a factory name greater than 12 will fail to start, and the error message of this is not very helpful :-)

2020-07-17 16:07:30,896 INFO: Looking for factory config changes
wg-quick: `fiodavids_first_factory' does not exist
2020-07-17 16:07:31,630 INFO: Unable to take VPN down. Assuming initial invocation
wg-quick: `fiodavids_first_factory' does not exist
Traceback (most recent call last):
  File "./factory-wireguard.py", line 421, in <module>
    args.func(args)
  File "./factory-wireguard.py", line 346, in daemon
    wgserver.apply_conf(args.factory, conf)
  File "./factory-wireguard.py", line 208, in apply_conf
    subprocess.check_call(["wg-quick", "up", "fio" + factory])
  File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['wg-quick', 'up', 'fiodavids_first_factory']' returned non-zero exit status 1.```

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.