Anyone on your LAN or WLAN can reach your Cisco switchās login page if management access isnāt restricted by IP address. If youāre cautiously hoping to close that gap without locking yourself out, start by preparing a recovery path.
Fix #1: Prepare your trusted management address
The Cisco SG300-10 and other Cisco Small Business 300 Series switches are retired, but plenty remain in service. These steps cover their legacy web interface; Cisco Business and Catalyst 1200/1300 switches use the same access-control concept with different menu locations.
- Choose the computer or admin subnet that should manage the switch.
A single address such as 192.168.1.233 offers tight control, but it can stop working when DHCP assigns your computer another address. Reserve that address in your router, use a static address, or permit a small admin subnet.
- Confirm the switchās management IP address and management VLAN.
- Connect to the switch through HTTPS from the trusted computer.
A browser certificate warning is common when a switch uses a self-signed certificate. Confirm that the address belongs to your switch before continuing.
- Keep a console connection available during setup.
A USB-to-serial console cable gives you a recovery route if the new profile blocks your browser and SSH sessions.
- Back up the current configuration before changing access rules.
Donāt activate a deny rule until the matching permit rule exists. That detail prevents the most common lockout.
Fix #2: Create a permit rule on an SG300 switch
An SG300 management access profile controls which source addresses can use services such as HTTPS and SSH. Lower rule-priority numbers are evaluated first.
- Sign in to the SG300 web interface through HTTPS.
- Expand Security > Mgmt Access Method, then select Access Profiles.
- Confirm that None or your existing profile appears beside Active Access Profile.
Donāt replace an active profile until youāve reviewed its rules.
- Select Add to create an access profile.
- Enter a descriptive profile name, such as
MGMT_ONLY.
- Set Rule Priority to 1.
- Set Management Method to the service you want to permit.
Choose HTTPS for browser management or SSH for command-line access. If this firmware requires separate rules for each service, create one permit rule for HTTPS and another for SSH. Choose All only when every enabled management service should be available from the trusted address.
- Set Action to Permit.
- Set the interface to All, unless management must enter through a specific interface.
- Under Applies to Source IP Address, select User Defined and Version 4 for an IPv4 address.
- Enter the trusted source address, such as
192.168.1.233.
- Enter
255.255.255.255as the mask to match that single host.
To permit the entire 192.168.1.0/24 subnet, enter 192.168.1.0 with 255.255.255.0. A subnet is less restrictive, but itās less likely to strand you when an admin computerās address changes.
- Select Apply.
- Open Profile Rules and confirm that the permit rule appears with priority 1.
So far, so good: the trusted address has permission, but other addresses arenāt blocked until you add the next rule.
Fix #3: Add the deny rule
The deny rule must come after every permit rule. Cisco stops evaluating the profile when it finds the first matching rule.
- Select Add under Profile Rule Table.
- Choose the same access-profile name you created earlier.
- Set Rule Priority to a number below every permit rule in processing order.
If your only permit rule uses priority 1, give the deny rule priority 2. Remember that lower numbers run first.
- Set Action to Deny.
- Set the management method, interface, and source address fields to All.
- Select Apply.
- Review the complete rule table.
Every approved IP address or subnet must have a permit rule above the final deny rule. To allow another administrator, add another permit rule and move the deny rule to a higher priority number.
Fix #4: Activate, save, and test the profile
Activating the profile is the risky step. Keep your current session open while testing from a second browser window or SSH session.
- Return to Security > Mgmt Access Method > Access Profiles.
- Select your new profile beside Active Access Profile.
- Select Apply.
- Open a second HTTPS or SSH session from the permitted address.
You should still reach the switch and sign in normally.
- Test from a different LAN or WLAN address.
The blocked computer shouldnāt reach the login page or establish an SSH connection.
- Leave the original management session open until both tests produce the expected result.
- Go to Administration > File Management > Copy/Save Configuration.
- Copy the running configuration to the startup configuration.
The restriction should now survive a reboot.
If the allowed computer loses access, use the console connection to disable the active profile or correct its permit rule. Donāt save the failed configuration to startup until access works.
Fix #5: Restrict access on newer Cisco switches
Cisco Business and Catalyst 1200/1300 models place ACL and management settings in different locations depending on their firmware. Look for Access Management, Access Control, IPv4 ACL, or ACL Binding rather than assuming the SG300 path will match.
- Sign in to the switch through HTTPS.
- Open its access-management or IPv4 ACL settings.
- Create a permit rule for the trusted admin address or subnet.
- Restrict the rule to TCP port
443for HTTPS and TCP port22for SSH when the interface supports protocol-specific rules.
- Add a deny rule for other management sources.
- Bind the ACL to the management function, management VLAN, or management interface offered by that model.
- Apply the ACL inbound where management traffic enters the switch.
- Save the running configuration to startup configuration.
- Test from both an approved address and a blocked address.
Be careful when binding an ACL to a switched virtual interface, or SVI. An SVI rule can affect other traffic using that VLAN, so match only SSH, HTTPS, and any required SNMP traffic when the VLAN also carries user data.
Fix #6: Apply an IOS-style ACL from the CLI
Use this pattern only on Cisco switches whose command reference supports IOS or IOS-XE syntax. The SG300 CLI is similar in places but isnāt command-for-command identical, so verify its administration guide before entering these commands.
- Open Windows Terminal or PowerShell.
- Connect to the switch with the built-in SSH client:
ssh admin@192.168.10.2
- Enter configuration mode.
- Create an extended ACL that permits HTTPS and SSH from the trusted host:
configure terminal
ip access-list extended MGMT_ONLY
permit tcp host 192.168.10.50 any eq 22
permit tcp host 192.168.10.50 any eq 443
deny ip any any
exit
- Apply the ACL to the supported management interface or SVI:
interface vlan 10
ip access-group MGMT_ONLY in
exit
Applying this example to an SVI blocks all other inbound IP traffic matched by the final deny rule. Iād skip this binding unless VLAN 10 is dedicated to management or youāve written additional permit rules for required traffic.
- For SSH-only restrictions on supported IOS or IOS-XE switches, apply the ACL to the VTY lines:
line vty 0 15
access-class MGMT_ONLY in
transport input ssh
exit
- Keep the current session open and test a second connection from the permitted address.
- Save the configuration using the command documented for your switch.
Fix #7: Separate management traffic with a VLAN
A dedicated management VLAN reduces exposure before an ACL evaluates a connection. Itās the stronger design for a managed network switch that supports VLAN interfaces.
- Create a dedicated management VLAN on the switch.
- Assign the switchās management IP address to that VLAN.
- Permit routing to the management VLAN only from an admin subnet or jump box.
- Block other internal VLANs from reaching SSH, HTTPS, and SNMP ports through your firewall or router.
- Apply a management ACL on the switch as a second control.
- Disable Telnet and plain HTTP.
- Enable SSH and HTTPS only.
- Use strong local credentials or RADIUS/TACACS+ authentication when the switch supports it.
This setup is working as expected when ordinary wired and wireless clients canāt reach the switch, while devices on the admin subnet can connect through HTTPS or SSH.
When access still doesnāt work
Confirm the management IP, VLAN, and permitted source address from the console. Check that HTTPS or SSH is enabled, then temporarily permit the admin subnet instead of one host to identify a DHCP-address mismatch. If connectivity returns only after removing the ACL, review its rule order, direction, masks, and port matches before activating it again.
Conclusion
Fix #2ās permit-first access profile is the solid choice for an SG300 still in service, provided you test before saving. For a new deployment, I recommend a Catalyst 1200/1300 switch with a dedicated management VLAN, HTTPS or SSH, and an ACL that permits only the admin subnet.