cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
985
Views
0
Helpful
3
Replies

Configuring Vlan for Internet access only

randyclark
Level 1
Level 1

If I want to configure an vlan to have access to the Internet only would I write an ACL to permit only access to the internal Ip of the firewall or the network address of the Internet vlan.

2 Accepted Solutions

Accepted Solutions

tsettle
Level 3
Level 3

What you configure depends where you apply the acl. In general if it's Internet only (ie, not your internal net) then your acl would deny your internal subnets and permit all else (ie, Internet). An acl for just the fw will limit access the firewall ip only (ie nowhere else)

For example

PC----rtr---fw---Internet

|

other vlans

PC is 172.16.1.2/24 (on the vlan by itself)

other vlan is subnet 172.16.2.0/24

To permit PC to access Internet only

access-list 101 deny ip 172.16.1.0 0.0.0.255 172.16.2.0 0.0.0.255

access-list 101 permit ip any any

access-list 102 deny ip 172.16.2.0 0.0.0.255 172.16.1.0 0.0.0.255

access-list 102 permit ip any any

apply 101 to pc vlan int on rtr inbound

apply 102 outbound on rtr int to pc vlan.

other vlan won't be able reach PC and vice versa. PC can reach Internet.

View solution in original post

I think you are right

View solution in original post

3 Replies 3

tsettle
Level 3
Level 3

What you configure depends where you apply the acl. In general if it's Internet only (ie, not your internal net) then your acl would deny your internal subnets and permit all else (ie, Internet). An acl for just the fw will limit access the firewall ip only (ie nowhere else)

For example

PC----rtr---fw---Internet

|

other vlans

PC is 172.16.1.2/24 (on the vlan by itself)

other vlan is subnet 172.16.2.0/24

To permit PC to access Internet only

access-list 101 deny ip 172.16.1.0 0.0.0.255 172.16.2.0 0.0.0.255

access-list 101 permit ip any any

access-list 102 deny ip 172.16.2.0 0.0.0.255 172.16.1.0 0.0.0.255

access-list 102 permit ip any any

apply 101 to pc vlan int on rtr inbound

apply 102 outbound on rtr int to pc vlan.

other vlan won't be able reach PC and vice versa. PC can reach Internet.

Shouldn't that be the following, to permit only that PC?

access-list 101 permit ip 172.16.1.0 0.0.0.255 172.16.2.0 0.0.0.255

access-list 101 deny ip any any

access-list 102 permit ip 172.16.2.0 0.0.0.255 172.16.1.0 0.0.0.255

access-list 102 deny ip any any

I think you are right