/srv/irclogs.ubuntu.com/2019/01/11/#ubuntu-server.txt

Haunted330This channel is closed. You are going to have to leave.00:03
xrandrHi there.  I have an ubuntu 18.04 server, and used netplan to apply a set of static ip addresses. However, when i use ifconfig, I do not see the ips being bound to my server.00:03
Haunted330This channel is closed. You are going to have to leave.00:04
Haunted330We reopen at 8am CST.00:04
teward!ops | Haunted330 trollig the channel00:05
ubottuHaunted330 trollig the channel: Help! Channel emergency! infinity, soren, lamont, mathiaz, Pici, Daviey, Tm_T, Corey, IdleOne, ikonia, funkyhat, Myrtti, ocean, genii, phunyguy!00:05
Haunted330!ops Everything is good00:05
Haunted330Leave the ops alone please.00:05
Haunted330Im just doing my job00:05
hggdhHaunted330: ok, then goodbye00:06
Haunted330yep, good bye00:06
tewardhggdh: thanks.00:07
hggdhteward: yw00:08
tewardxrandr: so `sudo netplan apply` doesn't apply the IPs?00:08
tewardtrying to make sure it's just a case of them not applying or whether Netplan's just derping at some point, or whether something else is up.00:09
tewardseeing your config would be nice as well, xrandr, since it might be your config.  (cc TJ- since we said in #ubuntu to move here)00:10
xrandrsure00:10
xrandrone moment and i will pastebin it00:10
xrandr:q00:10
xrandrhttps://pastebin.com/3aR4J8B900:11
TJ-xrandr: what does "ip addr show dev enp2s0" report?00:12
xrandrteward: and to answer your first question, it does not apply it00:12
xrandrhttps://pastebin.com/zt7L4RcM00:13
TJ-xrandr: also, check the service for clues "journalctl -u systemd-networkd"00:13
TJ-xrandr: looks correct to me, where is the problem?00:13
xrandrifconfig doesn't report the ips, and also, I can't ping them. No firewall is currently active either (server was just deployed)00:14
TJ-xrandr: you've only assigned a single IPv4 address to the interface00:14
sarnolddon't worry so much about ifconfig, it doesn't know networking as well as ip does00:14
xrandrTJ-: I thought by specifying the /29 it would add the range00:15
TJ-xrandr: 192.154.110.170 pings OK00:15
xrandr.170-.17400:15
TJ-xrandr: No, it assigns the single address in the /29 sub-net00:15
xrandrWell, that could be my issue lol.00:15
TJ-I'm not sure netplan knows how to assign all the possible IP addresses of a sub-net to a single interface00:16
xrandrHow would I go about assigning the other ips to the server?00:16
tewardadd the addresses individually00:16
tewardlet me pull an example...00:16
tewardI think i wrote one for the examples for netplan...00:16
sarnoldsee e.g. https://netplan.io/examples#multiple-addresses-on-an-interface00:16
teward*pulls up historical git commits*00:16
tewardohey that one00:16
tewardi added the section underneatn that one ;P00:17
tewardxrandr: you have to define each of the addresses.  The /29 is just to specify the subnet mask, it doesn't set all the addresses up (and is relevant to determining proper Broadcast and Gateway address)00:17
tewardso you'd have 170/29, 171/29, etc. etc.00:17
teward*salts sarnold*00:18
xrandrAh there we go00:20
TJ-It would be nice to be able to do ranges :)  "addresses: [ 192.154.110.170-177/29 ]"00:20
xrandrthank you all so much00:20
tewardTJ-: indeed.  that's a proposal to suggest to cyphermox00:22
TJ-teward: I might find some time to attempt a patch but I suspect it'd be a rabbit-hole. Parsing is easy, figuring out the conrrect way to render it not so00:24
tewardyep.00:26
tewardhence why i said propose it in the netplan project and let them gauge interest/implementation00:26
tewardit'd be tricky00:26
TJ-systemd-networkd is just a case of multiple Address= entries (I wonder what the limit is)00:29
* TJ- stiffles a giggle00:30
TJ-It could get to be fun for IPv600:30
tewardTJ-: if you need more than 100 specific addresses added... it's being done wrong lol00:31
TJ-teward: you're reminding me of the famous 'never need more than 640KB' meme!00:37
TJ-teward: how can I have an IP-addressable display if the host can't have mor than 100 IP addresses?00:38
teward:P00:38
TJ-that brings up and interesting question - how *did* the 75-internet's worth of IPv6 address space get decoded and mapped - presumably it'd have to be a userspace network stack00:40
=== lifeless_ is now known as lifeless
lordievaderGood morning07:07
RabooHi guys12:08
RabooI have a strange issue on two of my Ubuntu 16.04.5, i have biosdevname package installed, but still my interfaces are named eno1/eno212:09
RabooI was under the conception that if you have biosdevname installed, predictable name would be applied12:10
rbasakRaboo: only if your BIOS actually provides device names.12:19
rbasakThat was only a Dell thing and only for a while AFAIK.12:19
Raboohmm, it is a dell server :-)12:21
Raboorbasak is there a way to see if the bios provides a device name?12:22
Raboobut it's quite strange, cause when installing the node we use a centos image, there I believe the device names was em1/em212:23
RabooSo i guess the whole bios part is working12:23
RabooYup, the devices was named em1/em2 when in centos12:25
rbasakRaboo: https://lists.ubuntu.com/archives/ubuntu-devel/2015-May/038761.html is a good writeup which hopefully will help you pin it down12:26
rbasak"70-persistent-net.rules trumps [biosdevname] trumps [ifnames]"12:28
Rabooyes, but there is no 70-persistent-net.rules12:30
Rabooin that e-mail it says about ifnames "Debian and Ubuntu disable this by12:31
Raboodefault"12:31
Rabooso unless that has changed between Ubuntu 16.04.4 and 16.04.5, I should be getting em1/em212:32
Raboorunning `biosdevname -i eno1` returns a blank12:49
rbasak16.04.4 likely had a different kernel to 16.04.5. You could try switching kernels.12:52
rbasakThat is entirely a guess, to be clear.12:52
leftyfbRaboo: I know you said you have the package insalled, but have you tried putting biosdevname as one of your kernel parameters?12:58
Rabooleftyfb nope, it should be enabled by default, you usually put biosdevname=0 to turn it off13:01
RabooMaybe it's a bios bug, https://bugs.launchpad.net/ubuntu/+source/linux/+bug/157814113:02
ubottuLaunchpad bug 1578141 in systemd (Ubuntu) "Predictable interface names partially broken with igb driver" [Medium,Confirmed]13:02
Oolisn't it: GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0" to have the old name ?13:09
Oolafter a update-grub of course13:09
=== TheHonorableKitt is now known as THKitten
Raboowell I want biosdevname=113:15
Rabooi want em1/em213:15
Raboo`biosdevname -d` reports em1 for both eno1 and eno213:18
Rabooso it could be a similar bug with the launchpad link i pasted13:18
Rabooor it could be the mellanox driver, haven't really used mellanox nic before13:19
Raboothis sucks13:22
rbasakRaboo: you could manually override to the names you would get by biosdevname but without biosdevname as a workaround.13:27
Raboorbasak ok, by adding a 70-persistent-net-rules file?13:29
rbasakRaboo: right13:50
=== TheHonorableKitt is now known as THKitten
Raboowell I found a bug that matches my case more.. https://bugs.launchpad.net/ubuntu/+source/biosdevname/+bug/153504515:05
ubottuLaunchpad bug 1535045 in biosdevname (Ubuntu) "Biosdevname does not provide interface naming information for ConnecX4 Devices" [Medium,In progress]15:05
Raboovery little hope on this getting fixed, the bug was filed 3 years ago15:07
RabooAnyone know Brian Fromme?15:08
THKittenwell, this is fun. I've got a diaspora server up, and a mastodon server up on my ubuntu server. Apparently both of them are using the same f*$#@$ing redis server, so sidekiq is giving me the finger because each is trying to read the other's database queries, and they can't understand them, so they toss them, therefore, I lose posts. I have no idea15:23
THKittenhow to fix this, and the dev team are being a bunch of a$$ hats. Suffice to say, I'll ask the clearly better support team, you guys with Ubuntu. Any thoughts here on how I can get both applications to use their own redis database?15:23
TJ-THKitten: containers might be the quick way - separate them15:24
lordcirthTHKitten, well, this may be overkill for your use case, but at work I would put each in an LXC container. You could also look at running 2 redis servers on different ports and changing the redis port of at least one service15:24
THKittenI'm relatively new to this, it looks like containers might be the way to go, but I don't have a clue how to do that. I mean ffs diaspora's setup is complex enough as is without screwing with it. It might be better to stick mastodon in its own container and leave diaspora be15:25
TJ-THKitten: yes, only one needs to move :)15:28
lordcirthTHKitten, apt install lxc lxc-templates && lxc-create -n mastodon -t ubuntu15:28
lordcirthActually, you might want to use the newer LXD tools15:28
lordcirthWe haven't moved to those yet, but they are nice15:29
* THKitten bangs head on desk15:29
THKittenI hate this. Apparently the main dev for diaspora told me this wouldn't work "on the same server" in october, but I dismissed it. Why the hell can't developers make their platforms unique? KNOWING other platforms use similar tools to them? fffffff15:30
lordcirthIt could be that they are assuming that everyone will use containers or VMs anyway15:31
Raboowould #ubuntu-devel or #ubuntu-bugs be a better channel to find someone to squash the bug?15:32
THKittenit looks like containers it is. is there a youtube video instructional that can walk me through everything I need to know about containers?15:33
THKittenis 'docker' one of these containers?15:33
tewardRaboo: neither.  #ubuntu-bugs is for triage, #ubuntu-devel would bring attention to the bug but the package is in Universe since Xenial so unless someone *really* wants to patch it...15:33
tewardit's probably not going to get attention15:33
TJ-THKitten: yes15:33
lordcirthTHKitten, docker is a container system, but you might find LXC/LXD easier, as it's more like a normal server15:34
Rabooteward what can I do then? Cause a patch have been available forever and the bugreport has no activity since 2016.15:34
THKittenawesome, mastodon dev is far more helpful and friendly than diaspora dev. Apparently mastodon has a redis_namespace option, so let's try that15:36
lordcirthTHKitten, that sounds like a good solution too15:37
THKittenit's a far better solution than the "mastodon and diaspora won't work on the same server" that diaspora dev gave to me -_-15:38
TJ-this is what happens when you have more Dev than Ops !15:39
THKittenI already feel like this dev doesn't like me, he and I have gotten into so many arguments, all because he's an aggressive ass15:40
THKittenok guys, I'm gonna give this a shot....here's what I'm gonna do, but I'm gonna need some help (like, if you can essentially hold my hand, I'd super appreciate that, because this is TOTALLY out of my realm of comfort and skill).15:49
THKittenI'm going to setup two redis databases in their own docker container and have them hosted on different ports15:50
THKittenthen configure each platform to use that port for their redis databases15:50
tewardRaboo: i saw your ping, apologies I died shortly thereafter I had to do some emergency system reboots on my bouncer for maintenance.  I'm not sure what the 'patch' is or the established 'solution' will be, so i'll have to take a look, it's possible we'd have to look into a better solution for this, but it's not a package on my radar at present, nor is that bug, and I don't see a patch specified in the bug that'd be used to fix it16:28
tewardRaboo: what's the target release you're trying to make this work on?16:29
tewardXenial?  Bionic?  Trusty?16:29
=== TheHonorableKitt is now known as THKitten
=== TheHonorableKitt is now known as THKitten
theGoatso i have an ubuntu 14.04 server vm running on esxi.  and when i reboot it, it always fails on bringing up the network interfaces, once the vm is booted, i can log in and bring up the interfaces with ifconfig, and i can't figure out why.  everything looks good with the interfaces config19:59
TJ-Finally figured out how to bind entire /massive/ subnets to the host. "ip [-4|-6] route add local network/prefix dev lo" ... can now make my IPv6 addressable display :)20:00
sarnoldTJ-: lol20:00
sarnoldTJ-: btw https://www.jinglepings.com/20:02
TJ-sarnold: Yes, that is what inspired me before xmas20:04
TJ-sarnold: I knew there had to be a way to do it easily but they didn't publish any tech details20:04
sarnoldTJ-: aha :)20:05
sarnoldyeah it'd be fun to know a bit more about how they put it together20:05
TJ-I was thinking of doing something along the lines of the 'million dollar web-page' :D20:07
sarnoldhaha :D20:10
sarnolda friend put together https://ascii.town/explore.html20:10
xrandrThis is probably a bad idea, but is there an easy way to have ufw allow everything EXCEPT icmp?20:30
sarnoldwhy yes that *is* a bad idea :)20:31
xrandrsarnold: Well, I am running a game server with multiple games. Instead of adding a firewall rule for each game a customer wants to run, I figured I'd just leave it all open. I don't want ICMP attacks though20:32
sarnoldxrandr: what's an ICMP attack?20:32
xrandrsarnold: ping flood, etc.20:32
sarnoldxrandr: if you're under volumetric attack the right answer is to ask your ISPs to add filtering rules20:33
xrandrsarnold: Yes. that would be if they did that. As I rent the server from them, their policy states it is my job to secure the server. One of the major problems I have had in the past (especially with IRC servers) was the ping flood. So that is why I am asking how to allow everything EXCEPT icmp.20:35
sdezielICMP shouldn't be blocked because it breaks PMTU (among other things)20:35
sdezielxrandr: ^20:35
xrandrsdeziel: PMTU?20:35
sdezielxrandr: Path MTU discovery to be precise, aka how big can the packets be on a given path between your clients and the server20:35
xrandralright20:36
sdezielxrandr: not everyone support a MTU of 1500 so PMTU is a way to find which size is right20:36
xrandrsdeziel: ok, well my goal is to prevent a ping attack. What would you suggest then?20:37
sdezielxrandr: if you want to drop ping, drop that specific ICMP type20:37
xrandrso ICMP ECHO then20:38
sdezielxrandr: echo request is probably what you want to drop/reject20:40
xrandrok.20:40
xrandrbut it is still possible to allow everything else through, correct?20:40
sdezielxrandr: if you only want to drop ICMP echo requests, I'd say that using ufw is way over kill20:43
sdezielxrandr: I don't know/use ufw so I can't guide you with it but it would be trivial to do with iptables-persistent20:43
sarnoldI don't think it's even worth bothering20:44
xrandrsdeziel: alrighty20:44
sarnoldif you configure your machine to not send back ping replies, that'll annoy you when you want to debug it20:44
sarnoldand people can simply send tcp floods anyway20:44
sarnoldor udp floods20:44
sdezielxrandr: sarnold has a good point. An compromise might be to use --limit to permit some ping through20:45
xrandrthat could work too20:46
=== markthomas|PTO is now known as markthomas
DammitJimI'm on Ubuntu 1622:01
DammitJimhow do I disable automatic updates from happening?22:02
DammitJimthere information online is so confusing22:02
DammitJimI am fine with the system telling me how many updates available there are22:02
DammitJimbut I can't figure out where the system says, oh, I have to update22:02
OerHekshttps://askubuntu.com/questions/953779/programmatically-disable-apt-unattended-upgrades22:08
TJ-Is there a way to acquire a replacement IPv6 address when DAD stops the requested assignment. Network is using prefix delegation and due to the gateway/router being rebooted systems ended up with duplicates but didn't try to drop the duplicate and request a fresh address ?22:47

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