/srv/irclogs.ubuntu.com/2018/11/27/#ubuntu-server.txt

lordievaderGood morning07:21
=== Mr-Pan is now known as Mr_Pan
oskieI'm setting up KVM in bionic, and I am not sure why I'd need bridge-utils. It depends on ifupdown which kind of conflicts with netplan09:47
lordievaderIf you want libvirt to setup bridged networking bridge-utils is needed.11:13
lordievaderIn the traditional sense, you want bridged networking.11:13
xnoxoskie, you don't need bridge-utils, iproute2 can do everything.11:18
xnoxlordievader, that's obsolete....11:18
Greyztar_how do i get ipset from fail2ban and iptables-persistent/netfilter-persistent to get along,been battling this for a long time and think ive found the culprit,it seems iptables/netfilter-persistent tries to load the rules but fail2ban or ipset havent create it yet and end up with seems like a default set11:18
Greyztar_on reboot*11:19
lordievaderReally? Guess I'm old fashioned. I should look into that.11:19
lordievaderThanks xnox 😁11:19
xnoxlordievader, please familiarize yourself with the new world order of https://baturin.org/docs/iproute2/ ;-)11:20
xnoxhttps://baturin.org/docs/iproute2/#Create%20a%20bridge%20interface and so on11:20
xnoxspecifically11:20
xnoxiproute2 is really a one-stop-shop these days, for everything.11:21
lordievaderI know. I have been using it for a lot. Just wasn't aware it also did bridge stuff.11:22
blackflowGreyztar_: fail2ban is not persistent across reboot by default. You'll need to write a custom action handler that adds to the ipset AND to a file that will be used by ipset on boot.11:30
blackflowand then use the ipset in your iptables rules (loaded by netfilter-persistent)11:30
Greyztar_blackflow: thank you very much! I temporary unscuffed it by not using ipset as action for jail,then it works fine though,i saw same behaviour on other server with ipset sets not loading then netfilter-persistent would notload rules at all,im so happy finally figured this out ,really annoying when all rules gets purged11:32
blackflowGreyztar_: netfilter-persistent does nothing but exec /etc/iptables/rules.{v4,v6} on boot. so you need to write out rules that use the ipset  (-m set --match-set ...)11:33
Greyztar_blackflow: thank you,time to get stuff workin again!11:35
victorhGreyztar_: wouldn't the rule become permanent then or will it still delete the rule after the jail-time has passed12:33
Greyztar_victorh: sorry i was out having lunch,this i didnt think of thanks for pointing that out,for now im just happy that it doesnt flush iptables though but i will look into this12:51
victorhGreyztar_: Will be though I think, since fail2ban doesn't load old bans (far as i know)13:06
Greyztar_victorh: yes seems like i would have to come up with a new solution for this,really didnt think that fail2ban was the reason iptables got scuffed,have had these problem a really long time and only solution i came up with was to manually load the rules upon reboot,this did work somewhat ok as i almost never reboots with live patches,but this is computers should be auto everything (,")13:10
oskiewhat kind of device is "vlan5@bond0"? is it a bridge?13:10
victorhGreyztar_: did you check out these guys? http://denyhosts.sourceforge.net/13:11
Greyztar_victorh: hmm might look at that also,though i have some custom filters to fail2ban for some spesific apps with api logins i kind of need but ill check it out thanks13:14
ahasenackrbasak: hi, could you please import lmdb and add it to the whitelist?13:27
ahasenackit's a new dep debian added to ldb, we might have to mir it even13:27
ahasenackcpaelzer: dep3 question, author is optional, origin is only optional if author is present, so we need either one or the other, right?14:14
ahasenackApplied-Upstream doesn't replace either14:14
muhahaOla Guys. Can anyone help me with Kickstart+CloudInit ? I want to provision Ubuntu like -kernel http://archive.ubuntu.com/ubuntu/dists/bionic/main/installer-amd64/current/images/hd-media/vmlinuz -initrd http://archive.ubuntu.com/ubuntu/dists/bionic/main/installer-amd64/current/images/hd-media/initrd.gz, but I am lost how to use cloud-init in this c14:16
muhahaase14:16
compdocwho you calling an ase?!!14:18
cpaelzerahasenack: yes14:20
ahasenackthx14:21
microwaved_hi all, just a quick question i've been struggling with the temporary failure in resolving security.ubuntu.com14:21
cpaelzerauthor+!origin - means coded for the package14:21
cpaelzerauthor+origin usually means modified from origin14:21
cpaelzerand just origin is a clear backport14:21
cpaelzerahasenack: ^^14:21
cpaelzerthat ok for you ?14:21
microwaved_i can't even ping google.com, i can ping ip addresses. i've tried multiple solutions but it doesn't work as i'm not able to call on apt-get update14:21
ahasenackcpaelzer: yep14:22
compdocdns has to be working to use apt14:23
microwaved_i know but i edited resolv.conf to add nameserver 8.8.8.8 and 8.8.4.414:23
microwaved_doesnt work14:24
microwaved_its an ffin new install, and its annoying me how can an iso from ubunto.com be this broken14:24
naccmicrowaved_: query them directly (use dig)14:26
naccmicrowaved_: if that works, then try to fix your system DNS configuration. If that doesn't work, it's something else. ping isn't a useful test.14:26
microwaved_well ping 8.8.8.8 is succesfull14:26
microwaved_but its about dns so ping isn't usefull on that level14:27
microwaved_i just wanted to confirm that i have inet connection14:27
microwaved_ok hold on i'll do a dig14:27
microwaved_nacc: what checks do i need to have my dns configuration properly conf'd14:29
microwaved_i have the idea since netplan got introduced it messed with the dns thingy14:29
microwaved_but anyway my bright new install returns: Temporary failure resolving 'security.ubuntu.com'14:33
microwaved_and its on 18.04.1 lts alternative install which is basically the old install but both the new iso's do it14:33
compdocnetplan works here14:35
cyphermoxif you edit resolv.conf then yes, you might confuse things14:35
cyphermoxhowever, 'dig google.com' should work14:36
cyphermox(or nslookup)14:36
microwaved_dig didn't work14:37
cyphermoxthat's to at least check that you can really reach the nameservers and they respond to you14:37
cyphermoxbut ping worked?14:37
microwaved_yes sir14:37
cyphermoxthat smells like firewall14:37
cyphermoxmicrowaved_: could you pastebin the entire result from dig?14:37
microwaved_i checked and its completely open14:37
microwaved_ehm sure14:37
microwaved_hold on14:37
microwaved_it only returns one sentence14:40
microwaved_cyphermox: it only returns: connection timed out: no servers could be reached14:41
cyphermoxright, so it doesn't reach it at all14:41
microwaved_but ping 8.8.8.8 returns , success14:41
cyphermoxsure14:41
cyphermoxthat doesn't mean the firewall really lets you DNS to it14:42
cyphermoxI don't know that there really is anything else14:42
cyphermoxjust to be sure, you could try "dig google.com @8.8.8.814:42
microwaved_ofcourse sir, hold on14:42
cyphermoxyou should see something like this: https://paste.ubuntu.com/p/jrDzQrc7Bc/14:43
cyphermoxif it still times out, the best I can say is it's a firewall issue, since you can ping the routing would be ok14:43
microwaved_exactly but ill have a look again, thnx for your effort to check14:44
cyphermoxif you're seeing the same output as I just pasted, then it's your configuration on the machine14:44
cyphermoxon >=18.04 we use systemd-resolved; which handles /etc/resolv.conf; so you shouldn't modify it -- all you'll see in the file is "nameserver 127.0.0.53"14:45
cyphermoxthen to debug this stuff you can run 'systemd-resolve --status' to see all the configs for each interface14:45
cyphermox(you'd see 8.8.8.8 under there for example, or the DNS server from your ISP)14:46
microwaved_yeah i see that14:46
microwaved_i think i'm gonna reinstall again, i just typed in the a command and i got a kernel panic14:50
rbasakahasenack: lmdb imported and added to future whitelist14:50
ahasenackrbasak: thanks!14:51
microwaved_cyphermox: i just checked main firewall and firewall isn't an issue, i'm gonna reinstall image again and try then, thanks for your effort, check above14:52
ahasenackrbasak: just confirmed, in bionic, with squid3, I can redefine the "squid" log format14:52
ahasenacklogformat  squid      %tl %6tr %>a %Ss/%03>Hs %<st %rm %ru %[un %Sh/%<a %mt14:53
ahasenackaccess_log daemon:/var/log/squid/access.log squid14:53
ahasenackleads to14:53
ahasenack27/Nov/2018:14:52:32 +0000     15 10.0.100.20 TCP_MISS/304 263 GET http://br.archive.ubuntu.com/ubuntu/dists/bionic-security/InRelease - HIER_DIRECT/200.236.31.4 -14:53
ahasenackrbasak: I just filed https://bugs.squid-cache.org/show_bug.cgi?id=490515:02
cyphermoxmicrowaved_: tbh I have no idea what else it could be..15:02
lordcirthTJ-, good morning XD.  So, fresh reboot, vlan10: "Network File: /run/systemd/network/10-netplan-enp0s8.network".  Ran "brctl addif br10 vlan10": still the same15:06
microwaved_cyphermox: i just ran a reinstall again, and now it works, i don't even know whats different i even deleted the disk15:06
rbasakahasenack: +115:13
grendal_primeanyone familar with inotify?15:42
grendal_primeI have a sed script i need to run on my /var/www/html folder every time a file changes.15:42
grendal_primeI just want to run this script on the files that change, not the entire dir.15:43
grendal_primeSo far inotify seems to be the tool (from what i have read) and i have used it in the past (very distant) but i cant remember how i scripted it.15:44
vltgrendal_prime: inotifywait is what I use.15:59
grendal_primeya that sounds familar.15:59
grendal_primeIm looking at incrontab right now16:01
grendal_primeit seems like i had to do something to kick that off though.16:05
grendal_primelike i had to make a startup script.  I want to avoid that sort of thing.  My biggest issue is figureing out how to call the name of the file that has changed so i can feed that into the sed command.16:06
grendal_primegetting close, im just getting werid...return on the file.16:24
grendal_primename that is16:24
teward+1 to the subiquity installer for letting me change the names of the LVM and resize it from the editing panel heh.  Just discovered this in 18.04.1 / 18.10 heh16:33
grendal_primegrrr...its not exectuting the sed command correctly16:44
grendal_primeim wondering if i need to encapsulate it quotes or something16:44
grendal_primevery frustrating16:55
grendal_primesyslog sys incron is executing the command but it is not performing the changes, if i run the exact same sed command manually it works16:56
tewardhas anything changed in update-grub that'd prevent `elevator=noop` from being applied in /etc/default/grub to the Grub system when I do `sudo update-grub`?  Because it's not working when I update `/etc/default/grub` and then do `sudo update-grub`16:57
teward18.04.116:57
Greyztar_so i did a test and edited netfilter-persistent service to be Type=idle instead of oneshot and now iptables has all rules and set for fail2ban even,so i think this was a matter of execution order and that netfilter-persistent was started before fail2ban had created ipset table so netfilter-persistent wouldnt find it and thus error and restoring default rule set17:01
=== TheHonorableKitt is now known as TKitten
computa_mikeIf I create a user SSH key, and add my key to the authorized_keys file then I understand that if I connect using that key I'm that user....  So I can connect using (for example ssh octopustestadmin@xxx.xxx.xxx.xxx) and a whois reveals that I am octopustestadmin - which works out because that's the name of the user on the server.  I've also got a Jenkins process that connects - and if i get the script to issue a17:14
computa_mikewhoami it reports that it is the user jenkins.  Which doesn't work because I'm using the same octopustestadmin@xxx.xxx.xxx.xxx.   Not sure I understand what's going on here.17:14
computa_mikehold up - irl colleague might have an idea ... possibly picnic issue17:16
sdezielteward: could you elaborate on the "not working"? As in not showing in /boot/grub/grub.cfg, or in /proc/cmdline or being ignored by the kernel altogether?17:31
tewardsdeziel: as in if I edit it in the grub defaults line of GRUB_CMDLINE_LINUX_DEFAULT so that it says GRUB_CMDLINE_LINUX_DEFAULT="maybe-ubiquity elevator=noop" in 18.04.1 server, it does maybe-ubiquity but ignores elevator=noop to set the I/O scheduler17:40
tewarddoesn't show that up at all in grub.cfg after an update-grub'17:41
tewardit *does* if I set it in GRUB_CMDLINE_LINUX but ignore it if it's put after maybe-ubiquity in the GRUB_CMDLINE_LINUX_DEFAULT line17:41
tewardor if i manually apply it in grub.cfg17:41
tewardsounds like "odd behavior" since I shouldn't have to update anything but GRUB_CMDLINE_LINUX_DEFAULT no?17:42
TJ-teward: have you done "grep elavator /boot/grub/grub.cfg" to see where it is being applied, if at all?17:44
tewardyes I have, and it's not being applied at all17:44
sdezielteward: yeah, I normally only edit the _DEFAULT version17:44
tewardsdeziel: then this sounds like regressive behavior17:45
tewardbecause I only edit DEFAULT typically too17:45
tewardsdeziel: I have *zero* idea where this behavior change got introduced though17:45
sdezielteward: maybe you have something in /etc/default/grub.d/* that overwrites the GRUB_CMDLINE_LINUX_DEFAULT var?17:45
tewardsdeziel: on a base 18.04 installation I just did?17:45
tewardfresh?17:45
tewardi'd doubt it but i'll check17:46
tewardahhh there it is17:47
tewardsdeziel: it's because curtin is a PITA17:47
sdezielteward: I remember of a bug for this17:47
tewardsdeziel: well it's present in 18.04.117:47
powersjah yes something we are trying to get fixed17:47
grendal_primegrrrr17:47
tewardsdeziel: I assume if I make 99localized.cfg in /etc/default/grub.d then that'd be executed last and processed properly?17:47
teward(so a localized override settings)17:48
sdezielhttps://bugs.launchpad.net/curtin/+bug/152766417:48
ubottuLaunchpad bug 1527664 in curtin "/etc/default/grub.d/50-curtin-settings.cfg overwrites GRUB_CMDLINE_LINUX_DEFAULT" [Low,Triaged]17:48
sdezielteward: I haven't look at the update-grub script in a while but I'd expect is use run-parts, so probably yes :)17:49
sdezielerr, probably not run-parts for that part but more like alpha sorted dir listing+include...17:49
tewardthere THAT worked >.>17:51
tewardsdeziel: powersj: TBH I think upstream should be prodded if possible to expedite the fix?17:51
tewardbecause this is a PITA when you try and change the IO scheduler for VMware VM performance increases >.>17:51
sdezielTBH, I really dislike how /etc/default/grub.d is handled. Every time the grub package is updated, it wants to fold everything right back into /etc/default/grub, which is precisely not what I want since I used the .d dir...17:55
tewardheh18:03
lordcirthI want to disable netplan *but* use systemd-networkd, not ifupdown or /etc/network/interfaces.  What's the correct way to toggle this?18:11
cyphermoxlordcirth: just remove any file in /etc/netplan18:11
lordcirthcyphermox, great, thanks18:11
tewardcyphermox: am i correct that netplan config files are read in order, such that 50-cloud-init.yaml would be overwritten by 55-blah.yaml if they touched on the same interfaces?18:13
cyphermoxyes, sounds about right18:13
teward'tis what i assumed but was never certain, thanks for confirming cyphermox18:17
tewardpowersj: wow, I really had 3 nginx uploads to the development release since the last dev summary went out?  o.O18:37
tewardshows you how frequently I pay attention to the number of dputs I issue :|18:37
powersjheh :)18:38
tewardoh that reminds me 1.15.7 was pushed by me today, just released today as well18:39
tewardmostly bugfixes ;)18:39
tewardpowersj: i haven't kept super on top of the triage, but let me know if we start seeing TLS1.3 bugs against nginx18:39
tewardthat's the biggest concern on my radar as of currently18:39
tewardsec team (sarnold) is probably alos keeping an eye out18:39
teward(it's not LTS though, but it's still something to keep in mind since we now enable TLS1.3 since Cosmic post-release by default for nginx)18:40
DammitJimdo you guys know why there isn't a tomcat 8.5 or 9 in the Ubuntu repositories?22:16
DammitJimfor Ubuntu 18.0422:17
DammitJimI only see tomcat8 but that's end of life22:17
sdezielDammitJim: upstream EOL doesn't mean it's EOL in Ubuntu22:18
DammitJimwhat does it mean?22:18
sdezielDammitJim: for packages in main, Ubuntu/Canonical will backport security fixes for as long as the distro is supported22:18
DammitJimoh, but it has to be from main?22:18
DammitJimhow do I know if I'm using packages from main?22:19
sdezielDammitJim: https://packages.ubuntu.com/bionic-updates/tomcat8 says it's in universe (not main)22:19
sdezielDammitJim: meaning it's supported by the community22:19
DammitJimoh ok, so either way, I'm not supported by Canonical, right?22:20
sdezielDammitJim: not officially, no22:21
DammitJimok, thanks22:21
sdezielDammitJim: but it looks like someone wants to have tomcat8 supported as they ensured to have some updates land in bionic-security in the past22:22
DammitJimok, thanks for the info22:23
DammitJimI'll have to have an internal discussion, then22:23
sdezielnp22:25

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