Skip to content

Add uvpn #57

Merged
merged 10 commits into from
Nov 2, 2018
Merged

Add uvpn #57

merged 10 commits into from
Nov 2, 2018

Commits on Nov 2, 2018

  1. uvpn: Add dhclient-script

    This file is taken from dhcp-4.3.2-0.x86_64/source/client/scripts/linux.
    
    The code will be embedded in th uvpn script in a later commit, but in an
    updated and reduced form. This external copy of the file serves as
    documentation so we can track the changes done to the code in the repository.
    donald committed Nov 2, 2018
    Configuration menu
    Copy the full SHA
    886b41c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    27ce83a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5b00c2f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3335147 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    23a1cb9 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c7d8c08 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7117d99 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    7222646 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    9f58249 View commit details
    Browse the repository at this point in the history
  10. uvpn: Add initial version

    This tools allows a user to create a (net,mnt,user)-namespace container
    which can be used to run openvpn.
    
    This tools uses sudo to gain privileges for the setup and requires
    a line like
    
        ALL ALL=NOPASSWD: /usr/bin/uvpn start_as_root,/usr/bin/uvpn stop_as_root
    
    in the sudoers file.
    
    The container will be connected to the guest network. For this the
    system needs a working vlan.guest0 vlan interface into the guest
    network.
    
    The usage for the user might be along this pattern:
    
        uvpn start
        uvpn exec openvpn ~/.charite-username.ovpn
        echo -e "search charite.de\nnameserver 141.42.1.1\nnameserver 141.14.16.1" | uvpn exec bash -c 'cat > /etc/resolv.conf'
        uvpn exec firefox --new-instance --ProfileManager
        uvpn exec firefox --new-instance -P charite
        uvpn show
        uvpn stop_container
    
    Because the network of the container is separate from the host system,
    ip based X11-forward will not work without more setup. So the above example
    would only work on the local workstation.
    donald committed Nov 2, 2018
    Configuration menu
    Copy the full SHA
    02dce7b View commit details
    Browse the repository at this point in the history