Richard King

Samples of programming and scripting

Example of coding

Shell scripting to generate html and interact with Perl sub routines

This page shows one of the codes where I used shell scripting to generate a html frontend gui to enable users to manipulate their ownwhitelists/blacklists for Intrustion Detection and Web Content Filter Alerts within the hardware firewall. Click on the image to see it open larger in a new window.

Please click on this to see the coding used to create this gui.

An example of one of the Perl Scripts that this gui connects to actually makes the changes to the underlying firewall operating system configuration. This opens in a new browser tab and shows the WEBALERT Perl script which is 561 lines long.

My tcpscanalert perl program that is one half of the scanalert IDS that runs on the i-Firewall range of firewalls. A portion of the code is shown here as the whole code is 529 lines.


The bandwidth.txt is only a sample of the traffic shaping code that makes the gui:

The Bandwidth Traffic Shaping tool is controlled by a gui with all the scripting written by myself.
A sample of the code is supplied here as there are 777 lines of code in the complete script.


This was for a client that needed a "lock-in" page for their Free Service to stop users abusing the service. Even though the coding is HTML, it is not actually hosted on a Webservice such as Apache, but instead I configured their Squid Web Proxy on the endpoint of the VPN they were using to lock everything in and only display this page, with BBC Iplayer playing in an i-frame. The users' are contained within a Transparent Proxy that they cannot break out of as the controls are only on the VPN Endpoint Server.

Users can download a free VPN client to use the service, but the client prefers them to only use it as a short-term trial, then purchase the subscription model after the user is satisfied of proof-of-concept. I have configured a number of codes to display web pages within services such as squid.




All codes displayed here are copyrighted to the author and may be viewed but not reproduced, replicated or copied in any way without explicit prior permission.
© 2016 Richard King.