Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Hooks Not Applied After Editing Interface in UI #554

@w3XeWIRpuND

Description

@w3XeWIRpuND

Describe the bug
iptables rules in hooks (e.g. Post-Up/Pre-Down) only apply on initial WireGuard interface creation. Editing hooks later (e.g., adding rules post-creation) does not trigger them, even after interface restart.

Expected behavior
Modifying hooks via UI should apply changes immediately or on interface restart, ensuring rules like iptables additions are executed.

Steps to reproduce

  1. Create WireGuard interface with empty hooks.
  2. Start interface; confirm no iptables rules added (e.g., iptables -L FORWARD).
  3. Edit interface hooks to add Post-Up: iptables -A FORWARD -i ens19 -o wg0 -d 10.10.10.0/24 -j ACCEPT.
  4. Restart interface.
  5. Verify: Rules not added; ping replies still blocked.

Screenshots
N/A

Additional context

  • Application version: v0.5.0 (latest Docker image)
  • Install method: docker
  • OS: Debian 13

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions