/srv/irclogs.ubuntu.com/2017/07/06/#ubuntu-server.txt

cpaelzergood morning04:42
lordievaderGood morning05:21
=== stokachu_ is now known as stokachu
=== cargonza_ is now known as cargonza
rbasakcpaelzer: importing06:36
cpaelzerthanks rbasak, will you ping me when complete?06:37
rbasakack06:39
rbasaknacc: interesting. Got an error using your branch06:49
rbasak07/06/2017 07:37:08 - ERROR:stderr: pristine-tar: Unknown subcommand "verify"06:49
rbasak07/06/2017 07:37:08 - WARNING:Tarball at %s has already been imported to Debian06:49
rbasakwith different contents06:49
rbasakI guess that doesn't exist on Xenial?06:49
rbasakThough my mistake - I thought I was on master.06:49
* rbasak retries from master06:51
rbasakcpaelzer: done06:54
cpaelzerthank you rbasak06:57
=== berglh_ is now known as berglh
=== frickler_ is now known as frickler
=== chmurifree is now known as chmuri
=== thib_ is now known as thib
zioprotocoreycb: I was just reviewing my TODO list, I found that this merge request needs some love: https://code.launchpad.net/~zioproto/ubuntu/+source/python-cinderclient/+git/python-cinderclient/+merge/32629111:50
zioprotoor whoever has time to have a look :)11:50
zioprotowe are carrying this patch in production11:50
zioprotowithout it you will not be able to delete a heat stack, where a cinder volume was already deleted manually11:50
zioprotoit is a clean cherry-pick from Ocata11:51
coreycbzioproto: i think yakkety is EOL12:18
coreycbzioproto: do we need that on xenial?12:19
zioprotoyes for xenial12:23
zioprotocoreycb: yes for xenial12:23
coreycbzioproto: ok12:25
coreycbzioproto: that shouldn't be applicable to xenial since xenial is at webob 1.5.112:47
coreycbzioproto: newton is still supported though so we need it there12:48
zioprotocoreycb: I have python-webob 1.6.1-1~cloud012:49
zioprotoinstalled from12:49
zioprotohttp://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/newton/main amd64 Packages12:49
zioprotomakes sense ?12:50
coreycbzioproto: yes that makes sense for xenial with the newton cloud archive12:50
zioprotoso the python-cinderclient patch for the newton cloud archive makes sense, right ?12:51
zioprotoI meant the patch to be merged into the newton cloud archive, not in the upstream xenial. I think xenial has only mitaka packages12:51
coreycbzioproto: i'm going to upload this to xenial and the newton cloud archive.  xenial client against newton server would need this.13:07
zioprotocoreycb: ok, is there any other push/commit action required on my side ?13:19
coreycbzioproto: nope, but if you wouldn't mind verifying the fixes once they're in proposed and tagging the bug accordingly, that'd be helpful13:20
zioprotoOK ! sure I will do that13:20
coreycbzioproto: thanks :)13:22
caribounacc: FYI regarding LP: #1658733, I have a fix ready that I'm about to push to Debian, so I took back ownership of the bug14:51
ubottuLaunchpad bug 1658733 in makedumpfile (Ubuntu) "Ubuntu 16.04.2KVM:kdump fails to mount root file system on multipath root device" [Undecided,In progress] https://launchpad.net/bugs/165873314:51
nacccaribou: thanks!15:21
caribounacc: I thought I had lost the fix when I returned my server but as it happens, I had it in git15:22
nacccaribou: nice15:23
coreycbjamespage: beisner: hello, python-cinderclient - 1:1.9.0-0ubuntu1~cloud2 is ready to promote to newton-proposed when you have a moment.15:34
jamespagecoreycb: gotcha15:44
coreycbjamespage: thanks15:47
=== oerheks_ is now known as oerheks
=== dames is now known as thedac
beisner_coreycb - did you push cinder in uca already?  lmk if not i can17:00
coreycbbeisner_: thanks, i think james got it already.17:00
beisner_ok cool17:00
naccrbasak: fyi, got good feedback from guido on gbp, i see how to use it 'correctly' now, i'm adjusting my branch with some follow-on commits17:36
rbasakSounds good!17:45
=== JanC is now known as Guest56451
=== JanC_ is now known as JanC
Epx998Is there a command to determine a driver version for a module?20:36
ChmEarlmodinfo nvidia20:37
ChmEarlEpx998, modinfo radeon20:39
Epx998yeah just found that20:39
Epx998having problems with the ixgbe driver20:39
Epx998latest from intel works, but thats not whats being shipped with any kernels ive checked so far20:39
Epx998ixgbe on this kernel (3.13.0-66) is 3.15 latest from into is 5.13 - quite out of date20:42
ChmEarlEpx998, check the BTS for ixgbe bugs. Might want to use the backport (bpo) kernel for your platform. Is it trusty?20:48
Epx998ChmEarl: .. no im forced to use 1220:49
Epx998but we are converting slowly to 1420:49
ChmEarlEpx998, must admit I'm thinking in Debian terms for this20:51
Epx998ChmEarl: I think I have a WAR, our netboot is using 3.13.0-32, I am going to build the 5.1.3 ixgbe driver for that kernel and see if I can rebuild the initrd.gz with it.20:51
=== Epx998- is now known as Epx998
Epx998hmm21:31
hehehehelo21:33
Epx998yup21:34
heheheis there any sane reason to leave firewall rule all outgoing allowed on?21:34
heheheI dont see why would it be required21:34
Epx998then you should remove it21:34
hehehecorret21:34
heheheI require 80 443 ssh and mail port21:35
hehehethats it21:35
heheheif it wise to change default ssh port? or no need? cause people can port scan anyway for open ports21:35
Epx998then deny all traffic and only allow those ports explicitly21:35
qman__changing ports does a whole lot of nothing, in terms of security21:36
qman__it's a minor annoyance21:36
heheheqman yep21:37
qman__same goes for disabling ICMP echo replies21:37
Epx998when I was a DOD contractor, we always used non-standard ssh ports - just cause21:37
Epx998better to be caught with a non-standard port than with 22 being used - that way IT cannot blame you :D21:38
hehehefck that logic :D21:38
Epx998also couldnt reach the box regardless unless you had a secure vpn tunnel to it directly21:38
Epx998im not with the IT BU, we get audited on crap like ssh ports and all that. buh.21:39
hehehethere is some russian site that offers free site audit :) I tried it - it scans for phpmyadmin21:40
hehehethats it21:40
hehehebut claims to check a lot21:40
hehehewell unless it checks without leaving traces in access log but how21:40
hehehehttps://rescan.pro/21:41
heheheso ok I need - incoming ssh - and both incoming and outgoing 80 and 443 right?21:44
hehehefor webserver21:44
heheheor just incoming 80 and 443?21:44
qman__just incoming21:44
qman__outgoing, you need to allow established connections21:45
qman__(if you don't have an outbound accept policy, anyway)21:45
heheheI may need it temporarily to update ubuntu right?21:45
qman__yes, you will need outgoing 80 and 443 to patch using apt21:45
heheheI plan to set default outgoing to blocked21:45
heheheallow ubuntu rep IP21:46
qman__and would also need to allow incoming established connections21:46
heheheyes I added 22 80 and 443 in incoming21:46
heheheincoming is a bit confusing since they are downloading data so seems but yes they are coming21:47
hehehe*incoming21:47
heheheufw status command dont show if all outgoing are allowed or not?21:48
heheheso far it displays rules I made21:48
hehehealso does it make sense to chroot jail nginx?21:49
heheheor not21:49
heheheI run webserver where all files are owned by root and group can only read files :D21:50
heheheand php is under www-data which is www-data group member21:50
hehehesome trick with | to auto add all servers from sources list to allowed? :D21:54
hehehesaves typing21:54
heheheqman__: its important for auto security updates22:11
hehehe:d22:11
Epx998any decent how-to's on creating a .deb from scratch?22:19
hehehehttps://askubuntu.com/questions/1345/what-is-the-simplest-debian-packaging-guide22:25
heheheufw allow from xxxxx to any port 99322:29
hehehewhat does any stands for?22:29
hehehefrom external ip to any server ip?22:29
heheheon port 99322:29
hehehealso ubuntu servers that host repositories22:30
hehehedo they change their ip addrresses?22:30
tarpmanEpx998: https://www.debian.org/doc/manuals/maint-guide/22:30
tarpmanEpx998: and https://www.debian.org/doc/devel-manuals generally22:30
hehehefrom to is same as in anywhere?22:31
heheheand from anywhere to xxx is same as out anywhere?22:32
Epx998thats beyond me, creating a deb22:35
tarpmanEpx998: believe in yourself22:40
heheheI concur22:41
heheheI can do it too22:41
heheheit just time and action22:41
sarnoldmaybe steal the gnu hello package and start there? there might be simpler packages .. but I can't off-hand think of one22:41
hehehetime*action=result22:41
hehehesarnold:  heya22:41
hehehesarnold:  heya22:41
sarnoldgood afternoon hehehe :)22:41
hehehesarnold: https://pastebin.com/tR2FgmgD22:46
hehehelooks right? :D22:46
heheheallow in http and https and mail out22:46
heheheand mail in22:46
heheheplus yes I added 22 for ssh22:47
sarnoldhehehe: you'll probably want to allow tcp and udp 53 in and out22:48
hehehewhat for?22:49
hehehedns22:49
heheheI need dns out to update ubuntu22:50
hehehebut why in?22:50
sarnoldjust to make sure you get dns replies, heh22:50
hehehewhat do u mean?22:50
heheheusually if I sent say curl or wget I need dns out22:51
heheheif I dont use ip22:51
hehehebut in ?22:51
sarnoldI don't know linux firewalling real well. I don't know if you need to go out of your way to say "dns outgoing requests and the responses"22:51
hehehethey are required22:53
hehehe:)22:53
heheheelse how will it resolve domain name?22:53
heheheand it seems ufw allows both tcp and udp22:55
hehehewill check soon in iptables22:55
heheheyep it foes22:57
jdstrandufw will do different things under different circumstances. if you are using an app rule (allow Bind9), it will use the protocols defined in it, if you use the simple syntax (allow 53) it will allow both tcp and udp. you can specify the protocol in the simple syntax (allow 53/udp)22:59
jdstrandyou can also reference services in /etc/services, and it'll use the protocols there (allow smtp)23:00
jdstrandthen there is the fuller syntax which has the 'proto' option. it operates like the simple syntax and will allow both tcp and udp if unspecified23:02
jdstrand(all this is in man ufw)23:02
sarnoldjdstrand: does ufw go to some effort to enable conntrack replies if you e.g. allow dns out does it conntrack dns replies in too?23:03
jdstrandsarnold: ufw uses connection tracking, yes. ufw by default does not do egress filtering (configurable)23:04
jdstrandyou typically don't need to do outbound rules unless you enable egress filtering with 'ufw default deny outgoing'23:05
sarnoldjdstrand: I think hehehe's ruleset did have that23:05
jdstrand'ufw status verbose' would say for sure23:06
jdstrandso yeah, if you enable egree filtering, you need the out rules23:06
jdstrandufw allow out 5323:06
jdstrandegress*23:07
jdstrandconnection tracking will be in effect there too23:07
sarnoldcool :) definitely uncomplicated :)23:07
jdstrandit tries to be :)23:08
Epx998how amazing would it be if netboot also shipped with an all inclusive initrd.gz /sigh23:10
hehehei did ufw man an all this stuff werent there :D23:10
hehehealso digital ocean tutorial dont mention ot23:11
heheheit23:11
hehehealso http://rdstash.blogspot.com.ee/2013/09/allow-host-with-dynamic-ip-through.html23:11
heheheupdates domains ip in iptable23:11
hehehejdstrand: what does egree means?23:12
sarnoldtypo for 'egress'23:12
heheheok :)23:12
hehehesarnold:  I added rule for 53 update all yet to work :)23:16
hehehealso nice $ sudo ufw rule comment 'my cool comment here'23:18
heheheif only girls on dating sites knew linux23:19
hehehe:)23:19
Epx998is there a trick to adding a compiled driver to a netboot initrd.gz?23:19
sarnoldEpx998: guessing here, could you use update-initrd once you've got /etc/modules populated correctly, and then copy the generated initrd back to the pxe tftp machine?23:21
Epx998hmm23:22
hehehefolks -  sudo ufw reject 22 comment 'No Hacking Allowed'23:22
hehehe:)23:22
heheheufw can serve commens when connection is rejected23:22
Epx998sarnold: when I tried that method before, preseed and other things did not work - havent used update initrd tho, ill give that a try23:23
sarnoldhehehe: probably those comments are simply placed into the generated ruleset without any influence on network packets at all23:24
sarnoldEpx998: ohhh :(23:24
hehehethey will see them23:26
Epx998sarnold: normally I expand the initrd.gz, add the udeb i need, then i re-create it.  I havent tried with the systems initrd23:26
heheheThe deny syntax simply ignores traffic. If you want let the sender know when traffic is being denied, rather than simply ignoring it, use reject syntax:23:27
hehehedo this guys change IP sometimes?23:31
hehehehttps://pastebin.com/wZWBev6923:31
hehehemy plan is to add them each with 80 and 443 out23:31
heheheor can I set update all to use only https?23:31
heheheto null any potential mitm23:31
hehehealso is this right?23:36
hehehe    │ "origin=Debian,codename=${distro_codename},label=Debian-Security";_____23:36
hehehevariables for security auto update23:36
hehehe:)23:37
hehehedoes not seems like it since it said debian or...23:37
hehehe    sudo dpkg-reconfigure -plow unattended-upgrades23:38
Epx998ya'll still talking about firewalls?23:40
heheheyes23:43
hehehelast bits23:43
heheheExec: any ideas?23:43
hehehething is once its all working23:43
heheheeven if there is any malicious code23:43
heheheit can do nothing23:43
heheheit wont even be able to connect out :D23:44
tarpmanhehehe: http for ubuntu mirrors is fine because the sources are all signed and validated with GPG23:44
hehehetarpman: and how does ubuntu verifies it?23:44
heheheit verifies signature while applying updates?23:45
tarpmanhehehe: man 8 apt-secure23:46
hehehety23:46
hehehetarpman:  will those strings catch ubuntu security updates?23:47
hehehe    │ "origin=Debian,codename=${distro_codename},label=Debian-Security";_____23:47
hehehejust want to make sure, since some tutorials arent always right23:47
tarpmanhehehe: ubuntu repositories do not use "origin=Debian"23:47
hehehehttps://www.howtogeek.com/204796/how-to-enable-automatic-security-updates-on-ubuntu-server/23:48
tarpmanhehehe: the ubuntu-server installer normally sets up a sane unattended-upgrades config for you. maybe dpkg-reconfigure unattended-upgrades would help. not sure, please read its postinst and see23:48
tarpmanhehehe: please do not trust random blogposts on the internet.23:48
heheheyes23:48
hehehewell I run command you suggested23:51
heheheand its same23:51
hehehe  │ Please specify a value for the unattended-upgrades Origins-Pattern.                                         │23:51
heheheand then debian blabla23:51
tarpmanhm23:52
tarpmanI distinctly remember a part in the installer where it asks which (if any) upgrades install automatically23:52
tarpmanmaybe installer magic23:53
tarpmanhehehe: https://help.ubuntu.com/community/AutomaticSecurityUpdates23:54

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