05-28-2003 07:14 AM - edited 02-20-2020 09:21 PM
Somebody please help me understand the concept:
I have VLAN500 on a 6509, with a network of 172.17.x.x and I want to apply an extended ACL to allow any host on that VLAN to telnet to a host on VLAN 600 (network 17.16.x.x). So I created the following ACL
Extended IP access list VLAN500
permit tcp any host 172.16.8.53 eq telnet
and added this line to the VLAN500 interface:
ip access-group VLAN500 out
And it didn't work, until I changed the interface statement to:
ip access-group VLAN500 in
And it really doesn't make sense to me that I would have to apply it in. Why wouldn't I apply it out since any host on the local VLAN can telnet out to a host on another VLAN? If anyone can explain this to me, it would be appreciated. Thanks in adavance.
05-28-2003 08:20 AM
because the traffic in INBOUND from the VLAN 500 and not going towards the VLAN 500
Hope this clarifies.
Thanks,
yatin
05-28-2003 08:23 AM
Another way to understand the IN and OUT directions on an interface is to imagine yourself "sitting" in the port (window) and facing out of the window.
So the telnet traffic that is coming from the vlan500 would be IN and not OUT, hence the later access-group command worked.
yatin
05-28-2003 08:26 AM
Thanks for the reply. I am begining to understand the concept. One more thing. What is the best way to apply this specific filter? I could write one way and apply OUT or write it another and apply it IN. But I'm not sure which would be best.
05-28-2003 08:37 AM
The way you are applying is good. Applying to the vlan500 interface will preserve router resources because the action is happening at the entry point itself. Had it been applied to the VLAN 600 in the OUT direction, all these packets would traverse the router all the way upto the VLAN600 interface only to be dropped if those are not from VLAN500.
The below url will help further.
thanks,
yatin
05-28-2003 11:14 AM
I should clarify. The dilema I am having is, I can write the ACL this way:
Extended IP access list VLAN730
permit tcp any host 172.16.8.53 eq telnet
interface Vlan730
ip access-group VLAN730 in
and it works fine. Or I can write it reversed and apply it to the same interface but with OUT, and it also works:
Extended IP access list VLAN730
permit tcp host 172.16.8.53 eq telnet any
interface Vlan730
ip access-group VLAN730 OUT
So, I'm wondering which of those two ways would be more efficient. Thanks again for the help.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide