84. How to deny Telnet with the help of ACL | Deny Telnet using extended ACL | 200-301 | Part - 5

Опубликовано: 06 Июнь 2026
на канале: Craw Networking
764
21

To deny Telnet traffic using an Access Control List (ACL), you can create and apply the ACL on your networking equipment, such as a router or a firewall. Telnet uses TCP port 23 by default, so you'll need to deny traffic to this port in your ACL. Here's a step-by-step guide on how to do it:


Access your networking equipment:


Connect to the device via SSH, console cable, or any other method appropriate for your device.
Enter privileged exec mode:


Type enable and enter the enable password if prompted. This will give you elevated privileges to make configuration changes.
Create an Access Control List (ACL):


Use the following commands to create an ACL. This example uses a numbered standard ACL, but you can adapt it for extended ACLs if needed.
arduino
Copy code
configure terminal
access-list 100 deny tcp any any eq 23
access-list 100 permit ip any any


configure terminal
access-list 100 deny tcp any any eq 23
access-list 100 permit ip any any
In this example, we:


Created ACL number 100.
Denied any TCP traffic from any source to any destination on port 23 (Telnet).
Allowed all other IP traffic.
Apply the ACL to an interface:


Now, apply the ACL to the interface that you want to deny Telnet traffic on. Replace interface_name with the actual name of the interface.
kotlin
Copy code


interface interface_name
ip access-group 100 in
This command applies the ACL inbound on the specified interface.


Save the configuration:


Save the configuration changes to ensure they persist after a device reboot or power cycle.
arduino
Copy code
write memory
Verify the configuration:


You can verify that the ACL is applied correctly by using the following command:
sql
Copy code
show access-list
This command will display the configured ACLs, and you should see your ACL (number 100) listed with the rules you defined.


By following these steps, you've effectively denied Telnet traffic to your network by blocking it at the specified interface. Make sure that your ACL configuration doesn't interfere with other legitimate network traffic and that you've properly tested it in your environment before applying it in a production setting.

*******************************************
Find Us On:
Telegram :- https://t.me/joinchat/GFZL9xel7jTspUK...
Discord:   / discord  
Facebook:   / crawsec  
Instagram:   / crawsec  
Linkedin: linkedin.com/in/crawsec
Twitter:   / crawsec  
Discord:   / discord  
****************************************
Connect With Cybersecurity Expert Mohit Yadav On:-
Website : http://www.mohityadav.com
Instagram :-   / mohityadavc.  .
Facebook:-   / mohityadavcraw  
LinkedIn:-   / mohit-yadav  

#ProjectX_ACL
#DMZ_ACL
#Inbound_ACL
#Outbound_ACL
#Security_ACL
#GuestNetwork_ACL
#Permit_ACL
#Deny_ACL
#AccessControl
#networksecurity
****************************************