established acl in cisco 3560

I use cisco3560
I want to vlan A access vlan B with tcp protocol, and vlan B could not access  vlan A. vlan A and vlan B could access internet.
vlan A: 10.10.10.1/24  , vlan B: 10.10.20.1/24

ip access-list extend test
permit tcp any 10.10.20.0 0.0.0.255 established
permit ip any any

interface  vlan A
ip access-group test out

interface vlan B
ip access-group test in

but it seemed not worked, both can access internet , and access each other,
 it's my configuration problem ?
kai zhangAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ayoub RouziCeo & CoFounderCommented:
Hi,

You should add a :

deny ip 10.10.10.1 0.0.0.255 10.10.20.1 0.0.0.255

Open in new window

0
atlas_shudderedSr. Network EngineerCommented:
More to the point, your permit any any is going to allow anything not previously denied.  If I am understanding your goal correctly try this:

ip access ext A_to_B
permit tcp 10.10.10.0 0.0.0.255 10.10.20.0 0.0.0.255
deny ip 10.10.10.0 0.0.0.255 10.10.20.0 0.0.0.255
permit ip any any

ip access ext B_to_A
permit tcp 10.10.20.0 0.0.0.255 10.10.10.0 0.0.0.255
deny ip 10.10.20.0 0.0.0.255 10.10.10.0 0.0.0.255
permit ip any any

interface  vlan A
ip access-group A_to_B out

interface vlan B
ip access-group B_to_A out
permit ip any any

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ayoub RouziCeo & CoFounderCommented:
The solution is pretty clear and mr Atlas_shuddered confirm the same point.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Cisco

From novice to tech pro — start learning today.