jcarrillo26 wrote: » hey thanks for your reply! I know I have to apply them to the interfaces or acls dont really have a purpose. so when it is coming from a node on the network its a permit/deny coming in and something going out to the cloud or a service on the net it is going out? I guess my logic is a little messed up. Should I just get my home lab and allow internet to all the nodes and then apply the restrictions of the access lists to play around with?
jcarrillo26 wrote: » could you give me a couple of scenarios when I would use in and out say on my serial and fa0/0 on my lan?
thehourman wrote: » If you want to filter packets that is coming in, you want to use the in; and if you want to filter packets that is coming out then you use the out. For example, let's say you have a topology like this: PC0 [Router] Internet | | PC1 If you want to filter packets coming from the internet, you're going to use in on the router's interface facing the internet because the packets from the internet is coming into the router that is why you use in. If you don't want PC0 to access the internet, but want it to access PC1, which is in a different subnet, you can use the out on the router's interface facing the internet. So that every time the PC0 tries to go out to the internet it will be filtered, but if PC0 tries to access PC1, it will be fine.
jcarrillo26 wrote: » I just did a packet tracer lab where i had to permit/deny certain host to telnet and reach the web and they worked out for me. I applied these access lists and they worked it took me like 10 minutes but i got it! access-list 100 permit tcp host 172.22.3.50 host 172.22.3.90 eq telnet (this permits the one user to telnet to a switch) access-list 100 deny tcp 172.22.3.32 0.0.0.31 host 172.22.3.90 eq telnet (i had to place this one in there because if i did not because i have the ip any any at the bottom the rest of the subnet was able to telnet into the switch) access-list 100 deny tcp host 172.22.3.53 any eq www (this denied the host of this address to access anything that was pertaining to port 80) access-list 100 permit ip any any (wihtout this statement everything would be implicit denied and therefore even though only the host above was blocked, the rest of the subnet was blocked unless i applied this.) Please let me know if this sounds correct to you guys/gals thank you so much for your help.