Results 1 to 7 of 7

Thread: Network-specific proxy confgurations

  1. #1

    Default Network-specific proxy confgurations

    Hi all,

    I use my laptop in different environments with different proxy configurations, and it's a bit annoying to have to change the proxy manually, plus logging out an in to make the change apply. E.g.:


    • Place A:
      • wired network requires using a given http proxy.
      • wireless network uses no proxy.

    • Place B:
      • all network interfaces work without proxy.


    So, my question is whether it's possible to configure the network so that each different connection (wireless or wired) uses a different proxy.
    If this is not possible, then whether at least I can configure each network interface to use a different proxy.

    Cheers,
    Eloy

  2. #2
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: Network-specific proxy confgurations

    Quote Originally Posted by evilfer View Post
    Hi all,

    I use my laptop in different environments with different proxy configurations, and it's a bit annoying to have to change the proxy manually, plus logging out an in to make the change apply. E.g.:


    • Place A:
      • wired network requires using a given http proxy.
      • wireless network uses no proxy.

    • Place B:
      • all network interfaces work without proxy.



    So, my question is whether it's possible to configure the network so that each different connection (wireless or wired) uses a different proxy.
    If this is not possible, then whether at least I can configure each network interface to use a different proxy.

    Cheers,
    Eloy
    openSUSE 13.1 has a YaST / Network Services / Proxy module, but its function does not appear as it can be changed per network interface. If you, have not looked at this, perhaps you should look to see what you get.

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  3. #3

    Default Re: Network-specific proxy confgurations

    Quote Originally Posted by jdmcdaniel3 View Post
    openSUSE 13.1 has a YaST / Network Services / Proxy module, but its function does not appear as it can be changed per network interface. If you, have not looked at this, perhaps you should look to see what you get.

    Thank You,
    Hi, thank you for your answer. Yes, currently I'm using the proxy configuration in YaST as you mention (I configured KDE proxy, Mozilla applications... to use system variables and never needed to touch it).

    The problem is that whenever I have to switch network, I have to enter YaST, change the proxy configuration, log out and log in again. Because I only have to switch between one proxy or no proxy at all, I simply need to toggle the "Enable proxy" checkbox. Still, it is a bit annoying. But if I had to use two different proxies, then it'd be very annoying.

    That's way I somehow expect the SO to transparently configure the proxy depending on the network I'm in, without needing to enter YaST to do it manually again and again. I hope this makes sense...

    Eloy

  4. #4
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: Network-specific proxy confgurations

    Quote Originally Posted by evilfer View Post
    Hi, thank you for your answer. Yes, currently I'm using the proxy configuration in YaST as you mention (I configured KDE proxy, Mozilla applications... to use system variables and never needed to touch it).

    The problem is that whenever I have to switch network, I have to enter YaST, change the proxy configuration, log out and log in again. Because I only have to switch between one proxy or no proxy at all, I simply need to toggle the "Enable proxy" checkbox. Still, it is a bit annoying. But if I had to use two different proxies, then it'd be very annoying.

    That's way I somehow expect the SO to transparently configure the proxy depending on the network I'm in, without needing to enter YaST to do it manually again and again. I hope this makes sense...

    Eloy
    The proxy seems to be a single setup file in "/etc/sysconfig" called proxy. You could create more than one proxy file, copy to here and log out and into openSUSE. There may be a proxy systemd service fie and if there is, you may be able to restart the proxy service without logging out. For help with systemd, look here:

    SysdCmd - systemd Command Help/Config Editor - Blogs - openSUSE Forums

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  5. #5
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    13,295
    Blog Entries
    2

    Default Re: Network-specific proxy confgurations

    Recommend using Network Manager which is really built to support this kind of stuff (moving from one network to another).
    IMO there is nothing that NM can't do better that exists in "classical ifup/ifdown" and that includes support for wired vs wireless and whether networking is configured on bootup or login.

    In NM, simply create different "Network Connnections" for each network, which can be defined by network type, location, proxy settings, etc.

    Then, it's a simple click to change from one configuration to another.

    HTH,
    TSU

  6. #6
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: Network-specific proxy confgurations

    Quote Originally Posted by tsu2 View Post
    Recommend using Network Manager which is really built to support this kind of stuff (moving from one network to another).
    IMO there is nothing that NM can't do better that exists in "classical ifup/ifdown" and that includes support for wired vs wireless and whether networking is configured on bootup or login.

    In NM, simply create different "Network Connnections" for each network, which can be defined by network type, location, proxy settings, etc.

    Then, it's a simple click to change from one configuration to another.

    HTH,
    TSU
    I do not see how you have more than one proxy setup used by NM. Have you actually looked at NM for a proxy setup?

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  7. #7

    Default Re: Network-specific proxy confgurations

    I guess you can make your life easy and just use a one click to connect application https://www.iwasel.com/en/ after choosing the server you want to connect through different european servers.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •