gz4z 发表于 2012-8-26 09:39:18

请教mangle标记的问题

本帖最后由 gz4z 于 2012-8-26 09:40 编辑

1、
add action=mark-connection chain=prerouting comment=File disabled=yes \
    layer7-protocol=File new-connection-mark=File-conn passthrough=yes
add action=mark-packet chain=prerouting connection-mark=File-conn disabled=\
    yes new-packet-mark=File-down passthrough=no src-address-type=!local
add action=mark-packet chain=postrouting connection-mark=File-conn disabled=\
    yes new-packet-mark=File-up passthrough=no src-address-list=Online

----------------------------------------------------------------------------------
2、
add action=mark-connection chain=prerouting comment=File disabled=yes \
    layer7-protocol=File new-connection-mark=File-conn passthrough=yes
add action=mark-packet chain=prerouting connection-mark=File-conn disabled=\
    yes new-packet-mark=File passthrough=no

以上两个标记file的脚本,第一个脚本上传、下载分开标记包,第二个脚本不分开标记。用那一个好点?(有必要分开标记吗?)
页: [1]
查看完整版本: 请教mangle标记的问题