<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic The easiest way to achieve in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/ssh-access-on-specific-ip/m-p/2432657#M921990</link>
    <description>&lt;P&gt;The easiest way to achieve that is to bind an access-list to your vty-line. This access-list is normally a standard-ACL, but this time you use an extended ACL that uses your management-IP as the destination:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color:#FF0000;"&gt;EDIT: No, that doesn't work as proposed! Please see the other posts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size:9px;"&gt;&lt;S&gt;ip access-list extended MGMT-TRAFFIC&lt;/S&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size:9px;"&gt;&lt;S&gt;&amp;nbsp; permit tcp SOURCE-NET host 10.10.10.10 eq 22&lt;/S&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size:9px;"&gt;&lt;S style="font-size: 10px;"&gt;line vty 0 4&lt;/S&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size:9px;"&gt;&lt;S&gt;&amp;nbsp; access-class&amp;nbsp;MGMT-TRAFFIC in&lt;/S&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this example SOURCE-NET is the IP-Network where your management-traffic comes from and 10.10.10.10 is the management-IP on your device.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Mar 2014 13:10:37 GMT</pubDate>
    <dc:creator>Karsten Iwen</dc:creator>
    <dc:date>2014-03-12T13:10:37Z</dc:date>
    <item>
      <title>SSH Access On Specific IP</title>
      <link>https://community.cisco.com/t5/network-security/ssh-access-on-specific-ip/m-p/2432656#M921988</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have configured 10 interface vlan on my cisco core switch 6509.&lt;/P&gt;&lt;P&gt;However I want my users SSH it on management IP only. SSH access on other IP (defined for each interface vlan) should be blocked by switch.&lt;/P&gt;&lt;P&gt;Kindly suggest how to configure this.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 13:07:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ssh-access-on-specific-ip/m-p/2432656#M921988</guid>
      <dc:creator>Mitesh Manwatkar</dc:creator>
      <dc:date>2020-02-21T13:07:21Z</dc:date>
    </item>
    <item>
      <title>The easiest way to achieve</title>
      <link>https://community.cisco.com/t5/network-security/ssh-access-on-specific-ip/m-p/2432657#M921990</link>
      <description>&lt;P&gt;The easiest way to achieve that is to bind an access-list to your vty-line. This access-list is normally a standard-ACL, but this time you use an extended ACL that uses your management-IP as the destination:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color:#FF0000;"&gt;EDIT: No, that doesn't work as proposed! Please see the other posts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size:9px;"&gt;&lt;S&gt;ip access-list extended MGMT-TRAFFIC&lt;/S&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size:9px;"&gt;&lt;S&gt;&amp;nbsp; permit tcp SOURCE-NET host 10.10.10.10 eq 22&lt;/S&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size:9px;"&gt;&lt;S style="font-size: 10px;"&gt;line vty 0 4&lt;/S&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size:9px;"&gt;&lt;S&gt;&amp;nbsp; access-class&amp;nbsp;MGMT-TRAFFIC in&lt;/S&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this example SOURCE-NET is the IP-Network where your management-traffic comes from and 10.10.10.10 is the management-IP on your device.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2014 13:10:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ssh-access-on-specific-ip/m-p/2432657#M921990</guid>
      <dc:creator>Karsten Iwen</dc:creator>
      <dc:date>2014-03-12T13:10:37Z</dc:date>
    </item>
    <item>
      <title>Thanks Karsten...for the</title>
      <link>https://community.cisco.com/t5/network-security/ssh-access-on-specific-ip/m-p/2432658#M921992</link>
      <description>&lt;P&gt;Thanks Karsten...for the reply....it is a great help....&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2014 13:10:38 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ssh-access-on-specific-ip/m-p/2432658#M921992</guid>
      <dc:creator>Mitesh Manwatkar</dc:creator>
      <dc:date>2014-03-12T13:10:38Z</dc:date>
    </item>
    <item>
      <title>Karsten, have you tried this</title>
      <link>https://community.cisco.com/t5/network-security/ssh-access-on-specific-ip/m-p/2432659#M921993</link>
      <description>&lt;P&gt;Karsten, have you tried this before?&lt;/P&gt;&lt;P&gt;I'm having this problem all the time and&amp;nbsp; i think it's not working. I think i read this years ago that you can't use the destination part of an extended acl in your line vty context. I have just tried this and it not working for me. I can't access vty anymore (on 3750-x with ios 15.0).&lt;/P&gt;&lt;P&gt;I tried this acl to find out why:&lt;/P&gt;&lt;P&gt;ip access-list extended MGMT-TRAFFIC&lt;/P&gt;&lt;P&gt;&amp;nbsp; permit tcp any host 10.10.10.10 eq 22 log&lt;/P&gt;&lt;P&gt;&amp;nbsp; permit tcp any any eq 22 log&lt;/P&gt;&lt;P&gt;When i try to ssh in to 10.10.10.10 it works ONLY when there is "permit tcp any any". You can see the the acl counter rising on this "any" ace and you can see a log entry which is saying there is a packet to 0.0.0.0:23 (instead of expected 10.10.10.10:23). So the first ace did not fire. The question is why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my question, can you confirm this definitly works like you described and i'm doing something wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards, Uwe&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2014 14:27:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ssh-access-on-specific-ip/m-p/2432659#M921993</guid>
      <dc:creator>Uwe Siegrist</dc:creator>
      <dc:date>2014-03-13T14:27:53Z</dc:date>
    </item>
    <item>
      <title>I just wanted to answer "yes,</title>
      <link>https://community.cisco.com/t5/network-security/ssh-access-on-specific-ip/m-p/2432660#M921994</link>
      <description>&lt;P&gt;I just wanted to answer "yes, I used that before", but then while thinking about it I imagined: "no, not exactly that way".&lt;/P&gt;&lt;P&gt;I used extended access-list in access-classes for limiting access to port 22 when SSH was running on a different port, but in all these cases the destination was "any". So I tried it again with an IP-destination and you were right. When the destination is not "any", then the ACE doesn't match any more.&lt;/P&gt;&lt;P&gt;So lets find a different way to achieve that. Next to mind comes Control-plane protection:&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;ip access-list extended SSH-ALLOWED&lt;BR /&gt;&amp;nbsp;permit tcp any host 10.255.192.225 eq 22&lt;BR /&gt;ip access-list extended SSH-DENIED&lt;BR /&gt;&amp;nbsp;permit tcp any any eq 22&lt;BR /&gt;!&lt;BR /&gt;class-map match-all SSH-ALLOWED&lt;BR /&gt;&amp;nbsp;match access-group name SSH-ALLOWED&lt;BR /&gt;class-map match-all SSH-DENIED&lt;BR /&gt;&amp;nbsp;match access-group name SSH-DENIED&lt;BR /&gt;!&lt;BR /&gt;policy-map HOST&lt;BR /&gt;&amp;nbsp;class SSH-ALLOWED&lt;BR /&gt;&amp;nbsp;class SSH-DENIED&lt;BR /&gt;&amp;nbsp; drop&lt;BR /&gt;!&lt;BR /&gt;control-plane host&lt;BR /&gt;&amp;nbsp;service-policy input HOST&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;With that SSH to the IP 10.255.192.225 works while SSH to the other addresses doesn't work any more:&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;c2801#sh policy-map control-plane host&lt;BR /&gt;&amp;nbsp;Control Plane Host&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp; Service-policy input: HOST&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; Class-map: SSH-ALLOWED (match-all)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 577 packets, 47031 bytes&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 5 minute offered rate 2000 bps&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Match: access-group name SSH-ALLOWED&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; Class-map: SSH-DENIED (match-all)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 8 packets, 608 bytes&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 5 minute offered rate 0 bps, drop rate 0 bps&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Match: access-group name SSH-DENIED&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; drop&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; Class-map: class-default (match-any)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 26 packets, 2979 bytes&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 5 minute offered rate 0 bps, drop rate 0 bps&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Match: any&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;Well, this is a router, and I think it's not supported that way on the Catalyst. But at least control-plane policing should work (on the 6k5, the smaller Catalysts are a different story). At the moment I don't have a Catalyst to play with, but what would be different:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The policy-map is applied to the "control-plane" instead of the "control-plane host"&lt;/LI&gt;&lt;LI&gt;When the "drop" action is not available, then the policer should instead drop conforming traffic&lt;/LI&gt;&lt;LI&gt;It's harder to make sure that you don't police traffic that should just flow through&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Here are some links on CoPP:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst6500/ios/15-0SY/configuration/guide/15_0_sy_swcg/control_plane_policing_copp.html"&gt;http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst6500/ios/15-0SY/configuration/guide/15_0_sy_swcg/control_plane_policing_copp.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Mar 2014 00:36:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ssh-access-on-specific-ip/m-p/2432660#M921994</guid>
      <dc:creator>Karsten Iwen</dc:creator>
      <dc:date>2014-03-15T00:36:31Z</dc:date>
    </item>
    <item>
      <title>Depending on device specify a</title>
      <link>https://community.cisco.com/t5/network-security/ssh-access-on-specific-ip/m-p/2432661#M921995</link>
      <description>Depending on device specify a management interface and the management protocol that should have access to the management along with the proper ACLs.</description>
      <pubDate>Sun, 16 Mar 2014 02:05:35 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ssh-access-on-specific-ip/m-p/2432661#M921995</guid>
      <dc:creator>SOcchiogrosso</dc:creator>
      <dc:date>2014-03-16T02:05:35Z</dc:date>
    </item>
  </channel>
</rss>

