/srv/irclogs.ubuntu.com/2019/08/07/#ubuntu-server.txt

karlthaneDoes anyone know what the tool the installer uses to pull ssh keys from github/launchpad and if there is any way to set it to run regularly?00:15
sarnoldssh-import-id00:16
sarnoldyou can use it in a cronjob or script or something similar if you wish; there's no default tool to do so, that I know of00:17
karlthane@sarnold Thank you.00:34
sarnoldkarlthane: you're welcome :)00:44
=== ezra is now known as nicekiwi
heller_hey06:56
heller_my server rebooted yesterday evening. Any tips where to look for the issue?06:57
lotuspsychjeelaborate here heller, like server version and services running06:57
heller_ubuntu 18.04 and running only zabbix serer07:00
heller_virtualized at an external provider07:00
heller_https://pastebin.com/KRDbU7Pn07:01
heller_thats kern.log when it rebooted07:02
heller_U-U havent done any upgrades for few days at least07:03
heller_syslog  https://pastebin.com/JPiL0LpL07:06
heller_syslog.1 https://pastebin.com/mgB7cJar07:07
OerHeksdoes zabbix has a log? find / -name 'zabbix_server.log' or something like that07:08
OerHeksmaybe /var/log/zabbix/ ..07:09
heller_yeah looking, but there's not much info about the system status07:11
OerHeksmaybe the host ..07:11
lotuspsychjeheller_: maybe take a look at your auth logs aswell for intrusion07:11
heller_hey wait a minute07:13
heller_https://pastebin.com/FpzCeHqD07:13
heller_what does that mean07:13
lotuspsychjeheller_: how are you protecting your ports/ services?07:14
OerHeksyou had visitors :-D07:15
lotuspsychjeheller_: can you nmap -PN -sV your external ip to see whats exposed to the outside?07:15
heller_it is exposed quite alot07:15
heller_but i dont see anyone getting in?07:15
OerHeksnowadays they try just once, with a botnet, so fail2ban is useless.07:15
OerHeksrestrict access to your ip maybe?07:15
heller_i could do that yes07:15
heller_but i still dont see anyone getting in?07:16
heller_just curious about the power button event07:16
lotuspsychjeheller_: its not because logs doesnt show, that nobody can enter07:16
lotuspsychjeheller_: you never know what kind of exploits are used when exposed07:16
heller_hmm07:16
lotuspsychjeheller_: it might be not your case, but better assume its possible07:17
heller_got ufw running now07:21
lotuspsychjeheller_: if you check your open ports with nmap, thats the way attackers will find your ports & services07:21
heller_Yeah i did check that, ssh and http + zabbix related are open07:21
lotuspsychjeheller_: for the attacker, everything open will get auto scanned these days07:21
lotuspsychjethey find your weak spot, and they get in07:21
heller_Sure, but this issue was worse earlier07:22
lotuspsychjehowso?07:22
heller_it rebooted like every second day. i asked the hosting company to move this vm to another host and then it stayed up for at least a week07:22
lotuspsychje!info lynis | heller_07:23
ubottuheller_: lynis (source: lynis): security auditing tool for Unix based systems. In component universe, is optional. Version 2.6.2-1 (bionic), package size 179 kB, installed size 1353 kB07:23
lotuspsychjeheller_: id suggest a full check of your server, perhaps also bandwith monitor to see whats going in/out07:23
heller_Nothing special on bw graphs07:29
heller_hmm07:29
heller_Well lynis did not find anything ground breaking07:45
heller_So the digging continues07:45
lordievaderGood morning08:10
=== mIk3_09 is now known as mIk3_08
=== Wryhder is now known as Lucas_Gray
supamanwhen creating a tar backup of a folder, does the command 'tar -cf /cifs-mount/backup.tar /folder' create the tar backup in the local machine and then move it to the cifs mount or does it create the file and add to it in the cifs mount?11:17
supamanI have a 70GB dir that needs backup and don't have space for that in the local machine11:18
lordievaderI'd expect it writes directly to the `/cifs-mount/backup.tar` file. You could test this with strace and a small test setup.11:25
supamanyeah, thats what I expect also, thanks for the suggestion of test, will do that :-)11:26
supamanyup, writes directly to cifs mount11:34
Checkmatextrying to configure sendmail with non tls  should i use `A p y' ?13:19
=== Wryhder is now known as Lucas_Gray
catphishhi, i've just configured netplan with an extremely simple bridge, and it's causing my boot to hang for about 60 seconds on the network start job, would anyone be able to suggest why? https://paste.ubuntu.com/p/s92svp72qr/14:42
catphishin fact it's 120 seconds14:42
ahasenackcatphish: why do you need the quotes around the nameservers ip?14:44
ahasenacknot saying it's related, it just jumped out14:44
catphishi don't know, ask the ubuntu installer :)14:44
ahasenackinteresting14:45
catphish(i only added the bridge)14:45
ahasenackcatphish: I think you are missing interfaces for the bridge, i.e., which interface(s) are part of it14:45
ahasenacksee the bridge example at https://netplan.io/examples14:45
catphishi am indeed, there are no interfaces in it14:46
catphishdo you think it could be waiting for interfaces to join it for some reason?14:46
catphishto clarify, this is not an error, there should be no interfaces in the bridge14:47
rbasakIs it waiting for DHCP on the bridge?14:47
catphishi could try manually disabling it, i assumed that would be the default since IPs are specified14:48
rbasakThat would be my assumption too14:48
rbasakI only mention it because it's fairly common for cloud-init to hang waiting on a NIC to appear if it can't find a network.14:48
catphishi'm just trying an explicit dhcp disablement and explicit empty interfaces list14:49
catphishno change :(14:49
rbasakAnything in the logs after the hang?14:49
rbasakcloud-init logs specifially14:50
catphishi'll have a look once it's booted again14:50
catphishcould it be waiting for ipv6? there's no RA on this network14:50
ahasenackwithout the bridge, does it hang too?14:51
catphishi was just wondering the same14:51
cyphermoxwhat version of netplan?14:54
catphishno problem with the bridge removed14:54
cyphermoxit's definitely the bridge, for sure14:55
catphishlooks that way14:55
cyphermoxmaybe you just need "optional: true" under it, to pacify networkd-wait-online at boot14:55
cyphermoxbut the real question is whether the bridge is up and has an IP address after boot.14:56
ahasenackisn't there a way to check what netplan ended up rendering for networkd? In /run/<somewhere> after boot?14:56
catphishthinking about it, a bridge with no interfaces appears as DOWN iirc14:56
catphishso if netplan is waiting for that, it will time out14:56
ahasenackand after those 120s, what does it look like in the booted system?14:57
ahasenackis it up with that ip?14:57
catphishjust rebooted with it re-enabled, but "optional", works perfectly14:57
catphishbridge comes up with correct IP, no delay14:58
ahasenackand UP or DOWN?14:58
catphishbut, as i suspected... "br0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000"14:58
catphishDOWN14:58
ahasenackand no members?14:58
catphishcorrect14:58
catphish(which is what i want)14:59
catphishlooks happy now, i have no doubt it'll come up as it should once members are added by my lxc setup15:01
catphishmakes perfect sense that netplan would have been waiting for that UP status15:02
catphishthanks all!15:02
cyphermoxyeah, that's a "fun" part of *-wait-online scripts15:10
catphishit probably didn't help that       addresses: [10.4.16.0/24 ] is clearly an mistake :)15:27
Checkmatexi can't received mails16:31
tomreynis this a bug report, a support request, or a social media status?16:49
=== slashsbin1 is now known as slashsbin
mmercerlo folks -- with ubuntu-server,  normally with many of the distros, if you set the ifnames=0 at the boot opts, it will retain that even during the installation so that you dont have to set the ifnames after.... does this not work in ubuntu?20:02
=== slashsbin1 is now known as slashsbin
rbasakmmercer: isn't it net.ifnames=0?21:04
rbasakhttps://lists.ubuntu.com/archives/ubuntu-devel/2015-May/038761.html has some background21:04
=== slashsbin1 is now known as slashsbin

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