Skip to content

Instantly share code, notes, and snippets.

View howto-split-dns-macos.md

Introduction

Sometimes you may want to use a DNS server for specific domain requests and another DNS server for all other requests. This is helpful, for instance, when connected to a VPN. For hosts behind that VPN you want to use the VPN's DNS server but all other hosts you want to use Google's public DNS. This is called "DNS splitting."

Here, we run dnsmasq as a background service on macOS. The dnsmasq configuration described below implements DNS splitting.

Install

brew install dnsmasq
@dferg
dferg / gist:2f15dc1a74afe68bfc0fd6b3afb8890a
Last active Jul 12, 2017 — forked from fabiofl/gist:5873100
Clear Mac OS X's icon cache.
View gist:2f15dc1a74afe68bfc0fd6b3afb8890a
sudo find /private/var/folders/ -name com.apple.dock.iconcache -exec rm {} \;
sudo killall Dock
@dferg
dferg / howto-install-docker-on-proxmox-4.md
Last active Oct 15, 2021
HOWTO: Install Docker on Proxmox 4
View howto-install-docker-on-proxmox-4.md
@dferg
dferg / howto-tomato-l2tp-ipsec-server.markdown
Last active Jun 25, 2021
HOWTO: Install L2TP/IPsec Server on TomatoUSB
View howto-tomato-l2tp-ipsec-server.markdown

Introduction

This howto describes setting up a LT2P over IPsec VPN server on your router with TomatoUSB firmware. This should allow you to connect using the built-in client to your Mac, iPhone or Android device. (Not sure about Windows.)

At the end of this tutorial, you should have a L2TP/IPsec VPN server that starts automatically on boot. Mac/iPhone/Android devices can connect with their native client and will be assigned an IP address within your LAN subnet. They should be able to talk to other devices on your LAN and should be able to contact hosts on the Internet NAT'd behind your WAN IP address.

Requirements

  • Router running Shibby's fork of TomatoUSB
  • entware installed to a USB stick mounted at /opt (howto)
@dferg
dferg / howto-tomato-install-extras.markdown
Last active Jan 21, 2020
HOWTO: Install extra kernel modules on Shibby TomatoUSB
View howto-tomato-install-extras.markdown

Introduction

This howto describes installing the extra kernel modules for the Tomato open-source router firmware. We will install them in the /opt/extras area.

Requirements

  • Router running Shibby's fork of TomatoUSB
  • entware installed to a USB stick mounted at /opt

This Howto Was Tested With

@dferg
dferg / howto-tomato-install-entware.markdown
Last active Aug 3, 2021
HOWTO: Install entware on Shibby TomatoUSB
View howto-tomato-install-entware.markdown

Introduction

This howto describes installing entware for the Tomato open-source router firmware.

Requirements

  • USB stick - 1G or more in size
  • USB-capable router running TomatoUSB.

This Howto Was Tested With

View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname