Complete Access List for a Screened Subnet Network That Allows Public Server Internet Access
The following is an access list that takes the
In this initial section, we disable unneeded global services. These commands must be configured in global configuration mode: no service finger no ip source-route no service tcp-small-servers no service udp-small-servers
interface serial 0 ip access-group filterin in ip access-group filterout out no snmp no ip direct-broadcast no ip redirects no ip unreachables no cdp enable
Next is the
filterin
access list, which includes
ip access-list extended filterin deny ip 190.190.190.0 0.0.0.255 any deny ip 10.0.0.0 0.255.255.255 any deny ip 127.0.0.0 0.255.255.255 any deny ip 172.16.0.0 0.15.255.255 any deny ip 192.168.0.0 0.0.255.255 any deny ip 224.0.0.0 15.255.255.255 any deny ip host 0.0.0.0 any permit tcp any host 200.200.200.2 eq 80 permit tcp any host 200.200.200.3 eq 25 permit tcp any host 200.200.200.4 eq 53 permit udp any host 200.200.200.4 eq 53 permit icmp any any packet-too-big evaluate packets deny ip any any log-input Filterout is next, and it starts by allowing response traffic back from the web, mail, and DNS servers. Notice the est (established) keyword at the end of these lists. This confirms that only replies are leaving the servers, behaving like an egress list for our screened subnet. Following that is the reflexive access lines that permit outbound traffic and create the reflexive lists that allow inbound traffic. To grant other services outbound access, you would need to add a reflexive access list here. Filterout is ended with an ICMP filter allowing packet-too-big messages to go through. ip access-list extended filterout permit tcp host 200.200.200.2 eq 80 any gt 1023 est permit tcp host 200.200.200.3 eq 25 any gt 1023 est permit udp host 200.200.200.4 eq 53 any gt 1023 permit tcp any any eq 21 reflect packets permit tcp any any eq 22 reflect packets permit tcp any any eq 23 reflect packets permit tcp any any eq 25 reflect packets permit tcp any any eq 53 reflect packets permit tcp any any eq 80 reflect packets permit tcp any any eq 110 reflect packets permit tcp any any eq 119 reflect packets permit tcp any any eq 143 reflect packets permit tcp any any eq 443 reflect packets permit udp any any eq 53 reflect packets permit icmp any any packet-too-big Progressing to interface ethernet 0 , no outbound list is applied; therefore, any traffic that matches the private network's address range is passed on. interface ethernet 0 ip access-group filterin1 in Filterin1 is applied inbound to the ethernet 0 interface. Filterin1 contains an egress filter, only allowing traffic that is addressed from the private network's address range to be forwarded to the serial interface. It also contains a deny statement, logging all nonstandard egress traffic. ip access-list extended filterin1 permit ip 190.190.190.0 0.0.0.255 any deny ip any any log-input Ethernet 1 contains filterout2 and filterin2 .
Filterout2
interface ethernet 1 ip access-group filterout2 out ip access-group filterin2 in ip access-list extended filterout2 permit tcp any gt 1023 host 200.200.200.2 eq 80 permit tcp any gt 1023 host 200.200.200.3 eq 25 permit tcp any host 200.200.200.4 eq 53 permit udp any host 200.200.200.4 eq 53 permit icmp any 200.200.200.0 0.0.0.255 packet-too-big deny ip any any log-input
Filterin2
allows reply traffic from each of the three public servers out to the serial interface. This serves as a basic egress filter.
Packet-too-big
messages are also forwarded. The
deny any 190.190.190.0
line disables communications between the screened subnet and your private network. This is necessary because the outbound traffic on
ethernet 0
is
ip access-list extended filterin2 permit tcp host 200.200.200.2 eq 80 any gt 1023 est permit tcp host 200.200.200.3 eq 25 any gt 1023 est permit udp host 200.200.200.4 eq 53 any gt 1023 permit icmp 200.200.200.0 0.0.0.255 any packet-too-big deny ip any 190.190.190.0 0.0.0.255 permit tcp host 200.200.200.4 any eq 53 permit udp host 200.200.200.4 any eq 53 permit tcp host 200.200.200.3 any eq 25 deny ip any any log-input In the preceding example, the following information is assumed:
Listing A.2 shows the complete router access list. Listing A.2. The Router Access List for a Screened Subnet Network That Allows Public Server Internet Accessno service finger no ip source-route no service tcp-small-servers no service udp-small-servers interface serial 0 ip access-group filterin in ip access-group filterout out no snmp no ip direct-broadcast no ip redirects no ip unreachables no cdp enable ip access-list extended filterin deny ip 190.190.190.0 0.0.0.255 any deny ip 10.0.0.0 0.255.255.255 any deny ip 127.0.0.0 0.255.255.255 any deny ip 172.16.0.0 0.15.255.255 any deny ip 192.168.0.0 0.0.255.255 any deny ip 224.0.0.0 15.255.255.255 any deny ip host 0.0.0.0 any permit tcp any host 200.200.200.2 eq 80 permit tcp any host 200.200.200.3 eq 25 permit udp any host 200.200.200.4 eq 53 permit icmp any any packet-too-big evaluate packets deny ip any any log-input ip access-list extended filterout permit tcp host 200.200.200.2 eq 80 any gt 1023 est permit tcp host 200.200.200.3 eq 25 any gt 1023 est permit udp host 200.200.200.4 eq 53 any gt 1023 permit tcp any any eq 21 reflect packets permit tcp any any eq 22 reflect packets permit tcp any any eq 23 reflect packets permit tcp any any eq 25 reflect packets permit tcp any any eq 53 reflect packets permit tcp any any eq 80 reflect packets permit tcp any any eq 110 reflect packets permit tcp any any eq 119 reflect packets permit tcp any any eq 143 reflect packets permit tcp any any eq 443 reflect packets permit udp any any eq 53 reflect packets permit icmp any any packet-too-big interface ethernet 0 ip access-group filterin1 in ip access-list extended filterin1 permit ip 190.190.190.0 0.0.0.255 any deny ip any any log-input interface ethernet 1 ip access-group filterout2 out ip access-group filterin2 in ip access-list extended filterout2 permit tcp any gt 1023 host 200.200.200.2 eq 80 permit tcp any gt 1023 host 200.200.200.3 eq 25 permit tcp any host 200.200.200.4 eq 53 permit udp any host 200.200.200.4 eq 53 permit icmp any 200.200.200.0 0.0.0.255 packet-too-big deny ip any any log-input ip access-list extended filterin2 permit tcp host 200.200.200.2 eq 80 any gt 1023 est permit tcp host 200.200.200.3 eq 25 any gt 1023 est permit udp host 200.200.200.4 eq 53 any gt 1023 permit icmp 200.200.200.0 0.0.0.255 any packet-too-big deny ip any 190.190.190.0 0.0.0.255 permit tcp host 200.200.200.4 any eq 53 permit udp host 200.200.200.4 any eq 53 permit tcp host 200.200.200.3 any eq 25 deny ip any any log-input |