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

566 пользователей проголосовало

  1. 1. Для блокировка используем



Блокировка сайтов провайдерами маневры с DNS

У patch параметры есть и вроде как все прописанр в make-файле...

Таким макаром можно ждать и cat часа 2-3 :D

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

Пробую завести на таком железе:

 

lspci | grep Eth
00:19.0 Ethernet controller: Intel Corporation 82567LM-2 Gigabit Network Connection
01:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection
04:00.0 Ethernet controller: Intel Corporation Ethernet Controller X710 for 10GbE SFP+ (rev 02)
04:00.1 Ethernet controller: Intel Corporation Ethernet Controller X710 for 10GbE SFP+ (rev 02)

 

2017-02-22 21:53:59.957 [3637] Information Application - Setting mbuf size to 8191
2017-02-22 21:54:00.168 [3637] Debug Application - HTTP code set to 302 Moved Temporarily
2017-02-22 21:54:00.168 [3637] Debug Application - URL additional info set to url
2017-02-22 21:54:00.168 [3637] Fatal Application - Couldn't open DPDK device #0, PMD ''
2017-02-22 21:54:00.168 [3637] Debug Application - Shutting down
2017-02-22 21:54:00.168 [3637] Debug Application - Uninitializing subsystem: Logging Subsystem

 

 

В коде pcap++ что-то связанное с очередями.

 

// go over all devices and open them
	for (std::vector<pcpp::DpdkDevice*>::iterator iter = dpdkDevicesToUse.begin(); iter != dpdkDevicesToUse.end(); iter++)
	{
		//std::cout << "total num of rx queue: " << (*iter)->getTotalNumOfRxQueues() << " total num of tx queues: " << (*iter)->getTotalNumOfTxQueues() << std::endl;
		if (!(*iter)->openMultiQueues(_nbRxQueues, 1))
		{
			logger().fatal("Couldn't open DPDK device #%d, PMD '%s'", (*iter)->getDeviceId(), (*iter)->getPMDName());
			return Poco::Util::Application::EXIT_OK;
		}
	}

 

Network devices using DPDK-compatible driver
============================================
0000:04:00.1 'Ethernet Controller X710 for 10GbE SFP+' drv=igb_uio unused=i40e

Network devices using kernel driver
===================================
0000:00:19.0 '82567LM-2 Gigabit Network Connection' if=enp0s25 drv=e1000e unused=igb_uio *Active*
0000:01:00.0 '82574L Gigabit Network Connection' if=enp1s0 drv=e1000e unused=igb_uio

Other network devices
=====================
0000:04:00.0 'Ethernet Controller X710 for 10GbE SFP+' unused=i40e,igb_uio

 

modinfo /opt/dpdk-stable-16.07.2/build/kmod/igb_uio.ko
filename:       /opt/dpdk-stable-16.07.2/build/kmod/igb_uio.ko
author:         Intel Corporation
license:        GPL
description:    UIO driver for Intel IGB PCI cards
srcversion:     47AE41AD0F20FAA13A85D76
depends:        uio
vermagic:       4.4.50-1.el7.elrepo.x86_64 SMP mod_unload modversions
parm:           intr_mode:igb_uio interrupt mode (default=msix):
   msix       Use MSIX interrupt
   legacy     Use Legacy interrupt

(charp)

Изменено пользователем hsvt

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

У меня на такой же сетевой карте завелось на предыдущей версии extfilter.

С новой пока не разбирался.

Какая у Вас OS, ядро?

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

У меня на такой же сетевой карте завелось на предыдущей версии extfilter.

С новой пока не разбирался.

Какая у Вас OS, ядро?

 

el7 4.4.50-1.el7.elrepo.x86_64, всё классически). Похоже дело в драйвере или отсуствии RSS\Queue ?

 

modinfo i40e
filename:       /lib/modules/4.4.50-1.el7.elrepo.x86_64/updates/drivers/net/ethernet/intel/i40e/i40e.ko
version:        1.6.42
license:        GPL
description:    Intel(R) 40-10 Gigabit Ethernet Connection Network Driver
author:         Intel Corporation, <e1000-devel@lists.sourceforge.net>
srcversion:     1AA25F119771CAF92B4DC1E
alias:          pci:v00008086d0000158Bsv*sd*bc*sc*i*
alias:          pci:v00008086d0000158Asv*sd*bc*sc*i*
alias:          pci:v00008086d00001588sv*sd*bc*sc*i*
alias:          pci:v00008086d00001587sv*sd*bc*sc*i*
alias:          pci:v00008086d00001589sv*sd*bc*sc*i*
alias:          pci:v00008086d00001586sv*sd*bc*sc*i*
alias:          pci:v00008086d00001585sv*sd*bc*sc*i*
alias:          pci:v00008086d00001584sv*sd*bc*sc*i*
alias:          pci:v00008086d00001583sv*sd*bc*sc*i*
alias:          pci:v00008086d00001581sv*sd*bc*sc*i*
alias:          pci:v00008086d00001580sv*sd*bc*sc*i*
alias:          pci:v00008086d00001574sv*sd*bc*sc*i*
alias:          pci:v00008086d00001572sv*sd*bc*sc*i*
depends:        ptp,vxlan
vermagic:       4.4.50-1.el7.elrepo.x86_64 SMP mod_unload modversions
parm:           debug:Debug level (0=none,...,16=all) (int)

 

Попробую сейчас обновить драйвер, потому как не вижу ни каких доступных настроек для модуля сетевой...

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

Если надо конфиг Кваги обновлять, в make_files.pl:

my $update_soft_quagga=1;

 

>останавливаю bgpd, скрипт отрабатывает, но в конфиге bgpd.conf без изменений

Обновление конфига идет через vtysh,

и конфиг висит в памяти bgpd без записи в bgpd.conf до "write mem"

bgpd и zebra - разные процессы и имеют разные конфиги.

 

>Can't open configuration file /etc/quagga/zebra.conf.lkGNMS.

проверяйте права на /etc/quagga/ и /etc/quagga/zebra.conf

 

Соответственно, если wr mem не проходит - рабочий конфиг в памяти будет верным, но не сохраненным.

От кого запушена zebra/bgpd ? Кто owner и какие права на /etc/quagga/ ?

при запущенном bgpd скрипт make_files.pl виснет, где то через 7 секунд в цикле 522 строки

foreach my $ip (keys %ips_to_add)
{
print $wtr "network $ip\n";
$outb=<$rdr>;
}

добавил счётчик в цикл, виснет где то на 7026 раз иногда чуть больше

 

права победил, selinux да будь он проклят =))

 

если vtysh работает с зеброй и конфигурит её, так причём тут bgpd? может его вообще отключить? я честно говоря в этом не очень силён, поясните

Изменено пользователем yKpon

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

при запущенном bgpd скрипт make_files.pl виснет, где то через 7 секунд в цикле 522 строки

foreach my $ip (keys %ips_to_add)

добавил счётчик в цикл, виснет где то на 7026 раз иногда чуть больше

если vtysh работает с зеброй и конфигурит её, так причём тут bgpd? может его вообще отключить? я честно говоря в этом не очень силён, поясните

 

Quagga состоит в случае для фильтрации от max1976 из двух демонов

- zebra

- bgpd

В примитиве: zebra - общий демон, bgpd - демон для bgp

Zebra - содержит маршруты для фильтрации в null (фильтрация по IP)

bgpd - используется для передачи маршрутов по bgp соседним роутерам для перенаправления трафика на фильтр

vtysh - лишь общая управляшка для передачи частей конфига в zebra и bgpd соответственно

 

Если хост с фильтрацией используется как транзитный - bgpd не нужен и вместо zebra можно прикрутить iptables(ipfw/pf)

 

В прошлогодней версии (~ май 2016) make_files.pl от max1976 была похожая проблема с передачей конфига в vtysh, но она была найдена max1976 и исправлена

Проверьте, что версия make_files.pl последняя.

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

Quagga состоит в случае для фильтрации от max1976 из двух демонов

- zebra

- bgpd

В примитиве: zebra - общий демон, bgpd - демон для bgp

Zebra - содержит маршруты для фильтрации в null (фильтрация по IP)

bgpd - используется для передачи маршрутов по bgp соседним роутерам для перенаправления трафика на фильтр

vtysh - лишь общая управляшка для передачи частей конфига в zebra и bgpd соответственно

 

Если хост с фильтрацией используется как транзитный - bgpd не нужен и вместо zebra можно прикрутить iptables(ipfw/pf)

 

В прошлогодней версии (~ май 2016) make_files.pl от max1976 была похожая проблема с передачей конфига в vtysh, но она была найдена max1976 и исправлена

Проверьте, что версия make_files.pl последняя.

AN111, благодарю за пояснение, стало более менее понятно, мне нужна рабочая зебра и отключенный bgpd

 

сегодня по отчётам пропускаются 2 URL

 

_http://www.is-news.com/2016/12/20/الاصدار-المرئي-فوارس-الرمضاء-sortie-visuelle-poele-fuwaris-new-video/#

_http://www.shortnews.de/beamto/uwww.artnet.de%2FWebServices%2Fimages%2Fll01194lldjRoGFgSJOJ3CfDrCWvaHBOcE30C%2Fjock-sturges-portrait-of-sophie%2C-mylene%2C-charlotte%2C-alice%2C-estelle%2C-et-cecile%2C-montalivet%2C-france.jpg

 

(добавил подчерк _)

 

в выгрузке и в базе мускула url есть - не блокируется

Изменено пользователем yKpon

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

Всем привет. Подскажите, хочу опробовать фильтрацию трафика. Что то слегка не понял что использовать:

extfilter или nfqfilter

 

Последнее пробовал собрать на убунте, не собралось с кучей ошибок.

 

Хочу фильтровать по списку от нашего правительства да и по другим черным спискам.

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

у меня выдает такое:

# make
Making all in src
make[1]: Entering directory '/home/nfqfilter/src'
g++ -DHAVE_CONFIG_H -I. -I../include  -I../nDPI/src/include   -std=c++0x -O2 -pthread -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.cpp
In file included from /usr/include/Poco/Util/ServerApplication.h:44:0,
                from ../include/main.h:23,
                from main.cpp:23:
/usr/include/Poco/Util/Application.h:358:35: error: ‘typedef class std::vector<std::__cxx11::basic_string<char> > Poco::Util::Application::ArgVec’ is private
 typedef std::vector<std::string> ArgVec;
                                  ^
In file included from main.cpp:23:0:
../include/main.h:150:17: error: within this context
 int main(const ArgVec& args);
                ^
main.cpp: In member function ‘virtual void nfqFilter::initialize(Poco::Util::Application&)’:
main.cpp:125:60: error: no matching function for call to ‘Poco::Logger::debug(const char [30], std::__cxx11::string&)’
 logger().debug("URL additional info set to %s", add_p_type);
                                                           ^
In file included from /usr/include/Poco/Util/Application.h:48:0,
                from /usr/include/Poco/Util/ServerApplication.h:44,
                from ../include/main.h:23,
                from main.cpp:23:
/usr/include/Poco/Logger.h:415:13: note: candidate: void Poco::Logger::debug(const string&)
inline void Logger::debug(const std::string& msg)
            ^
/usr/include/Poco/Logger.h:415:13: note:   candidate expects 1 argument, 2 provided
/usr/include/Poco/Logger.h:469:13: note: candidate: bool Poco::Logger::debug() const
inline bool Logger::debug() const
            ^
/usr/include/Poco/Logger.h:469:13: note:   candidate expects 0 arguments, 2 provided
main.cpp:132:50: error: no matching function for call to ‘Poco::Logger::debug(const char [20], std::__cxx11::string&)’
  logger().debug("HTTP code set to %s", http_code);
                                                 ^
In file included from /usr/include/Poco/Util/Application.h:48:0,
                from /usr/include/Poco/Util/ServerApplication.h:44,
                from ../include/main.h:23,
                from main.cpp:23:
/usr/include/Poco/Logger.h:415:13: note: candidate: void Poco::Logger::debug(const string&)
inline void Logger::debug(const std::string& msg)
            ^
/usr/include/Poco/Logger.h:415:13: note:   candidate expects 1 argument, 2 provided
/usr/include/Poco/Logger.h:469:13: note: candidate: bool Poco::Logger::debug() const
inline bool Logger::debug() const
            ^
/usr/include/Poco/Logger.h:469:13: note:   candidate expects 0 arguments, 2 provided
main.cpp:147:69: error: no matching function for call to ‘Poco::Logger::information(const char [25], int&)’
 logger().information("Starting up on queue: %d",_config.queueNumber);
                                                                    ^
In file included from /usr/include/Poco/Util/Application.h:48:0,
                from /usr/include/Poco/Util/ServerApplication.h:44,
                from ../include/main.h:23,
                from main.cpp:23:
/usr/include/Poco/Logger.h:409:13: note: candidate: void Poco::Logger::information(const string&)
inline void Logger::information(const std::string& msg)
            ^
/usr/include/Poco/Logger.h:409:13: note:   candidate expects 1 argument, 2 provided
/usr/include/Poco/Logger.h:463:13: note: candidate: bool Poco::Logger::information() const
inline bool Logger::information() const
            ^
/usr/include/Poco/Logger.h:463:13: note:   candidate expects 0 arguments, 2 provided
In file included from /usr/include/Poco/Util/ServerApplication.h:44:0,
                from ../include/main.h:23,
                from main.cpp:23:
/usr/include/Poco/Util/Application.h: In member function ‘virtual int nfqFilter::main(const ArgVec&)’:
/usr/include/Poco/Util/Application.h:358:35: error: ‘typedef class std::vector<std::__cxx11::basic_string<char> > Poco::Util::Application::ArgVec’ is private
 typedef std::vector<std::string> ArgVec;
                                  ^
main.cpp:261:27: error: within this context
int nfqFilter::main(const ArgVec& args)
                          ^
main.cpp: In member function ‘void nfqFilter::loadDomains(std::__cxx11::string&, AhoCorasickPlus*, DomainsMatchType*)’:
main.cpp:312:86: error: no matching function for call to ‘Poco::Logger::warning(const char [51], std::__cxx11::string&, std::__cxx11::string&)’
      logger().warning("Pattern '%s' already present database from file %s",insert,fn);
                                                                                     ^
In file included from /usr/include/Poco/Util/Application.h:48:0,
                from /usr/include/Poco/Util/ServerApplication.h:44,
                from ../include/main.h:23,
                from main.cpp:23:
/usr/include/Poco/Logger.h:397:13: note: candidate: void Poco::Logger::warning(const string&)
inline void Logger::warning(const std::string& msg)
            ^
/usr/include/Poco/Logger.h:397:13: note:   candidate expects 1 argument, 3 provided
/usr/include/Poco/Logger.h:451:13: note: candidate: bool Poco::Logger::warning() const
inline bool Logger::warning() const
            ^
/usr/include/Poco/Logger.h:451:13: note:   candidate expects 0 arguments, 3 provided
main.cpp:314:85: error: no matching function for call to ‘Poco::Logger::error(const char [45], std::__cxx11::string&, int&, std::__cxx11::string&)’
      logger().error("Failed to add '%s' from line %d from file %s",insert,lineno,fn);
                                                                                    ^
In file included from /usr/include/Poco/Util/Application.h:48:0,
                from /usr/include/Poco/Util/ServerApplication.h:44,
                from ../include/main.h:23,
                from main.cpp:23:
/usr/include/Poco/Logger.h:391:13: note: candidate: void Poco::Logger::error(const string&)
inline void Logger::error(const std::string& msg)
            ^
/usr/include/Poco/Logger.h:391:13: note:   candidate expects 1 argument, 4 provided
/usr/include/Poco/Logger.h:445:13: note: candidate: bool Poco::Logger::error() const
inline bool Logger::error() const
            ^
/usr/include/Poco/Logger.h:445:13: note:   candidate expects 0 arguments, 4 provided
main.cpp:320:85: error: no matching function for call to ‘Poco::Logger::debug(const char [48], std::__cxx11::string&, int&, std::__cxx11::string&)’
      logger().debug("Inserted domain: '%s' from line %d from file %s",str,lineno,fn);
                                                                                    ^
In file included from /usr/include/Poco/Util/Application.h:48:0,
                from /usr/include/Poco/Util/ServerApplication.h:44,
                from ../include/main.h:23,
                from main.cpp:23:
/usr/include/Poco/Logger.h:415:13: note: candidate: void Poco::Logger::debug(const string&)
inline void Logger::debug(const std::string& msg)
            ^
/usr/include/Poco/Logger.h:415:13: note:   candidate expects 1 argument, 4 provided
/usr/include/Poco/Logger.h:469:13: note: candidate: bool Poco::Logger::debug() const
inline bool Logger::debug() const
            ^
/usr/include/Poco/Logger.h:469:13: note:   candidate expects 0 arguments, 4 provided
main.cpp:322:84: error: no matching function for call to ‘Poco::Logger::debug(const char [47], std::__cxx11::string&, int&, std::__cxx11::string&)’
      logger().debug("Updated domain: '%s' from line %d from file %s",str,lineno,fn);
                                                                                   ^
In file included from /usr/include/Poco/Util/Application.h:48:0,
                from /usr/include/Poco/Util/ServerApplication.h:44,
                from ../include/main.h:23,
                from main.cpp:23:
/usr/include/Poco/Logger.h:415:13: note: candidate: void Poco::Logger::debug(const string&)
inline void Logger::debug(const std::string& msg)
            ^
/usr/include/Poco/Logger.h:415:13: note:   candidate expects 1 argument, 4 provided
/usr/include/Poco/Logger.h:469:13: note: candidate: bool Poco::Logger::debug() const
inline bool Logger::debug() const
            ^
/usr/include/Poco/Logger.h:469:13: note:   candidate expects 0 arguments, 4 provided
main.cpp: In member function ‘void nfqFilter::loadURLs(std::__cxx11::string&, AhoCorasickPlus*)’:
main.cpp:360:94: error: no matching function for call to ‘Poco::Logger::warning(const char [62], std::__cxx11::string&, std::__cxx11::string&)’
      logger().warning("Pattern '%s' already present in the URL database from file %s",str,fn);
                                                                                             ^
In file included from /usr/include/Poco/Util/Application.h:48:0,
                from /usr/include/Poco/Util/ServerApplication.h:44,
                from ../include/main.h:23,
                from main.cpp:23:
/usr/include/Poco/Logger.h:397:13: note: candidate: void Poco::Logger::warning(const string&)
inline void Logger::warning(const std::string& msg)
            ^
/usr/include/Poco/Logger.h:397:13: note:   candidate expects 1 argument, 3 provided
/usr/include/Poco/Logger.h:451:13: note: candidate: bool Poco::Logger::warning() const
inline bool Logger::warning() const
            ^
/usr/include/Poco/Logger.h:451:13: note:   candidate expects 0 arguments, 3 provided
main.cpp:362:82: error: no matching function for call to ‘Poco::Logger::error(const char [45], std::__cxx11::string&, int&, std::__cxx11::string&)’
      logger().error("Failed to add '%s' from line %d from file %s",str,lineno,fn);
                                                                                 ^
In file included from /usr/include/Poco/Util/Application.h:48:0,
                from /usr/include/Poco/Util/ServerApplication.h:44,
                from ../include/main.h:23,
                from main.cpp:23:
/usr/include/Poco/Logger.h:391:13: note: candidate: void Poco::Logger::error(const string&)
inline void Logger::error(const std::string& msg)
            ^
/usr/include/Poco/Logger.h:391:13: note:   candidate expects 1 argument, 4 provided
/usr/include/Poco/Logger.h:445:13: note: candidate: bool Poco::Logger::error() const
inline bool Logger::error() const
            ^
/usr/include/Poco/Logger.h:445:13: note:   candidate expects 0 arguments, 4 provided
main.cpp: In member function ‘void nfqFilter::loadHosts(std::__cxx11::string&, IPPortMap*)’:
main.cpp:394:47: error: no matching function for call to ‘Poco::Logger::debug(const char [17], std::__cxx11::string&, std::__cxx11::string&)’
     logger().debug("IP is %s port %s",ip,port);
                                              ^
In file included from /usr/include/Poco/Util/Application.h:48:0,
                from /usr/include/Poco/Util/ServerApplication.h:44,
                from ../include/main.h:23,
                from main.cpp:23:
/usr/include/Poco/Logger.h:415:13: note: candidate: void Poco::Logger::debug(const string&)
inline void Logger::debug(const std::string& msg)
            ^
/usr/include/Poco/Logger.h:415:13: note:   candidate expects 1 argument, 3 provided
/usr/include/Poco/Logger.h:469:13: note: candidate: bool Poco::Logger::debug() const
inline bool Logger::debug() const
            ^
/usr/include/Poco/Logger.h:469:13: note:   candidate expects 0 arguments, 3 provided
main.cpp:397:45: error: no matching function for call to ‘Poco::Logger::debug(const char [19], std::__cxx11::string&)’
     logger().debug("IP %s without port", ip);
                                            ^
In file included from /usr/include/Poco/Util/Application.h:48:0,
                from /usr/include/Poco/Util/ServerApplication.h:44,
                from ../include/main.h:23,
                from main.cpp:23:
/usr/include/Poco/Logger.h:415:13: note: candidate: void Poco::Logger::debug(const string&)
inline void Logger::debug(const std::string& msg)
            ^
/usr/include/Poco/Logger.h:415:13: note:   candidate expects 1 argument, 2 provided
/usr/include/Poco/Logger.h:469:13: note: candidate: bool Poco::Logger::debug() const
inline bool Logger::debug() const
            ^
/usr/include/Poco/Logger.h:469:13: note:   candidate expects 0 arguments, 2 provided
main.cpp:406:57: error: no matching function for call to ‘Poco::Logger::debug(const char [24], std::__cxx11::string&, std::__cxx11::string&)’
      logger().debug("Adding port %s to ip %s", port, ip);
                                                        ^
In file included from /usr/include/Poco/Util/Application.h:48:0,
                from /usr/include/Poco/Util/ServerApplication.h:44,
                from ../include/main.h:23,
                from main.cpp:23:
/usr/include/Poco/Logger.h:415:13: note: candidate: void Poco::Logger::debug(const string&)
inline void Logger::debug(const std::string& msg)
            ^
/usr/include/Poco/Logger.h:415:13: note:   candidate expects 1 argument, 3 provided
/usr/include/Poco/Logger.h:469:13: note: candidate: bool Poco::Logger::debug() const
inline bool Logger::debug() const
            ^
/usr/include/Poco/Logger.h:469:13: note:   candidate expects 0 arguments, 3 provided
main.cpp:410:63: error: no matching function for call to ‘Poco::Logger::debug(const char [29], std::__cxx11::string&, int&)’
     logger().debug("Inserted ip: %s from line %d", ip, lineno);
                                                              ^
In file included from /usr/include/Poco/Util/Application.h:48:0,
                from /usr/include/Poco/Util/ServerApplication.h:44,
                from ../include/main.h:23,
                from main.cpp:23:
/usr/include/Poco/Logger.h:415:13: note: candidate: void Poco::Logger::debug(const string&)
inline void Logger::debug(const std::string& msg)
            ^
/usr/include/Poco/Logger.h:415:13: note:   candidate expects 1 argument, 3 provided
/usr/include/Poco/Logger.h:469:13: note: candidate: bool Poco::Logger::debug() const
inline bool Logger::debug() const
            ^
/usr/include/Poco/Logger.h:469:13: note:   candidate expects 0 arguments, 3 provided
main.cpp:412:75: error: no matching function for call to ‘Poco::Logger::debug(const char [37], std::__cxx11::string&, int&, std::__cxx11::string&)’
     logger().debug("Adding port %s from line %d to ip %s", port,lineno,ip);
                                                                          ^
In file included from /usr/include/Poco/Util/Application.h:48:0,
                from /usr/include/Poco/Util/ServerApplication.h:44,
                from ../include/main.h:23,
                from main.cpp:23:
/usr/include/Poco/Logger.h:415:13: note: candidate: void Poco::Logger::debug(const string&)
inline void Logger::debug(const std::string& msg)
            ^
/usr/include/Poco/Logger.h:415:13: note:   candidate expects 1 argument, 4 provided
/usr/include/Poco/Logger.h:469:13: note: candidate: bool Poco::Logger::debug() const
inline bool Logger::debug() const
            ^
/usr/include/Poco/Logger.h:469:13: note:   candidate expects 0 arguments, 4 provided
main.cpp: In member function ‘void nfqFilter::loadSSLIP(const string&, Patricia*)’:
main.cpp:440:102: error: no matching function for call to ‘Poco::Logger::information(const char [61], std::__cxx11::string&, int&)’
     logger().information("Unable to add IP address %s from line %d to the SSL IPs list", str, lineno);
                                                                                                     ^
In file included from /usr/include/Poco/Util/Application.h:48:0,
                from /usr/include/Poco/Util/ServerApplication.h:44,
                from ../include/main.h:23,
                from main.cpp:23:
/usr/include/Poco/Logger.h:409:13: note: candidate: void Poco::Logger::information(const string&)
inline void Logger::information(const std::string& msg)
            ^
/usr/include/Poco/Logger.h:409:13: note:   candidate expects 1 argument, 3 provided
/usr/include/Poco/Logger.h:463:13: note: candidate: bool Poco::Logger::information() const
inline bool Logger::information() const
            ^
/usr/include/Poco/Logger.h:463:13: note:   candidate expects 0 arguments, 3 provided
Makefile:390: recipe for target 'main.o' failed
make[1]: *** [main.o] Error 1
make[1]: Leaving directory '/home/nfqfilter/src'
Makefile:340: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

 

# uname -a

Linux nas 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

 

делал по инструкции

Сборка программы:

 

1 ./autogen.sh

2 ./configure

3 make

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

Все как в хелпере:

libnetfilter_queue

libnfnetlink

Poco

nDPI само собирается

git

patch

 

# dpkg -l | grep libpoco-dev

ii libpoco-dev 1.3.6p1-5.1build1 amd64 C++ Portable Components (POCO) Development files

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

poco-1.7.7-all.tar с сайта и все заработает. Ту, что с репозитория поставилась нужно удалить.

 

Себе я форк отсюда https://github.com/Vans1/nfqfilter ставил. Там nDPI последняя.

 

Профит в том, что файл protocols не нужен.

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

собралось.

если теперь из src запустить ./nfqfilter

./nfqfilter: error while loading shared libraries: libPocoNet.so.48: cannot open shared object file: No such file or directory

 

ldd nfqfilter

linux-vdso.so.1 => (0x00007ffdfb1eb000)

libnfnetlink.so.0 => /usr/lib/x86_64-linux-gnu/libnfnetlink.so.0 (0x00007fde3b625000)

libnetfilter_queue.so.1 => /usr/lib/x86_64-linux-gnu/libnetfilter_queue.so.1 (0x00007fde3b41e000)

libPocoNet.so.48 => not found

libPocoUtil.so.48 => not found

libPocoFoundation.so.48 => not found

libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fde3b09a000)

libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fde3ae84000)

libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fde3ac67000)

libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fde3a89d000)

libmnl.so.0 => /lib/x86_64-linux-gnu/libmnl.so.0 (0x00007fde3a697000)

libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fde3a38e000)

/lib64/ld-linux-x86-64.so.2 (0x000055cda3e33000)

 

хотя они лежат в

ls /usr/local/lib/

libPocoFoundationd.so libPocoJSONd.so libPocoNetd.so libPocoUtild.so libPocoXMLd.so python2.7

libPocoFoundationd.so.48 libPocoJSONd.so.48 libPocoNetd.so.48 libPocoUtild.so.48 libPocoXMLd.so.48 python3.5

libPocoFoundation.so libPocoJSON.so libPocoNet.so libPocoUtil.so libPocoXML.so

libPocoFoundation.so.48 libPocoJSON.so.48 libPocoNet.so.48 libPocoUtil.so.48 libPocoXML.so.48

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

Словил 2 дня подряд падение ExtFilter`a, причём примерно в одно время. Похоже скрипт не проверяет нормально, работает процесс или нет. Хотя само поднималось спустя несколько часов. Странно. В логах ничего криминального не увидал

 

PS:Ничего не понимаю, из-за чего падает, опять упал после часа работы, без объяснения причин в логах. Ребутнул сервак, слежу дальше

PS2: опять упал спустя 10 минут и так 3 раз уже

Где посмотреть, что с ним не так???

Изменено пользователем Antares

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

Ext на зеркале трафика исходящего работает, а нфк на бгп анонсах

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

Словил 2 дня подряд падение ExtFilter`a, причём примерно в одно время. Похоже скрипт не проверяет нормально, работает процесс или нет. Хотя само поднималось спустя несколько часов. Странно. В логах ничего криминального не увидал

 

PS:Ничего не понимаю, из-за чего падает, опять упал после часа работы, без объяснения причин в логах. Ребутнул сервак, слежу дальше

PS2: опять упал спустя 10 минут и так 3 раз уже

Где посмотреть, что с ним не так???

Вот всё что в messages попадает в момент падения

Feb 26 17:00:38 ExtFilter systemd: extfilter.service: main process exited, code=killed, status=6/ABRT
Feb 26 17:00:38 ExtFilter systemd: Unit extfilter.service entered failed state.
Feb 26 17:00:38 ExtFilter systemd: extfilter.service failed.

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Гость
Ответить в тему...

×   Вставлено в виде отформатированного текста.   Вставить в виде обычного текста

  Разрешено не более 75 смайлов.

×   Ваша ссылка была автоматически встроена.   Отобразить как ссылку

×   Ваш предыдущий контент был восстановлен.   Очистить редактор

×   Вы не можете вставить изображения напрямую. Загрузите или вставьте изображения по ссылке.