Pages

16/04/2018

Faking a routed subnet with OVH / SoYouStart

I am currently in the process of decommissioning my trusty SoYouStart server (Part of OVH) so I thought I'd best document some of the stuff that may be useful in future.

You can purchase additional IP addresses off SoYouStart (SYS) however they work a little differently to the norm. I think the best way to describe it is they use static ARP to associate a public IP with a MAC address, and drop any traffic from a public IP unless its originating from the same MAC that was statically mapped. Because of this, the gateway isn't in the same subnet as the public IP range.

Before being decommissioned I was using the server as a VM Host and to mimic a 'real' setup I wanted a virtualised router / firewall between the internet and the Virtual Machines. Those of you that follow my blog will know I am a Mikrotik fanboy, so I decided to use the Mikrotik CHR (Cloud Hosted Router) as it was cheap and flexible.

To get this working I purchased an additional /32 for the routers 'external' interface and a /28 for the routers 'internal' interface. It's also required to reconfigure the SYS server's network configuration to use a bridge rather than having its IP directly on the interface.



Disclaimer: This is not a full guide, and should be considered "inspiration"


Converting a CM108 USB fob for amateur radio use

The CM108 USB audio chip has become a popular choice for Amateur Radio usage, due to its cheap price, good performance, and its exposed GPIO pins. The GPIOs can be utilised for triggering the PTT and detecting COS (When the radio is receiving a valid signal)

Due to its popularity, it has been integrated into app_rpt, a channel driver for Asterisk aimed at repeater usage, used in the popular AllStar Asterisk distribution and also supported in Hamlib, a "standardised API to control any radio oriented equipment through a computer interface", which Direwolf conveniently supports.

The following guide documents how to convert one for use with a radio. This is not my design, but the combined work of WB6NIL (SK), W9SH, M0NFI, G7RPG and many others. Pictures supplied with permission from M0NFI

15/04/2018

Using darkcast and icecast to stream audio from a Linux ALSA audio interface on Debian

This is a quick and dirty guide to streaming audio from a sound card, physical or otherwise to the internet as an MP3 stream. I am using a new, stock Debian 9 installation and the ALSA audio driver.

Darkice captures from the sound card and pushes it to Icecast. Icecast then streams the audio to connected clients. I am also using nginx to prevent users accessing the admin interface, for a layer of security.

As this is a quick and dirty guide, its assumed you have some Linux experience. If you get stuck, feel free to leave a comment.


19/02/2018

Hot to get a neutral wire to a UK light switch [Theoretical]

For the majority of UK homes (The older ones at least) our lighting switches are wired up with a system called 'loop in ceiling' where all the light fittings in the ceiling (ceiling roses) are wired in a loop, with a switched live being taken from the rose to the switch. This can potentially save cable and simplify installation, but causes issues when you want to install Home Automation type switches such as the Sonoff T1 that need a Neutral to be able to power themselves.

This is something I've been mulling over for a while, and someone has asked for more details. So here it is, a quick and dirty blog post.

Below shows a standard wiring layout for a single switch and bulb, as you can see there's no neutral in the switch, only live in and switched live out.


The Problem (Click to expand)

So, can we get a neutral to the switch without tearing the walls apart? Kind of!

I am not an electrician. This may not meet building or safety regulations. This is untested! Do so at your own risk! Electrical work should be carried out by a qualified electrician! ETC

23/01/2018

Broadlink RM Mini 3 Black Bean IR Blaster - Walkthrough

I thought I'd try something different and make a video for Youtube. In the video I talk about the Broadlink RM Mini 3 Black Bean IR Blaster, a device that will allow you to control Infrared devices such as TVs and Set-top boxes using your smart phone.


11/12/2017

Vyatta vRouter Appliance: Using BGP to distribute 'firewall' rules

A while ago I attended a Mikrotik User Meeting or MUM for short. For those of you that don't know, Mikrotik are a Latvian company that make networking hardware and an operating system known as RouterOS, that will act as a router and firewall. Their 'USP' is value for money. £22 will get you a home router that will support OSPF, BGP, MPLS et and £2736 will get you a router that will route almost 80Gb/s. Nice.

The MUM consisted of various presentations and demonstrations and one which caught my eye was a presentation from Barry Higgins from Allness, who demonstrated using OSPF to distribute a black list of bad guys which were then null routed, a nice method of distributing 'firewall' rules on a bunch of routers automagically. You can view his presentation on Youtube.

I've recently been playing Vyatta vRouter appliances and wondered if I could apply a similar method of injecting a black list from an IDS (Intrusion Detection System) and having it distributed via BGP.

25/09/2017

Hidden London: Charing Cross

If you've read any of my blog posts it may have come apparent that I have a bit of a 'thing' for the London Underground. I can't tell you how many bogies are on an S Stock train or the unladen weight of a Bakerloo line train so I've not reached full anorak status yet, but I do go on the Hidden London tours whenever I can.

About a month ago my wife and I attended the Hidden London: Highgate Wilderness Tour which was a little disappointing, but this time round the Charing Cross really delivered. It didn't quite top Aldwych Station, but was certainly better than Highgate and Euston. If I had to recommend two tours out of those that I've attended so far, I'd say Aldwych and Charing Cross are the ones to go for.

The Jubilee line used to terminate at Charing Cross prior to the extension to Stratford, so the tour gives you the opportunity to see the disused Jubilee platforms and some of the other areas of the station that are usually closed to the public.

If you intend on going on the tour and want to keep it a surprise, I suggest you stop reading here. If you won't be going on the tour or want to see if its worth £35 English Pounds, read on...