Options

ACL not working

alliasneoalliasneo Member Posts: 186
Hi,

Can anyone help me with this. I can't seem to get this ACL working correctly. I'm trying to use an extended list to block telnet traffic but even though I have allowed the traffic through it is still blocked:




Thanks

Comments

  • Options
    ram1101ram1101 Member Posts: 32 ■■□□□□□□□□
    remove the deny at the end...it is an implicit denied for standard acls
  • Options
    MAC_AddyMAC_Addy Member Posts: 1,740 ■■■■□□□□□□
    This should be an easy one if you're actually CCNA certified...
    2017 Certification Goals:
    CCNP R/S
  • Options
    DCDDCD Member Posts: 473 ■■■■□□□□□□
    What have you done to troubleshoot this? The fix is pretty simple also this is not the normal way you permit/block VTY access. And you should add the running config.
  • Options
    Master Of PuppetsMaster Of Puppets Member Posts: 1,210
    MAC_Addy wrote: »
    This should be an easy one if you're actually CCNA certified...

    Valid point.
    Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like. My crime is that of outsmarting you, something that you will never forgive me for.
  • Options
    chXchX Member Posts: 100 ■■■□□□□□□□
    I can see exactly what the problem is, but after thinking about it... I don't recall ever learning why it works like this from my CCNA studies.

    I'll be "that guy" and point out that you need to change the ACL to:
    access-list 100 permit tcp host 10.0.0.2 any eq telnet log

    Or just use a standard ACL.

    I had to do a bit of research to find this out, but it seems the destination IP is stripped from the telnet packet before the ACL applied with access-class is processed. Which is why you're seeing this in your logs:

    list 100 denied tcp 10.0.0.2(32066) -> 0.0.0.0(23)


    I have a feeling this is to do with the fact that you can have multiple IP addresses on a router, but I'm not really sure. If anyone could expand on the specifics of this, I'd love to know. And if this does get covered in the CCNA, could you point me to where? I really don't remember learning this.
    2019 Goals:
    [ ] Recertify CCNA
  • Options
    bermovickbermovick Member Posts: 1,135 ■■■■□□□□□□
    I actually labbed this this morning, as I wasn't certain why that wouldn't work either, and noticed the same thing - changing the DEST address to any worked (as would, of course, making it a standard ACL as is suggested), but the specific destination address would not. I didn't have time to research why, so +1 to you chX for researching it and enlightening us all!

    And I agree, I don't recall in any of my studies it ever being explained why that wouldn't work, as the syntax appeared to be valid.
    Latest Completed: CISSP

    Current goal: Dunno
  • Options
    DCDDCD Member Posts: 473 ■■■■□□□□□□
    It not covered in the CCNA.
  • Options
    BlackoutBlackout Member Posts: 512 ■■■■□□□□□□
    DCD wrote: »
    It not covered in the CCNA.

    Are you seriously stating that ACL are not covered in the CCNA?
    Current Certification Path: CCNA, CCNP Security, CCDA, CCIE Security

    "Practice doesn't make perfect. Perfect practice makes perfect"

    Vincent Thomas "Vince" Lombardi
  • Options
    chXchX Member Posts: 100 ■■■□□□□□□□
    Blackout wrote: »
    Are you seriously stating that ACL are not covered in the CCNA?

    Have a read of my post. I think he's stating that the answer to "why" it works this way is not covered in the CCNA, not ACLs in general.
    2019 Goals:
    [ ] Recertify CCNA
  • Options
    BlackoutBlackout Member Posts: 512 ■■■■□□□□□□
    chX wrote: »
    Have a read of my post. I think he's stating that the answer to "why" it works this way is not covered in the CCNA, not ACLs in general.

    Not the first time I have read something wrong, I need more coffee.
    Current Certification Path: CCNA, CCNP Security, CCDA, CCIE Security

    "Practice doesn't make perfect. Perfect practice makes perfect"

    Vincent Thomas "Vince" Lombardi
  • Options
    DCDDCD Member Posts: 473 ■■■■□□□□□□
    Blackout wrote: »
    Not the first time I have read something wrong, I need more coffee.

    LOL, Thanks chX
    PS where did you find that info?
  • Options
    alliasneoalliasneo Member Posts: 186
    thanks chX. That worked perfectly.

    I did a ton of ACL'S when working towards my CCNA and I never came across this problem which I'm amazed about.

    Sure I could have just used a standard ACL but when you want to try something out you might as well just do it.

    So the router strips off the destination address? and this statement

    #list 100 denied tcp 10.0.0.2(32066) -> 0.0.0.0(23)

    is saying denied this particular host going to anything (0.0.0.0) on port 23.

    Hmmm interesting.
Sign In or Register to comment.