имеется радиоинет циска 350 (an0 в системе)
переодически перестают уходить покеты, при этом входящие продолжают идти...ядрос скомпилино с опциями:
options IPFIREWALL
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT=100
options IPFIREWALL_FORWARD
options IPFIREWALL_FORWARD_EXTENDED
options DUMMYNET
options IPDIVERT
4 интерфейса через ipfw и nat маршрутизируются на an0
ширина канала 512кбит (режется на шлюзе у провайдера)
в ipfw юзается check-state и keep-state
вот фрагмент для примера:
${ipfw} add 500 check-state
${ipfw} add 510 allow ip from me to any keep-state
другое:
root@r1# ping 81.30.199.222
PING 81.30.199.222 (81.30.199.222): 56 data bytes
ping: sendto: No buffer space available
root@r1# netstat -w 1 -I an0 -d
input (an0) output
packets errs bytes packets errs bytes colls drops
6 0 612 0 0 0 0 9
7 0 699 0 0 0 0 5
5 0 350 0 0 0 0 12
3 0 180 0 0 0 0 3
3 0 368 0 0 0 0 12
5 0 364 0 0 0 0 6
5 0 364 0 0 0 0 7
6 0 442 0 0 0 0 6
7 0 713 0 0 0 0 6
7 0 516 0 0 0 0 4
root@r1# /sbin/ifconfig an0
an0: flags=8847<UP,BROADCAST,DEBUG,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::20c:85ff:fe4a:be5d%an0 prefixlen 64 scopeid 0x5
inet 81.30.x.x netmask 0xffffffe0 broadcast 81.30.x.x
inet 10.0.0.1 netmask 0xffffffff broadcast 10.0.0.1
inet 10.0.0.2 netmask 0xffffffff broadcast 10.0.0.2
inet 10.192.38.200 netmask 0xffffffff broadcast 10.192.38.200
ether 00:0c:85:4a:be:5d
media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps)
status: associated
ssid 1:EagLE channel 11
stationname FreeBSD
authmode OPEN privacy OFF deftxkey 1 txpowmax 0 rtsthreshold 0
mcastrate 0 fragthreshold 0 roaming DEVICE
(следующее сделано после рестарта сетевой)
root@r1# netstat -m
133/647/780 mbufs in use (current/cache/total)
129/449/578/6848 mbuf clusters in use (current/cache/total/max)
0/256 mbuf+clusters out of packet secondary zone in use (current/cache)
0/0/0/0 4k (page size) jumbo clusters in use (current/cache/total/max)
0/0/0/0 9k jumbo clusters in use (current/cache/total/max)
0/0/0/0 16k jumbo clusters in use (current/cache/total/max)
291K/1059K/1351K bytes allocated to network (current/cache/total)
0/2803/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters)
0/0/0 requests for jumbo clusters denied (4k/9k/16k)
0/7/1968 sfbufs in use (current/peak/max)
0 requests for sfbufs denied
0 requests for sfbufs delayed
0 requests for I/O initiated by sendfile
12497 calls to protocol drain routines