Set up proxy for vpn server on ubuntu server 12.4

Posted by Morteza Soltanabadiyan on Server Fault See other posts from Server Fault or by Morteza Soltanabadiyan
Published on 2014-08-21T08:47:30Z Indexed on 2014/08/22 10:21 UTC
Read the original article Hit count: 325

I have a vpn server with HTTPS, L2TP, OPENVPN, and PPTP. I want to set up a proxy on the server, so all connection that comes from vpn clients, they will use that.

I created the following bash script file for it, but the proxy isn't working.

gsettings set org.gnome.system.proxy mode 'manual'
gsettings set org.gnome.system.proxy.http enabled true
gsettings set org.gnome.system.proxy.http host 'cproxy.anadolu.edu.tr'
gsettings set org.gnome.system.proxy.http port 8080
gsettings set org.gnome.system.proxy.http authentication-user 'admin'
gsettings set org.gnome.system.proxy.http authentication-password 'admin'
gsettings set org.gnome.system.proxy use-same-proxy true


export http_proxy=http://admin:[email protected]:8080
export https_proxy=http://admin:[email protected]:8080
export HTTP_PROXY=http://admin:[email protected]:8080
export HTTPS_PROXY=http://admin:[email protected]:8080

What to do to make a global proxy for server and all vpn clients to use it automatically?

© Server Fault or respective owner

Related posts about vpn

Related posts about proxy