WAFGOPreparing your page
Setup guide

API documentation

DEVELOPER RESOURCES · API REFERENCE

Explore WAFGO API services, request paths and message definitions. Browse by permission role to find the parameters and response structures for your integration.

Download JSON documentation
151 services1063 interfaces

References

TCP protocol configuration

json:tcp_protocol

Original definition
# TCP protocol configuration

## Definition
~~~json
{
	"isOn": "Whether enabled",
  	"listen": [
      {
		"protocol": "Protocol",
		"host": "Host address, usually empty",
		"portRange": "Port or port range"
	  },
	  ...
	]
}
~~~

## Examples

### Listen on port 1234
~~~json
{
  "isOn": true,
  "listen": [
    {
      "protocol": "tcp",
      "host": "",
      "portRange": "1234"
	}
  ]
}
~~~

### Listen on ports 1234 and 2345
~~~json
{
  "isOn": true,
  "listen": [
    {
      "protocol": "tcp",
      "portRange": "1234"
	},
    {
      "protocol": "tcp",
      "portRange": "2345"
	}
  ]
}
~~~

### Listen on all ports from 1234 to 1240
~~~json
{
  "isOn": true,
  "listen": [
    {
      "protocol": "tcp",
      "host": "",
      "portRange": "1234-1240"
	}
  ]
}
~~~

Descriptions and comments follow your language. Request paths, method names, field names and types match the original API definitions.

Setup guide