Hello,
I've installed FreeBSD 9.0-Beta 3 and then patched it up to FreeBSD 9.0-RELEASE. Next I've recompiled the kernel to include ALTQ support in kernel. There are 2 NICs in my server, both are Intel. One of them uses the em driver, other uses igb.
So I've started the pf with this simple config:
And here we go. I go to check how does it work to the speedtest.net site and it takes ages to connect to it. Then it shows download speed about 0,01 Mbit/sec and kind of random upload. It goes even further: latency from local network to the router becomes around 1000 ms (and then just fails to ping it, says unreachable). The next step is - OSPF and BGP sessions go down.
pftop shows that queues are up and some traffic passes by.
As soon as I switch cables to the integrated NIC, change the config files to use em and reboot the server - everything goes fine.
Can someone help me to resolve it or it is not supported really?
I've installed FreeBSD 9.0-Beta 3 and then patched it up to FreeBSD 9.0-RELEASE. Next I've recompiled the kernel to include ALTQ support in kernel. There are 2 NICs in my server, both are Intel. One of them uses the em driver, other uses igb.
So I've started the pf with this simple config:
Code:
set optimization aggressive
set skip on lo0
scrub in all
altq on igb0 cbq bandwidth 1000Mb queue {std_up}
queue std_up bandwidth 5Mb cbq (default ecn)
altq on igb1 cbq bandwidth 1000Mb queue {std_down}
queue std_down bandwidth 5Mb cbq (default ecn)
nat on vlan1041 from {vlan1112:network} to any -> $lan_wrk_ext
pass in quick from 178.21.240.249
block in log all
pass out
#discard traffic from or to bogon nets on external interfaces
block drop in log quick on $ext_if from $priv_nets to any
block drop out log quick on $ext_if from any to $priv_nets
#drop any ipv6 as not implemented in our net
block drop in log quick proto ipv6
#allow poc network to pass
pass in on vlan10 from vlan10:network
#allow ping
pass in on vlan1041 proto icmp from any
#allow incomming connections from our tower,juniper and roman
pass in on vlan1041 from $my to $gw
pass in on vlan1041 from 178.21.240.249
#discard traffic from or to bogon nets on external interfaces
block drop in log quick on $ext_if from $priv_nets to any
block drop out log quick on $ext_if from any to $priv_nets
#drop any ipv6 as not implemented in our net
block drop in log quick proto ipv6
#allow poc network to pass
pass in on vlan10 from vlan10:network
#allow ping
pass in on vlan1041 proto icmp from any
#allow incomming connections from our tower,juniper and roman
pass in on vlan1041 from $my to $gw
pass in on vlan1041 from 178.21.240.249
################## LAN RULES #########################
pass in on vlan1112 from vlan1112:network no state
############### out
pass out on vlan1041 from 178.21.240.242 queue std_up
pass out on vlan1112 to vlan1112:network queue std_down no state
pftop shows that queues are up and some traffic passes by.
As soon as I switch cables to the integrated NIC, change the config files to use em and reboot the server - everything goes fine.
Can someone help me to resolve it or it is not supported really?