Closed mzs114 closed 1 week ago
use a script if possible. I.E PostUp = /opt/wireguarddashboard/src/iptable-rules/Admins/postup.sh PreDown = /opt/wireguarddashboard/src/iptable-rules/Admins/postdown.sh
Seems like it is caused by the %i
.. using a script mentioned by @NOXCIS is a good idea :)
Seems like it is caused by the
%i
.. using a script mentioned by @NOXCIS is a good idea :)
Can we use single/double quotes to escape this and not face this error? I did not know that WGD includes the scripts, checking them now. :)
Edit: My bad, the %i needs to replaced with interface name, it cannot be a variable or a placeholder.
Describe The Problem Trying to add Postup and PostDown semi colon separate firewall rules from the Debian wiki wireguard config and it logs me out, when this happened two times I checked the error log. Debian wiki shows that wireguard configuration can accept semi colon separate statements.
https://wiki.debian.org/WireGuard
Expected Error / Traceback
To Reproduce Followed the Github mentioned steps for Debian 12.x without docker.
OS Information:
Sample of your
.conf
file I manually added something like the below configruation on the server and it works fine, but the Web UI errors atm.