Loading

  1. Configuration
  2. Examples

Remote EXECution extension

This extension add the following functions to WarpScript:

If your Warp 10 instance is open, REXEC is a way for someone to attack another server with a DDOS. That's why this feature is deactivated by default.

Configuration

Your custom configurations can be stored in a new etc/conf.d/99-myWarp10.conf file. Your custom configurations will override all the predefined Warp 10 configuration.

// REXEC
warpscript.extension.rexec = io.warp10.script.ext.rexec.RexecWarpScriptExtension
// Comma separated list of included and excluded (! prefixed) host patterns
warpscript.rexec.endpoint.patterns = .*
// REXEC connect timeout in ms (default = 0, no timeout)
// 10 minute timeout
warpscript.rexec.timeout.connect = 600000
// REXEC read timeout in ms (default = 0, no timeout)
// 10 minute timeout
warpscript.rexec.timeout.read = 600000

We strongly invite you to set a timeout to avoid any blocking code, and to set the enpoint patterns to limit any attempt to use the function for a DDOS.

Examples

Read the tutorial Server To Server