你描述的不是很清晰,我随便说说。这里做如下假设:你要禁止内部网络对外部网络端口号为6000的访问,内网网段为:192.168.1.0。相关配置如下:
System View: return to User View with Ctrl+Z.
[router]acl number 3600 (创建访问列表,匹配数据)
[router-acl-adv-3600]rule 10 deny tcp source 192.168.1.0 0.0.0.255 destination 0.0.0.0 255.255.255.255 destination-port eq 6000
[router-acl-adv-3600]rule 20 deny udp source 192.168.1.0 0.0.0.255 destination 0.0.0.0 255.255.255.255 destination-port eq 6000 (创建对外网端口为6000的匹配规则,如有多个端口则创建多个规则)
interface Ethernet0/0 (进入外网口)
[router-Ethernet0/0]firewall packet-filter 3600 outbound (在出方向对数据过滤)
[router]save (保存)