Message boards : Number crunching : Setting up a local Squid to work with LHC@home - Comments and Questions
Message board moderation

To post messages, you must log in.

Previous · 1 · 2 · 3 · 4 · 5 · 6 . . . 8 · Next

AuthorMessage
Profile Yeti
Volunteer moderator
Avatar

Send message
Joined: 2 Sep 04
Posts: 453
Credit: 193,464,258
RAC: 5,837
Message 43922 - Posted: 15 Dec 2020, 13:11:20 UTC - in response to Message 43920.  

TCP_Tunnel is because of https - connection
[quote]squid TCP_Tunnel
xx.yyy.xxx.yyy 3128 - - [13/Dec/2020:18:29:33 +0100] "CONNECT lhcathome.cern.ch:443 HTTP/1.1" 200 58982 "-" "BOINC client (x86_64-pc-linux-gnu 7.16.6)" TCP_TUNNEL:HIER_DIRECT

WCG show the same info:
xx.yyy.zzz.xxx 3128 - - [15/Dec/2020:11:56:27 +0100] "CONNECT www.worldcommunitygrid.org:443 HTTP/1.1" 200 5980 "-" "BOINC client (x86_64-pc-linux-gnu 7.16.6)" TCP_TUNNEL:HIER_DIRECT



Supporting BOINC, a great concept !
ID: 43922 · Report as offensive     Reply Quote
maeax

Send message
Joined: 2 May 07
Posts: 2090
Credit: 158,695,394
RAC: 129,577
Message 43967 - Posted: 21 Dec 2020, 7:13:14 UTC

This is not the proxy from the own PC:
[2020-12-19 05:41:25] VERSION PID UPTIME(M) MEM(K) REVISION EXPIRES(M) NOCATALOGS CACHEUSE(K) CACHEMAX(K) NOFDUSE NOFDMAX NOIOERR NOOPEN HITRATE(%) RX(K) SPEED(K/S) HOST PROXY ONLINE
[2020-12-19 05:41:25] 2.7.5.0 6547 2481 49536 75615 0 65 3410004 3670017 1606 65024 0 178595 97.0805 804596 1293 http://s1cern-cvmfs.openhtc.io/cvmfs/atlas.cern.ch http://128.142.168.202:3126 1
[2020-12-19 05:41:25] CVMFS is ok
[2020-12-19 05:41:25] Using singularity image /cvmfs/atlas.cern.ch/repo/containers/images/singularity/x86_64-centos7.img
https://lhcathome.cern.ch/lhcathome/result.php?resultid=292390311
ID: 43967 · Report as offensive     Reply Quote
Toby Broom
Volunteer moderator

Send message
Joined: 27 Sep 08
Posts: 801
Credit: 649,778,357
RAC: 240,807
Message 43972 - Posted: 21 Dec 2020, 10:49:34 UTC - in response to Message 43967.  

This is a CERN internal server, I assume the image isn't in the cache so it goes to cern for data?
ID: 43972 · Report as offensive     Reply Quote
Toby Broom
Volunteer moderator

Send message
Joined: 27 Sep 08
Posts: 801
Credit: 649,778,357
RAC: 240,807
Message 43973 - Posted: 21 Dec 2020, 10:50:17 UTC

My misses are going down after 10 days:

Downloads served by the proxy
TCP_MEM_HIT 19769853 requests 87.6 GB
TCP_HIT 2344592 requests 2.5 TB
TCP_REFRESH_UNMODIFIED 354531 requests 1.6 GB

Downloads requested from lhc@home
TCP_MISS 84787 requests 16.9 GB
TCP_REFRESH_MODIFIED 266538 requests 7.6 GB

Result uploads to lhc@home
TCP_MISS__UPLOAD 16102 requests 125.7 GB
ID: 43973 · Report as offensive     Reply Quote
computezrmle
Volunteer moderator
Volunteer developer
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 15 Jun 08
Posts: 2401
Credit: 225,324,056
RAC: 123,243
Message 43974 - Posted: 21 Dec 2020, 11:20:44 UTC - in response to Message 43967.  

It's a local CVMFS client used for Theory/ATLAS native.

Due to a change at CERN it configures a CERN backup squid if no local proxy is used.
I'm working on a suggestion but can't promise getting it ready before X-mas.
ID: 43974 · Report as offensive     Reply Quote
maeax

Send message
Joined: 2 May 07
Posts: 2090
Credit: 158,695,394
RAC: 129,577
Message 44229 - Posted: 30 Jan 2021, 9:42:15 UTC

Squid for Windows show the local IP-Adress of the proxy in clearname in the finished Task!.
ID: 44229 · Report as offensive     Reply Quote
computezrmle
Volunteer moderator
Volunteer developer
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 15 Jun 08
Posts: 2401
Credit: 225,324,056
RAC: 123,243
Message 44230 - Posted: 30 Jan 2021, 10:46:49 UTC - in response to Message 44229.  

Squid for Windows show the local IP-Adress of the proxy in clearname in the finished Task!.

It's not Squid, it's the CVMFS client that shows the IP of the proxy currently in use if you run "cvmfs_config stat".
This is useful to see whether CVMFS is correctly configured.

You complained lots of times via PM that a proxy IP like 192.168.a.b would violate data protection laws and would be a security risk.
Neither is true!

Regarding data protection:
Data protection laws should ensure that a distinct person can't be identified or tracked without permission.
This IP range is officially reserved for private use by everybody and indeed it is in use within an uncountable number of LANs around the world.
Hence there's never a relationship to a distinct person.

Regarding security:
This IP range MUST NOT be forwarded outside your own LAN.
Even if you would misconfigure your own internet router, your ISP would block all packets to/from that IP.
Your ISP MUST block this to avoid crashing his own networks on a technical level.

See:
https://tools.ietf.org/html/rfc1918
ID: 44230 · Report as offensive     Reply Quote
maeax

Send message
Joined: 2 May 07
Posts: 2090
Credit: 158,695,394
RAC: 129,577
Message 44239 - Posted: 31 Jan 2021, 1:17:07 UTC - in response to Message 44230.  

The name of my network is PeaceonEarth (and not since yesterday).
The public free WLAN-IP's are using 192.168...
In Linux-VM the Proxy-Adress is not shown!
ID: 44239 · Report as offensive     Reply Quote
ivan
Volunteer moderator
Project tester
Volunteer developer
Volunteer tester
Project scientist
Avatar

Send message
Joined: 29 Aug 05
Posts: 1004
Credit: 6,267,783
RAC: 227
Message 45046 - Posted: 3 Jun 2021, 9:40:20 UTC
Last modified: 3 Jun 2021, 9:40:50 UTC

Warning regarding a squid vulnerability (excerpted from an EGI SVG advisory):

Affected software and risk
==========================

HIGH risk vulnerability concerning Squid

Package : Squid, including Frontier Squid [R 3] before version 4.15

The Squid project has publicly announced [R 1] new vulnerabilities, one of which is deemed HIGH risk, viz. CVE-2020-25097 [R 2], because it may allow services to be exposed that are not directly accessible from the client host. The other ones only concern potential denial of service and hence are deemed low risk.
[R 1] http://lists.squid-cache.org/pipermail/squid-announce/2021-May/000127.html
[R 2] https://github.com/squid-cache/squid/security/advisories/GHSA-jvf6-h9gj-pmj6
[R 3] https://twiki.cern.ch/twiki/bin/view/Frontier/InstallSquid


Fixed versions (squid-3.5.20-17.el7_9.6) are available for RHEL 7, CentOS 7, SL 7.

Mitigation
==========
For sites that cannot upgrade in a timely manner, temporary workarounds for the high-risk vulnerability are provided here.

If frontier-squid is used, update customize.sh with the following line and either reload or restart frontier-squid:
setoption("uri_whitespace", "deny")

If a plain squid is used instead, set the "uri_whitespace" directive in squid.conf to either:
uri_whitespace deny
or
uri_whitespace encode
and restart the squid service.

ID: 45046 · Report as offensive     Reply Quote
maeax

Send message
Joined: 2 May 07
Posts: 2090
Credit: 158,695,394
RAC: 129,577
Message 45047 - Posted: 4 Jun 2021, 8:46:34 UTC
Last modified: 4 Jun 2021, 8:47:49 UTC

Proxy-using for us Volunteers need a new strategy from Cern-IT in the future.
For example WCG don't allowed a local proxy.
Thank you Ivan, for this Info!
ID: 45047 · Report as offensive     Reply Quote
computezrmle
Volunteer moderator
Volunteer developer
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 15 Jun 08
Posts: 2401
Credit: 225,324,056
RAC: 123,243
Message 45048 - Posted: 4 Jun 2021, 9:32:02 UTC - in response to Message 45047.  

To fix the vulnerability use the workaround Ivan mentioned at the end of his post.
There's just one line to be added to squid.conf plus a squid reload.
BTW:
That workaround is officially suggested by the Squid developers.




For example WCG don't allowed a local proxy.

They produce much less HTTP traffic.
Hence, they simply don't need a proxy and that's why they don't enable their systems to use one.




Proxy-using for us Volunteers need a new strategy from Cern-IT in the future.

What kind of new strategy?
What issues should it solve?
ID: 45048 · Report as offensive     Reply Quote
maeax

Send message
Joined: 2 May 07
Posts: 2090
Credit: 158,695,394
RAC: 129,577
Message 45051 - Posted: 9 Jun 2021, 8:31:25 UTC
Last modified: 9 Jun 2021, 8:41:26 UTC

Have a Atlas native without using squid and this info in EventtoHits File:
09:56:06 warn [frontier.c:1114]: Trying next proxy db-atlas-squid.ndgf.org[153.5.68.11] with same server atlasfrontier-ai.cern.ch
09:56:06 warn [frontier.c:1014]: Request 3 on chan 24 failed at Wed Jun 9 09:56:06 2021: -7 [fn-htclient.c:445]: bad response (HTTP/1.1 403 Forbidden) proxy=db-atlas-squid.ndgf.org[153.5.68.11] server=atlasfrontier-ai.cern.ch09:56:06 warn [frontier.c:1114]: Trying next proxy db-atlas-squid.ndgf.org[153.5.68.11] with same server atlasfrontier-ai.cern.ch
09:56:06 warn [frontier.c:1014]: Request 3 on chan 24 failed at Wed Jun 9 09:56:06 2021: -7 [fn-htclient.c:445]: bad response (HTTP/1.1 403 Forbidden) proxy=db-atlas-squid.ndgf.org[153.5.68.11] server=atlasfrontier-ai.cern.ch
ID: 45051 · Report as offensive     Reply Quote
maeax

Send message
Joined: 2 May 07
Posts: 2090
Credit: 158,695,394
RAC: 129,577
Message 45052 - Posted: 10 Jun 2021, 5:52:45 UTC - in response to Message 45048.  

For example WCG don't allowed a local proxy.
They produce much less HTTP traffic.
Hence, they simply don't need a proxy and that's why they don't enable their systems to use one.

NO ---- WCG is using HAPROXY!!!! https://HAPROXY.COM


Proxy-using for us Volunteers need a new strategy from Cern-IT in the future.
What kind of new strategy?
What issues should it solve?
ID: 45052 · Report as offensive     Reply Quote
Toby Broom
Volunteer moderator

Send message
Joined: 27 Sep 08
Posts: 801
Credit: 649,778,357
RAC: 240,807
Message 45133 - Posted: 18 Jul 2021, 14:02:04 UTC

can I just install the new version of Squid over old one?
ID: 45133 · Report as offensive     Reply Quote
computezrmle
Volunteer moderator
Volunteer developer
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 15 Jun 08
Posts: 2401
Credit: 225,324,056
RAC: 123,243
Message 45134 - Posted: 18 Jul 2021, 15:07:54 UTC - in response to Message 45133.  

You are thinking about v4.14 for Windows, right?

I didn't yet test this version but there may be a few issues.

1. The installer may overwrite your squid.conf
=> backup your's before you upgrade

2. Like the 3.5 installer the new one may start Squid directly after the installation.
This may cause issues with the creation of the disk cache directories.
=> Ensure no Squid instance is running when you create the disk cache directories or restore the squid.conf

The necessary steps are already explained in the HowTo.



The configuration parameters used in the HowTo's squid.conf work for both v3.5 and v4.14.
As Ivan posted a while ago the following line should be added to squid.conf:
uri_whitespace deny
ID: 45134 · Report as offensive     Reply Quote
Toby Broom
Volunteer moderator

Send message
Joined: 27 Sep 08
Posts: 801
Credit: 649,778,357
RAC: 240,807
Message 45136 - Posted: 18 Jul 2021, 17:19:19 UTC - in response to Message 45134.  

Yes, since this is the stable version.

The installer doesn't seem to let you install the new version over the old one, you have to uninstall and reinstall.

It deletes the config file so, yes backup is needed :)

Yes, it auto starts so you have to shutdown install the config then restart.
ID: 45136 · Report as offensive     Reply Quote
Toby Broom
Volunteer moderator

Send message
Joined: 27 Sep 08
Posts: 801
Credit: 649,778,357
RAC: 240,807
Message 45142 - Posted: 19 Jul 2021, 17:11:17 UTC - in response to Message 45136.  

Seems to be problem free.
ID: 45142 · Report as offensive     Reply Quote
computezrmle
Volunteer moderator
Volunteer developer
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 15 Jun 08
Posts: 2401
Credit: 225,324,056
RAC: 123,243
Message 45143 - Posted: 19 Jul 2021, 18:58:43 UTC - in response to Message 45142.  

+1

Thanks for sharing your experience.
ID: 45143 · Report as offensive     Reply Quote
AndreyOR

Send message
Joined: 8 Dec 19
Posts: 37
Credit: 7,578,791
RAC: 3,092
Message 45531 - Posted: 25 Oct 2021, 6:29:19 UTC

Would like a clarification on whether to install local Squid. I've read that it's recommended for 5+ worker nodes but not recommended to install on VMs. If I'm running native Theory & Atlas tasks with 5+ worker nodes on Hyper-V Ubuntu, is it recommended to install local Squid? Thanks.
ID: 45531 · Report as offensive     Reply Quote
computezrmle
Volunteer moderator
Volunteer developer
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 15 Jun 08
Posts: 2401
Credit: 225,324,056
RAC: 123,243
Message 45532 - Posted: 25 Oct 2021, 7:11:57 UTC - in response to Message 45531.  

Your computer list shows 5 computers with a total of 62 processors (that's BOINC terminology).
"Worker node" is datacenter terminology.

In this context processors, worker nodes, CPUs, threads, whatever are equivalent.
The important thing is 62 which shows your maximum computing capability.

Each 1-core task (Theory, CMS) counts a 1.
Each n-core (ATLAS) task counts as n.
Sum up the cores you expect to be used by all concurrently running tasks.
It doesn't matter whether they run on bare metal or inside a VM as all of them generate lots of HTTP traffic.



Most important is to connect Squid with a fast network.
1-Gbit LAN cable would be fine.
If all your computers are interconnected with that fast network, 1 Squid instance would be enough.
It's possible but not recommended to run that Squid on a VM:
- Squid's performance is better on bare metal.
- Squid would be unavailable if you shut down the host the Squid VM is running on.
ID: 45532 · Report as offensive     Reply Quote
Previous · 1 · 2 · 3 · 4 · 5 · 6 . . . 8 · Next

Message boards : Number crunching : Setting up a local Squid to work with LHC@home - Comments and Questions


©2024 CERN