Skip to content

Instantly share code, notes, and snippets.

@MarcMeszaros
MarcMeszaros / README.md
Created December 20, 2025 06:52
Fix for OPNsense multiple IPv6 Gateway Router Advertisements

Fix for OPNsense multiple IPv6 Gateway Router Advertisements

This script automatically detects and sets the correct IPv6 default gateway when multiple Router Advertisements are present on your WAN interface and OPNsense picks the wrong one as the default gateway. This results it routing issues and loss of connectivity to the internet.

The Problem

Some network setups (particularly fiber connections with ONTs) may send multiple Router Advertisements:

  • ONT/Bridge device (wrong): Low preference, lifetime: 0s (explicitly says "don't use me")
@MarcMeszaros
MarcMeszaros / apk.py
Last active August 29, 2015 14:20
A python script that wraps the Android adb tool to make it simpler to pull APK files from a device.
#!/usr/bin/env python
import argparse
import sys
from subprocess import call, check_output
# version check
if sys.hexversion < 0x02070000:
sys.exit('Python 2.7 or newer is required to run this program.')
@MarcMeszaros
MarcMeszaros / keybase.md
Created April 16, 2015 06:24
keybase.io Proof

Keybase proof

I hereby claim:

  • I am marcmeszaros on github.
  • I am marcmeszaros (https://keybase.io/marcmeszaros) on keybase.
  • I have a public key whose fingerprint is BC89 2746 30D6 86FD D44B 41AF 6BB1 3A50 BD3B 6366

To claim this, I am signing this object: