|
|
发表于 2004-8-4 09:52:57
|
显示全部楼层
|
对setup2的补充:[admin@MikroTik] ip firewall rule customer> printFlags: X - disabled, I - invalid 0 ;;; Allow established TCP connections src-address=0.0.0.0/0:0-65535 in-interface=all dst-address=0.0.0.0/0:0-65535 out-interface=all protocol=tcp icmp-options=any:any tcp-options=non-syn-only connection-state=established flow="" connection="" content="" src-mac-address=00:00:00:00:00:00 limit-count=0 limit-burst=0 limit-time=0s action=accept log=no 1 ;;; Allow UDP connections src-address=0.0.0.0/0:0-65535 in-interface=all dst-address=0.0.0.0/0:0-65535 out-interface=all protocol=udp icmp-options=any:any tcp-options=any connection-state=any flow="" connection="" content="" src-mac-address=00:00:00:00:00:00 limit-count=0 limit-burst=0 limit-time=0s action=accept log=no 2 ;;; Allow ICMP messages src-address=0.0.0.0/0:0-65535 in-interface=all dst-address=0.0.0.0/0:0-65535 out-interface=all protocol=icmp icmp-options=any:any tcp-options=any connection-state=any flow="" connection="" content="" src-mac-address=00:00:00:00:00:00 limit-count=0 limit-burst=0 limit-time=0s action=accept log=no 3 ;;; Allow http connections to the server at 192.168.0.17 src-address=0.0.0.0/0:0-65535 in-interface=all dst-address=192.168.0.17/32:80 out-interface=all protocol=tcp icmp-options=any:any tcp-options=syn-only connection-state=any flow="" connection="" content="" src-mac-address=00:00:00:00:00:00 limit-count=0 limit-burst=0 limit-time=0s action=accept log=no 4 ;;; Allow smtp connections to the server at 192.168.0.17 src-address=0.0.0.0/0:0-65535 in-interface=all dst-address=192.168.0.17/32:25 out-interface=all protocol=tcp icmp-options=any:any tcp-options=syn-only connection-state=any flow="" connection="" content="" src-mac-address=00:00:00:00:00:00 limit-count=0 limit-burst=0 limit-time=0s action=accept log=no 5 ;;; Allow ftp data connections from servers on the Internet src-address=0.0.0.0/0:20 in-interface=all dst-address=0.0.0.0/0:1024-65535 out-interface=all protocol=tcp icmp-options=any:any tcp-options=syn-only connection-state=any flow="" connection="" content="" src-mac-address=00:00:00:00:00:00 limit-count=0 limit-burst=0 limit-time=0s action=accept log=no 6 ;;; Reject and log everything else src-address=0.0.0.0/0:0-65535 in-interface=all dst-address=0.0.0.0/0:0-65535 out-interface=all protocol=all icmp-options=any:any tcp-options=any connection-state=any flow="" connection="" content="" src-mac-address=00:00:00:00:00:00 limit-count=0 limit-burst=0 limit-time=0s action=reject log=yes[admin@MikroTik] ip firewall rule customer>[admin@MikroTik] ip firewall rule forward> add out-interface=Local action=jump \\... jump-target=customer[admin@MikroTik] ip firewall rule forward> printFlags: X - disabled, I - invalid 0 src-address=0.0.0.0/0:0-65535 in-interface=all dst-address=0.0.0.0/0:0-65535 out-interface=Local protocol=all icmp-options=any:any tcp-options=any connection-state=any flow="" connection="" content="" src-mac-address=00:00:00:00:00:00 limit-count=0 limit-burst=0 limit-time=0s action=jump jump-target=customer log=no |
|