In your example, is 192.168.1.0 being allowed access to 192.168.2.0, or vice versa?
Main Topics
Browse All TopicsWe have a Cisco 3560 that is going to provide the connection between two domains, each on their own VLAN. How would we only allow traffic for ports 80, 443, and a few others to our VLAN? I have Cisco Network Assistant installed, so if at all possible I'd like to use that, but I'll do the command line if have to.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
create your SVI for the vlan that would be hosting the traffic for the ports 80,443.
create an access list to prevent only traffic with destination port 80 & 443 into this SVI.
int vlan100
description SVI into VLAN 100
ip addr 192.168.1.1 255.255.255.0
ip access-group 102 in
access-list 102 permit tcp any any eq 80
access-list 102 permit tcp any any eq 443
To modify my config to use named access-list for easy reference as JWCastile suggested,; yhour config should look like this;
int vlan1
description SVI into VLAN 1
ip addr 192.168.1.1 255.255.255.0
ip access-group block-service in
!
!
ip access-list extended block-service
permit tcp any any eq 80
permit tcp any any eq 443
Business Accounts
Answer for Membership
by: clonga13Posted on 2009-08-27 at 08:14:30ID: 25199182
The easiest thing to do would be to write an access-list only allowing the ports you want in and denying the rest. You can then apply this to the interface or subinterface (depending on your config).
Example:
VLAN 2 - 192.168.1.0
VLAN 3 - 192.168.2.0
access-list 101 permit tcp 192.168.1.0 0.0.0.255 192.168.2.0 0.0.0.255 80
access-list 101 permit tcp 192.168.1.0 0.0.0.255 192.168.2.0 0.0.0.255 443
access-list 101 deny ip 192.168.1.0 0.0.0.255 192.168.2.0 0.0.0.255