set proxy for vpn server on ubuntu server 12.4
- by Morteza Soltanabadiyan
I have a vpn server with HTTPS, L2TP , OPENVPN , PPTP. i want to set proxy in the server so all connection that comes from vpn clients use the proxy that i set in my server.
I made a bash script file for it , but proxy not 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
Now , i dont know what to do to make a global proxy for server and all vpn clients use it automatically.