Coder Social home page Coder Social logo

codespaces-openvpn's People

Contributors

chuxel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

codespaces-openvpn's Issues

Multi-line OPENVPN_CONFIG env var might cause problems

More info here, but wanted to link in this repo in case it trips up others.

I found the OPENVPN_CONFIG env var wasn't being set, presumably because it spans multiple lines.

It appears that you can safely remove all the newlines from vpnconfig.ovpn and openvpn --config can still read it, so perhaps recommend doing that (and surrounding with "s) before putting in a secret?

Need "network_mode: host" when using docker-in-docker feature with compose

When using this with docker-in-docker,
destinations won't be reachable from containers running in a Codespace
if you are using "dockerComposeFile": "docker-compose.yml" in devcontainer.json.

The workaround is to set network_mode: host in your docker-compose.yml.


A good test is running $ route -n, if you don't see this ⬇️ in the parent container then it won't work.

172.17.0.0      0.0.0.0         255.255.0.0     U     0      0        0 docker0

This does not work

  1. the comma here makes it an invalid json file:
    "dockerfile": "Dockerfile",
  2. the base image is mcr.microsoft.com/vscode/devcontainers/base:0-bullseye which doesn't even have Python (i assume lots of ppl need to connect to private network in order to install from their private pypi)
  3. after i switched it to mcr.microsoft.com/vscode/devcontainers/python:3.8-bullseye the instance became very unstable. i always got disconnected a few mins after spinning it up
  4. then i switched back to base:0-bullseye, it became unstable too. my only guess is: the entire codespaces is still very beta
  5. this repo has no updates in 7 months. no one responds with the issues. no one evaluates PRs. so the key question is has github stopped developing codespaces at all???

Does not work when server pushes multiple dhcp-options

Setup my codespace using

sudo apt-get -y update
sudo apt-get -y install --no-install-recommends openvpn resolvconf

Added to my client.ovpn

script-security 2 
up /etc/openvpn/update-resolv-conf 
down /etc/openvpn/update-resolv-conf

Confirmed that the script was being called correctly and passed the multiple dhcp-options.

Expected my /etc/resolv.conf to be updated with all of the pushed dhcp-options among other things.

However, my resolv.conf is not updated correctly with multiple

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.