Announcement

Collapse
No announcement yet.

Proxy set up

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Proxy set up

    I'm in the middle of the world's largest sandbox and have net access via a proxy.

    Setting it up in the Windows LAN configuration was a breeze, proxy_name and port 8080
    After a little while a box pops up asking for the User and Password, done.

    I find it strange Kubuntu doesn't have an easy proxy configuration but then I'm possibly overlooking it.
    The one in System Settings does not offer a way to authenticate with User and Password.

    Right now I'm somewhat on the WWW via the very easy proxy configuration in Firefox but I can't find a working way to get the whole system on line.
    Which would be good for using Thunderbird and especially for accessing my VPN.

    One of the options I found on the net (but without report it worked) is adding some lines to /etc/profile:
    PHP Code:
    export http_proxy=http://user:passwd@thisproxy:port/ 
    export ftp_proxy=http://user:passwd@thisproxy:port/ 
    What I don't like is that it is limited to http and ftp.

    Another one suggests:

    PHP Code:
    Create a .proxy file in your home directoryHave it only read/write-able by yourself, as we will store your credentials in there (including your password).

    touch ~/.proxy
    chmod 600 
    ~/.proxy

    Open it with your favorite text editor 
    and add the following contentreplacing usernamepasswordproxy_hostname and proxy_port by their actual values:

    # Proxy config
    export http_proxy='username:password@http://proxy_hostname:proxy_port'
    export no_proxy=’localhost,127.0.0.1,.mycompany.lan’

    export https_proxy=$http_proxy
    export HTTP_PROXY
    =$http_proxy
    export HTTPS_PROXY
    =$http_proxy
    export NO_PROXY
    =$no_proxy

    With that option
    the no_proxy variable let you set a list of IP/mask/domains to ignoreNote that the domain syntax is slightly different than the dconf-editor oneonly .mycompany.net withouth any wildcard.

    Edit your ~/.profile file and add the following lineswhich will load the content of the file we just created when you start your session.

    # include proxy config if it exists
    if [ -f $HOME/.proxy ]; then
        
    $HOME/.proxy
    fi

    Log out 
    and log back in, and your proxy settings should be taken into account
    I tried this one on another computer but I get no success, I still have to use the Firefox settings to post this question.

    Does one of the readers here have a better suggestion?

    #2
    Interesting question!

    I haven't tried this myself, but I did some rummaging and it looks like your best best is to install cntlm, which is a service that acts as an intermediate proxy.

    It will "transparently add NT domain authentication tokens to outgoing packets and forward them on to the configured proxy server".

    You then set the system proxy to http://localhost port 3128 (the cntlm service).

    http://unix.stackexchange.com/questi...g-proxy-server

    http://linuxfaq.wikidot.com/cntlm
    samhobbs.co.uk

    Comment


      #3
      Yeah I've seen that one but I'd have to download the .deb as apt doesn't (yet) have internet access.

      I'll see if it is possible without dragging along too many dependencies.

      That worked without issue, lunch is over, tonight I'll see what's up

      http://www.ubuntuupdates.org/package...rse/base/cntlm

      Comment


        #4
        Finally I had time and mainly followed the instructions of the second link from Feathers post.

        One uncertainty I have is the domain name in the etc/cntlm.conf file:

        Username xyz
        Domain company.com
        Password abc
        I've tried with the name of the proxy server but no dice...

        Comment


          #5
          Can you give us any more details about the proxy you're using? Is it a company proxy or something? Could be "int" or something like that.
          samhobbs.co.uk

          Comment


            #6
            Yes it is a company proxy and has all kind of nifty things like it only allows access to Farcebook or similarly awful after working hours.
            A nasty one is that it considers many Linux fora as Social Media and Blogs and also shuts them down yet gives a 45 minute allowance per some unspecified time period.

            One hint I had on Windows is it shows a sub domain in the pop up window when Firefox needs the login and password.
            But it did not work.

            Anyway, I'm out but will return in ten days.

            Here a pic of the sandbox:
            Click image for larger version

Name:	IMG_4969k.jpg
Views:	1
Size:	41.5 KB
ID:	643089

            Comment

            Working...
            X