RaspAP/raspap-webgui

[Bug]: WireGuard kill switch missing PostUp/PreDown rules

Closed this issue · 0 comments

Code of Conduct

  • I agree to follow this project's Code of Conduct.

Issue reporting checklist

Operating System

Raspberry Pi OS (64-bit) Lite Bookworm

Installation method

Pre-built image

Onboard wireless chipset or external adapter?

Onboard wireless chipset

Hardware

Raspberry Pi 3 Model B+

RaspAP version

Latest

Other software or services running with RaspAP?

No other software

Contact details (optional)

No response

Bug description

The WG kill switch feature was just merged into to the public repo. it depends on PostUpEx/PreDown rule definitions in defaults.json. These exist in the Insiders repo but weren't applied when the feature was merged.

Steps to reproduce

  1. Enable the kill switch option in the WireGuard UI
  2. Choose Save settings
  3. Check the output with sudo cat /etc/wireguard/wg.conf
  4. Confirm that the additional IP tables rules are empty

Screenshots

No response

Additional context

Credit to @whisperdancer for reporting this.

Edit: updated credit to original bug reporter