The telnet server-source command specifies a source interface for a Telnet server.
The undo telnet server-source command restores the default setting.
By default, the source interface of a Telnet server is not specified.
Parameter | Description | Value |
---|---|---|
interface-type interface-number |
Specifies the source interface of the local device. |
- |
Usage Scenario
By default, a Telnet server receives connection requests from all interfaces, incurring security risks. To enhance system security, you can specify a source interface for the Telnet server. Users are then allowed to log in to the Telnet server only through this interface.
Prerequisites
Before you specify a logical interface as the source interface, ensure that the interface to be specified is created and has an IP address configured.
Precautions
After the source interface is specified, a device allows Telnet users to log in to the Telnet server only through this source interface, and Telnet users logging in through other interfaces are denied. Note that setting this parameter only affects Telnet users who attempt to log in to the Telnet server, and it does not affect Telnet users who have logged in to the server.
After the source interface of a Telnet server is specified using this command, ensure that Telnet users can access the source interface at Layer 3. Otherwise, the Telnet users will fail to log in to the Telnet server.
No source address or source interface is specified, so security risks exist.