Skip to content
loading...

re: Python set linux proxy VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I assume that you use applications, that respect the environment variables like proxy_http, proxy_https, proxy_ftp etc. There is no single configur...
 

First, thank you for replying!

I have already attempted: export http_proxy="proxy-ip:proxy-port"

I also would like to add, I'm only trying to get openvpn to use the proxy

What I'm shooting for:
client -> (openvpn) -> Pi -> (Python/Proxy) -> internet

 

Then the easiest thing to do would be to start openvpn from within your python script.
Set the environment variables and do a os.system call or use the subprocess module.

That's genius! I will try that right away!

I kinda feel a little silly, as that is rather simple

code of conduct - report abuse