Skip to main content

Telstra up to their usual tricks

Remember my previous T rant? Well, they’re at it again. This time, instead of fixing the customer’s DNS to reflect the new fixed IP address they inflicted upon them, they broke the ADSL authentication.

Just in case anyone needs to multihome a Linux box in a hurry, here is a 30 second recipe. Call 1.1.1.1 the gateway for the first link, 1.1.1.5 the interface address for it; 2.2.2.2 the gateway and 2.2.2.6 the interface for the additional link.

  1. Define two (or more) new table names in /etc/iproute2/rt_tables, this example will call them oldlink and newlink; this step is optional but adds much clarity to the rest of the process
  2. ip route add default via 1.1.1.1 table oldlink
  3. ip rule add from 1.1.1.5 table oldlink
  4. ip route add default via 2.2.2.2 table newlink
  5. ip rule add from 2.2.2.6 table newlink

Now set your default route to the link you want outbound traffic to flow through. Inbound traffic will return via the interface it arrived on. If you want simple but crude load-balancing over the links, add something like this:

  1. ip route add default scope global nexthop via 1.1.1.1 weight 1 nexthop via 2.2.2.2 weight 1

“Crude” means that it’s route-based, so if 90% of your traffic is to one site, that 90% will all flow through one link; also the choice of links for new routes is somewhat arbitrary (IOW, actual balancing is far from guaranteed even in ideal circumstances).

Comments

Popular posts from this blog

every-application-is-part-of-a-toolkit at work

I have a LibreOffice Impress slideshow that I wish to turn into a narrated video. 1. export the slideshow as PNG images (if that is partially broken — as at now — at higher resolutions, Export Directly as PDF then use ‘pdftoppm’ (from the poppler-utils package) to do the same). 2. write a small C program (63 lines including comments) to display those images one at a time, writing a config file entry for Imagination (default transition: ‘cross fade’) based on when the image-viewer application (‘display,’ from the GraphicsMagick suite) is closed on each one; run that, read each image aloud, then close each image in turn. 3. run ‘Imagination’ over the config file to produce a silent MP4 video with the correct timings. 4. run ‘Audacity’ to record speech while using ‘SMPlayer’ to display the silent video, then export that recording as a WAV file. 4a. optionally, use ‘TiMIDIty’ to convert a non-copyright-encumbered MIDI tune to WAV, then import that and blend it with the speech (as a quiet b

new life for an old (FTX) PSU, improved life for one human

the LEDs on this 5m strip happen to emit light centred on a red that does unexpectedly helpful things to (and surprisingly deeply within) a human routinely exposed to it. it has been soldered to a Molex connector, plugged into a TFX power supply from a (retired: the MoBo is cactus) Small Form Factor PC, the assorted PSU connectors (and loose end from the strip) have been taped over. the LED strip cost $10.24 including postage, the rest cost $0, the PSU is running at 12½% of capacity, consumes less power than a laptop plug-pack despite running a fan. trial runs begin today.

boundaries

pushing the actual boundaries of the physical (not extremes, the boundaries themselves) can often remove barriers not otherwise perceived. one can then often resolve an issue itself, rather than merely stonewalling at the physical consequences of the issue.