Skip to main content

Posts

Showing posts from May, 2017

How To Check Your Server From DDoS, and How To Solve.

If you are a Linux server administrator, you might need to know how to check your server from DDoS attack . There is no clear explanation why some people do a DDoS attack. Maybe they just want to test your server. Whatever they are, you have to be technically prepared for this issue. 1. Check who are accessing your server right now netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n You will get output like this : 2. The IP that is accessing your server most is the suspected one. Next, you should block the IP by executing this command : route add suspected_ipaddress reject

Linux Command dig Nor Working, How To Solve

Yesterday, I experienced a very odd error in my new installed Rosa Linux R9 : the dig command not working ! Every time I tried to dig or dig ns a domain, there is no result.  I reconnected the internet connection, I rebooted the OS, but the result was still same. I didn't know whether it is the distro issue or not, but I've finally found the solution. Here are the steps : Edit /etc/resolv.conf sudo vi /etc/resolv.conf Replace the default record with these records : nameserver 8.8.8.8 nameserver 8.8.4.4 Make the resolv.conf immune so the network-manager can't automatically replace it sudo chattr +i /etc/resolv.conf Done

How To Solve Hipchat4 on Linux : "Make sure you have an internet connection and try again.."

I need to work with Hipchat and didn't have any problem running hipchat client on my Linux machines, since I move to Hipchat4 and installed it on my Debian 9 Stretch with Kernel 4.9. The Hipchat4 Linux Client is unable to connect to the internet and an error message appears " Make sure you have an internet connection and try again.. ". The internet is ok and everything is ok, so this is without doubt a bug in the Hipchat4 Linux client with newer Linux system. I didn't find this problem with my older Linux machine like Debian 8, Ubuntu 14.04 and older releases. After wandering around the internet, I've finally found a solution and quite simple. Here are the steps : 1. Create a symbolic link to a library to the Hipchat4 library. sudo ln -s /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2 /opt/HipChat4/lib/libcrypto.so.1.0.2 sudo ln -s /opt/HipChat4/lib/libcrypto.so.1.0.2 /opt/HipChat4/lib/libcrypto.so 2. Relaunch the Hipchat4 Linux Client. System I'm ...