Gopher TCP
"Gopher TCP" listener starts a tcp/mtls server and registers a "gopher" agent.

Parameter
Description
Host & port (Bind)
Required. The interface address and port to which your TCP Gopher server will bind.
Callback addresses
Required. List of address:port to which the agent will send requests. Current server rotation strategy: round-robin.
Timeout (sec)
The time to wait between connections in the event of a connection failure or interruption
TCP banner
Data that the server will send when any client connects to the port
Error answer
Server response if agent is not registered
Use mTLS
If set, use mTLS. Certificates and keys are not generated on the server
How to Generate Certificates and Keys for mTLS
# CA cert
openssl genrsa -out ca.key 2048
openssl req -x509 -new -nodes -key ca.key -sha256 -days 3650 -out ca.crt -subj "/CN=Test CA"
# server cert and key
openssl genrsa -out server.key 2048
openssl req -new -key server.key -out server.csr -subj "/CN=localhost"
openssl x509 -req -in server.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out server.crt -days 365 -sha256
# client cert and key
openssl genrsa -out client.key 2048
openssl req -new -key client.key -out client.csr -subj "/CN=client"
openssl x509 -req -in client.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out client.crt -days 365 -sha256
Last updated