FreeBSD 11.2-RELEASE-p9 #0 r346216: Sat Apr 20 20:54:46 amd64
When shape ON speed 30Mbit/s
When shape OFF speed 90Mbit/s
Why, tell me please ?
On another servers work pefect.
Log for traffic
Rules
When shape ON speed 30Mbit/s
When shape OFF speed 90Mbit/s
Why, tell me please ?
On another servers work pefect.
Log for traffic
Code:
Apr 26 18:10:16 router kernel: ipfw: 100 Accept TCP 192.168.0.118:61728 64.xxx.xxx.99:443 in via vtnet1
Apr 26 18:10:16 router kernel: ipfw: 100 Accept TCP 185.xx.yyy.44:57046 64.xxx.xxx.99:443 out via vlan100
Apr 26 18:10:16 router kernel: ipfw: 100 Accept TCP 64.xxx.xxx.99:443 185.xxx.yyy.44:57046 in via vlan100
Apr 26 18:10:16 router kernel: ipfw: 100 Accept TCP 64.xxx.xxx.99:443 192.168.0.118:61728 out via vtnet1
Rules
Code:
fwcmd="/sbin/ipfw"
wan_iface="vlan100"
ip_srv_wan="185.xxx.yyy.44"
lan_net="192.168.0.0/24"
ip_srv_lan="192.168.0.1"
lan_iface="vtnet1"
ipfw_flags="-q"
${fwcmd} -f flush
${fwcmd} -f pipe flush
${fwcmd} -f queue flush
${fwcmd} pipe 71 config bw 92160Kbit/s mask dst-ip 0xffffffff
${fwcmd} pipe 72 config bw 92160Kbit/s mask src-ip 0xffffffff
${fwcmd} sched 71 config type QFQ
${fwcmd} sched 72 config type QFQ
${fwcmd} queue 71 config sched 71 weight 5
${fwcmd} queue 72 config sched 72 weight 5
# From LAN to INET
${fwcmd} ${ipfw_flags} add queue 72 ip from $lan_net to not $lan_net in via $lan_iface
# INET iface OUT
${fwcmd} ${ipfw_flags} add allow ip from $ip_srv_wan to not $lan_net out via $wan_iface
# INET iface IN
${fwcmd} ${ipfw_flags} add allow ip from not $lan_net to $ip_srv_wan in via $wan_iface
# From INET to LAN
${fwcmd} ${ipfw_flags} add queue 71 ip from not $lan_net to $lan_net out via $lan_iface
Last edited by a moderator: