06-09-2008 09:39 AM - edited 03-05-2019 11:31 PM
Here is what I have built:
ip access-list extended QA2
10 permit ip any 10.98.6.0 0.0.1.255
20 deny ip any 192.168.0.0 0.0.7.255 log
30 deny ip any 10.98.0.0 0.0.255.255 log
40 permit tcp any any eq www
50 permit tcp any any eq smtp
60 permit tcp any any eq 443
70 permit tcp any any eq ssh
Basicaly, I want to allow the hosts on QA2 (172.16.0.0/20) access to net 10.98.6.0/23 for all proto's, and only 22,25,80 and 443 to the internet...
One side question to the above:
I have this QA2 vlan span across 2 core switches (6513's) and have setup hsrp on the 2 vlan interface (172.16.0.2 and .3) as 172.16.0.1
The switch does not have a default gateway. Not sure what I should put it as...
06-09-2008 09:42 AM
also, this should be on the Vlan interface as an access class QA2 in ... correct? closest to the source?
06-09-2008 10:01 AM
Nelson
Here are some comments about your access list:
- yes it should be applied inbound on the VLAN interface where that VLAN is located.
- it should be applied as access-group and not as access-class.
- if it is on the interface where that subnet is located I would suggest changing the source specification of "any" and change it to the subnet of that VLAN.
- you are permitting tcp access for SMTP, web, and ssh, but you are not permitting any DNS traffic. So users will have to specify everything by address and not browse by name. I doubt that is what you had in mind.
HTH
Rick
06-09-2008 11:21 AM
OUPS... fergot about the DNS, so how do I resolve that?
Also, the access group should be applied on the vlan interface as :
interface vlan 172
ip access-group QA2 out
Correct?
06-09-2008 11:42 AM
Nelson
resolve the DNS by permit udp any eq 53 any
apply as
interface vlan 172
ip access-group QA2 in
HTH
Rick
06-09-2008 11:46 AM
should'nt it be out? as it's leaving the VLAN 172 out to the MSFC, no?
06-09-2008 11:51 AM
Nelson
The access list is applied in or out from the perspective of the router/switch interface. Traffic from VLAN 172 into the switch interface is applied in. Traffic from the switch interface out to VLAN 172 is applied out.
So apply your access-group in.
HTH
Rick
06-10-2008 03:33 AM
thanks rick !
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