сейчас остановился на таких правилах:
${f} pipe 40 config bw 40Mbit/s queue 30
${f} queue 1 config pipe 40 weight 99
${f} queue 2 config pipe 40 weight 75
${f} queue 3 config pipe 40 weight 50
${f} queue 4 config pipe 40 weight 1
${f} add 32540 queue 1 tcp from any 80 to any via tun0 in
${f} add 32540 queue 1 tcp from any 80 to any via tun1 in
${f} add 32541 queue 2 udp from any 2106,3724,7777,8085 to any via tun0 in
${f} add 32541 queue 2 udp from any 2106,3724,7777,8085 to any via tun1 in
${f} add 32542 queue 3 tcp from any to any via tun0 in
${f} add 32542 queue 3 tcp from any to any via tun1 in
${f} add 32543 queue 4 udp from any to any via tun0 in
${f} add 32543 queue 4 udp from any to any via tun1 in
и траф по ним вроде бегает:
32540 20726453 23128609512 queue 1 tcp from any 80 to any via tun0 in
32540 21635461 23982495114 queue 1 tcp from any 80 to any via tun1 in
32541 11628 15867668 queue 2 udp from any 2106,3724,7777,8085 to any via tun0 in
32541 138 16533 queue 2 udp from any 2106,3724,7777,8085 to any via tun1 in
32542 20755118 15702306794 queue 3 tcp from any to any via tun0 in
32542 16549396 11829664958 queue 3 tcp from any to any via tun1 in
32543 22720756 18918734813 queue 4 udp from any to any via tun0 in
32543 24017243 19314173417 queue 4 udp from any to any via tun1 in
и
net.inet.ip.fw.one_pass: 1
я прописываю праила но после ребута применяются только
${f} add 32540 queue 1 tcp from any 80 to any via tun0 in
${f} add 32540 queue 1 tcp from any 80 to any via tun1 in
${f} add 32541 queue 2 udp from any 2106,3724,7777,8085 to any via tun0 in
${f} add 32541 queue 2 udp from any 2106,3724,7777,8085 to any via tun1 in
${f} add 32542 queue 3 tcp from any to any via tun0 in
${f} add 32542 queue 3 tcp from any to any via tun1 in
${f} add 32543 queue 4 udp from any to any via tun0 in
${f} add 32543 queue 4 udp from any to any via tun1 in
а пайп и очереди не создаются ....