не получается заставить работать ng_netflow
Запускаю скрипт
#!/bin/sh
kldload ng_netflow
kldload ng_tee
kldload ng_ether
ngctl -f- <<-SEQ
mkpeer em0: tee lower right
connect em0: em0:lower upper left
mkpeer em0:lower netflow right2left iface0
name em0:lower.right2left netflow
mkpeer netflow: ksocket export inet/dgram/udp
msg netflow:export connect inet/10.1.1.1:4444
Вот что выдает
ngctl: send msg: No such file or directory
ngctl: line 2: error in file
Пробую смотреть что по ngctl
+ list
There are 15 total nodes:
Name: ngctl770 Type: socket ID: 00000041 Num hooks: 0
Name: <unnamed> Type: socket ID: 0000000f Num hooks: 1
Name: <unnamed> Type: vjc ID: 0000000e Num hooks: 4
Name: <unnamed> Type: bpf ID: 0000000d Num hooks: 3
Name: mpd419-pppoe1 Type: ppp ID: 0000000c Num hooks: 6
Name: ng1 Type: iface ID: 0000000b Num hooks: 1
Name: <unnamed> Type: socket ID: 0000000a Num hooks: 2
Name: <unnamed> Type: pppoe ID: 00000009 Num hooks: 2
Name: <unnamed> Type: vjc ID: 00000007 Num hooks: 4
Name: <unnamed> Type: bpf ID: 00000006 Num hooks: 3
Name: mpd419-pppoe0 Type: ppp ID: 00000005 Num hooks: 6
Name: ng0 Type: iface ID: 00000004 Num hooks: 1
Name: <unnamed> Type: socket ID: 00000003 Num hooks: 2
Name: fxp0 Type: ether ID: 00000002 Num hooks: 1
Name: em0 Type: ether ID: 00000001 Num hooks: 0
если сделать
+ show em0
ngctl: send msg: No such file or directory
+ show [1]
ngctl: send msg: No such file or directory
Cистема
FreeBSD 5.4-RELEASE-p7
При пересборке ядра указал следующее
options NETGRAPH #netgraph(4) system
options NETGRAPH_ASYNC
options NETGRAPH_BPF
options NETGRAPH_BRIDGE
options NETGRAPH_CISCO
options NETGRAPH_ECHO
options NETGRAPH_ETHER
#options NETGRAPH_FRAME_RELAY
#options NETGRAPH_GIF
#options NETGRAPH_GIF_DEMUX
options NETGRAPH_HOLE
options NETGRAPH_IFACE
options NETGRAPH_IP_INPUT
options NETGRAPH_KSOCKET
options NETGRAPH_L2TP
options NETGRAPH_LMI
# MPPC compression requires proprietary files (not included)
#options NETGRAPH_MPPC_COMPRESSION
options NETGRAPH_MPPC_ENCRYPTION
options NETGRAPH_ONE2MANY
options NETGRAPH_PPP
options NETGRAPH_PPPOE
options NETGRAPH_PPTPGRE
options NETGRAPH_RFC1490
options NETGRAPH_SOCKET
options NETGRAPH_SPLIT
options NETGRAPH_TEE
options NETGRAPH_TTY
options NETGRAPH_UI
options NETGRAPH_VJC
Что сделал не так подскажите