Scanning dependencies of target ddosmon
[ 7%] Building CXX object CMakeFiles/ddosmon.dir/src/configmanager.cpp.o
In file included from <command-line>:0:
/usr/local/src/ddosmon-master/src/headers.h:74:17: error: lua.h: ±×·± ÆÄÀÏÀ̳ª µð·ºÅ͸®°¡ ¾ø½À´Ï´Ù
/usr/local/src/ddosmon-master/src/headers.h:75:21: error: lauxlib.h: ±×·± ÆÄÀÏÀ̳ª µð·ºÅ͸®°¡ ¾ø½À´Ï? ?
/usr/local/src/ddosmon-master/src/headers.h:76:20: error: lualib.h: ±×·± ÆÄÀÏÀ̳ª µð·ºÅ͸®°¡ ¾ø½À´Ï´Ù
/usr/local/src/ddosmon-master/src/headers.h:85:21: error: ncurses.h: ±×·± ÆÄÀÏÀ̳ª µð·ºÅ͸®°¡ ¾ø½À´Ï? ?
In file included from /usr/local/src/ddosmon-master/src/configmanager.cpp:2:
/usr/local/src/ddosmon-master/src/configmanager.h:45: error: 'lua_State' has not been declared
/usr/local/src/ddosmon-master/src/configmanager.h:46: error: 'lua_State' has not been declared
/usr/local/src/ddosmon-master/src/configmanager.h:47: error: 'lua_State' has not been declared
/usr/local/src/ddosmon-master/src/configmanager.cpp: In member function 'void ConfigManager::loadFile ()':
/usr/local/src/ddosmon-master/src/configmanager.cpp:15: error: 'lua_State' was not declared in this s cope
/usr/local/src/ddosmon-master/src/configmanager.cpp:15: error: 'luaHandle' was not declared in this s cope
/usr/local/src/ddosmon-master/src/configmanager.cpp:15: error: 'lua_open' was not declared in this sc ope
/usr/local/src/ddosmon-master/src/configmanager.cpp:21: error: 'luaL_dofile' was not declared in this scope
/usr/local/src/ddosmon-master/src/configmanager.cpp:22: error: 'lua_close' was not declared in this s cope
/usr/local/src/ddosmon-master/src/configmanager.cpp:45: error: 'lua_close' was not declared in this s cope
/usr/local/src/ddosmon-master/src/configmanager.cpp: At global scope:
/usr/local/src/ddosmon-master/src/configmanager.cpp:91: error: 'std::string ConfigManager::getGlobalS tring' is not a static member of 'class ConfigManager'
/usr/local/src/ddosmon-master/src/configmanager.cpp:91: error: 'lua_State' was not declared in this s cope
/usr/local/src/ddosmon-master/src/configmanager.cpp:91: error: '_luaHandle' was not declared in this scope
/usr/local/src/ddosmon-master/src/configmanager.cpp:91: error: expected primary-expression before 'co nst'
/usr/local/src/ddosmon-master/src/configmanager.cpp:91: error: expected primary-expression before 'co nst'
/usr/local/src/ddosmon-master/src/configmanager.cpp:92: error: expected ',' or ';' before '{' token
make[2]: *** [CMakeFiles/ddosmon.dir/src/configmanager.cpp.o] ¿À·ù 1
make[1]: *** [CMakeFiles/ddosmon.dir/all] ¿À·ù 2
make: *** [all] ¿À·ù 2
==>>
# git clone https://github.com/edubart/ddosmon.git ddosmon
# cd ddosmon
# mkdir build
# apt-get install cmake libboost-all-dev
# apt-get install liblua5.2 libncurses5-dev
# apt-get install liblua5.1-0-dev libncurses5-dev
# cmake ..
# make
# mkdir ../logs
# cd ..
# ./build/ddosmon configs/example.lua
¼³Á¤ÆÄÀÏÀ» ½Ã½ºÅÛ¿¡ ¸Â°Ô...¼öÁ¤
# cat configs/example.lua
interface = "eth0"
global_traffic_threshold = 900000
global_packets_threshold = 30
ip_traffic_threshold = 500000
ip_packets_threshold = 125000
notification_traffic_threshold = 20000
notification_packets_threshold = 30
ipblock_retry_ticks = 5*3600*1000
notification_command = "./scripts/notificate \"%1%\" \"%2%\" &"
onblockip_command = "./scripts/ipblock block %1% &"
onunblockip_command = "./scripts/ipblock unblock %1% &"
network_uncompromise_ticks = 30
onnetwork_compromise_command = "./scripts/networkcompromise compromised &"
onnetwork_uncompromise_command = "./scripts/networkcompromise uncompromised &"
log="logs/example.log"
watchedips="configs/example_watchedips.xml"
notificationsubject="DDOS Monitor on server1 notification"