Table of Contents
Setting up port forwarding on a Cisco router is essential for allowing external devices to access services hosted within your local network. This guide provides step-by-step instructions to configure port 2026 for your Cisco router.
Prerequisites
- Administrator access to your Cisco router
- Knowledge of your internal IP address
- Understanding of the service running on port 2026
- A computer connected to the router network
Accessing the Router’s Command Line Interface
Connect to your Cisco router via SSH, Telnet, or console cable. Log in with your administrator credentials to access the command line interface (CLI).
Entering Privileged EXEC Mode
Type the following command and press Enter:
enable
Enter your enable password when prompted.
Configuring Port Forwarding
Creating an Access Control List (ACL)
Define an ACL to permit traffic on port 2026. Replace YOUR_IP with your internal server’s IP address.
Enter configuration mode:
configure terminal
Create the ACL:
ip access-list extended PORT_FORWARD_2026
Permit TCP traffic to your internal server on port 2026:
permit tcp any host YOUR_IP eq 2026
Configuring NAT and Port Forwarding
Set up static NAT translation:
ip nat inside source static tcp YOUR_IP 2026 interface GigabitEthernet0/1 2026
Replace GigabitEthernet0/1 with your external interface name if different.
Applying Access Lists to Interfaces
Configure the inside and outside interfaces:
Inside interface:
interface GigabitEthernet0/0
ip nat inside
Outside interface:
interface GigabitEthernet0/1
ip nat outside
Saving and Testing the Configuration
Save your configuration:
write memory
Test the port forwarding by accessing your external IP on port 2026 from an external network. Confirm that the traffic is reaching your internal server.