/srv/irclogs.ubuntu.com/2022/10/27/#ubuntu-server.txt

=== lotuspsychje_ is now known as lotuspsychje
guesswhatI am kinda confused,  I have VM with docker containers ( mixed usage ). NewRelic agent is reporting CPU usage ~75%, but avg15load is ~80 per host ... how should I interpret this?10:29
tomreynguesswhat: you're not saying what you're measuring where10:42
guesswhattomreyn, its from newrelic agent aggregated per whole vm10:48
guesswhatnot sure how to debug high avgload ( 1,5,15 ) and low overall CPU usage in %10:49
guesswhatiowait is low, peaks to 15% 10:49
tomreynand the  avg15load=80 is on the 'main' VM or on a container? you wrote "per host", does this mean in a container?10:50
guesswhatthats main VM11:02
tomreynso you have ~75% average (?) CPU resource allocation and a 15 minute average load of 80, while iowait is low with peaks at 15%. that's unexplicable to me as well.11:14
tomreynif that's all on the same system11:15
tomreynalthough sometimes containers won't be able to abstract from the container host and will actually report their container host's values for the guest, too.11:16
tomreynguesswhat: ^11:16
=== lotuspsychje_ is now known as lotuspsychje
guesswhati just saw a peak to 40% in iowait ..., but blkio rw is okish, maybe netio ? i am running web scraper in these containers, maybe each process ( client waiting for response ) is actually in waiting state not consuming cpu11:20
ahasenackwaveform: hi, do you have any tpm2 chip/add-on recommendations for the pi3 and pi4?13:42
ogralol13:50
ograthe TPM implementations you could attach to a pi (have to) use insecure bus connections... so using tpm on a pi in general is rather a training exercise but wont give you any secure setup13:52
ograIIRC there are TPM chips to be attached via I2C or some such ... but you can easily sniff the keys off the bus then13:53
ogra(this is also the reason we do ot support such a setup on pi's with any official products)13:54
waveformahasenack, basically no for the reasons ogra's mentioned13:55
ograif you want to use it anyway for training, testing or whatnot, there is the SLB9670 availabe with RPi pin setup which then attaches via SPI bus ... but dont use it in production ...13:58
ahasenackit was mostly to experiment with it, assuming that some future board would have the tpm chip properly soldered/implemented13:58
patdk-lapinsecure bus connections? what is a secure bus connection?13:59
ahasenackbut I heard about arm "zones"13:59
ahasenackso maybe a pi4 will never have a tpm chip13:59
ograpatdk-lap, direct integration into the SoC 13:59
patdk-lapyou can always sniff any bus, no bus is secure13:59
patdk-laphmm, I have not seen that with a tpm anywhere and that isn't secure, just *slightly* more difficult14:00
patdk-lapyou just disolve part of the package and attach to the wires14:00
ahasenackI would prefer to play with a pi4+tpm than my real-use-laptop, just in the case I brick it by accident14:00
ograsligthly, yeah ... you'd have to hire ant-man to attach the probes for you 🙂14:00
waveform"just" :)14:00
patdk-lapno you wouldn't14:00
ahasenackI know there is swtpm, but still, I would want to use the real thing14:00
ograthe secureboot we offer fr arm in UbuntuCore land is all OPTEE/TrustZone based btw ... i dont think we'll ever support TPM on arm 14:01
patdk-lapI have never seen a tpm built into an soc14:01
waveformahasenack, there was also some issue with separate memory regions for trustzone to operate securely -- I forget the details14:02
ahasenackogra: how can I poke around these trustzones in a pi4? I was wondering if mine had support for that14:02
ograit doesnt14:02
ahasenackthat explains it :)14:02
ogradues to the nature of its bootloader14:02
ogra(the g14:02
ograbah14:02
ogra(the proprietary GPU driver is the bootloader ...)14:03
waveformmy vague recollection was the trustzone implementation is there because it was a base part of the ISA (I may be wrong about that) but there was some issue about not having secured memory for it ... ah, this seems perhaps pertinent: https://forums.raspberrypi.com/viewtopic.php?t=31133114:03
ograon a Pi the ARM never boots on its own ... the HW initialized the GPU through the driver ... once that is up, it fires up the ARM14:04
ahasenackok, so not a good platform to play with that14:04
ograso the TZ implementation would have to be implemented in the GPU driver by broadcom to make it secure14:04
ahasenackmaybe just the tpm addon to play with, then14:04
ahasenackbut not for "real" security14:05
ogrause qualcomm or nxp if you want to play with OPTEE and TZ14:05
ahasenackare boards available with those?14:05
ahasenackcheap enough for a user, not a company, to buy?14:05
ograyeaha, but not at Pi-prices14:05
ahasenacklow 3 digits perhaps?14:05
ogramore the latter 🙂14:05
ahasenackk14:06
ogralow-mid 3 digit prices should be possible 14:06
ograif you look for qualcomm, talk to ondra, he knows that HW in and out (but is also on vac. i think)14:07
waveformincidentally, there is a "secured boot" implementation on the CM4 and 400 (and later revs of the 4? I have some recollection it requires stepping C0 of the 2711) but it's pi-specific (RSA based)14:07
waveform(in other words, if you were experimenting with it in the hopes of learning something relevant to your laptop, it likely wouldn't be)14:08
ahasenackwell, both, I would hope there is some commonality14:08
ahasenackbut it doesn't have to be about boot only, tpm can be used for many other things14:09
ahasenackthat I think would be common between the pi4 and a laptop14:09
ograyeah, /dev/tmp should be the same after boot 14:09
ograerr14:09
ogratpm14:09
ahasenackand I was wondering if, the moment I attach a tpm dev to the pi4, if the kernel would be able to make those boot measurements and store them in the tpm registers14:09
ograyou will be able to use it after boot for sure14:11
ografor security during boot you'd need integration with the bootloader though ... which ... again points back to broadcom 14:12
ogra(beyond the bus issues)14:12
tomreyninteresting discussion. could you maybe have fTPM on ARM64 SOCs?14:14
ahasenackyeah, found it14:15
ahasenackSLB 9670 TPM 2.0,add-on14:15
ahasenack$29.9914:15
ahasenackplus $64.26 Shipping & Import Fees Deposit to Brazil14:15
tomreyn:)14:15
ograwow, shipping is twice the price !14:18
ahasenackwelcome to Br14:18
ahasenackthere is a 60% tax on imports14:19
ahasenackincluding the shipping price14:19
patdk-lapsame issues like india? huge import fees to bring in tech into the country?14:19
ahasenackso it's (thing + shipping) * 1.614:19
tomreynunless you buy from the little china shop around the corner?14:19
ahasenackthis is the simplified import mechanism14:19
ahasenackeverything taxed at 60%14:19
ahasenackif you are a company and want to bring in quantities to resell, there is another process, then it isn't that high (but it's still high)14:19
ahasenackthen usually the price only doubles14:20
ahasenackU$ 30 in the US ebcaomes U$ 60 here14:20
ahasenackit used to be (thing)*1.6 + shipping for the import tax calculation14:21
ahasenackbut then people started asking shippers to declare the thing as, say, $10,00, and put the rest in the shipping calculation14:22
ograyeah, i remember seein brazilians at sprints with towers of amazon boxes to circumvent input fees ... 14:22
ahasenackyep14:22
ogratowers taller than themselves often enugh 🙂14:22
ahasenackwhen you bring it with you on a trip, as luggage, then the tax is 50% over what exceeds U$ 500,0014:22
ahasenack< U$ 500,00 was tax free14:23
ahasenackis14:23
ahasenackso a U$ 1000,00 laptop becomes (1000 + 500*0.5) = 125014:23
ahasenackstill cheaper than buying it here, with similar specs (which are not available most of the time)14:24
ograyeah14:24
alirezaI've run a VPN server, and I want to limit the client to have only access to instagram.com , what firewall do you suggest in this case? iptable is not good enough.17:47
sdezielalireza: you are probably better off setting up a proxy (like squid) and require your clients to use it. This will let you control which domains are reachable at the DNS level rather than IP level as with iptables17:49
alirezaI'm trying to connect people from something like china's great wall to Instagram, and I have to use a stronger solution such as Shadowsocks + v2ray protocol. So proxy won't work in my proble17:52
alirezasdeziel: what about csf firewall? is there any better choese?17:54
sdezielalireza: sorry for not being clear, I'm proposing to use a proxy at the other end of the VPN17:55
sdezielalireza: in other words, you'd run both a VPN server and a proxy accessible only through the VPN. That proxy would be configured to only give access out to Instagram17:55
ahasenackdoes anybody recall why in ubuntu we don't have the [homes] samba share enabled by default? It's a delta we have with debian: https://pastebin.ubuntu.com/p/FmkZXNVCqx/18:04
ahasenackthat change was made in 2013 for trusty, as far as I can see18:04
ahasenackI was wondering if it's because until recently the /home/$USER directory in ubuntu was 0755 (world readable)? 18:04
alireza I'm using this configuration to create WebSocket from the Nginx request to the Shadowsocks service (kinda proxy service for China's great wall). However, I want to limit the clients to only having access to the Instagram application and deny any other requests. So in this method, the clients won't have access to another website through My free VPN. My current configuration is: https://paste.ofcode.org/39D7QMtbyFHzHh4k75p8tzy18:42
=== ahasenack_ is now known as ahasenack
znfScrew that guy that made the new server installer20:34
znfWorst decision ever20:34
mybalzitchI haven't seen it lately21:13
mybalzitchI wasn't a fan of the buttons in the new desktop installer21:14
znfI've made the auto-installer crap21:24
znfbut once I install it, I can not log in :)21:24
znfgod damn junk21:32

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!