Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

The title says it all. I am in a university which has authenticated proxy. Wine is not detecting this. Hence, none of the applications inside wine is getting internet connection. Please help.

share|improve this question
add comment

1 Answer

I'm struggling with this as well, funnily enough. This is what I've worked out so far:

Wine will grab proxy settings from the environment variable "http_proxy". If you're planning on using the same proxy settings throughout the entire session, you can change the http_proxy variable. Follow these instructions: http://askubuntu.com/a/151047/142903

If, like me, you use the computer on more than one network, one of which has a proxy and one of which doesn't, things get a little trickier. Do all processes inherit environment variables from ~/.bashrc?

NB: You may find it useful to use Gnome or KDE, both of which have graphical interfaces for modifying proxy settings.

Edit #2: After a LOT of digging, I finally found this article on BRAMP.NET describing how to use iptables to redirect all outgoing web traffic on port 80 through a proxy server. The writer mentions that if directly sending the packets to the server doesn't work, it is possible to set up a local proxy server using something like Squid that will point to the network proxy.

This should work for applications that don't respect the http_environment variables. I'm currently working out whether this will still work in 12.04/12.10/13.04, and how to have it done automatically using a script inside /etc/network/if-up.d.

Edit #3: Even more digging has led me to this wonderful post describing how to redirect all system traffic through a SOCKS5 proxy set up by Redsocks - this may be adaptable to suit the current problem.

share|improve this answer
    
I tried the 'http_proxy' thing. I even tried changing some windows registry settings inside wine. Yes I have the tricky situation you have mentioned, and I have not yet solved it :) –  dineshdileep Mar 25 '13 at 5:25
    
Are you running Unity? Does the "Apply System - Wide" button in System Settings > Network affect wine? –  Paperclip Badger Mar 27 '13 at 20:34
    
I don't think so... –  dineshdileep Mar 28 '13 at 4:28
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.