Accessing Samba shares through SSH

In Linux, you can access Samba shares by using a SSH prompt. We need a host PC (65.219.4.23) and a destination PC (192.168.0.81). We’ll use jack as a username but first we’ll create a new mount directory: mkdir -p /samba/share Now we connect to it: ssh -N -L 139:192.168.0.81:139 jack@65.219.4.23 jack@65.219.4.23 Now we do a… Read More »

IPTABLES – blocking IPs simplified

You can block an IP from IPTABLES by using iptables -I INPUT -s 192.168.0.88 -j DROP You can simplify things a little bit by using a shell script and a predefined text file containing the IPs we want to be blocked. Either create a new file or add the following at the end of the… Read More »

Apache – graceful restart

Apachectl restart is used in 98% of the cases that require a web server reboot. What not everyone knows is that we can use a command that doesn’t stop all the child processes and doesn’t lead to possible blocked user sessions. apachectl graceful will allow each child process to die peacefully. For an even more… Read More »

Measure web site latency with echoping

One excellent network monitoring piece of software is echoping. Syntax for a web server would be echoping -v -4 -h /code/ssl-cert-check tips4linux.com:80 For a mail server try this: echoping -v -4 -S mail.tips4linux.com Output data can later be viewed as an easy to read graphic by using smokeping.