Executing custom gateway commands
Last updated
Was this helpful?
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.
POST_UP - Command to run after bringing up the interface.
PRE_DOWN - Command to run before bringing down the interface.
POST_DOWN - Command to run after bringing down the interface.
--pre-up - Command to run before bringing up the interface.
--post-up - Command to run after bringing up the interface.
--pre-down - Command to run before bringing down the interface.
--post-down - Command to run after bringing down the interface.
pre-up - Command to run before bringing up the interface.
post-up - Command to run after bringing up the interface.
pre-down - Command to run before bringing down the interface.
post-down - Command to run after bringing down the interface.
Last updated
Was this helpful?
Was this helpful?