Yast2 Proxy Issue

Hi.

This is a follow up question to my squid proxy server thread at https://forums.opensuse.org/showthread.php/564820-Squid-not-working-as-expected .

I use the Yast2 Proxy tool on a client PC to use the new squid proxy server I set up on another PC. The TEST featured tests ok.

chris@asus-roc:~> sudo yast2 proxy summary


* Proxy is enabled.
* HTTP Proxy: http://10.1.1.33:3128
* HTTPS Proxy: http://10.1.1.33:3128
* FTP Proxy: http://10.1.1.33:3128




This updates the /etc/sysconfig/proxy file -

chris@asus-roc:~> cat /etc/sysconfig/proxy
## Path:    Network/Proxy
## Description:    
## Type:    yesno
## Default:    no
## Config:      kde,profiles
#
# Enable a generation of the proxy settings to the profile.
# This setting allows to turn the proxy on and off while
# preserving the particular proxy setup.
# 
PROXY_ENABLED="yes"

## Type:    string
## Default:    ""
#
# Some programs (e.g. lynx, arena and wget) support proxies, if set in
# the environment. 
# Example: HTTP_PROXY="http://proxy.provider.de:3128/"
HTTP_PROXY="http://10.1.1.33:3128"

## Type:    string
## Default:    ""
#
# Some programs (e.g. lynx, arena and wget) support proxies, if set in
# the environment. 
# This setting is for https connections
HTTPS_PROXY="http://10.1.1.33:3128"

## Type:    string
## Default:    ""
#
# Example: FTP_PROXY="http://proxy.provider.de:3128/"
#
FTP_PROXY="http://10.1.1.33:3128"

## Type:    string
## Default:    ""
#
# Example: GOPHER_PROXY="http://proxy.provider.de:3128/"
#
GOPHER_PROXY=""

## Type:    string
## Default:    ""
#
# Example: SOCKS_PROXY="socks://proxy.example.com:8080"
#
SOCKS_PROXY=""

## Type:    string
## Default:    ""
#
# Example: SOCKS5_SERVER="office-proxy.example.com:8881"
#
SOCKS5_SERVER=""

## Type:    string(localhost)
## Default:    localhost
#
# Example: NO_PROXY="www.me.de, .do.main, localhost"
#
NO_PROXY="localhost,127.0.0.1"
chris@asus-roc:~> 



I then log out then in.

This, as I understand it, sets the proxy server settings system wide on the client. However, I am not seeing that. If I use ftp in a terminal or just plain web browse with firefox, the iftop network monitor tool shows me that ftp, firefox etc are not using the proxy on 10.1.1.33.

If I set the proxy manually in firefox’s settings then that traffic is through the proxy.

It seems to me that that “Yast2 Proxy” does nothing. Am I setting up a system wide proxy correctly? Do I need to add something to my NetworkManager settings?

chris@asus-roc:~> nmcli device show 
GENERAL.DEVICE:                         eth0
GENERAL.TYPE:                           ethernet
GENERAL.HWADDR:                         (I have hidden the MAC)
GENERAL.MTU:                            1500
GENERAL.STATE:                          100 (connected)
GENERAL.CONNECTION:                     Ethernet connection 1
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/2
WIRED-PROPERTIES.CARRIER:               on
IP4.ADDRESS[1]:                         10.1.1.20/24
IP4.GATEWAY:                            10.1.1.1
IP4.ROUTE[1]:                           dst = 0.0.0.0/0, nh = 10.1.1.1, mt = 100
IP4.ROUTE[2]:                           dst = 10.1.1.0/24, nh = 0.0.0.0, mt = 100
IP4.DNS[1]:                             10.1.1.1
IP4.DOMAIN[1]:                          lan
IP6.ADDRESS[1]:                         fd6c:1c5d:8413::75e/128
IP6.ADDRESS[2]:                         fe80::300c:595d:d756:a655/64
IP6.GATEWAY:                            --
IP6.ROUTE[1]:                           dst = fe80::/64, nh = ::, mt = 100
IP6.ROUTE[2]:                           dst = fd6c:1c5d:8413::75e/128, nh = ::, mt = 100
IP6.DNS[1]:                             fe80::1213:31ff:fe61:7d8e
IP6.SEARCHES[1]:                        lan

GENERAL.DEVICE:                         lo
GENERAL.TYPE:                           loopback
GENERAL.HWADDR:                         00:00:00:00:00:00
GENERAL.MTU:                            65536
GENERAL.STATE:                          10 (unmanaged)
GENERAL.CONNECTION:                     --
GENERAL.CON-PATH:                       --
IP4.ADDRESS[1]:                         127.0.0.1/8
IP4.GATEWAY:                            --
IP6.ADDRESS[1]:                         ::1/128
IP6.GATEWAY:                            --
IP6.ROUTE[1]:                           dst = ::1/128, nh = ::, mt = 256
chris@asus-roc:~> 


For what it’s worth, there are no proxy related environment variables created either.
Help.

Thanks.

Please ignore my previous quote on environment variables. The do get created.

hris@asus-roc:~> env |grep -i PROXY
no_proxy=localhost,127.0.0.1
gopher_proxy=
ftp_proxy=http://10.1.1.33:3128
https_proxy=http://10.1.1.33:3128
socks_proxy=
NO_PROXY=localhost,127.0.0.1
http_proxy=http://10.1.1.33:3128
SOCKS_PROXY=
chris@asus-roc:~> 


No, it only sets proxy for root user for using administrative tools. It does not change settings for others, non-root, users.

Thanks. So how do I set the proxy for non-root users - hopefully not on a per application basis?

I hate to sort of contradict you, but the creation of the 3 proxy environment variables from “yast proxy” are automatically used by apps like wget, curl, mpv etc in my testing.

Still having issues with ftp but I shall persist.

OK, thank you. I may have misremembered this.