cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
7593
Views
0
Helpful
10
Replies

access list in switch

vishalpatil86
Level 7
Level 7

hi,

i have created two access lists, 111 and 121 which has been applied to interface vlan 10 111 out and 121 in

acl contains only permit satatements. i didn't permit ftp traffic, but it is allowing the traffic.

acc to my knowledge, packet flows from top to down in access list, if it doesn't find any match, it will drop the packet.

but here, it is not dropping the packet.

any suggestions???

4 Accepted Solutions

Accepted Solutions

Hi Vishal,

I thought the same as Rick said, that if my solutions doesn't solve your current issue then ask you to provide the interface and access-list configuration.

HTH
Please click on the correct answer if this answered your question.
Regards,
Naidu.

View solution in original post

Hi Vishal,

I would request you to keep apply access-list 111 in under vlan 10. This will deffnitely solve your problem.


access-list 111 permit tcp 10.5.5.128 0.0.0.127 10.5.5.0  0.0.0.127 eq 5813
access-list 111 permit tcp 10.5.5.128 0.0.0.127 10.5.5.0  0.0.0.127  eq 25
access-list 111 permit tcp 10.5.5.128 0.0.0.127 10.5.5.0  0.0.0.127 eq 80
access-list 111 permit tcp 10.5.5.128 0.0.0.127 10.5.5.0  0.0.0.127 eq 53
access-list 111 permit udp 10.5.5.128 0.0.0.127 10.5.5.0  0.0.0.127 eq 53
access-list 111 permit tcp 10.5.5.189 0.0.0.127 172.16.0.0 0.0.0.255 eq 2463

interface vlan 10
ip access-group 111 in


HTH
Please click on the correct answer if this answered your question.
Regards,
Naidu.

View solution in original post

Hi,

as per your previous post you have applied two access-groups (in and out) then I said only keep single access-group as in.

Ok, still you can do one thing...
add the below statement at at last.

access-list 111 deny any any

OR you can restrict the ftp access from source to destination like below...

access-list 111 deny tcp 10.5.5.128 0.0.0.127 10.5.5.0  0.0.0.127 eq ftp


Please rate the helpfull posts.
Regards,
Naidu.

View solution in original post

Hi Vishal,


Previously we used to limited to using numbers. that is access-list 10 permit....
The latter allows you to use named ACL. ie 'ip access-list extended MYACL'


Please rate the helpfull posts.
Regards,
Naidu.

View solution in original post

10 Replies 10

Latchum Naidu
VIP Alumni
VIP Alumni

Hi Vishal,


If your rules like ip to ip which mean everything is allowed like below.

access-list 100 permit ip 192.168.102.0 0.0.0.255 10.250.20.0 0.0.0.255

In your case if you want block the ftp then write tule like below.

access-list 100 deny tcp 192.168.102.0 0.0.0.255 10.250.20.0 0.0.0.255 eq 21


HTH
Please click on the correct answer if this answered your question.
Regards,
Naidu.

If the response from Naidu does not completely answer the issue for Vishal then he should post the interface configuration and the access list configuration.

HTH

Rick

HTH

Rick

Hi Vishal,

I thought the same as Rick said, that if my solutions doesn't solve your current issue then ask you to provide the interface and access-list configuration.

HTH
Please click on the correct answer if this answered your question.
Regards,
Naidu.

hi,

here is the access list i have created -

access-list 111 permit icmp 10.5.5.128 0.0.0.127 10.5.5.0  0.0.0.127

access-list 111 permit tcp 10.5.5.128 0.0.0.127  eq 25 10.5.5.0  0.0.0.127

access-list 111 permit tcp 10.5.5.128 0.0.0.127  eq 80 10.5.5.0  0.0.0.127

access-list 111 permit tcp 10.5.5.128 0.0.0.127  eq 53 10.5.5.0  0.0.0.127

access-list 111 permit udp 10.5.5.128 0.0.0.127  eq 53 10.5.5.0  0.0.0.127

access-list 121 permit tcp 10.5.5.189 0.0.0.127  172.16.0.0 0.0.0.255 eq 2463

interface vlan 10

ip access-group 111 out

ip access-goup 121 in

Hi Vishal,

I would request you to keep apply access-list 111 in under vlan 10. This will deffnitely solve your problem.


access-list 111 permit tcp 10.5.5.128 0.0.0.127 10.5.5.0  0.0.0.127 eq 5813
access-list 111 permit tcp 10.5.5.128 0.0.0.127 10.5.5.0  0.0.0.127  eq 25
access-list 111 permit tcp 10.5.5.128 0.0.0.127 10.5.5.0  0.0.0.127 eq 80
access-list 111 permit tcp 10.5.5.128 0.0.0.127 10.5.5.0  0.0.0.127 eq 53
access-list 111 permit udp 10.5.5.128 0.0.0.127 10.5.5.0  0.0.0.127 eq 53
access-list 111 permit tcp 10.5.5.189 0.0.0.127 172.16.0.0 0.0.0.255 eq 2463

interface vlan 10
ip access-group 111 in


HTH
Please click on the correct answer if this answered your question.
Regards,
Naidu.

dats what i did, i have applied it to interface vlan 10. never mentioned here.

Hi,

as per your previous post you have applied two access-groups (in and out) then I said only keep single access-group as in.

Ok, still you can do one thing...
add the below statement at at last.

access-list 111 deny any any

OR you can restrict the ftp access from source to destination like below...

access-list 111 deny tcp 10.5.5.128 0.0.0.127 10.5.5.0  0.0.0.127 eq ftp


Please rate the helpfull posts.
Regards,
Naidu.

ok, i will do that and let u know

i have one more doubt. what is the difference between access list and ip access list?

Hi Vishal,


Previously we used to limited to using numbers. that is access-list 10 permit....
The latter allows you to use named ACL. ie 'ip access-list extended MYACL'


Please rate the helpfull posts.
Regards,
Naidu.

thank you