Web : How to password protect a Web directory with htaccess

If for any particular reason you need to password protect a Web directory, on an Apache Web server using htaccess, here are steps below : 1. If not already existing, create a file name “.htaccess” at the root of the folder you want to protect :

2. Make sure it is readable by the… Read More »

Category: Web

JunOS : Port forwarding on Juniper SRX

A friend of mine who was used to the legacy and EOL SSG/ScreenOS platform and he just jumped into the new world of SRX/JunOS gave me the motivation to write this article. As the syntax is quite different between the two platform, it may be harder to get at first and the following example should… Read More »

Linux : apt-get Failed to fetch FailReason: ConnectionRefused

Experiencing the following issue trying to update your Debian distro using apt-get? # apt-get update Ign:1 http://deb.debian.org/debian stretch InRelease Hit:2 http://deb.debian.org/debian stretch Release Ign:3 http://repo.r1soft.com/apt stable InRelease Hit:4 http://repo.r1soft.com/apt stable Release Hit:5 http://security.debian.org/debian-security stretch/updates InRelease Ign:8 https://download.webmin.com/download/repository sarge InRelease Hit:9 https://download.webmin.com/download/repository sarge Release Err:11 https://packages.sury.org/php stretch InRelease FailReason: ConnectionRefused Reading package lists… Done W: Failed… Read More »

JunOS : Configure DNS forwarders on SRX device

If you want your SRX firewall to handle DNS requests on your network, you need to configure the forwarders to make this possible, in addition to a few other parameters. First, make sure you have no local forwarders set on the device itself as it cannot be used along with the dns-proxy service – if… Read More »