Defguard gateway has ability to execute custom commands before and after the WireGuard tunnel us up or down.
If you want to run a shell script, you should pass it's path to your shell, for example:
/bin/sh -c /path/to/script
You can use this functionality in various ways:
PRE_UP - Command to run before bringing up the interface.
PRE_UP
POST_UP - Command to run after bringing up the interface.
POST_UP
PRE_DOWN - Command to run before bringing down the interface.
PRE_DOWN
POST_DOWN - Command to run after bringing down the interface.
POST_DOWN
--pre-up - Command to run before bringing up the interface.
--pre-up
--post-up - Command to run after bringing up the interface.
--post-up
--pre-down - Command to run before bringing down the interface.
--pre-down
--post-down - Command to run after bringing down the interface.
--post-down
pre-up - Command to run before bringing up the interface.
pre-up
post-up - Command to run after bringing up the interface.
post-up
pre-down - Command to run before bringing down the interface.
pre-down
post-down - Command to run after bringing down the interface.
post-down
Last updated 27 days ago