Skip to content
Snippets Groups Projects
Commit d58d345f authored by David Schmitz's avatar David Schmitz
Browse files

testing: update inst/testing/nemo1/

parent c76782ac
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
if [ ! -f /.nemo_vsmd_setuped ]; then
set -e
apt-get -yyy install xtables-addons-dkms xtables-addons-common exabgp linux-headers-amd64
perl -MCPAN -e 'install (Net::CIDR::Lite)'
perl -MCPAN -e 'install (Text::CSV_XS)'
mkdir -p /usr/share/xt_geoip
(
cd /usr/share/xt_geoip
/usr/libexec/xtables-addons/xt_geoip_dl
/usr/libexec/xtables-addons/xt_geoip_build -D /usr/share/xt_geoip
)
apt-get -yyy install virtualenv
touch /.nemo_vsmd_setuped
fi
#
cd nemo-vsmd/
if [ ! -d venv ]; then
virtualenv venv
fi
. venv/bin/activate
pip install -r requirements.txt
export PYTHONPATH="$PYTHONPATH:$PWD/lib/python3/"
mkdir -p /services/etc/nemo/
if [ ! -f /services/etc/nemo/nemo.conf -o ../nemo.conf.vsmd -nt /services/etc/nemo/nemo.conf ]; then
#touch /services/etc/nemo/nemo.conf
#echo "[vsmd]" >> /services/etc/nemo/nemo.conf
#
#cp -vf ./doc/nemo.conf.example /services/etc/nemo/nemo.conf
#
cp -vf ../nemo.conf.vsmd /services/etc/nemo/nemo.conf
fi
echo TODO: configure /services/etc/nemo/nemo.conf
echo use ./bin/adm.py OR ./bin/nemo-vsmd
exec ./bin/nemo-vsmd "$@"
[vsmd]
countermeasurectl: /opt/countermeasure/countermeasure.py
offrampctl: /bin/echo
flowspec_redirect: 65023:172
#rpc_host: localhost
rpc_host: 172.18.0.1
rpc_port: 3236
sqlite_db: /services/data/vsmd/vsmd.sqlite
#ssl_key: /services/etc/nemo/ssl/testvm.test.org.key
#ssl_cert: /services/etc/nemo/ssl/testvm.test.org.pem
#ssl_ca: /services/etc/nemo/ssl/test-ca-chain.pem
ssl_key: /nemo-all/secrets/nemo-analyse.key
ssl_cert: /nemo-all/secrets/nemo-analyse.pem
ssl_ca: /nemo-all/secrets/nemo-analyse-cachain.pem
stats_interval: 60
[nemo_identities]
# TODO: replace by actual fingerprint? of cert:
F13A90C5F2637C6AECF744126D6BE46A27BDACCE: Nemo Testinstanz
[Nemo Testinstanz]
cidr_ro: 10.0.1.0/24
cidr_rw: 127.0.0.0/8
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment