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.