Fortinet white logo
Fortinet white logo

CLI Reference

telnettest

telnettest

Use this command to open a Telnet connection to a server using an IPv4 or IPv6 address or fully qualified domain name (FQDN). This command can be useful for troubleshooting. For example, when the server does not support the HTTP versions, methods, headers, and so on, that the client uses.

Telnet connections are not secure. Eavesdroppers could easily obtain your administrator password. Only use Telnet over a trusted, physically secured network, such as a direct connection between your computer and the appliance, and from the appliance to the server.

To use this command, your administrator account’s access control profile must have at least r permission to the sysgrp area. For details, see Permissions.

Syntax

execute telnettest {"<host_ipv4>" | "<host_ipv6>" | "<host_fqdn>"}

Variable Description Default

telnettest {"<host_ipv4>" | "<host_ipv6>" | "<host_fqdn>"}

Enter the IP address or fully qualified domain name (FQDN) of the host. No default.

Example

This example Telnets to a host with the IPv4 address 192.0.2.10 on port 80, the IANA standard port for HTTP.

FortiWeb# exec telnettest 192.0.2.10:80

Connected

GET /

Entering interactive mode. Type CTRL-D to exit.

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<html><head>

<title>501 Method Not Implemented</title>

</head><body>

<h1>Method Not Implemented</h1>

<p>Get to /index.html not supported.<br />

</p>

<hr>

<address>Apache/2.2.22 (Unix) DAV/2 mod_ssl/2.2.22 OpenSSL/0.9.8x Server at irene.local Port 80</address>

</body></html>

Connection closed.

Connection status to 192.0.2.10 port 80:

Connecting to remote host succeeded.

Related topics

telnettest

telnettest

Use this command to open a Telnet connection to a server using an IPv4 or IPv6 address or fully qualified domain name (FQDN). This command can be useful for troubleshooting. For example, when the server does not support the HTTP versions, methods, headers, and so on, that the client uses.

Telnet connections are not secure. Eavesdroppers could easily obtain your administrator password. Only use Telnet over a trusted, physically secured network, such as a direct connection between your computer and the appliance, and from the appliance to the server.

To use this command, your administrator account’s access control profile must have at least r permission to the sysgrp area. For details, see Permissions.

Syntax

execute telnettest {"<host_ipv4>" | "<host_ipv6>" | "<host_fqdn>"}

Variable Description Default

telnettest {"<host_ipv4>" | "<host_ipv6>" | "<host_fqdn>"}

Enter the IP address or fully qualified domain name (FQDN) of the host. No default.

Example

This example Telnets to a host with the IPv4 address 192.0.2.10 on port 80, the IANA standard port for HTTP.

FortiWeb# exec telnettest 192.0.2.10:80

Connected

GET /

Entering interactive mode. Type CTRL-D to exit.

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<html><head>

<title>501 Method Not Implemented</title>

</head><body>

<h1>Method Not Implemented</h1>

<p>Get to /index.html not supported.<br />

</p>

<hr>

<address>Apache/2.2.22 (Unix) DAV/2 mod_ssl/2.2.22 OpenSSL/0.9.8x Server at irene.local Port 80</address>

</body></html>

Connection closed.

Connection status to 192.0.2.10 port 80:

Connecting to remote host succeeded.

Related topics