codespaces-contrib / codespaces-openvpn Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi @Chuxel, What are your thoughts on pulling https://github.com/jamesboehmer/codespaces-openvpn3 into codespaces-contrib
, or merge it here directly into this repo?
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?
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
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)mcr.microsoft.com/vscode/devcontainers/python:3.8-bullseye
the instance became very unstable. i always got disconnected a few mins after spinning it upbase:0-bullseye
, it became unstable too. my only guess is: the entire codespaces
is still very betaSetup 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
Firstly thanks, this works great!
I've copy / pasted in for now, but could this be a good candidate for the features which live in script-library
?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.