5 MUST HAVE tools for system administrators PART 1

Hey folks,

Today I’m going to review a few of my favorite tools that I use every day, and in my opinion these can be classified as must have for a regular daily work of a system administrator. All the software that we are going to look at this article is for Windows.

mRemoteNG

mRemoteNG main window

mRemoteNG main window

Continue reading

The art of Hacking nowadays

Hello folks,

Me and my colleagues participated at a conferrence last weekend – to be accurate the date was 25.10.2014. The picture I’m sharing with you is part of the first talk – which started approximately at 9:30 a.m. which was a good start of the day, and a good lesson too! :)

how.camp

 

 

Let’s leave the jokes – How.camp was an interesting Web Conferrence, with a STUNNING  presentation of Biohacking as a way of life from Teemu Arina. It worths googling what Biohacking is. I have to say, that I rarely get inspired by something or someone, but Teemu’s talk about measuring almost EVERYTHING in your life and IMPROVING it, did an affect on me.

 

Cheers!

p.s. Expect a few interesting pictures of our trip back home in the snow, it was really interesting :)

Apache load balancing by source IP

As you may already know Apache doesn’t do loadbalancing based on source ip. This gets a very big deal, when you use apache as a proxy for some application servers, which need sticky session, otherwise something gets wrong.

So a colleague of mine came across with a nice solution, based on what ends your IP address.

 

This nice hack uses mod_rewrite and mod_proxy and basically transfers all clients which IPs are ending on 1, 2, 3, 4 and 0 to one of the proxy balancers

…and if it couldn’t match (mod_rewrite doesn’t work, or IP ending on 5,6,7,8,9) it sends to the other one.

Here’s the code that should be added to your .htaccess or conf file in conf.d/ directory:

 

RewriteLog /var/log/httpd/rewrite.log # Turns on the log
RewriteLogLevel 5 # Log level
<Proxy balancer://cluster1> # Place your IPs here, these will be the application servers.
BalancerMember http://192.168.1.1:8080 route=dns-name-of-the-machine disablereuse=On retry=0
</Proxy># Place your IPs here, these will be the application servers.
<Proxy balancer://cluster2>
BalancerMember http://192.168.1.2:8080 route=dns-name-of-the-machine disablereuse=On retry=0
</Proxy>
RewriteEngine On # Switching on mod_rewrite, if its not on
RewriteCond %{REMOTE_ADDR} 1$|2$|3$|4$|0$ # First condition matching 1,2,3,4,0 ending IPs
RewriteRule ^/path(.*)$ balancer://cluster1/path$1 [P] # change PATH here, according to your path
ProxyPass /path balancer://cluster2/path # Second condition, if the first fails or ip is ending on 5,6,7,8,9
ProxyPassReverse /path balancer://cluster2/path

 

NOTE: Please be careful when you are pasting this in already used configs. If the rewrite rule isn’t working, take a good look if you have another rule that is preventing this one.