Перейти к содержимому
Калькуляторы

felixio_01

Пользователи
  • Публикации

    35
  • Зарегистрирован

  • Посещение

О felixio_01

  • Звание
    Абитуриент
    Абитуриент

Посетители профиля

Блок посетителей профиля отключен и не будет отображаться другим пользователям

  1. конечно. ls /usr/src/linux-headers-4.19.0-6-amd64 arch include Makefile Module.symvers scripts tools
  2. И снова здравствуйте! )))) Уважаемые, помогите советом, может кто сталкивался.... Пробую компилировать ipt_netflow, но вываливается с ошибкой. ./configure --enable-natevents --enable-macaddress --enable-vlan --enable-direction --enable-aggregation --enable-physdev --enable-promisc Kernel version: 4.19.67 (proc) Kernel sources: /lib/modules/4.19.0-6-amd64/build (found) Checking for presence of include/linux/netfilter.h... Yes netfilter.h uses CONFIG_NF_NAT_NEEDED... Yes Checking for presence of include/linux/llist.h... Yes Checking for presence of include/linux/grsecurity.h... No Iptables binary version: 1.8.2 (nf_tables) (detected from /usr/sbin/iptables) pkg-config for version 1.8.2 (nf_tables) exists: No (reported: 1.8.2) Check for working gcc: Yes (gcc) Checking for presence of xtables.h... Yes Searching for iptables-1.8.2 (nf_tables) sources.. ! Can not find iptables source directory, you may try setting it with --ipt-src= ! This is not fatal error, yet. Will be just using default include dir. Iptables include flags: none (default) Iptables module path: /usr/lib/x86_64-linux-gnu/xtables (from libxtables.so, from binary) Searching for net-snmp-config... No. Searching for net-snmp agent... No. Assuming you don't want net-snmp agent support. Otherwise do: apt-get install snmpd libsnmp-dev Checking for DKMS... Yes. Creating Makefile.. done. If you need some options enabled run ./configure --help Now run: make all install далее /ipt-netflow/ipt-netflow$ sudo make all install ./gen_compat_def > compat_def.h Compiling for kernel 4.19.67 make -C /lib/modules/4.19.0-6-amd64/build M=/home/eldar/ipt-netflow/ipt-netflow modules CONFIG_DEBUG_INFO=y make[1]: Entering directory '/usr/src/linux-headers-4.19.0-6-amd64' CC [M] /ipt-netflow/ipt-netflow/ipt_NETFLOW.o /ipt-netflow/ipt-netflow/ipt_NETFLOW.c: In function ‘netflow_target’: /ipt-netflow/ipt-netflow/ipt_NETFLOW.c:5259:7: error: implicit declaration of function ‘nf_bridge_info_get’; did you mean ‘nf_bridge_get’? [-Werror=implicit-function-declaration] if (nf_bridge_info_get(skb) && nf_bridge_info_get(skb)->physdev) \ ^~~~~~~~~~~~~~~~~~ /ipt-netflow/ipt-netflow/ipt_NETFLOW.c:5264:3: note: in expansion of macro ‘copy_dev’ copy_dev(nf->o_ifphys, physoutdev, if_out); ^~~~~~~~ /ipt-netflow/ipt-netflow/ipt_NETFLOW.c:5259:57: error: invalid type argument of ‘->’ (have ‘int’) if (nf_bridge_info_get(skb) && nf_bridge_info_get(skb)->physdev) \ ^~ /ipt-netflow/ipt-netflow/ipt_NETFLOW.c:5264:3: note: in expansion of macro ‘copy_dev’ copy_dev(nf->o_ifphys, physoutdev, if_out); ^~~~~~~~ /ipt-netflow/ipt-netflow/ipt_NETFLOW.c:5260:46: error: invalid type argument of ‘->’ (have ‘int’) out = resolve_snmp(nf_bridge_info_get(skb)->physdev); \ ^~ /ipt-netflow/ipt-netflow/ipt_NETFLOW.c:5255:30: note: in definition of macro ‘resolve_snmp’ # define resolve_snmp(dev) ((dev)? (dev)->ifindex : -1) ^~~ /ipt-netflow/ipt-netflow/ipt_NETFLOW.c:5264:3: note: in expansion of macro ‘copy_dev’ copy_dev(nf->o_ifphys, physoutdev, if_out); ^~~~~~~~ /ipt-netflow/ipt-netflow/ipt_NETFLOW.c:5260:46: error: invalid type argument of ‘->’ (have ‘int’) out = resolve_snmp(nf_bridge_info_get(skb)->physdev); \ ^~ /ipt-netflow/ipt-netflow/ipt_NETFLOW.c:5255:37: note: in definition of macro ‘resolve_snmp’ # define resolve_snmp(dev) ((dev)? (dev)->ifindex : -1) ^~~ /ipt-netflow/ipt-netflow/ipt_NETFLOW.c:5264:3: note: in expansion of macro ‘copy_dev’ copy_dev(nf->o_ifphys, physoutdev, if_out); ^~~~~~~~ /ipt-netflow/ipt-netflow/ipt_NETFLOW.c:5259:57: error: invalid type argument of ‘->’ (have ‘int’) if (nf_bridge_info_get(skb) && nf_bridge_info_get(skb)->physdev) \ ^~ /ipt-netflow/ipt-netflow/ipt_NETFLOW.c:5265:3: note: in expansion of macro ‘copy_dev’ copy_dev(nf->i_ifphys, physindev, if_in); ^~~~~~~~ /ipt-netflow/ipt-netflow/ipt_NETFLOW.c:5260:46: error: invalid type argument of ‘->’ (have ‘int’) out = resolve_snmp(nf_bridge_info_get(skb)->physdev); \ ^~ /ipt-netflow/ipt-netflow/ipt_NETFLOW.c:5255:30: note: in definition of macro ‘resolve_snmp’ # define resolve_snmp(dev) ((dev)? (dev)->ifindex : -1) ^~~ /ipt-netflow/ipt-netflow/ipt_NETFLOW.c:5265:3: note: in expansion of macro ‘copy_dev’ copy_dev(nf->i_ifphys, physindev, if_in); ^~~~~~~~ /ipt-netflow/ipt-netflow/ipt_NETFLOW.c:5260:46: error: invalid type argument of ‘->’ (have ‘int’) out = resolve_snmp(nf_bridge_info_get(skb)->physdev); \ ^~ /ipt-netflow/ipt-netflow/ipt_NETFLOW.c:5255:37: note: in definition of macro ‘resolve_snmp’ # define resolve_snmp(dev) ((dev)? (dev)->ifindex : -1) ^~~ /ipt-netflow/ipt-netflow/ipt_NETFLOW.c:5265:3: note: in expansion of macro ‘copy_dev’ copy_dev(nf->i_ifphys, physindev, if_in); ^~~~~~~~ cc1: some warnings being treated as errors make[4]: *** [/usr/src/linux-headers-4.19.0-6-common/scripts/Makefile.build:315: /ipt-netflow/ipt-netflow/ipt_NETFLOW.o] Error 1 make[3]: *** [/usr/src/linux-headers-4.19.0-6-common/Makefile:1534: _module_/home/eldar/ipt-netflow/ipt-netflow] Error 2 make[2]: *** [Makefile:146: sub-make] Error 2 make[1]: *** [Makefile:8: all] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-4.19.0-6-amd64' make: *** [Makefile:25: ipt_NETFLOW.ko] Error 2 uname -a Linux gw2 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64 GNU/Linux
  3. Её моё, не дочитал документацию. Спасибо!
  4. нет, трафик не попадает в таблицу.
  5. Подскажите, что нужно исправить, что бы собиралась статистика и по трафику?
  6. Здравствуйте! Подскажите, в чём может быть проблема? В nfsen не отображаются графики в "Packets" и "Traffic". Графики "Flows" нормально отображаются. uname -a Linux gw3 3.16.0-4-amd64 #1 SMP Debian 3.16.51-3 (2017-12-13) x86_64 GNU/Linux nfsen-1.3.8 /usr/local/bin/nfdump: Version: NSEL-NEL1.6.18 modinfo -F version ipt_NETFLOW 2.4-12-g1519063 cat /etc/modprobe.d/ipt_NETFLOW.conf options ipt_NETFLOW destination=127.0.0.1:2055 protocol=9 natevents=1 sysctl -a | grep net.netflow net.netflow.active_timeout = 1800 net.netflow.aggregation = net.netflow.debug = 0 net.netflow.destination = 127.0.0.1:2055 net.netflow.flush = 0 net.netflow.hashsize = 491666 net.netflow.inactive_timeout = 15 net.netflow.maxflows = 2000000 net.netflow.natevents = 1 net.netflow.promisc = 0 net.netflow.protocol = 9 net.netflow.refresh-rate = 20 net.netflow.scan-min = 1 net.netflow.sndbuf = 16777216 net.netflow.timeout-rate = 30 ps -aux |grep nfcapd www-data 26689 0.0 0.1 40908 4528 ? S 11:25 0:00 /usr/local/bin/nfcapd -w -D -p 2055 -u www-data -g www-data -B 200000 -S 1 -P /etc/nfsen/var/run/p2055.pid -z -I gw3 -l /etc/nfsen/profiles-data/live/gw3 cat /etc/nfsen/etc/nfsen.conf $BASEDIR = "/etc/nfsen"; $LIBEXECDIR="${BASEDIR}/libexec"; $CONFDIR="${BASEDIR}/etc"; $HTMLDIR = "/var/www/nfsen/"; $DOCDIR="${HTMLDIR}/doc"; $VARDIR="${BASEDIR}/var"; $PROFILESTATDIR="${BASEDIR}/profiles-stat"; $PROFILEDATADIR="${BASEDIR}/profiles-data"; $BACKEND_PLUGINDIR="${BASEDIR}/plugins"; $FRONTEND_PLUGINDIR="${HTMLDIR}/plugins"; $PREFIX = '/usr/local/bin'; $USER = "www-data"; $WWWUSER = "www-data"; $WWWGROUP = "www-data"; $BUFFLEN = 200000; $SUBDIRLAYOUT = 1; $ZIPcollected = 1; $ZIPprofiles = 1; $PROFILERS = 2; $DISKLIMIT = 98; $PROFILERS = 6; %sources = ( 'gw3' => { 'port' => '2055', 'col' => '#0000ff', 'type' => 'netflow' }, ); $low_water = 90; $syslog_facility = 'local3'; @plugins = ( # profile # module # [ '*', 'demoplugin' ], ); %PluginConf = ( # For plugin demoplugin demoplugin => { # scalar param2 => 42, # hash param1 => { 'key' => 'value' }, }, # for plugin otherplugin otherplugin => [ # array 'mary had a little lamb' ], ); $MAIL_FROM = 'aeldarr@yandex.ru'; $SMTP_SERVER = 'localhost'; $MAIL_BODY = q{ Alert '@alert@' triggered at timeslot @timeslot@ }; 1;
  7. У нас также. Но есть же требования к этому формату, к наличию некоторых полей данных. Также нужно что бы данные выгружались инкрментно. Т.е., например, сначала выгрузка полных данных, а потом уже только данных абонентом, которые у которых были изменения.
  8. конечно в SQL. Проблема в том что слишком уж много требований к формату данных и к их содержимому. Вы видели техдокументацию выгружаемым данным от НОРСИ-ТРАНС? Советую, ознакомьтесь, там не всё так просто.