|
Posted by News Reader on June 10, 2008, 5:41 pm
If you were Registered and logged in, you could reply and use other advanced thread options
Steven V.A. wrote:
> Hi all,
>
> I have played with the access list of my Cisco 857.
> I've comr up with the following tru searching the web, usenet and
> cisco manuals, sdm ....
>
> What do you think I should improve, change....
> This is acces list 102 -- incoming traffic from the wan/atm interface
>
> Situation: soho usage, and 1 bittorent client.
> Thanks in advance
>
>
> access-list 102 remark DNS verkeer inkomend toelaten
> access-list 102 permit udp any eq domain any
> access-list 102 remark Web inkomend toelaten en dyndns antwoord
> access-list 102 permit tcp any eq www any
> access-list 102 remark NTP inkomend toelaten (123) 207.46.197.32
> access-list 102 permit udp host 207.46.197.32 eq ntp any eq ntp
> access-list 102 remark BitTorent verkeer toelaten -- PC1
> access-list 102 permit tcp any any eq 11478
> access-list 102 permit udp any any eq 11478
> access-list 102 remark Bittorent verkeer toelaten -- PC2
> access-list 102 permit tcp any any eq 56658
> access-list 102 permit udp any any eq 56658
> access-list 102 remark ICMP instellingen hieronder
> access-list 102 permit icmp any any echo-reply
> access-list 102 permit icmp any any time-exceeded
> access-list 102 permit icmp any any unreachable
> access-list 102 permit udp any any eq ntp
> access-list 102 remark Prive adressen niet toestaan vanop internet
> access-list 102 deny ip 10.0.0.0 0.255.255.255 any
> access-list 102 deny ip 172.16.0.0 0.15.255.255 any
> access-list 102 deny ip 192.168.0.0 0.0.255.255 any
> access-list 102 deny ip 127.0.0.0 0.255.255.255 any
> access-list 102 deny ip host 255.255.255.255 any
> access-list 102 deny ip host 0.0.0.0 any
> access-list 102 deny ip any any log
> dialer-list 1 protocol ip permit
>
>
>
> Extended IP access list 102
> 10 permit udp any eq domain any (1500 matches)
> 20 permit tcp any eq www any (24 matches)
> 30 permit udp host 207.46.197.32 eq ntp any eq ntp (28 matches)
> 40 permit tcp any any eq 11478 (21347 matches)
> 50 permit udp any any eq 11478 (26 matches)
> 60 permit tcp any any eq 56658
> 70 permit udp any any eq 56658
> 80 permit icmp any any echo-reply (10 matches)
> 90 permit icmp any any time-exceeded (12 matches)
> 100 permit icmp any any unreachable (411 matches)
> 110 permit udp any any eq ntp
> 120 deny ip 10.0.0.0 0.255.255.255 any
> 130 deny ip 172.16.0.0 0.15.255.255 any
> 140 deny ip 192.168.0.0 0.0.255.255 any
> 150 deny ip 127.0.0.0 0.255.255.255 any
> 160 deny ip host 255.255.255.255 any
> 170 deny ip host 0.0.0.0 any
> 180 deny ip any any log (83 matches)
>
>
>
>
ACEs 10 and 20 appear to be used for provisioning of return traffic from
external servers. These ACEs would not be necessary if you were using
"inspection" on an internal interface to provision the return path
(temporary dynamic holes in the firewall).
The following ACE's are redundant:
30 permit udp host 207.46.197.32 eq ntp any eq ntp (28 matches)
110 permit udp any any eq ntp
... both permit NTP to destination "any". If host 207.46.197.32 is using
source port "ntp" it is matched earlier in the ACL, but it would still
be matched by the second ACE regardless of source port.
For your permit ACEs, consider placing those that will be matched most
frequently, above those matched less frequently.
e.g.:
40 permit tcp any any eq 11478 (21347 matches)
30 permit udp host 207.46.197.32 eq ntp any eq ntp (28 matches)
You might supplement ACEs 80 through 100 with:
permit icmp any any administratively-prohibited
permit icmp any any packet-too-big
permit icmp any any source-quench
permit icmp any any parameter-problem
You could consider denying fragments. If you do, place them at the top
of your ACL.:
deny tcp any any log fragments
deny udp any any log fragments
deny icmp any any log fragments
The ACEs 120 - 170 should precede the permit ACEs, otherwise there is a
risk of permitting traffic from these sources. There are other source
ranges commonly denied which are absent. Investigate the Land attack as
well (source IP same as the WAN interface IP).
Current IOS releases support the use of non-contiguous ports in an ACE
provided the protocol, source, and destinations are common.
e.g.:
permit tcp any any eq www 443 ftp
... only drawback is the single counter for the ACE.
Best Regards,
News Reader
|