Introduction You may sometimes need to run a script using cron which has dependencies on environment variables. Because cron runs non-interactively it will require a way to load those environment variables in at run time. Solution There are multiple ways
Advertising a non-existent route to BGP in PAN-OS
Introduction Normally if you want to advertise a non existent route in the Cisco world, you’d need to create a null route to make that happen. I stumbled across the following post though when I was trying to suss out
Network Design – VDSL
Introduction I’ve been through many network designs over the years and pretty much every UK ISP. A great design I settled on for business grade VDSL connections was by utilising a separate router on the front end with firewall behind.
NetBox Automation
Introduction I’ve not posted about NetBox before, which I really should have done as I’ve been using it for years. It is a fantastic piece of open-source software that has been steadily improving over time. Originally conceived by Jeremy Stretch
Testing DNS Glue Records
If you need to test the glue records for a domain, you can use the following as a template for the command required in dig. Glue records only ever exist in the parent zone of a domain name. Hence in
Updating Netfilter Firewall Rules
Very rarely do I have to do any modification of Linux netfilter firewall rules directly using iptables. I generally use Debian based Linux distributions personally e.g. Ubuntu which come preinstalled with UFW as an abstraction layer to iptables but there
Palo Alto Useful Links and Commands
I’m forever needing docs for Palo Alto considering that is now my weapon of choice in the fight against bad actors. The problem is that it can sometimes take me an age to find some of those useful docs that
Useful Python Snippets
Sometimes you just need a quick and dirty python command to do something accurately to assist in the creation / population of templates which saves manual effort and checking. Now I do use python extensively and often write fairly complex
Find & Replace Multiple Files
I’m sure there are many different ways to do this however this way worked well. I’ve included an example where escaping specific characters is required which adds a little more complexity as they must be escaped using the ‘\’ character.
Install Realtek (rtl88x2bu) Wireless Drivers Linux Mint
Introduction One thing that Windows does do very well is drivers. Most things you may connect to a PC will automagically work. Linux also generally has good out of box support for a wide range of devices but in the