Differences between revisions 21 and 22

Deletions are marked like this. Additions are marked like this.
Line 41: Line 41:
        export {http,https,ftp,ftps,gopher,wais}_proxy="http://$username:$password@netmon.iitb.ac.in:80/"         export {http,https,ftp,ftps,gopher,wais}_proxy="http://$username:$password@netmon.iitb.ac.in:90/"
Line 46: Line 46:
 export {HTTP,HTTPS,FTP,FTPS,GOPHER,WAIS}_PROXY="http://$username:$password@netmon.iitb.ac.in:80/"  export {HTTP,HTTPS,FTP,FTPS,GOPHER,WAIS}_PROXY="http://$username:$password@netmon.iitb.ac.in:90/"
Line 65: Line 65:
        export {http,https,ftp,ftps,gopher,wais}_proxy="http://$username:$password@10.101.1.5:80/"         export {http,https,ftp,ftps,gopher,wais}_proxy="http://$username:$password@10.101.1.5:90/"
Line 70: Line 70:
 export {HTTP,HTTPS,FTP,FTPS,GOPHER,WAIS}_PROXY="http://$username:$password@10.101.1.5:80/"  export {HTTP,HTTPS,FTP,FTPS,GOPHER,WAIS}_PROXY="http://$username:$password@10.101.1.5:90/"
Line 83: Line 83:
        export {http,https,ftp,ftps,gopher,wais}_proxy="http://$username:$password@netmon.iitb.ac.in:80/"         export {http,https,ftp,ftps,gopher,wais}_proxy="http://$username:$password@netmon.iitb.ac.in:90/"
Line 88: Line 88:
 export {HTTP,HTTPS,FTP,FTPS,GOPHER,WAIS}_PROXY="http://$username:$password@netmon.iitb.ac.in:80/"  export {HTTP,HTTPS,FTP,FTPS,GOPHER,WAIS}_PROXY="http://$username:$password@netmon.iitb.ac.in:90/"
Line 102: Line 102:
        export {http,https,ftp,ftps,gopher,wais}_proxy="http://$username:$password@10.108.1.1:80/"         export {http,https,ftp,ftps,gopher,wais}_proxy="http://$username:$password@10.108.1.1:90/"
Line 107: Line 107:
 export {HTTP,HTTPS,FTP,FTPS,GOPHER,WAIS}_PROXY="http://$username:$password@10.108.1.1:80/"  export {HTTP,HTTPS,FTP,FTPS,GOPHER,WAIS}_PROXY="http://$username:$password@10.108.1.1:90/"

Bashrc.

function proxyaero()
        {
        echo -n "username:"
        read -e username
        echo -n "password:"
        read -es password


        export {http,https,ftp,ftps,gopher,wais}_proxy="http://$username:$password@10.101.1.5:90/"
        export no_proxy=".iitb.ac.in,10.0.0.0/8,127.0.0.1,localhost"

        #some apps need the vairables in CAPS

        export {HTTP,HTTPS,FTP,FTPS,GOPHER,WAIS}_PROXY="http://$username:$password@10.101.1.5:90/"
        export NO_PROXY=".iitb.ac.in,10.0.0.0/8,127.0.0.1,localhost"
        }

        function proxyhss(){
        echo -n "username:"
        read -e username
        echo -n "password:"
        read -es password

        export {http,https,ftp,ftps,gopher,wais}_proxy="http://$username:$password@10.108.1.1:90/"
        export no_proxy=".iitb.ac.in,10.0.0.0/8,127.0.0.1,localhost"

        #some apps need the vairables in CAPS

        export {HTTP,HTTPS,FTP,FTPS,GOPHER,WAIS}_PROXY="http://$username:$password@10.108.1.1:90/"
        export NO_PROXY=".iitb.ac.in,10.0.0.0/8,127.0.0.1,localhost"
        }

        function proxynetmon(){
        echo -n "username:"
        read -e username
        echo -n "password:"
        read -es password

        export {http,https,ftp,ftps,gopher,wais}_proxy="http://$username:$password@netmon.iitb.ac.in:90/"
        export no_proxy="*.iitb.ac.in,10.0.0.0/8,127.0.0.1,localhost"

        #some apps need the vairables in CAPS

        export {HTTP,HTTPS,FTP,FTPS,GOPHER,WAIS}_PROXY="http://$username:$password@netmon.iitb.ac.in:90/"
        export NO_PROXY=".iitb.ac.in,10.0.0.0/8,127.0.0.1,localhost"
        }

export HISTFILESIZE=10000000
export HISTSIZE=10000000
export HISTIGNORE="rm*"
export HISTCONTROL=erasedups

proxycmdaero.sh

echo -n "Aero username:"
read -e username
echo -n "Aero password:"
read -es password

        export {http,https,ftp,ftps,gopher,wais}_proxy="http://$username:$password@10.101.1.5:90/"
        export no_proxy=".iitb.ac.in,10.0.0.0/8,127.0.0.1,localhost"

        #some apps need the vairables in CAPS

        export {HTTP,HTTPS,FTP,FTPS,GOPHER,WAIS}_PROXY="http://$username:$password@10.101.1.5:90/"
        export NO_PROXY=".iitb.ac.in,10.0.0.0/8,127.0.0.1,localhost"
"$@"

proxycmdnetmon.sh

echo -n "Netmon username:"
read -e username
echo -n "Netmon password:"
read -es password

        export {http,https,ftp,ftps,gopher,wais}_proxy="http://$username:$password@netmon.iitb.ac.in:90/"
        export no_proxy="*.iitb.ac.in,10.0.0.0/8,127.0.0.1,localhost"

        #some apps need the vairables in CAPS

        export {HTTP,HTTPS,FTP,FTPS,GOPHER,WAIS}_PROXY="http://$username:$password@netmon.iitb.ac.in:90/"
        export NO_PROXY=".iitb.ac.in,10.0.0.0/8,127.0.0.1,localhost"
"$@"

proxycmdhss.sh

echo -n "HSS username:"
read -e username
echo -n "HSS password:"
read -es password

        export {http,https,ftp,ftps,gopher,wais}_proxy="http://$username:$password@10.108.1.1:90/"
        export no_proxy=".iitb.ac.in,10.0.0.0/8,127.0.0.1,localhost"

        #some apps need the vairables in CAPS

        export {HTTP,HTTPS,FTP,FTPS,GOPHER,WAIS}_PROXY="http://$username:$password@10.108.1.1:90/"
        export NO_PROXY=".iitb.ac.in,10.0.0.0/8,127.0.0.1,localhost"

"$@"

Configs (last edited 2017-04-13 04:46:00 by vinay.n)