This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Automatically Change Browser Proxy Settings

I have a laptop (Win XP Pro) that I use on the network where Astaro is running (with Basic User Authentication) and I also use it on other networks, mostly other WiFi networks, some open and some password protected.  It's a pain to have to change my proxy settings in Firefox and IE when I move from Astaro to another network that doesn't use proxy.  Is there a way to automatically change my browser proxy settings?

--Scott


This thread was automatically locked due to age.
  • Not with out scripts. That stuff is all stored in the almighty registry of Windows and isn't really a Astaro/proxy issue. 

    A couple of scripts or batch files on your desktop that you can just double click might be a tad easier. Just Google-bomb for proxy scripts and you have plenty of scripts to choose from. 

    -Mark
  • There is a way, but you'd have to have a web server setup at each site that serves out the url that needs to be set in the proxy.. and it requires a SRV DNS record on the DNS at each site.  I've looked at implementing this on corporate nets with different WAN sites and traveling users, but it is not gonna happen with public Wi-Fi Spots, etc.  You are stuck doing it by hand, or do what I do... use IE when at work (behind the proxy) and use Firefox when out in the world... their proxy settings are separately stored in the registry.

    CTO, Convergent Information Security Solutions, LLC

    https://www.convergesecurity.com

    Advice given as posted on this forum does not construe a support relationship or other relationship with Convergent Information Security Solutions, LLC or its subsidiaries.  Use the advice given at your own risk.

  • Hi BrucekConvergent
    Could you please give an example on how you did that?
  • I noticed something odd recently.  On my home network I'm running Astaro Beta 7.47 with Basic User Authentication.  On my main computer I have IE8 and Windows 7 RC.  It works fine when enable proxy server in LAN Settings, as it should.  But IE also works fine even when I uncheck proxy.  I still get the Astaro Basic User Authentication login pop-up.  It's like IE automatically figures out I'm using a proxy. It even behaves like this after I reboot. On the same home network I have a computer running XP with IE7 and when I uncheck the proxy, I can't get to the internet, which is what I expect to happen.
  • Scott, in which mode are you running the HTTP/S Proxy?  The behavior you describe sounds like "Transparent with Authentication".
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • In my post I said the mode was Basic User Authentication.  If this doesn't answer your question then I'm not sure.  If you tell me which screen to go to, then I'll let you know.

    Is there a resource that has a good explanation of the different proxy modes?  Astaro help for this page is okay, but it doesn't even list transparent with authentication.  It would be nice to have a thorough explanation of the proxy services.


    --Scott
  • Hi BrucekConvergent
    Could you please give an example on how you did that?


    It's too much for me to get into here, but Google can find it... there's even a M$ KB article on it (specific to their products, of course).  Some browsers work differently, .PAC files and all that.

    CTO, Convergent Information Security Solutions, LLC

    https://www.convergesecurity.com

    Advice given as posted on this forum does not construe a support relationship or other relationship with Convergent Information Security Solutions, LLC or its subsidiaries.  Use the advice given at your own risk.

  • Not with out scripts. That stuff is all stored in the almighty registry of Windows and isn't really a Astaro/proxy issue. 

    A couple of scripts or batch files on your desktop that you can just double click might be a tad easier. Just Google-bomb for proxy scripts and you have plenty of scripts to choose from. 

    -Mark


    To make it easier I'm thinking you could write a batch file and script that also launch the browser:
    1.) Manual - Write two of them - put Inside and Outside icons on your desktop - use the one that's appropriate.
    2.) Semi-Automatic - You could write one routine and have it stop and ask you which proxy you want to use.
    3.) Fully Automatic - How about have it ping for the inside proxy address or similar, test for failure, branch to running the correct proxy mode?
  • I noticed something odd recently.  On my home network I'm running Astaro Beta 7.47 with Basic User Authentication.  On my main computer I have IE8 and Windows 7 RC.  It works fine when enable proxy server in LAN Settings, as it should.  But IE also works fine even when I uncheck proxy.  I still get the Astaro Basic User Authentication login pop-up.  It's like IE automatically figures out I'm using a proxy. It even behaves like this after I reboot. On the same home network I have a computer running XP with IE7 and when I uncheck the proxy, I can't get to the internet, which is what I expect to happen.


    If you want to make sure, and go throught the trouble, you could try to see what is happening with IE8 by installing Wireshark and make a trace. If what you suggest is correct, you'd see IE try port 80 first, and after that try 8080, even without the setting enabled.

    Would be odd behaviour though. If I tell IE to stay away from my proxy, it should listen [:)]
  • So, it sounds like ScottG has found a beta bug! (Assuming there's no packet filter rule allowing the traffic - the appearance of the auth request would seem to confirm that there isn't.)
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA