hping3 localhost -p 9090 --udp -V -d 15 --flood
hping3 -I lo -c 3 -S 127.0.0.1 -p 9595
nc -v localhost 9191
ncat -v -l -p 5555 -c 'while true; do read i && echo [echo] $i; done' echo ferrum | nc -v localhost 9191
attribute((unused))
echo '/var/lib/ferrum/core.%e.%p' | sudo tee /proc/sys/kernel/core_pattern /etc/sysctl.d/50-coredump.conf kernel.core_pattern=/dev/null
conntrack table list
conntrack -L|grep 8080
setting mark on conntrack
iptables -t mangle -A INPUT -p udp -i enp3s0 -j CONNMARK --set-mark 4000000000
make lmdb for compile
for starting application
sudo LD_LIBRARY_PATH=$(pwd)/external/libs/lib ./test/ferrum.io.lmdb /tmp/dns track list
echo "press ctrl c" echo -n "hello" | nc -4u $HOST $PORT
dig "www.ferrumgate.zero" @$HOST -p$PORT
dig mx ferrumgate.com @$HOST -p$PORT
sudo LD_LIBRARY_PATH=$(pwd)/external/libs/lib ./test/ferrum.io.lmdb /tmp/dns track put /track/id/0/data "userIds:abo
groupIds" dig "www.ferrumgate.com" @$HOST -p$PORT echo "will give servfail"
sudo LD_LIBRARY_PATH=$(pwd)/external/libs/lib ./test/ferrum.io.lmdb /tmp/dns track del /track/id/0/data
dig +tries=1 +timeout=3 "www.ferrumgate.com" @$HOST -p$PORT
sudo LD_LIBRARY_PATH=$(pwd)/external/libs/lib ./test/ferrum.io.lmdb /tmp/dns track put /track/id/0/data "userId=\"abc\"
groupIds=",def,ghi,"" sudo LD_LIBRARY_PATH=$(pwd)/external/libs/lib ./test/ferrum.io.lmdb /tmp/dns authz put /authz/service/id/mysqlservice/user/list "'[rules2]" dig +tries=1 +timeout=3 "www.ferrumgate.com" @$HOST -p$PORT
sudo LD_LIBRARY_PATH=$(pwd)/external/libs/lib ./test/ferrum.io.lmdb /tmp/dns track put /track/id/0/data "userId=\"abc\"
groupIds=",def,ghi,"" sudo LD_LIBRARY_PATH=$(pwd)/external/libs/lib ./test/ferrum.io.lmdb /tmp/dns authz put /authz/service/id/mysqlservice/user/list "[rules2]" dig +tries=1 +timeout=3 "www.ferrumgate.com" @$HOST -p$PORT
sudo LD_LIBRARY_PATH=$(pwd)/external/libs/lib ./test/ferrum.io.lmdb /tmp/dns track put /track/id/0/data "userId=\"abc\"
groupIds=",def,ghi,"" sudo LD_LIBRARY_PATH=$(pwd)/external/libs/lib ./test/ferrum.io.lmdb /tmp/dns authz put /authz/service/id/mysqlservice/user/list "[[rules]] id2="ttyy" userOrgroupIds="abc"" dig +tries=1 +timeout=3 "www.ferrumgate.com" @$HOST -p$PORT
sudo LD_LIBRARY_PATH=$(pwd)/external/libs/lib ./test/ferrum.io.lmdb /tmp/dns track put /track/id/0/data "userId=\"abc\"
groupIds=",def,ghi,"" sudo LD_LIBRARY_PATH=$(pwd)/external/libs/lib ./test/ferrum.io.lmdb /tmp/dns authz put /authz/service/id/mysqlservice/user/list "[[rules]] id="ttyy" userOrgroupIds="abc"" sudo LD_LIBRARY_PATH=$(pwd)/external/libs/lib ./test/ferrum.io.lmdb /tmp/dns authz del /authz/id/ttyy dig +tries=1 +timeout=3 "www.ferrumgate.com" @$HOST -p$PORT
sudo LD_LIBRARY_PATH=$(pwd)/external/libs/lib ./test/ferrum.io.lmdb /tmp/dns track put /track/id/0/data "userId=\"abc\"
groupIds=",def,ghi,"" sudo LD_LIBRARY_PATH=$(pwd)/external/libs/lib ./test/ferrum.io.lmdb /tmp/dns authz put /authz/service/id/mysqlservice/user/list "[[rules]] id="ttyy" userOrgroupIds="abc"" sudo LD_LIBRARY_PATH=$(pwd)/external/libs/lib ./test/ferrum.io.lmdb /tmp/dns authz put /authz/id/ttyy " id="ttyy" [fqdnIntelligence]]"
dig +tries=1 +timeout=3 "www.ferrumgate.com" @$HOST -p$PORT
sudo LD_LIBRARY_PATH=$(pwd)/external/libs/lib ./test/ferrum.io.lmdb /tmp/dns track put /track/id/0/data "userId=\"abc\"
groupIds=",def,ghi,"" sudo LD_LIBRARY_PATH=$(pwd)/external/libs/lib ./test/ferrum.io.lmdb /tmp/dns authz put /authz/service/id/mysqlservice/user/list "[[rules]] id="ttyy" userOrgroupIds="abc"" sudo LD_LIBRARY_PATH=$(pwd)/external/libs/lib ./test/ferrum.io.lmdb /tmp/dns authz put /authz/id/ttyy " id="ttyy" [fqdnIntelligence] ignoreFqdns=",ferrumgate2.com," ignoreLists=",abc," "
dig +tries=1 +timeout=3 "www.ferrumgate.com" @$HOST -p$PORT
sudo LD_LIBRARY_PATH=$(pwd)/external/libs/lib ./test/ferrum.io.lmdb /tmp/dns track put /track/id/0/data "userId=\"abc\"
groupIds=",def,ghi,"" sudo LD_LIBRARY_PATH=$(pwd)/external/libs/lib ./test/ferrum.io.lmdb /tmp/dns authz put /authz/service/id/mysqlservice/user/list "[[rules]] id="ttyy" userOrgroupIds="abc"" sudo LD_LIBRARY_PATH=$(pwd)/external/libs/lib ./test/ferrum.io.lmdb /tmp/dns authz put /authz/id/ttyy " id="ttyy" [fqdnIntelligence] ignoreFqdns=",," "
dig +tries=1 +timeout=3 "www.ferrumgate.com" @$HOST -p$PORT
sudo hping3 $HOST -p $PORT --udp -V -d 15 --flood # 3 seconds
-
add redis fqdn list
docker exec -ti $redis /bin/bash
add redis
sadd /fqdn/ferrumgate.com/list abc def
cd /tmp/top1m
sudo LD_LIBRARY_PATH=$(pwd)/external/libs/lib ./test/ferrum.io.lmdb /tmp/dns track put /track/id/0/data "userId="abc" groupIds=",def,ghi,""
sudo LD_LIBRARY_PATH=$(pwd)/external/libs/lib ./test/ferrum.io.lmdb /tmp/dns authz put /authz/service/id/mysqlservice/user/list "[[rules]]
id="ttyy" userOrgroupIds="abc""
sudo LD_LIBRARY_PATH=$(pwd)/external/libs/lib ./test/ferrum.io.lmdb /tmp/dns authz put /authz/id/ttyy " id="ttyy" [fqdnIntelligence] ignoreFqdns=",ferrumgate.com," " dig "www.ferrumgate.com" @$HOST -p$PORT
sudo LD_LIBRARY_PATH=$(pwd)/external/libs/lib ./test/ferrum.io.lmdb /tmp/dns authz put /authz/id/ttyy " id="ttyy" [fqdnIntelligence] whiteFqdns=",ferrumgate.com," " dig "www.ferrumgate.com" @$HOST -p$PORT
sudo LD_LIBRARY_PATH=$(pwd)/external/libs/lib ./test/ferrum.io.lmdb /tmp/dns authz put /authz/id/ttyy "
id=\"ttyy\"
[fqdnIntelligence]
blackFqdns=\",ferrumgate.com,\"
" dig "www.ferrumgate.com" @$HOST -p$PORT
sudo LD_LIBRARY_PATH=$(pwd)/external/libs/lib ./test/ferrum.io.lmdb /tmp/dns authz put /authz/id/ttyy "
id=\"ttyy\"
[fqdnIntelligence]
ignoreLists=\",abc,\"
" dig "www.ferrumgate.com" @$HOST -p$PORT
sudo LD_LIBRARY_PATH=$(pwd)/external/libs/lib ./test/ferrum.io.lmdb /tmp/dns authz put /authz/id/ttyy "
id=\"ttyy\"
[fqdnIntelligence]
whiteLists=\",abc,\"
" dig "www.ferrumgate.com" @$HOST -p$PORT
sudo LD_LIBRARY_PATH=$(pwd)/external/libs/lib ./test/ferrum.io.lmdb /tmp/dns authz put /authz/id/ttyy "
id=\"ttyy\"
[fqdnIntelligence]
blackLists=\",abc,\"
" dig "www.ferrumgate.com" @$HOST -p$PORT
run dns for query in $(cat top1.list); do echo $query; dig +short $query +timeout=5 @192.168.88.250 -p5656;sleep 1; done
add redis category info docker exec -ti $redis /bin/bash cd /tmp/top1m
for fqdn in