ocproxy
ocproxy copied to clipboard
Use vpnns with python script?
Hi, for making this tool available! I've been researching ways to run openconnect as non-root user and so far have had the best luck with the vpnns command. I was able to run Firefox and openconnect succesfully. I would also like to be able to run a python script that requires a VPN connection in its own network namespace. I image that is possible, but was hoping for confirmation before moving forward. I see the examples with browsers and transmission and also saw Issue 15 where someone used vpnns
with ssh.
It seems like the Python script would need to create a process that stay running for vpnns --attach
to work. Am I on the right track?
Or, would it be better to use ocproxy
for this?
Thanks!
Edit: I noticed this line in the README that I missed the first few times.
If run without arguments, it will open a shell inside the namespace.
I'm thinking running without a command to get a shell and then running the Python script from the shell may be the easiest option, but I haven't sorted it out yet.