[{"data":1,"prerenderedAt":302},["ShallowReactive",2],{"articles-page-4":3},{"articles":4,"total":301},[5,48,88,146,168,200,220],{"path":6,"title":7,"description":8,"image":9,"createdAt":10,"authorKey":11,"tags":12,"codeLinks":17,"readingTime":18,"excerpt":19},"\u002Farticles\u002F20180306-simple-and-secure-external-backup","Simple and Secure External Backup","Howto set up a simple and secure offsite and offline backup server solution based on rsync.","\u002Fimages\u002Fcovers\u002Fpexels-photo-117729.jpeg","2018-03-06","philip",[13,14,15,16],"sysadmin","linux","backup","security",null,14,{"type":20,"value":21},"minimark",[22,31,34,37],[23,24,25,26,30],"p",{},"What we are going to set up here is a ",[27,28,29],"strong",{},"simple and secure offsite and offline backup server",". Let's assume you already have an existing backup server that is connected to the internet 24\u002F7 and does daily\u002Fweekly\u002Fmonthly backups. We would now like to set up a second offsite backup server that just cares about storing data to encrypted external drive and after each backup run, you are going to physically detach that drive.",[23,32,33],{},"So, we are talking about offline backups in addition to the fact having this server offsite - at a different location than your main backup server.",[23,35,36],{},"Preferably, your main backup server would also be offsite. But as it needs to pull data frequently, its storage is always available and not getting detached.",[23,38,39,40,43,44,47],{},"Let's call your main backup server ",[41,42,15],"code",{}," and the one we are going to set up here ",[41,45,46],{},"extbackup",".",{"path":49,"title":50,"description":51,"image":52,"createdAt":53,"authorKey":11,"tags":54,"codeLinks":17,"readingTime":58,"excerpt":59},"\u002Farticles\u002F20160904-proxmoxve4-openvz-to-lxc","Proxmox VE 4.x OpenVZ to LXC Migration","Migrating all OpenVZ containers to LXC on Proxmox VE 4.x.","\u002Fimages\u002Fcovers\u002Fcontainers.jpg","2016-09-04",[13,14,55,56,57],"openvz","lxc","proxmoxve",6,{"type":20,"value":60},[61],[23,62,63,64,71,72,77,78,81,82,87],{},"At ",[65,66,70],"a",{"href":67,"rel":68},"https:\u002F\u002Fwww.onlime.ch\u002F",[69],"nofollow","Onlime Webhosting"," we chose ",[65,73,76],{"href":74,"rel":75},"https:\u002F\u002Fproxmox.com\u002Fen\u002Fproxmox-ve",[69],"ProxmoxVE"," as our favorite virtualization platform and are running a bunch of  OpenVZ containers for many years now, with almost zero issues. We very  much welcome the small overhead and simplicity of container based  virtualization and wouldn’t want to move to anything else. ProxmoxVE  added ",[27,79,80],{},"ZFS support"," by integrating ",[65,83,86],{"href":84,"rel":85},"https:\u002F\u002Fzfsonlinux.org\u002F",[69],"ZFSonLinux"," back in Feb 2015 with the great ProxmoxVE 3.4 release – which actually  would have deserved to bump its major version because of this killer  feature.",{"path":89,"title":90,"description":91,"image":92,"createdAt":93,"authorKey":11,"tags":94,"codeLinks":97,"readingTime":101,"excerpt":102},"\u002Farticles\u002F20160607-ansible-composer-install","Install Composer with Ansible, the lean way","Install Composer without running the installer, using an Ansible playbook.","\u002Fimages\u002Fcovers\u002Fcomposer.jpg","2016-06-07",[13,14,95,96],"php","ansible",[98],{"link":99,"desc":100},"https:\u002F\u002Fgist.github.com\u002Fonlime\u002F8767e4e86d4205e32fbe354c8bea626c","Gist",3,{"type":20,"value":103},[104,128],[23,105,106,107,112,113,117,118,123,124,127],{},"Every PHP developer needs ",[65,108,111],{"href":109,"rel":110},"https:\u002F\u002Fgetcomposer.org\u002F",[69],"Composer"," and as a webhosting company at ",[65,114,116],{"href":67,"rel":115},[69],"Onlime GmbH",", sure we had to provide Composer binary to every customer, deploying it to every webserver. But how come the recommended Composer installation for ",[65,119,122],{"href":120,"rel":121},"https:\u002F\u002Fgetcomposer.org\u002Fdoc\u002F00-intro.md#installation-linux-unix-macos",[69],"Linux\u002FUnix\u002FmacOS"," is so clunky, only providing the latest ",[41,125,126],{},"composer.phar"," through an installer?",[23,129,130,131,136,137,139,140,145],{},"Sure, installers are fine, but not for a sysadmin who likes to keep things simple and fully manage his infrastructure with ",[65,132,135],{"href":133,"rel":134},"https:\u002F\u002Fwww.ansible.com\u002F",[69],"Ansible",". Installing Composer should be nothing more than deploying the latest ",[41,138,126],{},", period. But the author of Composer somehow forgot to provide us a download URL for the latest stable version. (Sorry ",[65,141,144],{"href":142,"rel":143},"https:\u002F\u002Fseld.be\u002F",[69],"Jordi Boggiano",", don't want to blame you - maybe I just overlooked it and should have asked you via DM. But writing that small Ansible playbook was still faster than looking any further.)",{"path":147,"title":148,"description":149,"image":150,"createdAt":151,"authorKey":11,"tags":152,"codeLinks":17,"readingTime":156,"excerpt":157},"\u002Farticles\u002F20141020-osx-yosemite-php-mysql","Setting up PHP & MySQL on OS X Yosemite","Set up a dev environment on OS X Yosemite with PHP, MySQL, Apache.","\u002Fimages\u002Fcovers\u002Fosx-yosemite-php.jpg","2014-10-20",[153,95,154,155],"macos","mysql","apache",5,{"type":20,"value":158},[159],[23,160,161,162,167],{},"How to set up a dev environment on OS X Yosemite (10.10) with ",[65,163,166],{"href":164,"rel":165},"https:\u002F\u002Fbrew.sh\u002F",[69],"Homebrew",", PHP, MySQL, and Apache.",{"path":169,"title":170,"description":171,"image":172,"createdAt":173,"authorKey":11,"tags":174,"codeLinks":176,"readingTime":156,"excerpt":180},"\u002Farticles\u002F20140324-php-sendmail-wrapper","Sendmail-Wrapper for PHP","A powerful sendmail wrapper to log and throttle emails sent by PHP.","\u002Fimages\u002Fcovers\u002Fsendmail-wrapper.png","2014-03-24",[13,14,95,175,16],"email",[177],{"link":178,"desc":179},"https:\u002F\u002Fgithub.com\u002Fonlime\u002Fsendmail-wrapper","onlime\u002Fsendmail-wrapper",{"type":20,"value":181},[182,197],[23,183,184,185,190,191,196],{},"Years ago I wrote about the ",[65,186,189],{"href":187,"rel":188},"https:\u002F\u002Fold.iezzi.ch\u002Fextensive-sendmail-wrapper-with-sender-throttling\u002F",[69],"extensive sendmail wrapper with sender throttling",", a pretty simple Perl script. It reliably provided throttling of the  email volume per day by the sender’s original UID (user id). It also  logged the pathes of scripts that sent emails directly via sendmail  (e.g. via ",[65,192,195],{"href":193,"rel":194},"https:\u002F\u002Fwww.php.net\u002Fmanual\u002Fen\u002Ffunction.mail.php",[69],"PHP’s mail() function","). The main flaw in the original sendmail wrapper was security, though. As in Linux, every executable script must be readable by the user that  calls it, the throttle table in MySQL was basically open and every  customer could manipulate it. Every customer could raise his own  throttling limit and circumvent it.",[23,198,199],{},"Today, I’m publishing my new sendmail-wrapper that is going to fix  all the flaws of the previous version and add some nice extras.\nThe new sendmail-wrapper is written entirely in PHP and does not require any external libraries. It is a complete rewrite and has pretty much  nothing in common with the old Perl version.",{"path":201,"title":202,"description":203,"image":204,"createdAt":205,"authorKey":11,"tags":206,"codeLinks":208,"readingTime":101,"excerpt":212},"\u002Farticles\u002F20140323-webapp-scanner","Webapp-Scanner","A webapplication scanner that detects all outdated webapps on a server.","\u002Fimages\u002Fcovers\u002Fwebapp-scanner.png","2014-03-23",[13,14,16,207],"bash",[209],{"link":210,"desc":211},"https:\u002F\u002Fgithub.com\u002Fonlime\u002Fwebapp-scanner","onlime\u002Fwebapp-scanner",{"type":20,"value":213},[214,217],[23,215,216],{},"Webhosting customers are messies, at least some of them - or (sadly, that's the truth) the bigger part of them. Some people still think they can run the same blog software or CMS for years without ever caring about upgrading. I tell my customers over and over how important it is, to keep their website up-to-date and don't let any outdated code lying around. Still, as long as their website doesn't get hacked or defaced, they don't really seem to care.",[23,218,219],{},"If you're in the same situation as me and you are providing webhosting services to your friends or customers, read on.",{"path":221,"title":222,"description":223,"image":224,"createdAt":225,"authorKey":11,"tags":226,"codeLinks":17,"readingTime":101,"excerpt":227},"\u002Farticles\u002F20130930-hidepid-process-hiding","Process hiding - hidepid capabilities of procfs","Hiding processes for other users using hidepid capabilities of procfs.","\u002Fimages\u002Fcovers\u002Fhtop-hidepid.jpg","2013-09-30",[13,14,16],{"type":20,"value":228},[229,249,254,267],[23,230,231,232,237,238,237,243,248],{},"Five years ago I wrote about kernel based process hiding in Linux (see my old blog posts: ",[65,233,236],{"href":234,"rel":235},"https:\u002F\u002Fold.iezzi.ch\u002Fsimple-process-hiding-kernel-patch\u002F",[69],"Simple process hiding kernel patch",", ",[65,239,242],{"href":240,"rel":241},"https:\u002F\u002Fold.iezzi.ch\u002Fprocess-hiding-kernel-patch\u002F",[69],"Process hiding Kernel patch for 2.6.24.x",[65,244,247],{"href":245,"rel":246},"https:\u002F\u002Fold.iezzi.ch\u002Frsbac-kernel-based-process-hiding\u002F",[69],"RSBAC – Kernel based process hiding","). It got time to continue the story and finally present you a real solution without the hassle of a self-compiled kernel.",[23,250,251],{},[27,252,253],{},"How can I prevent users from seeing processes that do not belong to them?",[23,255,256,257,262,263,266],{},"In January 2012, Vasiliy Kulikov came up with a ",[65,258,261],{"href":259,"rel":260},"https:\u002F\u002Fgit.kernel.org\u002Fcgit\u002Flinux\u002Fkernel\u002Fgit\u002Ftorvalds\u002Flinux.git\u002Fcommit\u002F?id=0499680a42141d86417a8fbaa8c8db806bea1201",[69],"kernel patch"," that solved the problem nicely by adding a ",[41,264,265],{},"hidepid"," mount option for procfs. The patch landed in Linux kernel 3.3.",[23,268,269,270,273,274,279,280,283,284,289,290,293,294,297,298,47],{},"In the meantime, this patch luckily also landed in the 3.2 kernel of ",[27,271,272],{},"Debian Wheezy"," (see backport request in ",[65,275,278],{"href":276,"rel":277},"http:\u002F\u002Fbugs.debian.org\u002Fcgi-bin\u002Fbugreport.cgi?bug=669028",[69],"Debian bug report #669028","). This feature has been also pushed back into the kernel of ",[27,281,282],{},"Red Hat Enterprise Linux 6.3"," (see ",[65,285,288],{"href":286,"rel":287},"https:\u002F\u002Faccess.redhat.com\u002Fsite\u002Fdocumentation\u002Fen-US\u002FRed_Hat_Enterprise_Linux\u002F6\u002Fhtml\u002F6.3_Release_Notes\u002Fkernel.html",[69],"RHEL 6.3 Release Notes","), and from there to ",[27,291,292],{},"CentOS 6.3"," and ",[27,295,296],{},"Scientific Linux 6.3",". Recently, this feature was even backported to the 2.6.18 kernel in ",[27,299,300],{},"RHEL 5.9",29,1794961390517]