No Image

Apache not Logging Correct IP when behind Incapsula WAF

March 26, 2018 Andy 0

Incapsula is a great resource to help protect your web site from unwanted traffic and attacks. It is a cloud-based application delivery platform, providing among other things: Content Delivery Network (CDN) Distributed Denial of Service (DDoS) Mitigation Web Application Firewall (WAF) Incapsula acts as a proxy, sitting in front of the nodes its protecting. The DNS points to Incapsula which hides the IP address to your site.  Incapsula analyses the traffic and removes any unwanted requests before passing it on to the web node. As with any proxy-based system, the proxy rewrites the the X-Forwarded-For header information with the originating […]

No Image

Installing Ansible on Ubuntu 14.04 LTS

November 28, 2015 Andy 0

Take a look at the official installation guide. The simplest way to install Ansible on Ubuntu is add the PPA repository and install via apt-get. If not already installed, you will need the software-properties-common package. Then add the repository and install ansible. Presumably you’ve already got an external server that you want to configure with Ansible. You will need SSH access, and if you’ve not already done so, you’re gonna want to setup key-based authentication. Assuming you’ve done that, you can test things are working with: I also need to tell ansible to connect as the root user. Enter the […]

No Image

X2Go on Ubuntu Server 14.04

November 21, 2015 Andy 0

In a previous post, I talked about my experience using X2Go with XFCE4 and Lubuntu. Here is how it was achieved….. On the Server Here I’m using Ubuntu 14.04 LTS but you can install X2Go on just about any Linux distro. Create a User Account Create a regular user to run the desktop session under. For your own sanity, I recommend you setup password-less key-based authentication as soon as possible……go, do it now! Configure SSH Open the main configuration file for the OpenSSH daemon process. Ensure X11 forwarding is enabled. X11Forwarding yes Don’t forget to test for configuration errors and […]

No Image

Minimal Desktop Environment over SSH

November 21, 2015 Andy 0

So I wanted to install a Java desktop application and have it publicly available on a server somewhere. Using a light weight desktop environment on one of my cloud servers made sense – provided that is, I could find something reasonably secure. I came across X2Go and decided to give it a try on one of my Rackspace cloud servers. I used a 2 GB General Purpose v1 server and was surprised at how low the resource usage was – and consequentially how quick and responsive it all felt. X2Go is a remote desktop tool that uses the NX technology […]

No Image

Rackspace Cloud Monitoring Agent

April 11, 2015 Andy 0

The Rackspace cloud monitoring agent allows you to monitor CPU, memory, filesystem usage and system processes. It does this by collecting information about the system and pushing it out to Rackspace Cloud Monitoring web services, where they can be analyzed, graphed, and alerted on. It is this technology that the Rackspace monitoring checks are built upon. Plus you get a nice pretty little bar graph in the server details section of the control panel 🙂 Install the Agent While the instructions used here are for Ubuntu 14.04 LTS, this page lists the exact commands needed for all major distros. If […]

No Image

Installing Oracle Java on Ubuntu 14.04 LTS

April 9, 2015 Andy 0

You will need to run the following as the root user. To install Java 7… …and for Java 8… You will have to agree and accept the following licenses: You can quickly test both java and javac with the following…. …or you may want to check out one of my previous posts here. Related Documents https://salayhin.wordpress.com/2014/04/23/install-oracle-java-78-jdk-and-jre-in-ubuntu-14-04/ https://www.digitalocean.com/community/tutorials/how-to-install-java-on-ubuntu-with-apt-get http://askubuntu.com/questions/521145/how-to-install-oracle-java-on-ubuntu-14-04

No Image

Protect Your Cloud Infrastructure Servers with Isolated Cloud Networks

March 31, 2015 Andy 0

Create a Private Cloud Network Create an isolated cloud network. Here I am using the supernova client to communicate with the Rackspace OpenStack API. Take note of the id – you’ll need it shortly! Create a Proxy Server and Attach to the Private Network The above creates a server using the CentOS 6.6 image. Other images of interest are: Proxy Bastion Configuration Later we create a cloud server with no public IP, which is protected by sitting behind our proxy bastion. From the bastion side, in order for our protected server to have access to the internet, we need to […]

No Image

Install Apache on Ubuntu Server 13.10

November 3, 2013 Andy 0

First you need to prepare the machine that you are going to use. I’m using a Rackspace cloud server. In which case, all I need to do is spin up a server and update the Operating System software. Install Apache2 Installing Apache is easy, simply run apt-get install apache2 as the root user. root@apache:~# apt-get install apache2 Reading package lists… Done Building dependency tree Reading state information… Done The following extra packages will be installed: apache2-bin apache2-data libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap ssl-cert Suggested packages: www-browser apache2-doc apache2-suexec-pristine apache2-suexec-custom apache2-utils openssl-blacklist The following NEW packages will be installed: apache2 apache2-bin apache2-data […]

No Image

Update Ubuntu Rackspace Cloud Server

November 3, 2013 Andy 0

Assuming you’ve already “spun-up” a Linux cloud server of your choice, the first thing to do is update the system. Here I’m using Ubuntu Server 13.10. SSH onto your box with the below command, replacing the IP address with that of your server. You will need to accept the key when prompted. andy@work-pc:~$ ssh root@162.12.137.166 The authenticity of host ‘162.12.137.166 (162.12.137.166)’ can’t be established. ECDSA key fingerprint is 12:af:51:e2:bf:ed:b8:2c:dc:89:de:ca:55:a7:36:6a. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added ‘162.12.137.166’ (ECDSA) to the list of known hosts. root@162.12.137.166’s password: Then update the system and reboot if needed. […]

No Image

Ubuntu

November 3, 2013 Andy 0

Update Ubuntu Rackspace Cloud Server Install Apache on Ubuntu Server 13.10