Convert old PC into Router with pfSense
You can convert an old pc into router with pfSense.
You can convert an old pc into router with pfSense.
Uncomplicated Firewall (UFW) is a helper tool which allows you to quickly setup iptables firewall in any Ubuntu server. It is installed by default and it allows you to secure your server at no time! Basic UFW Basic UFW: Check Status You can check UFW by running this command. The verbose argument prints additional information […]
Here’s a simple guide on how to add the correct mime-type for Android APK file for Nginx webserver. sudo nano /etc/nginx/mime.types In “mime.types” file, add this line within the “types” block types { … … application/vnd.android.package-archive apk; … … } Restart nginx server sudo service nginx restart Done!
This post concerns on generating self-signed TLS/SSL certificate for Nginx in Ubuntu LTS and assumes that you’ve configured nginx server with a default site. Step 1: Generate OpenSSL certificate sudo mkdir /etc/nginx/ssl sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/ssl/nginx.key -out /etc/nginx/ssl/nginx.crt You are about to be asked to enter information that […]
OwnCloud is a PHP-based Cloud-storage web application for remote storage with file synchronization capabilities. Step 1 You need to install several packages in order to configure OwnCloud with nginx in your server sudo apt-get -y install nginx-full php5-fpm php5-sqlite Step 2: Download Owncloud Download Owncloud, replace $OWNCLOUD_VER with the latest Owncloud version. export OWNCLOUD_VER=”8.1.0″ cd […]
OpenSSH usually listens on TCP port 22. However, there are some people who wish to change OpenSSH port to avoid brute-force bot attacks or to avoid from being blocked by restrictive firewall. To change OpenSSH port, one only need to edit “/etc/ssh/sshd_config” file and change the port at “Port 22” to something else, like “Port […]
In Ubuntu or Debian, a default OpenSSH server will display OpenSSH version alongside with Ubuntu/Debian distribution banner: $ telnet repeater.my 172.16.91.20 22 Trying 172.16.91.20… Connected to 172.16.91.20. Escape character is ‘^]’. SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2 You can hide the identifying part of Ubuntu-2ubuntu2 from the server banner by editing /etc/ssh/sshd_config file, and adding “DebianBanner no” either at […]
Hello there, I’ve made an easily installable *.deb NGINX package with PageSpeed. The package is made for Ubuntu LTS on AMD64 machine. Ubuntu 14.04 LTS – nginx 1.8.0 with PageSpeed nginx-full_1.8.0-1+trusty1-mypapitubuntu4_amd64.deb Full package nginx-extras_1.8.0-1+trusty1-mypapitubuntu4_amd64.deb Extra package Ubuntu 14.04 LTS – nginx 1.8.0 with PageSpeed: Other Package nginx-common_1.8.0-1+trusty1-mypapitubuntu4_all.deb nginx_1.8.0-1+trusty1-mypapitubuntu4_all.deb nginx-doc_1.8.0-1+trusty1-mypapitubuntu4_all.deb Installing nginx-extras or nginx-full is as […]
Source: https://zulfah.my/files/openvpnsetup/vpn_install.txt Got this while surfing the internet. A no brainer way to install and setup OpenVPN in CentOS. The only thing left is to open port 1194/udp 1337/udp from firewall / router yum update -y && yum -y install nano unzip wget gcc make rpm-build autoconf.noarch zlib-devel pam-devel openssl-devel cd /home wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm && […]
Found a great Python code snippet for listing the most popular URL from Apache / NGINX ‘access.log’ file. Very practical! import collections logfile = open(“access.log”, “r”) clean_log=[] for line in logfile: try: # copy the URLS to an empty list. # We get the part between GET and HTTP clean_log.append(line[line.index(“GET”)+4:line.index(“HTTP”)]) except: pass counter = collections.Counter(clean_log) […]
I read an interesting analysis on the lifespan of some of the Google service and API that has been cancelled: http://www.theguardian.com/technology/2013/mar/22/google-keep-services-closed Based on the analysis at the time of the writing, Google service has a mean lifespan of 1,459 days. An interesting point to ponder, especially if your applications/services depends on one or more Google […]
What ever happened to 1Malaysia email, a project that said to be valued at 5.3 milions (MAVcap funding) ? Source: The Star Official email account for each Malaysian adult Pemandu: Communications Content & Infrastructure The Next Web: Malaysia’s new “official” email address for each citizen will also offer biometric USB device The 1Malaysia email is […]
You can run a simple test using curl to verify whether the PageSpeed module is running or not on NGINX. curl -I -X GET {ip addresss | web address} curl -I -X GET 192.168.1.47 The output would come out something like this… You will see “X-Page-Speed” header with its version (in my case its “1.9.32.4-7251“) […]
I just remembered that I used to run a simplistic and lightweight php bittorrent tracker out from my webserver, the tracker slowly attracts users until it used up all the allocated web server bandwidth. This is a pure tracker with no statistic or control panel, just drop it in the web directory, create the required […]
UPDATE: You can now install NGINX with PageSpeed in Ubuntu LTS with deb package: https://blog.mypapit.net/2015/08/install-nginx-with-pagespeed-using-deb-for-ubuntu-lts-amd64.html INSTALLING NGINX USING UBUNTU APT-GET SOURCE PageSpeed modules are open source modules developed by Google Inc that can perform website optimization to ensure faster site delivery, automatically. PageSpeed module is not included in NGINX installation in Ubuntu or Debian. So […]