interface serial 0 ! 定义接口 description To The Internet ! 目的描述 ip address 161.71.73.33 255.255.255.248 ! 设置IP地址 ip access-list 101 in ! 定义入站过滤器 ip access-list 102 out ! 定义出站过滤器 access-list 101 permit tcp any any established Note 1 ! 答应所有tcp业务流入,会话始于园区网内
access-list 101 permit tcp any host 144.254.1.3 eq FTP ! 答应 ftp 到不洁网 !(dirty net )中的ftp服务器 access-lsit 101 permit tcp any host 144.254.1.3 eq ! 答应 ftp 数据到不洁网中的ftp服务器 ftp-date
access-list 101 deny ip 127.0.0.0 0.255.255.255 any ! 阻止来自Internet并以RFC access-list 101 deny ip 10.0.0.0 0.255.255.255 any !保留地址为源的数据包入站 access-list 101 deny ip 172.16.0.0 0.240.255.255 any access-list 101 deny ip 192.168.0.0 0.0.255.255 any access-list 101 deny icmp any any echo-reply ! 拒绝任何应答 access-list 101 deny icmp any any host-unreachable ! 拒绝任何无法接通的主机 access-list 101 deny udp any any eq snmp ! 拒绝引入的SNMP access-list 101 deny udp any eq 2000 ! 拒绝引入的openwindows access-list 101 deny udp any any gt 6000 ! 拒绝引入的X-windows access-list 101 deny tcp any any eq 2000 ! 拒绝引入的openwindows access-list 101 deny tcp any any gt 6000 ! 拒绝引入的X-windows access-list 101 deny udp any any eq 69 ! 拒绝引入的tftpd access-list 101 deny udp any any eq 111 ! 拒绝引入的SunRPC access-list 101 deny udp any any eq 2049 ! 拒绝引入的NFS access-list 101 deny tcp any any eq 111 ! 拒绝引入的SunRPC access-list 101 deny tcp any any eq 2049 ! 拒绝引入的 NFS access-list 101 deny tcp any any eq 87 ! 拒绝引入的连接 access-list 101 deny tcp any any eq 512 ! 拒绝引入的 BSD UNIX “r”指令 access-list 101 deny tcp any any eq 513 ! 拒绝引入的 BSD UNIX “r”指令 access-list 101 deny tcp any any eq 514 ! 拒绝引入的 BSD UNIX “r”指令 access-list 101 deny tcp any any eq 515 ! 拒绝引入的 lpd access-list 101 deny tcp any any eq 540 ! 拒绝引入的 uUCpd
access-list 101 permit ip any any ! 其它均答应
access-list 102 permit ip 144.254.0.0 0.0.255.255 any ! 只答应有源的包 access-list 102 deny ip any any ! 园区网到Internet的地址