Techrights logo

IRC: #techbytes @ FreeNode: Tuesday, July 30, 2019

Join us now at the IRC channel.

<--schestowitz has quit (Quit: Konversation terminated!)Jul 30 03:27
-->schestowitz (~roy@unaffiliated/schestowitz) has joined #techbytesJul 30 03:27
schestowitz> Hi, Roy,Jul 30 10:12
schestowitz>Jul 30 10:12
schestowitz> Looking at the local copy of the VM, I notice that the database isJul 30 10:12
schestowitz> slightly misconfigured and exposed to the net:Jul 30 10:12
schestowitz>Jul 30 10:12
schestowitz> # netstat -ntlp | sed -n 's/   */  /g;1p;/3306/p'Jul 30 10:12
schestowitz> Active Internet connections (only servers)Jul 30 10:12
schestowitz> tcp  0  0 0.0.0.0:3306  0.0.0.0:*  LISTEN  1534/mysqldJul 30 10:12
schestowitz>Jul 30 10:12
schestowitz> I scanned both production machines and verified that it is the case inJul 30 10:12
schestowitz> production.  These should be re-configured to listen only to localhost:Jul 30 10:12
schestowitz> 127.0.0.1 and ::1Jul 30 10:12
schestowitz>Jul 30 10:12
schestowitz> I've patched the configuration files on both servers:Jul 30 10:12
schestowitz>Jul 30 10:12
schestowitz> $ diff /etc/my.cnf /etc/my.cnf.oldJul 30 10:12
schestowitz> 11,12d10Jul 30 10:12
schestowitz> < bind-address=127.0.0.1Jul 30 10:12
schestowitz> <Jul 30 10:12
schestowitz>Jul 30 10:12
schestowitz> But have not restarted the mysql and mariadb daemons.  That remains.  IfJul 30 10:12
schestowitz> the changes are ok, you can restart mysqld and mariadbdJul 30 10:12
schestowitz>Jul 30 10:12
schestowitz> Maybe it needs also ::1 for IPv6 too?Jul 30 10:12
schestowitz>Jul 30 10:12
schestowitz> See:Jul 30 10:12
schestowitz>Jul 30 10:12
schestowitz> # nmap -p 22,3306 techrights.org tuxmachines.orgJul 30 10:12
schestowitz>Jul 30 10:12
schestowitz> Starting Nmap 7.40 ( https://nmap.org ) at 2019-07-29 10:45 EESTJul 30 10:12
-TechBytesBot/#techbytes-nmap.org | Nmap: the Network Mapper - Free Security ScannerJul 30 10:12
schestowitz> Nmap scan report for techrights.org (199.19.78.19)Jul 30 10:12
schestowitz> Host is up (0.18s latency).Jul 30 10:12
schestowitz> PORT     STATE SERVICEJul 30 10:12
schestowitz> 22/tcp   open  sshJul 30 10:12
schestowitz> 3306/tcp open  mysqlJul 30 10:12
schestowitz>Jul 30 10:12
schestowitz> Nmap scan report for tuxmachines.org (199.19.78.20)Jul 30 10:12
schestowitz> Host is up (0.18s latency).Jul 30 10:12
schestowitz> PORT     STATE SERVICEJul 30 10:12
schestowitz> 22/tcp   open  sshJul 30 10:12
schestowitz> 3306/tcp open  mysqlJul 30 10:13
schestowitz>Jul 30 10:13
schestowitz> Nmap done: 2 IP addresses (2 hosts up) scanned in 1.20 secondsJul 30 10:13
schestowitzI guess this has posed a DDOS threat. Thankfully you noticed that; must have been this way for years.Jul 30 10:13
schestowitzMaybe wait until the VM crashes (they will happen) for changes to take effect?Jul 30 10:13
schestowitzMariaDB and MySQL on TR and TMJul 30 10:13
schestowitz>> I guess this has posed a DDOS threat. Thankfully you noticed that; mustJul 30 10:40
schestowitz>> have been this way for years.Jul 30 10:40
schestowitz> DDOS and potential for database-root password cracking.Jul 30 10:40
schestowitz>Jul 30 10:40
schestowitz>> Maybe wait until the VM crashes (they will happen) for changes to takeJul 30 10:40
schestowitz>> effect?Jul 30 10:40
schestowitz> Ok.  Though a restart of the daemon would (should) only take a short while.Jul 30 10:40
schestowitzYes, but in case downtime is caused (or worse -- need to troubleshoot) it's better to chain this with unwanted, unexpected, unplanned downtime (like VM crash) :-)Jul 30 10:40
schestowitzWhat do you think?Jul 30 10:40
schestowitz>>>> I’ve only spoken to privately.”Jul 30 10:41
schestowitz>>>> http://techrights.org/2019/07/28/the-linux-foundation-on-microsoft/#comment-325241Jul 30 10:41
schestowitz>>>>Jul 30 10:41
-TechBytesBot/#techbytes-techrights.org | The Linux Foundation is Totally Not Aware of Efforts to Undermine GNU/Linux | TechrightsJul 30 10:41
schestowitz>>>>Jul 30 10:41
schestowitz>>>> What you you think? Should I email them?Jul 30 10:41
schestowitz>>> I'm not sure.  I agree with your reply that either Greg or Linus wouldJul 30 10:41
schestowitz>>> be reluctant to comment on their employer, albeit probably for vastlyJul 30 10:41
schestowitz>>> different reasons.  Greg for sure would be unlikely to comment, so IJul 30 10:41
schestowitz>>> would save him for when you need to write "contacted last week forJul 30 10:41
schestowitz>>> comment but as of time of publication has not responded" or somethingJul 30 10:41
schestowitz>>> like that.  Linus, however, should be supported in whatever wayJul 30 10:41
schestowitz>>> possible.  While he could take his ball and go home, he has been moreJul 30 10:41
schestowitz>>> interested on the technical aspects, where he excels.  Also, changingJul 30 10:41
schestowitz>>> jobs at his age, with kids in college and probably a hefty mortgage,Jul 30 10:41
schestowitz>>> would be detrimental to both him and the code base.  Also, his lifeJul 30 10:41
schestowitz>>> might be on the line and more than a few consider that to be a reason heJul 30 10:41
schestowitz>>> has meticulously stayed out of anything non-technical.  That is untilJul 30 10:41
schestowitz>>> "they" got him with the CoC.Jul 30 10:41
schestowitz>> I'll drop a quick line to Linus. I know he'll read it; I doubt he'llJul 30 10:41
schestowitz>> reply...Jul 30 10:41
schestowitz> I also doubt he'll reply, even if he is allowed.Jul 30 10:41
schestowitzI put some text in, even if just for him to digest and 'sleep on'.Jul 30 10:41
schestowitz>> kaniini had pleroma downtime due to DB maintenance for about 6 hoursJul 30 10:43
schestowitz>> this past night. Awful.Jul 30 10:43
schestowitz> Ouch.  For TR, I notice that it uses LVM so it /might/ be possible toJul 30 10:43
schestowitz> transfer a few GB of unused space from one partition to another.  I haveJul 30 10:43
schestowitz> heard rumors to that effect with LVM but never looked into it much sinceJul 30 10:43
schestowitz> some of the guides warn about data loss.  However, a classicJul 30 10:43
schestowitz> backup-resize-restore might work safely.Jul 30 10:43
schestowitzI think we can compact the DB in /varJul 30 10:43
schestowitzIt might even be well overdue and improve performanceJul 30 10:43
schestowitzI looked up some pages, it seems like a common issueJul 30 10:43
schestowitz>> Thankfully TM and TR do much better than that. Notice the sharp increaseJul 30 10:43
schestowitz>> in TR traffic, maybe residue of weekend's volume of articles...Jul 30 10:43
schestowitz>>Jul 30 10:43
schestowitz>> I've begun picking up pace again like I'm back in my 20s.Jul 30 10:43
schestowitz> Excellent.Jul 30 10:43
schestowitzChecking email once a day and dumping Twitter, politics etc. helps.Jul 30 10:43
schestowitzPolitics clutters my mind too much to concentrate and digest/analyse FOSS stuff.Jul 30 10:43
schestowitz[11:07] <decnet> Schest: are you online?Jul 30 11:36
<--XFaCE has quit (Ping timeout: 272 seconds)Jul 30 12:19
-->XFaCE (XFaCE@unaffiliated/xface) has joined #techbytesJul 30 12:19

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