Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FoD
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Schmitz
FoD
Commits
d58d345f
Commit
d58d345f
authored
1 year ago
by
David Schmitz
Browse files
Options
Downloads
Patches
Plain Diff
testing: update inst/testing/nemo1/
parent
c76782ac
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
inst/testing/nemo1/install_and_run_vsmd
+54
-0
54 additions, 0 deletions
inst/testing/nemo1/install_and_run_vsmd
inst/testing/nemo1/nemo.conf.vsmd
+29
-0
29 additions, 0 deletions
inst/testing/nemo1/nemo.conf.vsmd
with
83 additions
and
0 deletions
inst/testing/nemo1/install_and_run_vsmd
0 → 100755
+
54
−
0
View file @
d58d345f
#!/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
"
$@
"
This diff is collapsed.
Click to expand it.
inst/testing/nemo1/nemo.conf.vsmd
0 → 100644
+
29
−
0
View file @
d58d345f
[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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment