I have several VLANs configured in a 3750 (collapsed core). The two I am concerned with in this question are vlan 10 and vlan 30.
int vlan 10
ip add 10.100.10.254 255.255.255.0
ip access-group 101 in
ip access-group 110 out
!
int vlan 30
ip add 10.100.30.253 255.255.255.0
ip access-group 103 in
ip[ access-group 130 out
!
ip access-list extended 101
deny udp any any eq 0
deny tcp any any eq 0
!
ip access-list extended 110
blablabla
!
ip access-list extended 130
deny ip any 10.100.10.0 0.0.0.255
permit ip any any
Now acl 130 is supposed to drop packets from a vlan 30 computer destined for a computer in vlan 10. Well, that does not work.
I tried a line on acl 101
deny ip 10.100.30.0 0.0.0.255 any
Still, vlan 30 computers can access vlan 10. So then I tried one line before the previous in acl 101
deny ip any 10.100.30.0 0.0.0.255
That works. WTH???
An access-list is supposed to work from-to, not to-from
access-list 130 deny ip any 10.100.10.0 0.0.0.255 is supposed to say "deny ip from any to 10.100.10.0 0.0.0.255", and outbound on vlan 30, that means "drop any packets from anything behind me (vlan 30) to vlan 10...right? But then why does it not work, but an acl that is to-from works???
/
tim@tim-laptop ~ $ sudo apt-get install windows
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package windows...Thank Goodness!
int vlan 10
ip add 10.100.10.254 255.255.255.0
ip access-group 101 in
ip access-group 110 out
!
int vlan 30
ip add 10.100.30.253 255.255.255.0
ip access-group 103 in
ip[ access-group 130 out
!
ip access-list extended 101
deny udp any any eq 0
deny tcp any any eq 0
!
ip access-list extended 110
blablabla
!
ip access-list extended 130
deny ip any 10.100.10.0 0.0.0.255
permit ip any any
Now acl 130 is supposed to drop packets from a vlan 30 computer destined for a computer in vlan 10. Well, that does not work.
I tried a line on acl 101
deny ip 10.100.30.0 0.0.0.255 any
Still, vlan 30 computers can access vlan 10. So then I tried one line before the previous in acl 101
deny ip any 10.100.30.0 0.0.0.255
That works. WTH???
An access-list is supposed to work from-to, not to-from
access-list 130 deny ip any 10.100.10.0 0.0.0.255 is supposed to say "deny ip from any to 10.100.10.0 0.0.0.255", and outbound on vlan 30, that means "drop any packets from anything behind me (vlan 30) to vlan 10...right? But then why does it not work, but an acl that is to-from works???
/
tim@tim-laptop ~ $ sudo apt-get install windows
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package windows...Thank Goodness!