Giter Club home page Giter Club logo

netspace's Introduction

netspace - a dead simple start script for your lab network services

Let's say you want to run a few services for your embedded devices on a separate network interface. You may want to do this as your IT department may be upset with you if you start a dhcp/dns tftp and webservers on your internal network.

netspace is a few dead (not to say stupid) simple start scripts for starting a few services on a network interface without worrying about how those services may interact with your other interfaces.

It provides a simple interface for creating a namespace with a single interface, sets it up for you, and runs your start scripts. You can ofcourse do further setup (or all of it) in the start scripts if you like.

Getting started

make config
make install # install binaries / config
systemctl enable netspace
systemctl start netspace

Or manually create a netspace for one session.

netspace.sh create eth1 192.168.1.99 foo
netspacectl start foo

Creating a service

By default, all scripts in /etc/netspace/init.d are executed with $START set to a suitable execute command which will execute the line inside the netspace.

Example start script:

# init.d/dnsmasq.sh
#!/bin/bash
$START /usr/sbin/dnsmasq -x /run/dnsmasq/dnsmasq.pid -u dnsmasq -7 /etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new --local-service

Dependencies

Currently, netspace installes an init.d/ which depends on the packages listed below. These are by no means a requirement, and please design your /etc/netspace/init.d according to your needs. If you want to use these services, just use the install command sudo apt install dnsmasq syslog-ng tftpd-hpa or your package manager equivalent.

dnsmasq
syslog-ng
tftpd-hpa

netspace's People

Contributors

panord avatar

Stargazers

 avatar  avatar  avatar ryan avatar Masanori Ogino avatar Joachim Wiberg avatar

Watchers

 avatar

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.